Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ServiceBusManagementClient

Package version

All operations return promises that resolve to an object that has the relevant output. These objects also have a property called _response that you can use if you want to access the direct response from the service.

Hierarchy

  • any
    • ServiceBusManagementClient

Index

Constructors

constructor

Methods

createQueue

  • Creates a queue with given name, configured using the given options

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityAlreadyExistsError when requested messaging entity already exists,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code QuotaExceededError when requested operation fails due to quote limits exceeding from service side,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • queueName: string

      Following are errors that can be expected from this operation

    Returns Promise<CreateQueueResponse>

  • Creates a queue configured using the given options

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityAlreadyExistsError when requested messaging entity already exists,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code QuotaExceededError when requested operation fails due to quote limits exceeding from service side,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • queue: QueueDescription

      Options to configure the Queue being created. For example, you can configure a queue to support partitions or sessions.

      Following are errors that can be expected from this operation

    Returns Promise<CreateQueueResponse>

createRule

  • createRule(topicName: string, subscriptionName: string, rule: RuleDescription): Promise<CreateRuleResponse>
  • Creates a rule with given name, configured using the given options.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityAlreadyExistsError when requested messaging entity already exists,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code QuotaExceededError when requested operation fails due to quote limits exceeding from service side,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • subscriptionName: string
    • rule: RuleDescription

      Following are errors that can be expected from this operation

    Returns Promise<CreateRuleResponse>

createSubscription

  • Creates a subscription with given name, configured using the given options

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityAlreadyExistsError when requested messaging entity already exists,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code QuotaExceededError when requested operation fails due to quote limits exceeding from service side,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • subscriptionName: string

      Following are errors that can be expected from this operation

    Returns Promise<CreateSubscriptionResponse>

  • Creates a subscription with given name, configured using the given options

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityAlreadyExistsError when requested messaging entity already exists,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code QuotaExceededError when requested operation fails due to quote limits exceeding from service side,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • subscription: SubscriptionDescription

      Options to configure the Subscription being created. For example, you can configure a Subscription to support partitions or sessions.

      Following are errors that can be expected from this operation

    Returns Promise<CreateSubscriptionResponse>

createTopic

  • Creates a topic with given name, configured using the given options

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityAlreadyExistsError when requested messaging entity already exists,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code QuotaExceededError when requested operation fails due to quote limits exceeding from service side,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string

      Following are errors that can be expected from this operation

    Returns Promise<CreateTopicResponse>

  • Creates a topic with given name, configured using the given options

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityAlreadyExistsError when requested messaging entity already exists,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code QuotaExceededError when requested operation fails due to quote limits exceeding from service side,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topic: TopicDescription

      Options to configure the Topic being created. For example, you can configure a topic to support partitions or sessions.

      Following are errors that can be expected from this operation

    Returns Promise<CreateTopicResponse>

deleteQueue

  • Deletes a queue.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • queueName: string

      Following are errors that can be expected from this operation

    Returns Promise<DeleteQueueResponse>

deleteRule

  • deleteRule(topicName: string, subscriptionName: string, ruleName: string): Promise<DeleteRuleResponse>
  • Deletes a rule.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • subscriptionName: string
    • ruleName: string

      Following are errors that can be expected from this operation

    Returns Promise<DeleteRuleResponse>

deleteSubscription

  • Deletes a subscription.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • subscriptionName: string

      Following are errors that can be expected from this operation

    Returns Promise<DeleteSubscriptionResponse>

deleteTopic

  • Deletes a topic.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string

      Following are errors that can be expected from this operation

    Returns Promise<DeleteTopicResponse>

getNamespaceProperties

getQueue

  • Returns an object representing the Queue and its properties. If you want to get the Queue runtime info like message count details, use getQueueRuntimeInfo API.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • queueName: string

      Following are errors that can be expected from this operation

    Returns Promise<GetQueueResponse>

getQueueRuntimeInfo

  • Returns an object representing the Queue runtime info like message count details.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • queueName: string

      Following are errors that can be expected from this operation

    Returns Promise<GetQueueRuntimeInfoResponse>

getQueues

  • Returns a list of objects, each representing a Queue along with its properties. If you want to get the runtime info of the queues like message count, use getQueuesRuntimeInfo API instead.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • Optional listRequestOptions: ListRequestOptions

      Following are errors that can be expected from this operation

    Returns Promise<GetQueuesResponse>

getQueuesRuntimeInfo

getRule

  • getRule(topicName: string, subscriptioName: string, ruleName: string): Promise<GetRuleResponse>
  • Returns an object representing the Rule with the given name along with all its properties.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • subscriptioName: string
    • ruleName: string

      Following are errors that can be expected from this operation

    Returns Promise<GetRuleResponse>

getRules

getSubscription

  • Returns an object representing the Subscription and its properties. If you want to get the Subscription runtime info like message count details, use getSubscriptionRuntimeInfo API.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • subscriptionName: string

      Following are errors that can be expected from this operation

    Returns Promise<GetSubscriptionResponse>

getSubscriptionRuntimeInfo

  • Returns an object representing the Subscription runtime info like message count details.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • subscriptionName: string

      Following are errors that can be expected from this operation

    Returns Promise<GetSubscriptionRuntimeInfoResponse>

getSubscriptions

  • Returns a list of objects, each representing a Subscription along with its properties. If you want to get the runtime info of the subscriptions like message count, use getSubscriptionsRuntimeInfo API instead.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • Optional listRequestOptions: ListRequestOptions

      Following are errors that can be expected from this operation

    Returns Promise<GetSubscriptionsResponse>

getSubscriptionsRuntimeInfo

getTopic

  • Returns an object representing the Topic and its properties. If you want to get the Topic runtime info like subscription count details, use getTopicRuntimeInfo API.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string

      Following are errors that can be expected from this operation

    Returns Promise<GetTopicResponse>

getTopicRuntimeInfo

  • Returns an object representing the Topic runtime info like subscription count.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string

      Following are errors that can be expected from this operation

    Returns Promise<GetTopicRuntimeInfoResponse>

getTopics

  • Returns a list of objects, each representing a Topic along with its properties. If you want to get the runtime info of the topics like subscription count, use getTopicsRuntimeInfo API instead.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • Optional listRequestOptions: ListRequestOptions

      Following are errors that can be expected from this operation

    Returns Promise<GetTopicsResponse>

getTopicsRuntimeInfo

queueExists

  • queueExists(queueName: string): Promise<boolean>

subscriptionExists

  • subscriptionExists(topicName: string, subscriptionName: string): Promise<boolean>

topicExists

  • topicExists(topicName: string): Promise<boolean>

updateQueue

  • Updates properties on the Queue by the given name based on the given options

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • queue: QueueDescription

      Options to configure the Queue being updated. For example, you can configure a queue to support partitions or sessions.

      Following are errors that can be expected from this operation

    Returns Promise<UpdateQueueResponse>

updateRule

  • updateRule(topicName: string, subscriptionName: string, rule: RuleDescription): Promise<UpdateRuleResponse>
  • Updates properties on the Rule by the given name based on the given options.

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topicName: string
    • subscriptionName: string
    • rule: RuleDescription

    Returns Promise<UpdateRuleResponse>

updateSubscription

  • Updates properties on the Subscription by the given name based on the given options

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • subscription: SubscriptionDescription

      Options to configure the Subscription being updated. For example, you can configure a Subscription to support partitions or sessions.

      Following are errors that can be expected from this operation

    Returns Promise<UpdateSubscriptionResponse>

updateTopic

  • Updates properties on the Topic by the given name based on the given options

    throws

    RestError with code UnauthorizedRequestError when given request fails due to authorization problems,

    throws

    RestError with code MessageEntityNotFoundError when requested messaging entity does not exist,

    throws

    RestError with code InvalidOperationError when requested operation is invalid and we encounter a 403 HTTP status code,

    throws

    RestError with code ServerBusyError when the request fails due to server being busy,

    throws

    RestError with code ServiceError when receiving unrecognized HTTP status or for a scenarios such as bad requests or requests resulting in conflicting operation on the server,

    throws

    RestError with code that is a value from the standard set of HTTP status codes as documented at https://docs.microsoft.com/en-us/dotnet/api/system.net.httpstatuscode?view=netframework-4.8

    Parameters

    • topic: TopicDescription

      Options to configure the Topic being updated. For example, you can configure a topic to support partitions or sessions.

      Following are errors that can be expected from this operation

    Returns Promise<UpdateTopicResponse>

Generated using TypeDoc