Skip to content

Commit beab9aa

Browse files
committed
fix issues from rebase
1 parent 159113d commit beab9aa

File tree

3 files changed

+3
-33
lines changed

3 files changed

+3
-33
lines changed

sdk/data_cosmos/src/clients/attachment.rs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ impl AttachmentClient {
8383
}
8484

8585
/// Initiate a request to replace an attachment.
86-
<<<<<<< HEAD:sdk/data_cosmos/src/clients/attachment_client.rs
8786
pub fn replace_attachment<M, C>(
8887
&self,
8988
media: M,
@@ -99,15 +98,6 @@ impl AttachmentClient {
9998
media.into(),
10099
content_type.into(),
101100
)
102-
=======
103-
pub fn replace_reference(&self) -> requests::ReplaceReferenceAttachmentBuilder<'_, '_> {
104-
requests::ReplaceReferenceAttachmentBuilder::new(self)
105-
}
106-
107-
/// Get a raw [`HttpClient`].
108-
pub(crate) fn http_client(&self) -> &dyn HttpClient {
109-
self.client().http_client()
110-
>>>>>>> 495b38c8e... Remove `_client` suffix from cosmos methods:sdk/data_cosmos/src/clients/attachment.rs
111101
}
112102

113103
pub(crate) fn prepare_pipeline(&self, method: http::Method) -> Request {
@@ -122,26 +112,6 @@ impl AttachmentClient {
122112
)
123113
}
124114

125-
<<<<<<< HEAD:sdk/data_cosmos/src/clients/attachment_client.rs
126-
=======
127-
pub(crate) fn prepare_request_with_attachment_name(
128-
&self,
129-
method: http::Method,
130-
) -> http::request::Builder {
131-
self.client().prepare_request(
132-
&format!(
133-
"dbs/{}/colls/{}/docs/{}/attachments/{}",
134-
self.database().database_name(),
135-
self.collection().collection_name(),
136-
self.document().document_name(),
137-
self.attachment_name()
138-
),
139-
method,
140-
ResourceType::Attachments,
141-
)
142-
}
143-
144-
>>>>>>> 495b38c8e... Remove `_client` suffix from cosmos methods:sdk/data_cosmos/src/clients/attachment.rs
145115
pub(crate) fn prepare_pipeline_with_attachment_name(&self, method: http::Method) -> Request {
146116
self.client().prepare_request_pipeline(
147117
&format!(

sdk/data_cosmos/src/operations/execute_stored_procedure.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl ExecuteStoredProcedureBuilder {
7373

7474
let response = self
7575
.client
76-
.cosmos_client()
76+
.client()
7777
.pipeline()
7878
.send(
7979
self.context.clone().insert(ResourceType::StoredProcedures),

sdk/data_cosmos/src/operations/get_partition_key_ranges.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ impl GetPartitionKeyRangesBuilder {
3434

3535
pub fn into_future(self) -> GetPartitionKeyRanges {
3636
Box::pin(async move {
37-
let mut request = self.client.cosmos_client().prepare_request_pipeline(
37+
let mut request = self.client.client().prepare_request_pipeline(
3838
&format!(
3939
"dbs/{}/colls/{}/pkranges",
40-
self.client.database_client().database_name(),
40+
self.client.database().database_name(),
4141
self.client.collection_name()
4242
),
4343
http::Method::GET,

0 commit comments

Comments
 (0)