Skip to content

Commit

Permalink
CodeGen from PR 20414 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge e17f533db77eaa2e1c1cea3622fb4512902f81de into 152050002a09b76fd66ddb82dd9e90a41d87906c
  • Loading branch information
SDKAuto committed Aug 26, 2022
1 parent 5eb60e2 commit f1cb73c
Show file tree
Hide file tree
Showing 10 changed files with 194 additions and 187 deletions.
20 changes: 12 additions & 8 deletions sdk/networkfunction/arm-networkfunction/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# Release History

## 2.0.0 (2022-08-26)

**Features**

## 1.0.1 (Unreleased)
- Added Type Alias ApiVersionParameter
- Interface CollectorPoliciesCreateOrUpdateOptionalParams has a new optional parameter location
- Interface CollectorPoliciesCreateOrUpdateOptionalParams has a new optional parameter tags
- Added Enum KnownApiVersionParameter

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes
**Breaking Changes**

- Interface CollectorPolicy no longer has parameter systemData


## 1.0.0 (2022-07-13)

The package of @azure/arm-networkfunction is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
6 changes: 3 additions & 3 deletions sdk/networkfunction/arm-networkfunction/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "96c6e14d4dfd2aef59a69a43185308567fec8c07",
"commit": "46524da75141b904fbfb70bcc08300ca116214fd",
"readme": "specification/networkfunction/resource-manager/readme.md",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\networkfunction\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.1 --generate-sample=true",
"autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/networkfunction/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.0",
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/typescript@6.0.0-rc.1"
}
14 changes: 3 additions & 11 deletions sdk/networkfunction/arm-networkfunction/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for AzureTrafficCollectorClient.",
"version": "1.0.1",
"version": "2.0.0",
"engines": {
"node": ">=12.0.0"
},
Expand Down Expand Up @@ -109,13 +109,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-networkfunction?view=azure-node-preview"
}
}
"autoPublish": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging';
import { PollerLike } from '@azure/core-lro';
import { PollOperationState } from '@azure/core-lro';

// @public
export type ApiVersionParameter = string;

// @public
export interface AzureTrafficCollector extends TrackedResource {
collectorPolicies?: CollectorPolicy[];
Expand Down Expand Up @@ -162,7 +165,11 @@ export interface CollectorPolicies {
export interface CollectorPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
emissionPolicies?: EmissionPoliciesPropertiesFormat[];
ingestionPolicy?: IngestionPolicyPropertiesFormat;
location?: string;
resumeFrom?: string;
tags?: {
[propertyName: string]: string;
};
updateIntervalInMs?: number;
}

Expand Down Expand Up @@ -197,12 +204,11 @@ export interface CollectorPoliciesListOptionalParams extends coreClient.Operatio
export type CollectorPoliciesListResponse = CollectorPolicyListResult;

// @public
export interface CollectorPolicy extends ProxyResource {
export interface CollectorPolicy extends TrackedResource {
emissionPolicies?: EmissionPoliciesPropertiesFormat[];
readonly etag?: string;
ingestionPolicy?: IngestionPolicyPropertiesFormat;
readonly provisioningState?: ProvisioningState;
readonly systemData?: CollectorPolicySystemData;
}

// @public
Expand All @@ -211,10 +217,6 @@ export interface CollectorPolicyListResult {
value?: CollectorPolicy[];
}

// @public
export interface CollectorPolicySystemData extends SystemData {
}

// @public
export type CreatedByType = string;

Expand Down Expand Up @@ -250,6 +252,12 @@ export interface IngestionSourcesPropertiesFormat {
// @public
export type IngestionType = string;

// @public
export enum KnownApiVersionParameter {
TwoThousandTwentyTwo0501 = "2022-05-01",
TwoThousandTwentyTwo0801 = "2022-08-01"
}

// @public
export enum KnownCreatedByType {
Application = "Application",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class AzureTrafficCollectorClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-networkfunction/1.0.1`;
const packageDetails = `azsdk-js-arm-networkfunction/2.0.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -109,7 +109,7 @@ export class AzureTrafficCollectorClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2022-05-01";
this.apiVersion = options.apiVersion || "2022-08-01";
this.networkFunction = new NetworkFunctionImpl(this);
this.azureTrafficCollectorsBySubscription = new AzureTrafficCollectorsBySubscriptionImpl(
this
Expand Down
120 changes: 67 additions & 53 deletions sdk/networkfunction/arm-networkfunction/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,48 +99,6 @@ export interface EmissionPolicyDestination {
destinationType?: DestinationType;
}

/** Metadata pertaining to creation and last modification of the resource. */
export interface SystemData {
/** The identity that created the resource. */
createdBy?: string;
/** The type of identity that created the resource. */
createdByType?: CreatedByType;
/** The timestamp of resource creation (UTC). */
createdAt?: Date;
/** The identity that last modified the resource. */
lastModifiedBy?: string;
/** The type of identity that last modified the resource. */
lastModifiedByType?: CreatedByType;
}

/** An azure resource object */
export interface ProxyResource {
/**
* Azure resource Id
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly id?: string;
/**
* Azure resource type
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly type?: string;
/**
* Azure resource name
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name?: string;
}

/** Resource reference properties. */
export interface ResourceReference {
/**
* Resource ID.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly id?: string;
}

/** Common resource representation. */
export interface TrackedResource {
/**
Expand Down Expand Up @@ -169,6 +127,29 @@ export interface TrackedResource {
readonly systemData?: TrackedResourceSystemData;
}

/** Metadata pertaining to creation and last modification of the resource. */
export interface SystemData {
/** The identity that created the resource. */
createdBy?: string;
/** The type of identity that created the resource. */
createdByType?: CreatedByType;
/** The timestamp of resource creation (UTC). */
createdAt?: Date;
/** The identity that last modified the resource. */
lastModifiedBy?: string;
/** The type of identity that last modified the resource. */
lastModifiedByType?: CreatedByType;
}

/** Resource reference properties. */
export interface ResourceReference {
/**
* Resource ID.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly id?: string;
}

/** Tags object for patch operations. */
export interface TagsObject {
/** Resource tags. */
Expand All @@ -186,24 +167,32 @@ export interface CollectorPolicyListResult {
readonly nextLink?: string;
}

/** Metadata pertaining to creation and last modification of the resource. */
export interface CollectorPolicySystemData extends SystemData {}

/** Metadata pertaining to creation and last modification of the resource. */
export interface TrackedResourceSystemData extends SystemData {}
/** An azure resource object */
export interface ProxyResource {
/**
* Azure resource Id
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly id?: string;
/**
* Azure resource type
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly type?: string;
/**
* Azure resource name
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name?: string;
}

/** Collector policy resource. */
export interface CollectorPolicy extends ProxyResource {
export interface CollectorPolicy extends TrackedResource {
/**
* A unique read-only string that changes whenever the resource is updated.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly etag?: string;
/**
* Metadata pertaining to creation and last modification of the resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly systemData?: CollectorPolicySystemData;
/** Ingestion policies. */
ingestionPolicy?: IngestionPolicyPropertiesFormat;
/** Emission policies. */
Expand Down Expand Up @@ -233,6 +222,9 @@ export interface AzureTrafficCollector extends TrackedResource {
readonly provisioningState?: ProvisioningState;
}

/** Metadata pertaining to creation and last modification of the resource. */
export interface TrackedResourceSystemData extends SystemData {}

/** Known values of {@link IngestionType} that the service accepts. */
export enum KnownIngestionType {
/** Ipfix */
Expand Down Expand Up @@ -341,6 +333,24 @@ export enum KnownCreatedByType {
*/
export type CreatedByType = string;

/** Known values of {@link ApiVersionParameter} that the service accepts. */
export enum KnownApiVersionParameter {
/** TwoThousandTwentyTwo0501 */
TwoThousandTwentyTwo0501 = "2022-05-01",
/** TwoThousandTwentyTwo0801 */
TwoThousandTwentyTwo0801 = "2022-08-01"
}

/**
* Defines values for ApiVersionParameter. \
* {@link KnownApiVersionParameter} can be used interchangeably with ApiVersionParameter,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **2022-05-01** \
* **2022-08-01**
*/
export type ApiVersionParameter = string;

/** Optional parameters. */
export interface NetworkFunctionListOperationsOptionalParams
extends coreClient.OperationOptions {}
Expand Down Expand Up @@ -436,6 +446,10 @@ export type CollectorPoliciesGetResponse = CollectorPolicy;
/** Optional parameters. */
export interface CollectorPoliciesCreateOrUpdateOptionalParams
extends coreClient.OperationOptions {
/** Resource location. */
location?: string;
/** Resource tags. */
tags?: { [propertyName: string]: string };
/** Ingestion policies. */
ingestionPolicy?: IngestionPolicyPropertiesFormat;
/** Emission policies. */
Expand Down
Loading

0 comments on commit f1cb73c

Please sign in to comment.