npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@datafire/azure_reservations_quota

v3.0.0

Published

DataFire integration for Azure Reservation

Downloads

8

Readme

@datafire/azure_reservations_quota

Client library for Azure Reservation

Installation and Usage

npm install --save @datafire/azure_reservations_quota
let azure_reservations_quota = require('@datafire/azure_reservations_quota').create({
  access_token: "",
  refresh_token: "",
  client_id: "",
  client_secret: "",
  redirect_uri: ""
});

.then(data => {
  console.log(data);
});

Description

Microsoft Azure Quota Resource Provider.

Actions

AutoQuotaIncrease_GetProperties

Gets the Auto Quota Increase enrollment details for the specified subscription.

azure_reservations_quota.AutoQuotaIncrease_GetProperties({
  "subscriptionId": "",
  "api-version": ""
}, context)

Input

  • input object
    • subscriptionId required string: Azure subscription id.
    • api-version required string: Api version.

Output

AutoQuotaIncrease_Create

Sets the Auto Quota Increase enrollment properties for the specified subscription.

azure_reservations_quota.AutoQuotaIncrease_Create({
  "subscriptionId": "",
  "api-version": "",
  "autoQuotaIncreaseRequest": {}
}, context)

Input

  • input object
    • subscriptionId required string: Azure subscription id.
    • api-version required string: Api version.
    • autoQuotaIncreaseRequest required AutoQuotaIncreaseDetail

Output

Quotas_listStatus

This API gets the current quota limits and usages for the resource provider for the specified location. This response can be used to submit quotaRequests.

azure_reservations_quota.Quotas_listStatus({
  "subscriptionId": "",
  "providerId": "",
  "location": "",
  "api-version": ""
}, context)

Input

  • input object
    • subscriptionId required string: Azure subscription id.
    • providerId required string: Azure resource Provider id.
    • location required string: Azure region.
    • api-version required string: Api version.

Output

Quota_listStatus

This API gets the current quota limit and usages for the specific resource for resource provider for the specified location. This response can be used to submit quotaRequests.

azure_reservations_quota.Quota_listStatus({
  "subscriptionId": "",
  "providerId": "",
  "location": "",
  "api-version": "",
  "resourceName": ""
}, context)

Input

  • input object
    • subscriptionId required string: Azure subscription id.
    • providerId required string: Azure resource Provider id.
    • location required string: Azure region.
    • api-version required string: Api version.
    • resourceName required string: The Resource name for the specific resource provider, such as SKU name for Microsoft.Compute, pool for Microsoft.Batch.

Output

QuotaRequest_Update

Submits Quota change request for a resource provider for the specified location for the specific resource in the parameter. To use, first make a Get request to get quota information. This information consists of a list of resources and information regarding those resources. For all the resources in that list which require an update to their quotas, update their limit fields in the response from the Get request to their new values. Then, submit this updated JSON object to this quota request API. This will update the quota to the values specified. The location header in the response will be used to track the status of the quota request. Please check the provisioningState field in the response.

azure_reservations_quota.QuotaRequest_Update({
  "subscriptionId": "",
  "providerId": "",
  "location": "",
  "resourceName": "",
  "api-version": "",
  "createQuotaRequest": {},
  "If-Match": ""
}, context)

Input

  • input object
    • subscriptionId required string: Azure subscription id.
    • providerId required string: Azure resource Provider id.
    • location required string: Azure region.
    • resourceName required string: The Resource name for the specific resource provider, such as SKU name for Microsoft.Compute, pool for Microsoft.Batch.
    • api-version required string: Api version.
    • createQuotaRequest required CurrentQuotaLimitBase
    • If-Match required string: ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.

Output

QuotaRequest_Create

Submits Quota change request for a resource provider for the specified location for the specific resource in the parameter. To use, first make a Get request to get quota information. This information consists of a list of resources and information regarding those resources. For all the resources in that list which require an update to their quotas, update their limit fields in the response from the Get request to their new values. Then, submit this updated JSON object to this quota request API. This will update the quota to the values specified. The location header in the response will be used to track the status of the quota request. Please check the provisioningState field in the response.

azure_reservations_quota.QuotaRequest_Create({
  "subscriptionId": "",
  "providerId": "",
  "location": "",
  "resourceName": "",
  "api-version": "",
  "createQuotaRequest": {},
  "If-Match": ""
}, context)

Input

  • input object
    • subscriptionId required string: Azure subscription id.
    • providerId required string: Azure resource Provider id.
    • location required string: Azure region.
    • resourceName required string: The Resource name for the specific resource provider, such as SKU name for Microsoft.Compute, pool for Microsoft.Batch.
    • api-version required string: Api version.
    • createQuotaRequest required CurrentQuotaLimitBase
    • If-Match required string: ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.

Output

QuotaRequests_ListStatus

For the specified location and Resource provider gets the current quota requests under the subscription over the time period of one year ago from now to one year back. oData filter can be used to select quota requests.

azure_reservations_quota.QuotaRequests_ListStatus({
  "subscriptionId": "",
  "api-version": "",
  "providerId": "",
  "location": ""
}, context)

Input

  • input object
    • subscriptionId required string: Azure subscription id.
    • api-version required string: Api version.
    • providerId required string: Azure resource Provider id.
    • location required string: Azure region.
    • $filter string: | Field | Supported operators
    • $top integer: Number of records to return.
    • $skiptoken string: Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls

Output

QuotaRequests_GetStatus

Gets the QuotaRequest details and status by the quota requestId for the resources for the resource provider at a specific location. The requestId is returned as response to the Put requests for serviceLimits.

azure_reservations_quota.QuotaRequests_GetStatus({
  "subscriptionId": "",
  "api-version": "",
  "providerId": "",
  "location": "",
  "id": ""
}, context)

Input

  • input object
    • subscriptionId required string: Azure subscription id.
    • api-version required string: Api version.
    • providerId required string: Azure resource Provider id.
    • location required string: Azure region.
    • id required string: Quota Request id.

Output

Definitions

Actions

  • Actions object: The actions for auto quota increase.
    • emailActions object: The email actions for auto quota increase.
      • value array: The list of email actions.
    • phoneActions object: The phone actions for auto quota increase.
      • value array: The list of phone actions.

AqiState

  • AqiState string (values: enabled, disabled): The Auto quota increase state.

AutoQuotaIncreaseDetail

  • AutoQuotaIncreaseDetail object: Auto Quota Increase settings.
    • id string: The subscription Id.
    • name string: The name of the auto quota increase.
    • properties autoQuotaIncreaseSettings
    • type string: The type of the resource

ContactMethod

  • ContactMethod string (values: Email, Phone): The contact method.

CreateGenericQuotaRequestParameters

  • CreateGenericQuotaRequestParameters object: Quota change requests information.

CurrentQuotaLimit

CurrentQuotaLimitBase

  • CurrentQuotaLimitBase object: Quota limits.
    • currentValue integer: The current resource usages information.
    • limit integer: The quota limit.
    • name object: Name of the resource provide by the resource Provider. Please use this name property for quotaRequests.
      • localizedValue string: Resource display name.
      • value string: Resource name.
    • properties object: Additional properties for the specific resource provider.
    • quotaPeriod string: The quota period over which the usage values are summarized, such as - P1D (Per one day), PT1M (Per one minute), PT1S (Per one second). This parameter is optional because, for some resources like compute, the period doesn’t matter.
    • resourceType ResourceTypesName
    • unit string: The units of the limit, such as - Count, Bytes, etc. Use the unit field provided in the Get quota response.

EmailAction

  • EmailAction object: Email Action.
    • emailAddress string: The email address for the action.

EmailActions

  • EmailActions object: The email actions.
    • value array: The list of actions based on the success or failure of automatic quota increase action.

ExceptionResponse

OnFailure

OnSuccess

PhoneAction

  • PhoneAction object: Phone Action.
    • phoneNumber string: The phone number for the action.
    • preferredChannel ContactMethod

QuotaLimits

  • QuotaLimits object: Quota limits.
    • nextLink string: The uri to fetch the next page of quota limits. When there are no more pages, this is null.
    • value array: List of Quota limits.

QuotaLimitsResponse

  • QuotaLimitsResponse object: Quota limits request response.
    • nextLink string: The uri to fetch the next page of quota limits. When there are no more pages, this is null.
    • value array: List of Quota limits with the quota request status.

QuotaRequestDetails

  • QuotaRequestDetails object: The details of the quota Request.
    • id string: The quota request Id.
    • name string: The name of the quota request.
    • properties QuotaRequestProperties
    • type string: Type of resource. "Microsoft.Capacity/ServiceLimits"

QuotaRequestDetailsList

  • QuotaRequestDetailsList object: Quota requests information.
    • nextLink string: The uri to fetch the next page of quota limits. When there are no more pages, this is null.
    • value array: The quota Requests.

QuotaRequestOneResourceSubmitResponse

  • QuotaRequestOneResourceSubmitResponse object: Quota submit request response
    • id string: The quota request Id.
    • name string: The name of the quota request.
    • properties quotaRequestOneResourceProperties
    • type string: Type of resource. "Microsoft.Capacity/ServiceLimits"

QuotaRequestProperties

  • QuotaRequestProperties object: The details of quota request.
    • message string: User friendly status message.
    • provisioningState QuotaRequestState
    • requestSubmitTime string: The quota request submit time. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
    • value array: The quotaRequests.

QuotaRequestState

  • QuotaRequestState string (values: Accepted, Invalid, Succeeded, Failed, InProgress): The quota request status.

QuotaRequestStatusDetails

  • QuotaRequestStatusDetails object: The quota request status details.

QuotaRequestSubmitResponse

  • QuotaRequestSubmitResponse object: Quota submit request response
    • id string: The quota request Id.
    • name string: The name of the quota request.
    • properties QuotaRequestProperties
    • type string: Type of resource. "Microsoft.Capacity/serviceLimits"

QuotaRequestSubmitResponse201

  • QuotaRequestSubmitResponse201 object: The quota request submit response with request id.
    • id string: The quota request id. Please use the requestId to check the request status.
    • name string: The operation Id
    • properties QuotaRequestStatusDetails
    • type string: The resource type

ResourceTypesName

  • ResourceTypesName string (values: standard, dedicated, shared, serviceSpecific): The resource types.

ServiceError

  • ServiceError object: The api error details.
    • code string: The error code.
    • details array: The list of error details.
    • message string: The error message.

ServiceErrorDetail

  • ServiceErrorDetail object: The error details.
    • code string: The error code.
    • message string: The error message.

SeverityTypes

  • SeverityTypes string (values: Critical, Moderate, Minimal): The Severity types.

SubRequest

  • SubRequest object: The sub-request submitted with the quota request.
    • limit integer: The Resource limit.
    • message string: User friendly status message.
    • name object: The Resource name.
      • localizedValue string: Resource display name.
      • value string: Resource name.
    • provisioningState QuotaRequestState
    • resourceType string: Resource type for which the quota check was made.
    • subRequestId string: Sub request id for individual request.
    • unit string: The units of the limit, such as - Count, Bytes, etc. Use the unit field provided in the Get quota response.

SupportContactTypes

  • SupportContactTypes string (values: email, phone, chat): The support contact types.

SupportRequestAction

  • SupportRequestAction object: The SupportRequest action.
    • alternateEmailAddresses array: The alternate email address of the recipient.
      • items string: The email recipients.
    • autoQuotaIncreaseState AqiState
    • country string: The country of the recipient.
    • firstName string: The first name of the recipient.
    • lastName string: The last name of the recipient.
    • phoneNumber string: The phone number of the recipient.
    • preferredContactMethod ContactMethod
    • primaryEmailAddress string: The primary email addresses of the recipients.
    • severity SeverityTypes
    • supportLanguage string: The support language.

aqiSettings

  • aqiSettings object: Settings for auto quota increase.

autoQuotaIncreaseSettings

quotaRequestOneResourceProperties

  • quotaRequestOneResourceProperties object: The details of quota request.
    • message string: User friendly status message.
    • properties CurrentQuotaLimitBase
    • provisioningState QuotaRequestState
    • requestSubmitTime string: The quota request submit time. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.