Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 48 additions & 11 deletions sdk/subscription/arm-subscriptions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,52 @@
# Release History

## 4.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes


## 5.0.0 (2022-01-12)

**Features**

- Added operation group SubscriptionOperations
- Added operation group Subscriptions
- Added operation group Tenants
- Added Interface Location_2
- Added Interface LocationListResult
- Added Interface Subscription
- Added Interface SubscriptionListResult
- Added Interface SubscriptionPolicies
- Added Interface SubscriptionsGetOptionalParams
- Added Interface SubscriptionsListLocationsOptionalParams
- Added Interface SubscriptionsListNextOptionalParams
- Added Interface SubscriptionsListOptionalParams
- Added Interface TenantIdDescription
- Added Interface TenantListResult
- Added Interface TenantsListNextOptionalParams
- Added Interface TenantsListOptionalParams
- Added Type Alias SpendingLimit
- Added Type Alias SubscriptionsGetResponse
- Added Type Alias SubscriptionsListLocationsResponse
- Added Type Alias SubscriptionsListNextResponse
- Added Type Alias SubscriptionsListResponse
- Added Type Alias SubscriptionState
- Added Type Alias TenantsListNextResponse
- Added Type Alias TenantsListResponse
- Interface CanceledSubscriptionId has a new optional parameter subscriptionId
- Interface EnabledSubscriptionId has a new optional parameter subscriptionId
- Interface RenamedSubscriptionId has a new optional parameter subscriptionId
- Interface SubscriptionAliasResponseProperties has a new optional parameter createdTime
- Class SubscriptionClient has a new parameter subscriptionOperations
- Class SubscriptionClient has a new parameter subscriptions
- Class SubscriptionClient has a new parameter tenants

**Breaking Changes**

- Removed operation group Subscription
- Interface CanceledSubscriptionId no longer has parameter value
- Interface EnabledSubscriptionId no longer has parameter value
- Interface RenamedSubscriptionId no longer has parameter value
- Interface SubscriptionClientOptionalParams no longer has parameter apiVersion
- Class SubscriptionClient no longer has parameter apiVersion
- Class SubscriptionClient no longer has parameter subscription


## 4.0.0 (2021-12-22)

The package of @azure/arm-subscriptions is using our next generation design principles since version 4.0.0, which contains breaking changes.
Expand Down
2 changes: 1 addition & 1 deletion sdk/subscription/arm-subscriptions/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2021 Microsoft
Copyright (c) 2022 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 2 additions & 1 deletion sdk/subscription/arm-subscriptions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ For more information about how to create an Azure AD Application check out [this
```javascript
const { SubscriptionClient } = require("@azure/arm-subscriptions");
const { DefaultAzureCredential } = require("@azure/identity");
const client = new SubscriptionClient(new DefaultAzureCredential());
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new SubscriptionClient(new DefaultAzureCredential(), subscriptionId);
```


Expand Down
6 changes: 3 additions & 3 deletions sdk/subscription/arm-subscriptions/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commit": "0cd7b3e83d5e7e21222dcc4bdde4565562da0cdf",
"commit": "428c2dd8a6e3b4d59239f8fbbd121d13b21d399d",
"readme": "specification/subscription/resource-manager/readme.md",
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/subscription/resource-manager/readme.md --use=@autorest/[email protected].20211217.1",
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/subscription/resource-manager/readme.md --use=@autorest/[email protected].20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/[email protected].20211217.1"
"use": "@autorest/[email protected].20220105.1"
}
18 changes: 4 additions & 14 deletions sdk/subscription/arm-subscriptions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for SubscriptionClient.",
"version": "4.0.1",
"engines": {
"node": ">=12.0.0"
},
"version": "5.0.0",
"engines": { "node": ">=12.0.0" },
"dependencies": {
"@azure/core-lro": "^2.2.0",
"@azure/abort-controller": "^1.0.0",
Expand All @@ -16,13 +14,7 @@
"@azure/core-rest-pipeline": "^1.1.0",
"tslib": "^2.2.0"
},
"keywords": [
"node",
"azure",
"typescript",
"browser",
"isomorphic"
],
"keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
"license": "MIT",
"main": "./dist/index.js",
"module": "./dist-esm/src/index.js",
Expand All @@ -49,9 +41,7 @@
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
Expand Down
139 changes: 126 additions & 13 deletions sdk/subscription/arm-subscriptions/review/arm-subscriptions.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ export interface BillingAccountPoliciesResponseProperties {

// @public
export interface CanceledSubscriptionId {
readonly value?: string;
readonly subscriptionId?: string;
}

// @public
export type CreatedByType = string;

// @public
export interface EnabledSubscriptionId {
readonly value?: string;
readonly subscriptionId?: string;
}

// @public
Expand Down Expand Up @@ -183,6 +183,22 @@ export enum KnownWorkload {
Production = "Production"
}

// @public
interface Location_2 {
readonly displayName?: string;
readonly id?: string;
readonly latitude?: string;
readonly longitude?: string;
readonly name?: string;
readonly subscriptionId?: string;
}
export { Location_2 as Location }

// @public
export interface LocationListResult {
value?: Location_2[];
}

// @public
export interface Operation {
display?: OperationDisplay;
Expand Down Expand Up @@ -260,7 +276,7 @@ export interface PutTenantPolicyRequestProperties {

// @public
export interface RenamedSubscriptionId {
readonly value?: string;
readonly subscriptionId?: string;
}

// @public
Expand All @@ -269,14 +285,17 @@ export interface ServiceTenantResponse {
tenantName?: string;
}

// @public
export type SpendingLimit = "On" | "Off" | "CurrentPeriodOff";

// @public
export interface Subscription {
acceptOwnershipStatus(subscriptionId: string, options?: SubscriptionAcceptOwnershipStatusOptionalParams): Promise<SubscriptionAcceptOwnershipStatusResponse>;
beginAcceptOwnership(subscriptionId: string, body: AcceptOwnershipRequest, options?: SubscriptionAcceptOwnershipOptionalParams): Promise<PollerLike<PollOperationState<SubscriptionAcceptOwnershipResponse>, SubscriptionAcceptOwnershipResponse>>;
beginAcceptOwnershipAndWait(subscriptionId: string, body: AcceptOwnershipRequest, options?: SubscriptionAcceptOwnershipOptionalParams): Promise<SubscriptionAcceptOwnershipResponse>;
cancel(subscriptionId: string, options?: SubscriptionCancelOptionalParams): Promise<SubscriptionCancelResponse>;
enable(subscriptionId: string, options?: SubscriptionEnableOptionalParams): Promise<SubscriptionEnableResponse>;
rename(subscriptionId: string, body: SubscriptionName, options?: SubscriptionRenameOptionalParams): Promise<SubscriptionRenameResponse>;
authorizationSource?: string;
readonly displayName?: string;
readonly id?: string;
readonly state?: SubscriptionState;
readonly subscriptionId?: string;
subscriptionPolicies?: SubscriptionPolicies;
}

// @public
Expand Down Expand Up @@ -321,6 +340,7 @@ export interface SubscriptionAliasResponseProperties {
readonly acceptOwnershipState?: AcceptOwnership;
readonly acceptOwnershipUrl?: string;
billingScope?: string;
createdTime?: string;
displayName?: string;
managementGroupId?: string;
provisioningState?: ProvisioningState;
Expand Down Expand Up @@ -348,21 +368,22 @@ export class SubscriptionClient extends coreClient.ServiceClient {
// (undocumented)
alias: Alias;
// (undocumented)
apiVersion: string;
// (undocumented)
billingAccount: BillingAccount;
// (undocumented)
operations: Operations;
// (undocumented)
subscription: Subscription;
subscriptionOperations: SubscriptionOperations;
// (undocumented)
subscriptionPolicy: SubscriptionPolicy;
// (undocumented)
subscriptions: Subscriptions;
// (undocumented)
tenants: Tenants;
}

// @public
export interface SubscriptionClientOptionalParams extends coreClient.ServiceClientOptions {
$host?: string;
apiVersion?: string;
endpoint?: string;
}

Expand All @@ -373,11 +394,34 @@ export interface SubscriptionEnableOptionalParams extends coreClient.OperationOp
// @public
export type SubscriptionEnableResponse = EnabledSubscriptionId;

// @public
export interface SubscriptionListResult {
nextLink: string;
value?: Subscription[];
}

// @public
export interface SubscriptionName {
subscriptionName?: string;
}

// @public
export interface SubscriptionOperations {
acceptOwnershipStatus(subscriptionId: string, options?: SubscriptionAcceptOwnershipStatusOptionalParams): Promise<SubscriptionAcceptOwnershipStatusResponse>;
beginAcceptOwnership(subscriptionId: string, body: AcceptOwnershipRequest, options?: SubscriptionAcceptOwnershipOptionalParams): Promise<PollerLike<PollOperationState<SubscriptionAcceptOwnershipResponse>, SubscriptionAcceptOwnershipResponse>>;
beginAcceptOwnershipAndWait(subscriptionId: string, body: AcceptOwnershipRequest, options?: SubscriptionAcceptOwnershipOptionalParams): Promise<SubscriptionAcceptOwnershipResponse>;
cancel(subscriptionId: string, options?: SubscriptionCancelOptionalParams): Promise<SubscriptionCancelResponse>;
enable(subscriptionId: string, options?: SubscriptionEnableOptionalParams): Promise<SubscriptionEnableResponse>;
rename(subscriptionId: string, body: SubscriptionName, options?: SubscriptionRenameOptionalParams): Promise<SubscriptionRenameResponse>;
}

// @public
export interface SubscriptionPolicies {
readonly locationPlacementId?: string;
readonly quotaId?: string;
readonly spendingLimit?: SpendingLimit;
}

// @public
export interface SubscriptionPolicy {
addUpdatePolicyForTenant(body: PutTenantPolicyRequestProperties, options?: SubscriptionPolicyAddUpdatePolicyForTenantOptionalParams): Promise<SubscriptionPolicyAddUpdatePolicyForTenantResponse>;
Expand Down Expand Up @@ -420,6 +464,44 @@ export interface SubscriptionRenameOptionalParams extends coreClient.OperationOp
// @public
export type SubscriptionRenameResponse = RenamedSubscriptionId;

// @public
export interface Subscriptions {
get(subscriptionId: string, options?: SubscriptionsGetOptionalParams): Promise<SubscriptionsGetResponse>;
list(options?: SubscriptionsListOptionalParams): PagedAsyncIterableIterator<Subscription>;
listLocations(subscriptionId: string, options?: SubscriptionsListLocationsOptionalParams): PagedAsyncIterableIterator<Location_2>;
}

// @public
export interface SubscriptionsGetOptionalParams extends coreClient.OperationOptions {
}

// @public
export type SubscriptionsGetResponse = Subscription;

// @public
export interface SubscriptionsListLocationsOptionalParams extends coreClient.OperationOptions {
}

// @public
export type SubscriptionsListLocationsResponse = LocationListResult;

// @public
export interface SubscriptionsListNextOptionalParams extends coreClient.OperationOptions {
}

// @public
export type SubscriptionsListNextResponse = SubscriptionListResult;

// @public
export interface SubscriptionsListOptionalParams extends coreClient.OperationOptions {
}

// @public
export type SubscriptionsListResponse = SubscriptionListResult;

// @public
export type SubscriptionState = "Enabled" | "Warned" | "PastDue" | "Disabled" | "Deleted";

// @public
export interface SystemData {
createdAt?: Date;
Expand All @@ -430,6 +512,18 @@ export interface SystemData {
lastModifiedByType?: CreatedByType;
}

// @public
export interface TenantIdDescription {
readonly id?: string;
readonly tenantId?: string;
}

// @public
export interface TenantListResult {
nextLink: string;
value?: TenantIdDescription[];
}

// @public
export interface TenantPolicy {
blockSubscriptionsIntoTenant?: boolean;
Expand All @@ -438,6 +532,25 @@ export interface TenantPolicy {
readonly policyId?: string;
}

// @public
export interface Tenants {
list(options?: TenantsListOptionalParams): PagedAsyncIterableIterator<TenantIdDescription>;
}

// @public
export interface TenantsListNextOptionalParams extends coreClient.OperationOptions {
}

// @public
export type TenantsListNextResponse = TenantListResult;

// @public
export interface TenantsListOptionalParams extends coreClient.OperationOptions {
}

// @public
export type TenantsListResponse = TenantListResult;

// @public
export type Workload = string;

Expand Down
Loading