Skip to content

Commit

Permalink
Move get_account_information operation (#1056)
Browse files Browse the repository at this point in the history
  • Loading branch information
rylev authored Aug 31, 2022
1 parent dfc7f00 commit ccca509
Show file tree
Hide file tree
Showing 130 changed files with 316 additions and 336 deletions.
2 changes: 1 addition & 1 deletion sdk/data_tables/examples/table_00.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use azure_core::StatusCode;
use azure_data_tables::{operations::InsertEntityResponse, prelude::*};
use azure_storage::core::prelude::*;
use azure_storage::prelude::*;
use futures::stream::StreamExt;
use serde::{Deserialize, Serialize};

Expand Down
2 changes: 1 addition & 1 deletion sdk/data_tables/src/clients/partition_key_client.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{operations::*, prelude::*, transaction::TransactionOperations};
use azure_core::{headers::Headers, Body, Context, Method, Request, Response, Url};
use azure_storage::core::clients::StorageClient;
use azure_storage::clients::StorageClient;

#[derive(Debug, Clone)]
pub struct PartitionKeyClient {
Expand Down
2 changes: 1 addition & 1 deletion sdk/data_tables/src/clients/table_service_client.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::operations::ListTablesBuilder;
use azure_core::{headers::Headers, Body, Context, Method, Request, Response};
use azure_storage::core::clients::{ServiceType, StorageClient};
use azure_storage::clients::{ServiceType, StorageClient};
use url::Url;

use super::TableClient;
Expand Down
2 changes: 1 addition & 1 deletion sdk/data_tables/src/operations/create_table.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::prelude::*;
use azure_core::{headers::*, prelude::*, Method, Response};
use azure_storage::core::headers::CommonStorageResponseHeaders;
use azure_storage::headers::CommonStorageResponseHeaders;
use std::convert::TryInto;

operation! {
Expand Down
2 changes: 1 addition & 1 deletion sdk/data_tables/src/operations/delete_entity.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{prelude::*, IfMatchCondition};
use azure_core::{error::Error, headers::Headers, Method, Response};
use azure_storage::core::headers::CommonStorageResponseHeaders;
use azure_storage::headers::CommonStorageResponseHeaders;
use std::convert::{TryFrom, TryInto};

operation! {
Expand Down
2 changes: 1 addition & 1 deletion sdk/data_tables/src/operations/delete_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use azure_core::{
headers::*,
Method, Response,
};
use azure_storage::core::headers::CommonStorageResponseHeaders;
use azure_storage::headers::CommonStorageResponseHeaders;
use std::convert::{TryFrom, TryInto};

operation! {
Expand Down
2 changes: 1 addition & 1 deletion sdk/data_tables/src/operations/get_entity.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::prelude::*;
use azure_core::{headers::*, AppendToUrlQuery, Context, Etag, Method, Response};
use azure_storage::core::headers::CommonStorageResponseHeaders;
use azure_storage::headers::CommonStorageResponseHeaders;
use serde::de::DeserializeOwned;
use std::{convert::TryInto, marker::PhantomData};

Expand Down
2 changes: 1 addition & 1 deletion sdk/data_tables/src/operations/list_tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::prelude::*;
use azure_core::{
error::Error, headers::*, prelude::*, AppendToUrlQuery, CollectedResponse, Method, Pageable,
};
use azure_storage::core::headers::CommonStorageResponseHeaders;
use azure_storage::headers::CommonStorageResponseHeaders;
use std::convert::{TryFrom, TryInto};

operation! {
Expand Down
2 changes: 1 addition & 1 deletion sdk/data_tables/src/operations/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use azure_core::{
headers::{self, etag_from_headers, HeaderName},
CollectedResponse, Etag,
};
use azure_storage::core::headers::CommonStorageResponseHeaders;
use azure_storage::headers::CommonStorageResponseHeaders;
use serde::de::DeserializeOwned;
use std::convert::{TryFrom, TryInto};
use url::Url;
Expand Down
2 changes: 1 addition & 1 deletion sdk/data_tables/src/operations/query_entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use azure_core::{
prelude::*,
AppendToUrlQuery, CollectedResponse, Method, Pageable,
};
use azure_storage::core::headers::CommonStorageResponseHeaders;
use azure_storage::headers::CommonStorageResponseHeaders;
use serde::de::DeserializeOwned;
use std::convert::{TryFrom, TryInto};

Expand Down
2 changes: 1 addition & 1 deletion sdk/data_tables/src/operations/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use azure_core::{
prelude::*,
CollectedResponse, Etag, Method, Request, StatusCode,
};
use azure_storage::core::headers::CommonStorageResponseHeaders;
use azure_storage::headers::CommonStorageResponseHeaders;
use serde::Serialize;
use std::convert::{TryFrom, TryInto};
use std::sync::Arc;
Expand Down
7 changes: 0 additions & 7 deletions sdk/storage/src/account/mod.rs

This file was deleted.

3 changes: 0 additions & 3 deletions sdk/storage/src/account/operations/mod.rs

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::authorization_policy::AuthorizationPolicy;
use crate::operations::*;
use crate::shared_access_signature::account_sas::{
AccountSasPermissions, AccountSasResource, AccountSasResourceType, AccountSharedAccessSignature,
};
Expand Down Expand Up @@ -476,19 +475,6 @@ impl StorageClient {
.await
}

/// Prepares' an `azure_core::Request`.
pub(crate) fn blob_storage_request(
&self,
http_method: azure_core::Method,
) -> azure_core::Result<Request> {
self.finalize_request(
self.blob_storage_url().clone(),
http_method,
Headers::new(),
None,
)
}

pub fn shared_access_signature(
&self,
resource: AccountSasResource,
Expand Down Expand Up @@ -517,10 +503,6 @@ impl StorageClient {
Self::url_with_segments(self.queue_storage_url().to_owned(), segments)
}

pub fn get_account_information(&self) -> GetAccountInformationBuilder {
GetAccountInformationBuilder::new(self.clone())
}

pub fn url_with_segments<'a, I>(
mut url: url::Url,
new_segments: I,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::core::connection_string::*;
use crate::connection_string::*;

#[derive(Debug, Default)]
pub struct ConnectionStringBuilder<'a>(ConnectionString<'a>);
Expand Down
File renamed without changes.
File renamed without changes.
175 changes: 0 additions & 175 deletions sdk/storage/src/core/mod.rs

This file was deleted.

File renamed without changes.
File renamed without changes.
Loading

0 comments on commit ccca509

Please sign in to comment.