Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR] @azure/arm-subscriptions #4480

Closed
Closed
51 changes: 31 additions & 20 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/core/core-auth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure/core-auth",
"version": "1.0.0-preview.1",
"version": "1.0.0-preview.2",
"description": "Provides low-level interfaces and helper methods for authentication in Azure SDK",
"sdk-type": "client",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion sdk/policy/arm-policy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@azure/arm-policy",
"author": "Microsoft Corporation",
"description": "PolicyClient Library with typescript type definitions for node.js and browser.",
"version": "1.0.2",
"version": "2.0.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^1.3.2",
"@azure/ms-rest-js": "^1.8.1",
Expand Down
13 changes: 2 additions & 11 deletions sdk/policy/arm-policy/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,9 @@ export interface PolicyDefinition extends BaseResource {
*/
policyType?: PolicyType;
/**
* The policy definition mode. Possible values are NotSpecified, Indexed, and All. Possible
* values include: 'NotSpecified', 'Indexed', 'All'
* The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.
*/
mode?: PolicyMode;
mode?: string;
/**
* The display name of the policy definition.
*/
Expand Down Expand Up @@ -328,14 +327,6 @@ export type ResourceIdentityType = 'SystemAssigned' | 'None';
*/
export type PolicyType = 'NotSpecified' | 'BuiltIn' | 'Custom';

/**
* Defines values for PolicyMode.
* Possible values include: 'NotSpecified', 'Indexed', 'All'
* @readonly
* @enum {string}
*/
export type PolicyMode = 'NotSpecified' | 'Indexed' | 'All';

/**
* Contains response data for the deleteMethod operation.
*/
Expand Down
38 changes: 18 additions & 20 deletions sdk/policy/arm-policy/src/operations/policyAssignments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,8 @@ export class PolicyAssignments {
* contained within the resource group. If $filter=atScope() is provided, the returned list
* includes all policy assignments that apply to the resource group, which is everything in the
* unfiltered list except those applied to resources contained within the resource group. If
* $filter=policyDefinitionId eq '{value}' is provided, the returned list includes only policy
* assignments that apply to the resource group and assign the policy definition whose id is
* {value}.
* $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy
* assignments of the policy definition whose id is {value} that apply to the resource group.
* @summary Retrieves all policy assignments that apply to a resource group.
* @param resourceGroupName The name of the resource group that contains policy assignments.
* @param [options] The optional parameters
Expand Down Expand Up @@ -218,11 +217,11 @@ export class PolicyAssignments {
* resources contained within the resource. If $filter=atScope() is provided, the returned list
* includes all policy assignments that apply to the resource, which is everything in the
* unfiltered list except those applied to resources contained within the resource. If
* $filter=policyDefinitionId eq '{value}' is provided, the returned list includes only policy
* assignments that apply to the resource and assign the policy definition whose id is {value}.
* Three parameters plus the resource name are used to identify a specific resource. If the
* resource is not part of a parent resource (the more common case), the parent resource path
* should not be provided (or provided as ''). For example a web app could be specified as
* $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy
* assignments of the policy definition whose id is {value} that apply to the resource. Three
* parameters plus the resource name are used to identify a specific resource. If the resource is
* not part of a parent resource (the more common case), the parent resource path should not be
* provided (or provided as ''). For example a web app could be specified as
* ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} ==
* 'sites', {resourceName} == 'MyWebApp'). If the resource is part of a parent resource, then all
* parameters should be provided. For example a virtual machine DNS name could be specified as
Expand Down Expand Up @@ -290,8 +289,8 @@ export class PolicyAssignments {
* contained within the subscription. If $filter=atScope() is provided, the returned list includes
* all policy assignments that apply to the subscription, which is everything in the unfiltered
* list except those applied to objects contained within the subscription. If
* $filter=policyDefinitionId eq '{value}' is provided, the returned list includes only policy
* assignments that apply to the subscription and assign the policy definition whose id is {value}.
* $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy
* assignments of the policy definition whose id is {value}.
* @summary Retrieves all policy assignments that apply to a subscription.
* @param [options] The optional parameters
* @returns Promise<Models.PolicyAssignmentsListResponse>
Expand Down Expand Up @@ -445,9 +444,8 @@ export class PolicyAssignments {
* contained within the resource group. If $filter=atScope() is provided, the returned list
* includes all policy assignments that apply to the resource group, which is everything in the
* unfiltered list except those applied to resources contained within the resource group. If
* $filter=policyDefinitionId eq '{value}' is provided, the returned list includes only policy
* assignments that apply to the resource group and assign the policy definition whose id is
* {value}.
* $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy
* assignments of the policy definition whose id is {value} that apply to the resource group.
* @summary Retrieves all policy assignments that apply to a resource group.
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param [options] The optional parameters
Expand Down Expand Up @@ -484,11 +482,11 @@ export class PolicyAssignments {
* resources contained within the resource. If $filter=atScope() is provided, the returned list
* includes all policy assignments that apply to the resource, which is everything in the
* unfiltered list except those applied to resources contained within the resource. If
* $filter=policyDefinitionId eq '{value}' is provided, the returned list includes only policy
* assignments that apply to the resource and assign the policy definition whose id is {value}.
* Three parameters plus the resource name are used to identify a specific resource. If the
* resource is not part of a parent resource (the more common case), the parent resource path
* should not be provided (or provided as ''). For example a web app could be specified as
* $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy
* assignments of the policy definition whose id is {value} that apply to the resource. Three
* parameters plus the resource name are used to identify a specific resource. If the resource is
* not part of a parent resource (the more common case), the parent resource path should not be
* provided (or provided as ''). For example a web app could be specified as
* ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} ==
* 'sites', {resourceName} == 'MyWebApp'). If the resource is part of a parent resource, then all
* parameters should be provided. For example a virtual machine DNS name could be specified as
Expand Down Expand Up @@ -534,8 +532,8 @@ export class PolicyAssignments {
* contained within the subscription. If $filter=atScope() is provided, the returned list includes
* all policy assignments that apply to the subscription, which is everything in the unfiltered
* list except those applied to objects contained within the subscription. If
* $filter=policyDefinitionId eq '{value}' is provided, the returned list includes only policy
* assignments that apply to the subscription and assign the policy definition whose id is {value}.
* $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy
* assignments of the policy definition whose id is {value}.
* @summary Retrieves all policy assignments that apply to a subscription.
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param [options] The optional parameters
Expand Down
4 changes: 2 additions & 2 deletions sdk/policy/arm-policy/src/policyClientContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";

const packageName = "@azure/arm-policy";
const packageVersion = "1.0.2";
const packageVersion = "2.0.0";

export class PolicyClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
Expand Down Expand Up @@ -44,7 +44,7 @@ export class PolicyClientContext extends msRestAzure.AzureServiceClient {

super(credentials, options);

this.apiVersion = '2018-05-01';
this.apiVersion = '2019-01-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Expand Down
2 changes: 1 addition & 1 deletion sdk/subscription/arm-subscriptions/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Microsoft
Copyright (c) 2019 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
Loading