Skip to content

Commit

Permalink
Generate @azure/arm-policy (#4487)
Browse files Browse the repository at this point in the history
* Generate @azure/arm-policy

* Bump the version

* Regenerate with older generator
  • Loading branch information
kpajdzik authored Jul 29, 2019
1 parent 4f2b764 commit 802c7e4
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 34 deletions.
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

0 comments on commit 802c7e4

Please sign in to comment.