public final class ServiceURL extends StorageURL
storageClient
Constructor and Description |
---|
ServiceURL(URL url,
com.microsoft.rest.v2.http.HttpPipeline pipeline)
Creates a
ServiceURL object pointing to the account specified by the URL and using the provided pipeline
to make HTTP requests. |
Modifier and Type | Method and Description |
---|---|
ContainerURL |
createContainerURL(String containerName)
Creates a
ContainerURL object pointing to the specified container. |
io.reactivex.Single<ServiceGetAccountInfoResponse> |
getAccountInfo()
Returns the sku name and account kind for the account.
|
io.reactivex.Single<ServiceGetAccountInfoResponse> |
getAccountInfo(com.microsoft.rest.v2.Context context)
Returns the sku name and account kind for the account.
|
io.reactivex.Single<ServiceGetPropertiesResponse> |
getProperties()
Gets the properties of a storage account’s Blob service.
|
io.reactivex.Single<ServiceGetPropertiesResponse> |
getProperties(com.microsoft.rest.v2.Context context)
Gets the properties of a storage account’s Blob service.
|
io.reactivex.Single<ServiceGetStatisticsResponse> |
getStatistics()
Retrieves statistics related to replication for the Blob service.
|
io.reactivex.Single<ServiceGetStatisticsResponse> |
getStatistics(com.microsoft.rest.v2.Context context)
Retrieves statistics related to replication for the Blob service.
|
io.reactivex.Single<ServiceGetUserDelegationKeyResponse> |
getUserDelegationKey(OffsetDateTime start,
OffsetDateTime expiry)
Gets a user delegation key for use with this account's blob storage.
|
io.reactivex.Single<ServiceGetUserDelegationKeyResponse> |
getUserDelegationKey(OffsetDateTime start,
OffsetDateTime expiry,
com.microsoft.rest.v2.Context context)
Gets a user delegation key for use with this account's blob storage.
|
io.reactivex.Single<ServiceListContainersSegmentResponse> |
listContainersSegment(String marker,
ListContainersOptions options)
Returns a single segment of containers starting from the specified Marker.
|
io.reactivex.Single<ServiceListContainersSegmentResponse> |
listContainersSegment(String marker,
ListContainersOptions options,
com.microsoft.rest.v2.Context context)
Returns a single segment of containers starting from the specified Marker.
|
io.reactivex.Single<ServiceSetPropertiesResponse> |
setProperties(StorageServiceProperties properties)
Sets properties for a storage account's Blob service endpoint.
|
io.reactivex.Single<ServiceSetPropertiesResponse> |
setProperties(StorageServiceProperties properties,
com.microsoft.rest.v2.Context context)
Sets properties for a storage account's Blob service endpoint.
|
ServiceURL |
withPipeline(com.microsoft.rest.v2.http.HttpPipeline pipeline)
Creates a new
ServiceURL with the given pipeline. |
appendToURLPath, createPipeline, createPipeline, createPipeline, createPipeline, toString, toURL
public ServiceURL(URL url, com.microsoft.rest.v2.http.HttpPipeline pipeline)
ServiceURL
object pointing to the account specified by the URL and using the provided pipeline
to make HTTP requests.url
- A url to an Azure Storage account.pipeline
- A HttpPipeline
which configures the behavior of HTTP exchanges. Please refer to
StorageURL.createPipeline(ICredentials, PipelineOptions)
for more information.public ContainerURL createContainerURL(String containerName)
ContainerURL
object pointing to the specified container. This method does not create a
container. It simply constructs the URL to the container and offers access to methods relevant to containers.containerName
- The name of the container to point to.ContainerURL
object pointing to the specified containerpublic ServiceURL withPipeline(com.microsoft.rest.v2.http.HttpPipeline pipeline)
ServiceURL
with the given pipeline.pipeline
- An HttpPipeline
object to set.ServiceURL
object with the given pipeline.public io.reactivex.Single<ServiceListContainersSegmentResponse> listContainersSegment(String marker, ListContainersOptions options)
marker
- Identifies the portion of the list to be returned with the next list operation.
This value is returned in the response of a previous list operation as the
ListContainersSegmentResponse.body().nextMarker(). Set to null to list the first segment.options
- A ListContainersOptions
which specifies what data should be returned by the service.public io.reactivex.Single<ServiceListContainersSegmentResponse> listContainersSegment(String marker, ListContainersOptions options, com.microsoft.rest.v2.Context context)
marker
- Identifies the portion of the list to be returned with the next list operation.
This value is returned in the response of a previous list operation as the
ListContainersSegmentResponse.body().nextMarker(). Set to null to list the first segment.options
- A ListContainersOptions
which specifies what data should be returned by the service.context
- Context
offers a means of passing arbitrary data (key/value pairs) to an
HttpPipeline
's policy objects. Most applications do not need to pass
arbitrary data to the pipeline and can pass Context.NONE
or null
. Each context object is
immutable. The withContext
with data method creates a new Context
object that refers to
its parent, forming a linked list.public io.reactivex.Single<ServiceGetPropertiesResponse> getProperties()
public io.reactivex.Single<ServiceGetPropertiesResponse> getProperties(com.microsoft.rest.v2.Context context)
context
- Context
offers a means of passing arbitrary data (key/value pairs) to an
HttpPipeline
's policy objects. Most applications do not need to pass
arbitrary data to the pipeline and can pass Context.NONE
or null
. Each context object is
immutable. The withContext
with data method creates a new Context
object that refers to
its parent, forming a linked list.public io.reactivex.Single<ServiceSetPropertiesResponse> setProperties(StorageServiceProperties properties)
properties
- Configures the service.public io.reactivex.Single<ServiceSetPropertiesResponse> setProperties(StorageServiceProperties properties, com.microsoft.rest.v2.Context context)
properties
- Configures the service.context
- Context
offers a means of passing arbitrary data (key/value pairs) to an
HttpPipeline
's policy objects. Most applications do not need to pass
arbitrary data to the pipeline and can pass Context.NONE
or null
. Each context object is
immutable. The withContext
with data method creates a new Context
object that refers to
its parent, forming a linked list.public io.reactivex.Single<ServiceGetUserDelegationKeyResponse> getUserDelegationKey(OffsetDateTime start, OffsetDateTime expiry)
TokenCredentials
in this object's HttpPipeline
.start
- Start time for the key's validity. Null indicates immediate start.expiry
- Expiration of the key's validity.public io.reactivex.Single<ServiceGetUserDelegationKeyResponse> getUserDelegationKey(OffsetDateTime start, OffsetDateTime expiry, com.microsoft.rest.v2.Context context)
TokenCredentials
in this object's HttpPipeline
.start
- Start time for the key's validity. Null indicates immediate start.expiry
- Expiration of the key's validity.context
- Context
offers a means of passing arbitrary data (key/value pairs) to an
HttpPipeline
's policy objects. Most applications do not need to pass
arbitrary data to the pipeline and can pass Context.NONE
or null
. Each context object is
immutable. The withContext
with data method creates a new Context
object that refers to
its parent, forming a linked list.public io.reactivex.Single<ServiceGetStatisticsResponse> getStatistics()
public io.reactivex.Single<ServiceGetStatisticsResponse> getStatistics(com.microsoft.rest.v2.Context context)
context
- Context
offers a means of passing arbitrary data (key/value pairs) to an
HttpPipeline
's policy objects. Most applications do not need to pass
arbitrary data to the pipeline and can pass Context.NONE
or null
. Each context object is
immutable. The withContext
with data method creates a new Context
object that refers to
its parent, forming a linked list.public io.reactivex.Single<ServiceGetAccountInfoResponse> getAccountInfo()
public io.reactivex.Single<ServiceGetAccountInfoResponse> getAccountInfo(com.microsoft.rest.v2.Context context)
context
- Context
offers a means of passing arbitrary data (key/value pairs) to an
HttpPipeline
's policy objects. Most applications do not need to pass
arbitrary data to the pipeline and can pass Context.NONE
or null
. Each context object is
immutable. The withContext
with data method creates a new Context
object that refers to
its parent, forming a linked list.Copyright © 2019 Microsoft Corporation. All rights reserved.