diff --git a/packages/autorest.typescript/src/transforms/mapperTransforms.ts b/packages/autorest.typescript/src/transforms/mapperTransforms.ts index a2f6a191d9..6a56f982c7 100644 --- a/packages/autorest.typescript/src/transforms/mapperTransforms.ts +++ b/packages/autorest.typescript/src/transforms/mapperTransforms.ts @@ -175,7 +175,9 @@ function buildMapper( const serializedName = getDiscriminatorValue(schema) || options.serializedName || - (schema as ObjectSchema).discriminator && !isUberParent(schema as ObjectSchema) && getLanguageMetadata(schema.language).name || + ((schema as ObjectSchema).discriminator && + !isUberParent(schema as ObjectSchema) && + getLanguageMetadata(schema.language).name) || // Fallback to name only for XML schemas since they need a name, otherwise don't (options.hasXmlMetadata && getLanguageMetadata(schema.language).name); @@ -297,10 +299,10 @@ function buildAdditionalProperties( const additionalProperties = getAdditionalProperties(objectSchema); return additionalProperties ? { - type: { - name: MapperType.Object + type: { + name: MapperType.Object + } } - } : undefined; } @@ -350,7 +352,9 @@ function transformObjectMapper(pipelineValue: PipelineValue) { ); if (objectSchema.parents?.immediate[0]) { - uberParent = getMapperClassName(objectSchema.parents?.immediate[0] as ObjectSchema); + uberParent = getMapperClassName( + objectSchema.parents?.immediate[0] as ObjectSchema + ); } const mapper = buildMapper( schema, @@ -593,7 +597,12 @@ function transformStringMapper(pipelineValue: PipelineValue) { */ if ( !isSchemaType( - [SchemaType.String, SchemaType.Credential, SchemaType.Uri], + [ + SchemaType.String, + SchemaType.Credential, + SchemaType.Uri, + SchemaType.ArmId + ], schema ) ) { @@ -697,7 +706,9 @@ function processProperties( const propName = getLanguageMetadata(prop.language).name; const name = normalizeName( propName, - prop.language.default.isTopLevelParameter ? NameType.Parameter : NameType.Property, + prop.language.default.isTopLevelParameter + ? NameType.Parameter + : NameType.Property, true /** shouldGuard */ ); modelProperties[name] = getMapperOrRef(prop.schema, serializedName, { diff --git a/packages/autorest.typescript/src/utils/schemaHelpers.ts b/packages/autorest.typescript/src/utils/schemaHelpers.ts index 27dc62fab2..d7ca5712e8 100644 --- a/packages/autorest.typescript/src/utils/schemaHelpers.ts +++ b/packages/autorest.typescript/src/utils/schemaHelpers.ts @@ -187,6 +187,7 @@ export function getTypeForSchema( case SchemaType.Uuid: case SchemaType.Uri: case SchemaType.Credential: + case SchemaType.ArmId: typeName = "string"; break; default: diff --git a/packages/autorest.typescript/test/commands/smoke-test-list.ts b/packages/autorest.typescript/test/commands/smoke-test-list.ts index 52c196bab8..732260d864 100644 --- a/packages/autorest.typescript/test/commands/smoke-test-list.ts +++ b/packages/autorest.typescript/test/commands/smoke-test-list.ts @@ -138,7 +138,7 @@ export const readmes: SpecDefinition[] = [ AutorestParams.AzureSdkForJs, AutorestParams.AzureArm ], - branch: "925e8285703ddd461588d8f5fbf14bd97c286fab", + branch: "25bea13c86145a7620e363826a9ae476c18adb5f", buildTag: "ci_3" }, { diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/review/network-resource-manager.api.md b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/review/network-resource-manager.api.md index 96a5f53552..2439981fe9 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/review/network-resource-manager.api.md +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/review/network-resource-manager.api.md @@ -20,17 +20,246 @@ export interface AadAuthenticationParameters { // @public export type Access = string; +// @public +export interface Action { + parameters?: Parameter[]; + type?: RouteMapActionType; +} + +// @public +export type ActionType = string; + +// @public +export interface ActiveBaseSecurityAdminRule { + commitTime?: Date; + configurationDescription?: string; + id?: string; + kind: "Custom" | "Default"; + region?: string; + ruleCollectionAppliesToGroups?: NetworkManagerSecurityGroupItem[]; + ruleCollectionDescription?: string; + ruleGroups?: ConfigurationGroup[]; +} + +// @public (undocumented) +export type ActiveBaseSecurityAdminRuleUnion = ActiveBaseSecurityAdminRule | ActiveSecurityAdminRule | ActiveDefaultSecurityAdminRule; + +// @public +export interface ActiveConfigurationParameter { + regions?: string[]; + skipToken?: string; +} + +// @public +export interface ActiveConnectivityConfiguration extends EffectiveConnectivityConfiguration { + commitTime?: Date; + region?: string; +} + +// @public +export interface ActiveConnectivityConfigurationsListResult { + skipToken?: string; + value?: ActiveConnectivityConfiguration[]; +} + +// @public +export interface ActiveDefaultSecurityAdminRule extends ActiveBaseSecurityAdminRule { + readonly access?: SecurityConfigurationRuleAccess; + readonly description?: string; + readonly destinationPortRanges?: string[]; + readonly destinations?: AddressPrefixItem[]; + readonly direction?: SecurityConfigurationRuleDirection; + flag?: string; + kind: "Default"; + readonly priority?: number; + readonly protocol?: SecurityConfigurationRuleProtocol; + readonly provisioningState?: ProvisioningState; + readonly sourcePortRanges?: string[]; + readonly sources?: AddressPrefixItem[]; +} + +// @public +export interface ActiveSecurityAdminRule extends ActiveBaseSecurityAdminRule { + access?: SecurityConfigurationRuleAccess; + description?: string; + destinationPortRanges?: string[]; + destinations?: AddressPrefixItem[]; + direction?: SecurityConfigurationRuleDirection; + kind: "Custom"; + priority?: number; + protocol?: SecurityConfigurationRuleProtocol; + readonly provisioningState?: ProvisioningState; + sourcePortRanges?: string[]; + sources?: AddressPrefixItem[]; +} + +// @public +export interface ActiveSecurityAdminRulesListResult { + skipToken?: string; + value?: ActiveBaseSecurityAdminRuleUnion[]; +} + +// @public +export interface AddressPrefixItem { + addressPrefix?: string; + addressPrefixType?: AddressPrefixType; +} + +// @public +export type AddressPrefixType = string; + // @public export interface AddressSpace { addressPrefixes?: string[]; } +// @public +export interface AdminRule extends BaseAdminRule { + access?: SecurityConfigurationRuleAccess; + description?: string; + destinationPortRanges?: string[]; + destinations?: AddressPrefixItem[]; + direction?: SecurityConfigurationRuleDirection; + kind: "Custom"; + priority?: number; + protocol?: SecurityConfigurationRuleProtocol; + readonly provisioningState?: ProvisioningState; + sourcePortRanges?: string[]; + sources?: AddressPrefixItem[]; +} + +// @public +export interface AdminRuleCollection extends ChildResource { + appliesToGroups?: NetworkManagerSecurityGroupItem[]; + description?: string; + readonly provisioningState?: ProvisioningState; + readonly systemData?: SystemData; +} + +// @public +export interface AdminRuleCollectionListResult { + nextLink?: string; + value?: AdminRuleCollection[]; +} + +// @public +export interface AdminRuleCollections { + beginDelete(resourceGroupName: string, networkManagerName: string, configurationName: string, ruleCollectionName: string, options?: AdminRuleCollectionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, networkManagerName: string, configurationName: string, ruleCollectionName: string, options?: AdminRuleCollectionsDeleteOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, networkManagerName: string, configurationName: string, ruleCollectionName: string, ruleCollection: AdminRuleCollection, options?: AdminRuleCollectionsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, networkManagerName: string, configurationName: string, ruleCollectionName: string, options?: AdminRuleCollectionsGetOptionalParams): Promise; + list(resourceGroupName: string, networkManagerName: string, configurationName: string, options?: AdminRuleCollectionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface AdminRuleCollectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AdminRuleCollectionsCreateOrUpdateResponse = AdminRuleCollection; + +// @public +export interface AdminRuleCollectionsDeleteHeaders { + location?: string; +} + +// @public +export interface AdminRuleCollectionsDeleteOptionalParams extends coreClient.OperationOptions { + force?: boolean; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface AdminRuleCollectionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AdminRuleCollectionsGetResponse = AdminRuleCollection; + +// @public +export interface AdminRuleCollectionsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AdminRuleCollectionsListNextResponse = AdminRuleCollectionListResult; + +// @public +export interface AdminRuleCollectionsListOptionalParams extends coreClient.OperationOptions { + skipToken?: string; + top?: number; +} + +// @public +export type AdminRuleCollectionsListResponse = AdminRuleCollectionListResult; + +// @public +export type AdminRuleKind = string; + +// @public +export interface AdminRuleListResult { + nextLink?: string; + value?: BaseAdminRuleUnion[]; +} + +// @public +export interface AdminRules { + beginDelete(resourceGroupName: string, networkManagerName: string, configurationName: string, ruleCollectionName: string, ruleName: string, options?: AdminRulesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, networkManagerName: string, configurationName: string, ruleCollectionName: string, ruleName: string, options?: AdminRulesDeleteOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, networkManagerName: string, configurationName: string, ruleCollectionName: string, ruleName: string, adminRule: BaseAdminRuleUnion, options?: AdminRulesCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, networkManagerName: string, configurationName: string, ruleCollectionName: string, ruleName: string, options?: AdminRulesGetOptionalParams): Promise; + list(resourceGroupName: string, networkManagerName: string, configurationName: string, ruleCollectionName: string, options?: AdminRulesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface AdminRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AdminRulesCreateOrUpdateResponse = BaseAdminRuleUnion; + +// @public +export interface AdminRulesDeleteHeaders { + location?: string; +} + +// @public +export interface AdminRulesDeleteOptionalParams extends coreClient.OperationOptions { + force?: boolean; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface AdminRulesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AdminRulesGetResponse = BaseAdminRuleUnion; + +// @public +export interface AdminRulesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AdminRulesListNextResponse = AdminRuleListResult; + +// @public +export interface AdminRulesListOptionalParams extends coreClient.OperationOptions { + skipToken?: string; + top?: number; +} + +// @public +export type AdminRulesListResponse = AdminRuleListResult; + // @public export interface ApplicationGateway extends Resource { authenticationCertificates?: ApplicationGatewayAuthenticationCertificate[]; autoscaleConfiguration?: ApplicationGatewayAutoscaleConfiguration; backendAddressPools?: ApplicationGatewayBackendAddressPool[]; backendHttpSettingsCollection?: ApplicationGatewayBackendHttpSettings[]; + backendSettingsCollection?: ApplicationGatewayBackendSettings[]; customErrorConfigurations?: ApplicationGatewayCustomError[]; enableFips?: boolean; enableHttp2?: boolean; @@ -43,6 +272,7 @@ export interface ApplicationGateway extends Resource { globalConfiguration?: ApplicationGatewayGlobalConfiguration; httpListeners?: ApplicationGatewayHttpListener[]; identity?: ManagedServiceIdentity; + listeners?: ApplicationGatewayListener[]; loadDistributionPolicies?: ApplicationGatewayLoadDistributionPolicy[]; readonly operationalState?: ApplicationGatewayOperationalState; readonly privateEndpointConnections?: ApplicationGatewayPrivateEndpointConnection[]; @@ -53,6 +283,7 @@ export interface ApplicationGateway extends Resource { requestRoutingRules?: ApplicationGatewayRequestRoutingRule[]; readonly resourceGuid?: string; rewriteRuleSets?: ApplicationGatewayRewriteRuleSet[]; + routingRules?: ApplicationGatewayRoutingRule[]; sku?: ApplicationGatewaySku; sslCertificates?: ApplicationGatewaySslCertificate[]; sslPolicy?: ApplicationGatewaySslPolicy; @@ -169,11 +400,30 @@ export interface ApplicationGatewayBackendHttpSettings extends SubResource { readonly type?: string; } +// @public +export interface ApplicationGatewayBackendSettings extends SubResource { + readonly etag?: string; + hostName?: string; + name?: string; + pickHostNameFromBackendAddress?: boolean; + port?: number; + probe?: SubResource; + protocol?: ApplicationGatewayProtocol; + readonly provisioningState?: ProvisioningState; + timeout?: number; + trustedRootCertificates?: SubResource[]; + readonly type?: string; +} + // @public export interface ApplicationGatewayClientAuthConfiguration { verifyClientCertIssuerDN?: boolean; + verifyClientRevocation?: ApplicationGatewayClientRevocationOptions; } +// @public +export type ApplicationGatewayClientRevocationOptions = string; + // @public export interface ApplicationGatewayConnectionDraining { drainTimeoutInSec: number; @@ -205,13 +455,25 @@ export interface ApplicationGatewayFirewallExclusion { selectorMatchOperator: string; } +// @public +export interface ApplicationGatewayFirewallManifestRuleSet { + ruleGroups: ApplicationGatewayFirewallRuleGroup[]; + ruleSetType: string; + ruleSetVersion: string; + status?: ApplicationGatewayRuleSetStatusOptions; + tiers?: ApplicationGatewayTierTypes[]; +} + // @public export type ApplicationGatewayFirewallMode = string; // @public export interface ApplicationGatewayFirewallRule { + action?: ApplicationGatewayWafRuleActionTypes; description?: string; ruleId: number; + ruleIdString?: string; + state?: ApplicationGatewayWafRuleStateTypes; } // @public @@ -227,6 +489,7 @@ export interface ApplicationGatewayFirewallRuleSet extends Resource { ruleGroups?: ApplicationGatewayFirewallRuleGroup[]; ruleSetType?: string; ruleSetVersion?: string; + tiers?: ApplicationGatewayTierTypes[]; } // @public @@ -290,6 +553,19 @@ export interface ApplicationGatewayIPConfiguration extends SubResource { readonly type?: string; } +// @public +export interface ApplicationGatewayListener extends SubResource { + readonly etag?: string; + frontendIPConfiguration?: SubResource; + frontendPort?: SubResource; + name?: string; + protocol?: ApplicationGatewayProtocol; + readonly provisioningState?: ProvisioningState; + sslCertificate?: SubResource; + sslProfile?: SubResource; + readonly type?: string; +} + // @public export interface ApplicationGatewayListResult { nextLink?: string; @@ -477,6 +753,7 @@ export interface ApplicationGatewayProbe extends SubResource { name?: string; path?: string; pickHostNameFromBackendHttpSettings?: boolean; + pickHostNameFromBackendSettings?: boolean; port?: number; protocol?: ApplicationGatewayProtocol; readonly provisioningState?: ProvisioningState; @@ -563,6 +840,22 @@ export interface ApplicationGatewayRewriteRuleSet extends SubResource { rewriteRules?: ApplicationGatewayRewriteRule[]; } +// @public +export interface ApplicationGatewayRoutingRule extends SubResource { + backendAddressPool?: SubResource; + backendSettings?: SubResource; + readonly etag?: string; + listener?: SubResource; + name?: string; + priority?: number; + readonly provisioningState?: ProvisioningState; + ruleType?: ApplicationGatewayRequestRoutingRuleType; + readonly type?: string; +} + +// @public +export type ApplicationGatewayRuleSetStatusOptions = string; + // @public export interface ApplicationGateways { beginBackendHealth(resourceGroupName: string, applicationGatewayName: string, options?: ApplicationGatewaysBackendHealthOptionalParams): Promise, ApplicationGatewaysBackendHealthResponse>>; @@ -805,6 +1098,9 @@ export type ApplicationGatewaysUpdateTagsResponse = ApplicationGateway; // @public export type ApplicationGatewayTier = string; +// @public +export type ApplicationGatewayTierTypes = string; + // @public export interface ApplicationGatewayTrustedClientCertificate extends SubResource { readonly clientCertIssuerDN?: string; @@ -847,6 +1143,59 @@ export interface ApplicationGatewayUrlPathMap extends SubResource { readonly type?: string; } +// @public +export interface ApplicationGatewayWafDynamicManifestResult { + availableRuleSets?: ApplicationGatewayFirewallManifestRuleSet[]; + id?: string; + readonly name?: string; + ruleSetType?: string; + ruleSetVersion?: string; + readonly type?: string; +} + +// @public +export interface ApplicationGatewayWafDynamicManifestResultList { + nextLink?: string; + value?: ApplicationGatewayWafDynamicManifestResult[]; +} + +// @public +export interface ApplicationGatewayWafDynamicManifests { + list(location: string, options?: ApplicationGatewayWafDynamicManifestsGetOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ApplicationGatewayWafDynamicManifestsDefault { + get(location: string, options?: ApplicationGatewayWafDynamicManifestsDefaultGetOptionalParams): Promise; +} + +// @public +export interface ApplicationGatewayWafDynamicManifestsDefaultGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApplicationGatewayWafDynamicManifestsDefaultGetResponse = ApplicationGatewayWafDynamicManifestResult; + +// @public +export interface ApplicationGatewayWafDynamicManifestsGetNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApplicationGatewayWafDynamicManifestsGetNextResponse = ApplicationGatewayWafDynamicManifestResultList; + +// @public +export interface ApplicationGatewayWafDynamicManifestsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApplicationGatewayWafDynamicManifestsGetResponse = ApplicationGatewayWafDynamicManifestResultList; + +// @public +export type ApplicationGatewayWafRuleActionTypes = string; + +// @public +export type ApplicationGatewayWafRuleStateTypes = string; + // @public export interface ApplicationGatewayWebApplicationFirewallConfiguration { disabledRuleGroups?: ApplicationGatewayFirewallDisabledRuleGroup[]; @@ -983,6 +1332,9 @@ export interface AutoApprovedPrivateLinkServicesResult { value?: AutoApprovedPrivateLinkService[]; } +// @public +export type AutoLearnPrivateRangesMode = string; + // @public export interface Availability { blobDuration?: string; @@ -1381,6 +1733,8 @@ export interface AzureFirewalls { beginCreateOrUpdateAndWait(resourceGroupName: string, azureFirewallName: string, parameters: AzureFirewall, options?: AzureFirewallsCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, azureFirewallName: string, options?: AzureFirewallsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, azureFirewallName: string, options?: AzureFirewallsDeleteOptionalParams): Promise; + beginListLearnedPrefixes(resourceGroupName: string, azureFirewallName: string, options?: AzureFirewallsListLearnedPrefixesOptionalParams): Promise, AzureFirewallsListLearnedPrefixesResponse>>; + beginListLearnedPrefixesAndWait(resourceGroupName: string, azureFirewallName: string, options?: AzureFirewallsListLearnedPrefixesOptionalParams): Promise; beginUpdateTags(resourceGroupName: string, azureFirewallName: string, parameters: TagsObject, options?: AzureFirewallsUpdateTagsOptionalParams): Promise, AzureFirewallsUpdateTagsResponse>>; beginUpdateTagsAndWait(resourceGroupName: string, azureFirewallName: string, parameters: TagsObject, options?: AzureFirewallsUpdateTagsOptionalParams): Promise; get(resourceGroupName: string, azureFirewallName: string, options?: AzureFirewallsGetOptionalParams): Promise; @@ -1436,6 +1790,15 @@ export interface AzureFirewallsListAllOptionalParams extends coreClient.Operatio // @public export type AzureFirewallsListAllResponse = AzureFirewallListResult; +// @public +export interface AzureFirewallsListLearnedPrefixesOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type AzureFirewallsListLearnedPrefixesResponse = IPPrefixesList; + // @public export interface AzureFirewallsListNextOptionalParams extends coreClient.OperationOptions { } @@ -1521,6 +1884,7 @@ export interface BackendAddressInboundNatRulePortMappings { // @public export interface BackendAddressPool extends SubResource { readonly backendIPConfigurations?: NetworkInterfaceIPConfiguration[]; + drainPeriodInSeconds?: number; readonly etag?: string; readonly inboundNatRules?: SubResource[]; loadBalancerBackendAddresses?: LoadBalancerBackendAddress[]; @@ -1532,8 +1896,18 @@ export interface BackendAddressPool extends SubResource { readonly provisioningState?: ProvisioningState; tunnelInterfaces?: GatewayLoadBalancerTunnelInterface[]; readonly type?: string; + virtualNetwork?: SubResource; } +// @public +export interface BaseAdminRule extends ChildResource { + kind: AdminRuleKind; + readonly systemData?: SystemData; +} + +// @public (undocumented) +export type BaseAdminRuleUnion = BaseAdminRule | AdminRule | DefaultAdminRule; + // @public export interface BastionActiveSession { readonly protocol?: BastionConnectProtocol; @@ -1797,6 +2171,14 @@ export interface CheckPrivateLinkServiceVisibilityRequest { privateLinkServiceAlias?: string; } +// @public +export interface ChildResource { + readonly etag?: string; + readonly id?: string; + readonly name?: string; + readonly type?: string; +} + // @public export type CircuitConnectionStatus = string; @@ -1822,6 +2204,62 @@ export interface Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserass readonly principalId?: string; } +// @public +export interface ConfigurationGroup { + description?: string; + id?: string; + readonly provisioningState?: ProvisioningState; +} + +// @public +export interface ConfigurationPolicyGroups { + beginCreateOrUpdate(resourceGroupName: string, vpnServerConfigurationName: string, configurationPolicyGroupName: string, vpnServerConfigurationPolicyGroupParameters: VpnServerConfigurationPolicyGroup, options?: ConfigurationPolicyGroupsCreateOrUpdateOptionalParams): Promise, ConfigurationPolicyGroupsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, vpnServerConfigurationName: string, configurationPolicyGroupName: string, vpnServerConfigurationPolicyGroupParameters: VpnServerConfigurationPolicyGroup, options?: ConfigurationPolicyGroupsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, vpnServerConfigurationName: string, configurationPolicyGroupName: string, options?: ConfigurationPolicyGroupsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, vpnServerConfigurationName: string, configurationPolicyGroupName: string, options?: ConfigurationPolicyGroupsDeleteOptionalParams): Promise; + get(resourceGroupName: string, vpnServerConfigurationName: string, configurationPolicyGroupName: string, options?: ConfigurationPolicyGroupsGetOptionalParams): Promise; + listByVpnServerConfiguration(resourceGroupName: string, vpnServerConfigurationName: string, options?: ConfigurationPolicyGroupsListByVpnServerConfigurationOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ConfigurationPolicyGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ConfigurationPolicyGroupsCreateOrUpdateResponse = VpnServerConfigurationPolicyGroup; + +// @public +export interface ConfigurationPolicyGroupsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ConfigurationPolicyGroupsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ConfigurationPolicyGroupsGetResponse = VpnServerConfigurationPolicyGroup; + +// @public +export interface ConfigurationPolicyGroupsListByVpnServerConfigurationNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ConfigurationPolicyGroupsListByVpnServerConfigurationNextResponse = ListVpnServerConfigurationPolicyGroupsResult; + +// @public +export interface ConfigurationPolicyGroupsListByVpnServerConfigurationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ConfigurationPolicyGroupsListByVpnServerConfigurationResponse = ListVpnServerConfigurationPolicyGroupsResult; + +// @public +export type ConfigurationType = string; + // @public export interface ConnectionMonitor { autoStart?: boolean; @@ -2074,54 +2512,123 @@ export interface ConnectionMonitorTestConfiguration { } // @public -export type ConnectionMonitorTestConfigurationProtocol = string; +export type ConnectionMonitorTestConfigurationProtocol = string; + +// @public +export interface ConnectionMonitorTestGroup { + destinations: string[]; + disable?: boolean; + name: string; + sources: string[]; + testConfigurations: string[]; +} + +// @public +export type ConnectionMonitorType = string; + +// @public +export interface ConnectionMonitorWorkspaceSettings { + workspaceResourceId?: string; +} + +// @public +export interface ConnectionResetSharedKey { + keyLength: number; +} + +// @public +export interface ConnectionSharedKey extends SubResource { + value: string; +} + +// @public +export type ConnectionState = string; + +// @public +export interface ConnectionStateSnapshot { + avgLatencyInMs?: number; + connectionState?: ConnectionState; + endTime?: Date; + evaluationState?: EvaluationState; + readonly hops?: ConnectivityHop[]; + maxLatencyInMs?: number; + minLatencyInMs?: number; + probesFailed?: number; + probesSent?: number; + startTime?: Date; +} + +// @public +export type ConnectionStatus = string; + +// @public +export interface ConnectivityConfiguration extends ChildResource { + appliesToGroups?: ConnectivityGroupItem[]; + connectivityTopology?: ConnectivityTopology; + deleteExistingPeering?: DeleteExistingPeering; + description?: string; + hubs?: Hub[]; + isGlobal?: IsGlobal; + readonly provisioningState?: ProvisioningState; + readonly systemData?: SystemData; +} + +// @public +export interface ConnectivityConfigurationListResult { + nextLink?: string; + value?: ConnectivityConfiguration[]; +} + +// @public +export interface ConnectivityConfigurations { + beginDelete(resourceGroupName: string, networkManagerName: string, configurationName: string, options?: ConnectivityConfigurationsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, networkManagerName: string, configurationName: string, options?: ConnectivityConfigurationsDeleteOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, networkManagerName: string, configurationName: string, connectivityConfiguration: ConnectivityConfiguration, options?: ConnectivityConfigurationsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, networkManagerName: string, configurationName: string, options?: ConnectivityConfigurationsGetOptionalParams): Promise; + list(resourceGroupName: string, networkManagerName: string, options?: ConnectivityConfigurationsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ConnectivityConfigurationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ConnectivityConfigurationsCreateOrUpdateResponse = ConnectivityConfiguration; // @public -export interface ConnectionMonitorTestGroup { - destinations: string[]; - disable?: boolean; - name: string; - sources: string[]; - testConfigurations: string[]; +export interface ConnectivityConfigurationsDeleteHeaders { + location?: string; } // @public -export type ConnectionMonitorType = string; +export interface ConnectivityConfigurationsDeleteOptionalParams extends coreClient.OperationOptions { + force?: boolean; + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public -export interface ConnectionMonitorWorkspaceSettings { - workspaceResourceId?: string; +export interface ConnectivityConfigurationsGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface ConnectionResetSharedKey { - keyLength: number; -} +export type ConnectivityConfigurationsGetResponse = ConnectivityConfiguration; // @public -export interface ConnectionSharedKey extends SubResource { - value: string; +export interface ConnectivityConfigurationsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type ConnectionState = string; +export type ConnectivityConfigurationsListNextResponse = ConnectivityConfigurationListResult; // @public -export interface ConnectionStateSnapshot { - avgLatencyInMs?: number; - connectionState?: ConnectionState; - endTime?: Date; - evaluationState?: EvaluationState; - readonly hops?: ConnectivityHop[]; - maxLatencyInMs?: number; - minLatencyInMs?: number; - probesFailed?: number; - probesSent?: number; - startTime?: Date; +export interface ConnectivityConfigurationsListOptionalParams extends coreClient.OperationOptions { + skipToken?: string; + top?: number; } // @public -export type ConnectionStatus = string; +export type ConnectivityConfigurationsListResponse = ConnectivityConfigurationListResult; // @public export interface ConnectivityDestination { @@ -2130,6 +2637,14 @@ export interface ConnectivityDestination { resourceId?: string; } +// @public +export interface ConnectivityGroupItem { + groupConnectivity: GroupConnectivity; + isGlobal?: IsGlobal; + networkGroupId: string; + useHubGateway?: UseHubGateway; +} + // @public export interface ConnectivityHop { readonly address?: string; @@ -2179,6 +2694,9 @@ export interface ConnectivitySource { resourceId: string; } +// @public +export type ConnectivityTopology = string; + // @public export interface Container extends SubResource { } @@ -2215,6 +2733,24 @@ export interface ContainerNetworkInterfaceIpConfiguration { // @public export type CoverageLevel = string; +// @public +export type CreatedByType = string; + +// @public +export interface Criterion { + asPath?: string[]; + community?: string[]; + matchCondition?: RouteMapMatchCondition; + routePrefix?: string[]; +} + +// @public +export interface CrossTenantScopes { + readonly managementGroups?: string[]; + readonly subscriptions?: string[]; + readonly tenantId?: string; +} + // @public export interface CustomDnsConfigPropertiesFormat { fqdn?: string; @@ -2223,14 +2759,19 @@ export interface CustomDnsConfigPropertiesFormat { // @public export interface CustomIpPrefix extends Resource { + asn?: string; authorizationMessage?: string; readonly childCustomIpPrefixes?: SubResource[]; cidr?: string; commissionedState?: CommissionedState; customIpPrefixParent?: SubResource; readonly etag?: string; + expressRouteAdvertise?: boolean; extendedLocation?: ExtendedLocation; readonly failedReason?: string; + geo?: Geo; + noInternetAdvertise?: boolean; + prefixType?: CustomIpPrefixType; readonly provisioningState?: ProvisioningState; readonly publicIpPrefixes?: SubResource[]; readonly resourceGuid?: string; @@ -2314,6 +2855,9 @@ export interface CustomIpPrefixListResult { value?: CustomIpPrefix[]; } +// @public +export type CustomIpPrefixType = string; + // @public export interface DdosCustomPolicies { beginCreateOrUpdate(resourceGroupName: string, ddosCustomPolicyName: string, parameters: DdosCustomPolicy, options?: DdosCustomPoliciesCreateOrUpdateOptionalParams): Promise, DdosCustomPoliciesCreateOrUpdateResponse>>; @@ -2356,18 +2900,10 @@ export type DdosCustomPoliciesUpdateTagsResponse = DdosCustomPolicy; // @public export interface DdosCustomPolicy extends Resource { readonly etag?: string; - protocolCustomSettings?: ProtocolCustomSettingsFormat[]; readonly provisioningState?: ProvisioningState; - readonly publicIPAddresses?: SubResource[]; readonly resourceGuid?: string; } -// @public -export type DdosCustomPolicyProtocol = string; - -// @public -export type DdosCustomPolicyTriggerSensitivityOverride = string; - // @public export interface DdosProtectionPlan { readonly etag?: string; @@ -2375,6 +2911,7 @@ export interface DdosProtectionPlan { location?: string; readonly name?: string; readonly provisioningState?: ProvisioningState; + readonly publicIPAddresses?: SubResource[]; readonly resourceGuid?: string; tags?: { [propertyName: string]: string; @@ -2410,6 +2947,11 @@ export interface DdosProtectionPlansCreateOrUpdateOptionalParams extends coreCli // @public export type DdosProtectionPlansCreateOrUpdateResponse = DdosProtectionPlan; +// @public +export interface DdosProtectionPlansDeleteHeaders { + location?: string; +} + // @public export interface DdosProtectionPlansDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -2460,13 +3002,28 @@ export type DdosProtectionPlansUpdateTagsResponse = DdosProtectionPlan; // @public export interface DdosSettings { - ddosCustomPolicy?: SubResource; - protectedIP?: boolean; - protectionCoverage?: DdosSettingsProtectionCoverage; + ddosProtectionPlan?: SubResource; + protectionMode?: DdosSettingsProtectionMode; } // @public -export type DdosSettingsProtectionCoverage = string; +export type DdosSettingsProtectionMode = string; + +// @public +export interface DefaultAdminRule extends BaseAdminRule { + readonly access?: SecurityConfigurationRuleAccess; + readonly description?: string; + readonly destinationPortRanges?: string[]; + readonly destinations?: AddressPrefixItem[]; + readonly direction?: SecurityConfigurationRuleDirection; + flag?: string; + kind: "Default"; + readonly priority?: number; + readonly protocol?: SecurityConfigurationRuleProtocol; + readonly provisioningState?: ProvisioningState; + readonly sourcePortRanges?: string[]; + readonly sources?: AddressPrefixItem[]; +} // @public export interface DefaultSecurityRules { @@ -2505,15 +3062,27 @@ export interface Delegation extends SubResource { type?: string; } +// @public +export interface DelegationProperties { + readonly provisioningState?: ProvisioningState; + serviceName?: string; +} + // @public export interface DeleteBastionShareableLinkOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } +// @public +export type DeleteExistingPeering = string; + // @public export type DeleteOptions = string; +// @public +export type DeploymentStatus = string; + // @public export type DestinationPortBehavior = string; @@ -2651,6 +3220,51 @@ export interface DscpConfigurationOperations { listAll(options?: DscpConfigurationListAllOptionalParams): PagedAsyncIterableIterator; } +// @public +export type EffectiveAdminRuleKind = string; + +// @public +export interface EffectiveBaseSecurityAdminRule { + configurationDescription?: string; + id?: string; + kind: "Custom" | "Default"; + ruleCollectionAppliesToGroups?: NetworkManagerSecurityGroupItem[]; + ruleCollectionDescription?: string; + ruleGroups?: ConfigurationGroup[]; +} + +// @public (undocumented) +export type EffectiveBaseSecurityAdminRuleUnion = EffectiveBaseSecurityAdminRule | EffectiveSecurityAdminRule | EffectiveDefaultSecurityAdminRule; + +// @public +export interface EffectiveConnectivityConfiguration { + appliesToGroups?: ConnectivityGroupItem[]; + configurationGroups?: ConfigurationGroup[]; + connectivityTopology?: ConnectivityTopology; + deleteExistingPeering?: DeleteExistingPeering; + description?: string; + hubs?: Hub[]; + id?: string; + isGlobal?: IsGlobal; + readonly provisioningState?: ProvisioningState; +} + +// @public +export interface EffectiveDefaultSecurityAdminRule extends EffectiveBaseSecurityAdminRule { + readonly access?: SecurityConfigurationRuleAccess; + readonly description?: string; + readonly destinationPortRanges?: string[]; + readonly destinations?: AddressPrefixItem[]; + readonly direction?: SecurityConfigurationRuleDirection; + flag?: string; + kind: "Default"; + readonly priority?: number; + readonly protocol?: SecurityConfigurationRuleProtocol; + readonly provisioningState?: ProvisioningState; + readonly sourcePortRanges?: string[]; + readonly sources?: AddressPrefixItem[]; +} + // @public export interface EffectiveNetworkSecurityGroup { association?: EffectiveNetworkSecurityGroupAssociation; @@ -2708,6 +3322,13 @@ export interface EffectiveRouteListResult { value?: EffectiveRoute[]; } +// @public +export interface EffectiveRouteMapRoute { + asPath?: string; + bgpCommunities?: string; + prefix?: string[]; +} + // @public export type EffectiveRouteSource = string; @@ -2720,6 +3341,21 @@ export interface EffectiveRoutesParameters { // @public export type EffectiveRouteState = string; +// @public +export interface EffectiveSecurityAdminRule extends EffectiveBaseSecurityAdminRule { + access?: SecurityConfigurationRuleAccess; + description?: string; + destinationPortRanges?: string[]; + destinations?: AddressPrefixItem[]; + direction?: SecurityConfigurationRuleDirection; + kind: "Custom"; + priority?: number; + protocol?: SecurityConfigurationRuleProtocol; + readonly provisioningState?: ProvisioningState; + sourcePortRanges?: string[]; + sources?: AddressPrefixItem[]; +} + // @public export type EffectiveSecurityRuleProtocol = string; @@ -2789,8 +3425,9 @@ export interface ExclusionManagedRuleSet { } // @public -export interface ExplicitProxySettings { +export interface ExplicitProxy { enableExplicitProxy?: boolean; + enablePacFile?: boolean; httpPort?: number; httpsPort?: number; pacFile?: string; @@ -2800,6 +3437,7 @@ export interface ExplicitProxySettings { // @public export interface ExpressRouteCircuit extends Resource { allowClassicOperations?: boolean; + authorizationKey?: string; authorizations?: ExpressRouteCircuitAuthorization[]; bandwidthInGbps?: number; circuitProvisioningState?: string; @@ -3244,6 +3882,7 @@ export type ExpressRouteCircuitsUpdateTagsResponse = ExpressRouteCircuit; export interface ExpressRouteConnection extends SubResource { authorizationKey?: string; enableInternetSecurity?: boolean; + enablePrivateLinkFastPath?: boolean; expressRouteCircuitPeering?: ExpressRouteCircuitPeeringId; expressRouteGatewayBypass?: boolean; name: string; @@ -3505,9 +4144,10 @@ export type ExpressRouteCrossConnectionsUpdateTagsResponse = ExpressRouteCrossCo // @public export interface ExpressRouteGateway extends Resource { + allowNonVirtualWanTraffic?: boolean; autoScaleConfiguration?: ExpressRouteGatewayPropertiesAutoScaleConfiguration; readonly etag?: string; - readonly expressRouteConnections?: ExpressRouteConnection[]; + expressRouteConnections?: ExpressRouteConnection[]; readonly provisioningState?: ProvisioningState; virtualHub?: VirtualHubId; } @@ -3589,6 +4229,7 @@ export type ExpressRouteGatewaysUpdateTagsResponse = ExpressRouteGateway; // @public export interface ExpressRouteLink extends SubResource { adminState?: ExpressRouteLinkAdminState; + readonly coloLocation?: string; readonly connectorType?: ExpressRouteLinkConnectorType; readonly etag?: string; readonly interfaceName?: string; @@ -3663,6 +4304,7 @@ export type ExpressRoutePeeringType = string; export interface ExpressRoutePort extends Resource { readonly allocationDate?: string; bandwidthInGbps?: number; + billingType?: ExpressRoutePortsBillingType; readonly circuits?: SubResource[]; encapsulation?: ExpressRoutePortsEncapsulation; readonly etag?: string; @@ -3676,6 +4318,72 @@ export interface ExpressRoutePort extends Resource { readonly resourceGuid?: string; } +// @public +export interface ExpressRoutePortAuthorization extends SubResource { + readonly authorizationKey?: string; + readonly authorizationUseStatus?: ExpressRoutePortAuthorizationUseStatus; + readonly circuitResourceUri?: string; + readonly etag?: string; + name?: string; + readonly provisioningState?: ProvisioningState; + readonly type?: string; +} + +// @public +export interface ExpressRoutePortAuthorizationListResult { + nextLink?: string; + value?: ExpressRoutePortAuthorization[]; +} + +// @public +export interface ExpressRoutePortAuthorizations { + beginCreateOrUpdate(resourceGroupName: string, expressRoutePortName: string, authorizationName: string, authorizationParameters: ExpressRoutePortAuthorization, options?: ExpressRoutePortAuthorizationsCreateOrUpdateOptionalParams): Promise, ExpressRoutePortAuthorizationsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, expressRoutePortName: string, authorizationName: string, authorizationParameters: ExpressRoutePortAuthorization, options?: ExpressRoutePortAuthorizationsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, expressRoutePortName: string, authorizationName: string, options?: ExpressRoutePortAuthorizationsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, expressRoutePortName: string, authorizationName: string, options?: ExpressRoutePortAuthorizationsDeleteOptionalParams): Promise; + get(resourceGroupName: string, expressRoutePortName: string, authorizationName: string, options?: ExpressRoutePortAuthorizationsGetOptionalParams): Promise; + list(resourceGroupName: string, expressRoutePortName: string, options?: ExpressRoutePortAuthorizationsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ExpressRoutePortAuthorizationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ExpressRoutePortAuthorizationsCreateOrUpdateResponse = ExpressRoutePortAuthorization; + +// @public +export interface ExpressRoutePortAuthorizationsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ExpressRoutePortAuthorizationsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ExpressRoutePortAuthorizationsGetResponse = ExpressRoutePortAuthorization; + +// @public +export interface ExpressRoutePortAuthorizationsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ExpressRoutePortAuthorizationsListNextResponse = ExpressRoutePortAuthorizationListResult; + +// @public +export interface ExpressRoutePortAuthorizationsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ExpressRoutePortAuthorizationsListResponse = ExpressRoutePortAuthorizationListResult; + +// @public +export type ExpressRoutePortAuthorizationUseStatus = string; + // @public export interface ExpressRoutePortListResult { nextLink?: string; @@ -3695,6 +4403,9 @@ export interface ExpressRoutePorts { updateTags(resourceGroupName: string, expressRoutePortName: string, parameters: TagsObject, options?: ExpressRoutePortsUpdateTagsOptionalParams): Promise; } +// @public +export type ExpressRoutePortsBillingType = string; + // @public export interface ExpressRoutePortsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -3809,6 +4520,45 @@ export interface ExpressRoutePortsUpdateTagsOptionalParams extends coreClient.Op // @public export type ExpressRoutePortsUpdateTagsResponse = ExpressRoutePort; +// @public +export interface ExpressRouteProviderPort extends Resource { + readonly etag?: string; + overprovisionFactor?: number; + peeringLocation?: string; + portBandwidthInMbps?: number; + readonly portPairDescriptor?: string; + readonly primaryAzurePort?: string; + remainingBandwidthInMbps?: number; + readonly secondaryAzurePort?: string; + usedBandwidthInMbps?: number; +} + +// @public +export interface ExpressRouteProviderPortListResult { + readonly nextLink?: string; + value?: ExpressRouteProviderPort[]; +} + +// @public +export interface ExpressRouteProviderPortOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ExpressRouteProviderPortResponse = ExpressRouteProviderPort; + +// @public +export interface ExpressRouteProviderPortsLocation { + list(options?: ExpressRouteProviderPortsLocationListOptionalParams): Promise; +} + +// @public +export interface ExpressRouteProviderPortsLocationListOptionalParams extends coreClient.OperationOptions { + filter?: string; +} + +// @public +export type ExpressRouteProviderPortsLocationListResponse = ExpressRouteProviderPortListResult; + // @public export interface ExpressRouteServiceProvider extends Resource { bandwidthsOffered?: ExpressRouteServiceProviderBandwidthsOffered[]; @@ -3871,6 +4621,7 @@ export interface FirewallPolicies { get(resourceGroupName: string, firewallPolicyName: string, options?: FirewallPoliciesGetOptionalParams): Promise; list(resourceGroupName: string, options?: FirewallPoliciesListOptionalParams): PagedAsyncIterableIterator; listAll(options?: FirewallPoliciesListAllOptionalParams): PagedAsyncIterableIterator; + updateTags(resourceGroupName: string, firewallPolicyName: string, parameters: TagsObject, options?: FirewallPoliciesUpdateTagsOptionalParams): Promise; } // @public @@ -3924,13 +4675,20 @@ export interface FirewallPoliciesListOptionalParams extends coreClient.Operation // @public export type FirewallPoliciesListResponse = FirewallPolicyListResult; +// @public +export interface FirewallPoliciesUpdateTagsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type FirewallPoliciesUpdateTagsResponse = FirewallPolicy; + // @public export interface FirewallPolicy extends Resource { basePolicy?: SubResource; readonly childPolicies?: SubResource[]; dnsSettings?: DnsSettings; readonly etag?: string; - explicitProxySettings?: ExplicitProxySettings; + explicitProxy?: ExplicitProxy; readonly firewalls?: SubResource[]; identity?: ManagedServiceIdentity; insights?: FirewallPolicyInsights; @@ -3966,11 +4724,23 @@ export interface FirewallPolicyFilterRuleCollectionAction { // @public export type FirewallPolicyFilterRuleCollectionActionType = string; +// @public +export type FirewallPolicyIdpsQuerySortOrder = string; + +// @public +export type FirewallPolicyIdpsSignatureDirection = 0 | 1 | 2; + +// @public +export type FirewallPolicyIdpsSignatureMode = 0 | 1 | 2; + // @public export interface FirewallPolicyIdpsSignatures { list(resourceGroupName: string, firewallPolicyName: string, parameters: IdpsQueryObject, options?: FirewallPolicyIdpsSignaturesListOptionalParams): Promise; } +// @public +export type FirewallPolicyIdpsSignatureSeverity = 1 | 2 | 3; + // @public export interface FirewallPolicyIdpsSignaturesFilterValues { list(resourceGroupName: string, firewallPolicyName: string, parameters: SignatureOverridesFilterValuesQuery, options?: FirewallPolicyIdpsSignaturesFilterValuesListOptionalParams): Promise; @@ -4054,6 +4824,7 @@ export interface FirewallPolicyIntrusionDetectionBypassTrafficSpecifications { // @public export interface FirewallPolicyIntrusionDetectionConfiguration { bypassTrafficSettings?: FirewallPolicyIntrusionDetectionBypassTrafficSpecifications[]; + privateRanges?: string[]; signatureOverrides?: FirewallPolicyIntrusionDetectionSignatureSpecification[]; } @@ -4212,6 +4983,7 @@ export type FirewallPolicySkuTier = string; // @public export interface FirewallPolicySnat { + autoLearnPrivateRanges?: AutoLearnPrivateRangesMode; privateRanges?: string[]; } @@ -4348,6 +5120,12 @@ export interface FrontendIPConfiguration extends SubResource { zones?: string[]; } +// @public +export interface GatewayCustomBgpIpAddressIpConfiguration { + customBgpIpAddress: string; + ipConfigurationId: string; +} + // @public export interface GatewayLoadBalancerTunnelInterface { identifier?: number; @@ -4397,6 +5175,9 @@ export interface GeneratevirtualwanvpnserverconfigurationvpnprofileOptionalParam // @public export type GeneratevirtualwanvpnserverconfigurationvpnprofileResponse = VpnProfileResponse; +// @public +export type Geo = string; + // @public export interface GetActiveSessionsNextOptionalParams extends coreClient.OperationOptions { } @@ -4430,12 +5211,27 @@ export type GetBastionShareableLinkResponse = BastionShareableLinkListResult; // @public export function getContinuationToken(page: unknown): string | undefined; +// @public +export interface GetInboundRoutesParameters { + connectionType?: string; + resourceUri?: string; +} + +// @public +export interface GetOutboundRoutesParameters { + connectionType?: string; + resourceUri?: string; +} + // @public export interface GetVpnSitesConfigurationRequest { outputBlobSasUrl: string; vpnSites?: string[]; } +// @public +export type GroupConnectivity = string; + // @public export interface HopLink { readonly context?: { @@ -4469,6 +5265,12 @@ export interface HttpHeader { // @public export type HttpMethod = string; +// @public +export interface Hub { + resourceId?: string; + resourceType?: string; +} + // @public export type HubBgpConnectionStatus = string; @@ -4563,6 +5365,9 @@ export interface HubRouteTablesListOptionalParams extends coreClient.OperationOp // @public export type HubRouteTablesListResponse = ListHubRouteTablesResult; +// @public +export type HubRoutingPreference = string; + // @public export interface HubVirtualNetworkConnection extends SubResource { allowHubToRemoteVnetTransit?: boolean; @@ -4989,6 +5794,11 @@ export interface IpGroupsUpdateGroupsOptionalParams extends coreClient.Operation // @public export type IpGroupsUpdateGroupsResponse = IpGroup; +// @public +export interface IPPrefixesList { + ipPrefixes?: string[]; +} + // @public export type IpsecEncryption = string; @@ -5031,15 +5841,41 @@ export interface Ipv6ExpressRouteCircuitPeeringConfig { // @public export type IPVersion = string; +// @public +export type IsGlobal = string; + // @public export type IssueType = string; +// @public +export type IsWorkloadProtected = string; + // @public export enum KnownAccess { Allow = "Allow", Deny = "Deny" } +// @public +export enum KnownActionType { + Allow = "Allow", + AnomalyScoring = "AnomalyScoring", + Block = "Block", + Log = "Log" +} + +// @public +export enum KnownAddressPrefixType { + IPPrefix = "IPPrefix", + ServiceTag = "ServiceTag" +} + +// @public +export enum KnownAdminRuleKind { + Custom = "Custom", + Default = "Default" +} + // @public export enum KnownApplicationGatewayBackendHealthServerHealth { Down = "Down", @@ -5049,6 +5885,12 @@ export enum KnownApplicationGatewayBackendHealthServerHealth { Up = "Up" } +// @public +export enum KnownApplicationGatewayClientRevocationOptions { + None = "None", + Ocsp = "OCSP" +} + // @public export enum KnownApplicationGatewayCookieBasedAffinity { Disabled = "Disabled", @@ -5085,7 +5927,9 @@ export enum KnownApplicationGatewayOperationalState { // @public export enum KnownApplicationGatewayProtocol { Http = "Http", - Https = "Https" + Https = "Https", + Tcp = "Tcp", + Tls = "Tls" } // @public @@ -5102,6 +5946,14 @@ export enum KnownApplicationGatewayRequestRoutingRuleType { PathBasedRouting = "PathBasedRouting" } +// @public +export enum KnownApplicationGatewayRuleSetStatusOptions { + Deprecated = "Deprecated", + GA = "GA", + Preview = "Preview", + Supported = "Supported" +} + // @public export enum KnownApplicationGatewaySkuName { StandardLarge = "Standard_Large", @@ -5149,12 +6001,15 @@ export enum KnownApplicationGatewaySslCipherSuite { export enum KnownApplicationGatewaySslPolicyName { AppGwSslPolicy20150501 = "AppGwSslPolicy20150501", AppGwSslPolicy20170401 = "AppGwSslPolicy20170401", - AppGwSslPolicy20170401S = "AppGwSslPolicy20170401S" + AppGwSslPolicy20170401S = "AppGwSslPolicy20170401S", + AppGwSslPolicy20220101 = "AppGwSslPolicy20220101", + AppGwSslPolicy20220101S = "AppGwSslPolicy20220101S" } // @public export enum KnownApplicationGatewaySslPolicyType { Custom = "Custom", + CustomV2 = "CustomV2", Predefined = "Predefined" } @@ -5162,7 +6017,8 @@ export enum KnownApplicationGatewaySslPolicyType { export enum KnownApplicationGatewaySslProtocol { TLSv10 = "TLSv1_0", TLSv11 = "TLSv1_1", - TLSv12 = "TLSv1_2" + TLSv12 = "TLSv1_2", + TLSv13 = "TLSv1_3" } // @public @@ -5173,6 +6029,29 @@ export enum KnownApplicationGatewayTier { WAFV2 = "WAF_v2" } +// @public +export enum KnownApplicationGatewayTierTypes { + Standard = "Standard", + StandardV2 = "Standard_v2", + WAF = "WAF", + WAFV2 = "WAF_v2" +} + +// @public +export enum KnownApplicationGatewayWafRuleActionTypes { + Allow = "Allow", + AnomalyScoring = "AnomalyScoring", + Block = "Block", + Log = "Log", + None = "None" +} + +// @public +export enum KnownApplicationGatewayWafRuleStateTypes { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownAssociationType { Associated = "Associated", @@ -5191,6 +6070,12 @@ export enum KnownAuthorizationUseStatus { InUse = "InUse" } +// @public +export enum KnownAutoLearnPrivateRangesMode { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownAzureFirewallApplicationRuleProtocolType { Http = "Http", @@ -5269,13 +6154,21 @@ export enum KnownCircuitConnectionStatus { // @public export enum KnownCommissionedState { Commissioned = "Commissioned", + CommissionedNoInternetAdvertise = "CommissionedNoInternetAdvertise", Commissioning = "Commissioning", Decommissioning = "Decommissioning", + Deprovisioned = "Deprovisioned", Deprovisioning = "Deprovisioning", Provisioned = "Provisioned", Provisioning = "Provisioning" } +// @public +export enum KnownConfigurationType { + Connectivity = "Connectivity", + SecurityAdmin = "SecurityAdmin" +} + // @public export enum KnownConnectionMonitorEndpointFilterItemType { AgentAddress = "AgentAddress" @@ -5321,6 +6214,12 @@ export enum KnownConnectionStatus { Unknown = "Unknown" } +// @public +export enum KnownConnectivityTopology { + HubAndSpoke = "HubAndSpoke", + Mesh = "Mesh" +} + // @public export enum KnownCoverageLevel { AboveAverage = "AboveAverage", @@ -5332,24 +6231,31 @@ export enum KnownCoverageLevel { } // @public -export enum KnownDdosCustomPolicyProtocol { - Syn = "Syn", - Tcp = "Tcp", - Udp = "Udp" +export enum KnownCreatedByType { + Application = "Application", + Key = "Key", + ManagedIdentity = "ManagedIdentity", + User = "User" } // @public -export enum KnownDdosCustomPolicyTriggerSensitivityOverride { - Default = "Default", - High = "High", - Low = "Low", - Relaxed = "Relaxed" +export enum KnownCustomIpPrefixType { + Child = "Child", + Parent = "Parent", + Singular = "Singular" } // @public -export enum KnownDdosSettingsProtectionCoverage { - Basic = "Basic", - Standard = "Standard" +export enum KnownDdosSettingsProtectionMode { + Disabled = "Disabled", + Enabled = "Enabled", + VirtualNetworkInherited = "VirtualNetworkInherited" +} + +// @public +export enum KnownDeleteExistingPeering { + False = "False", + True = "True" } // @public @@ -5358,6 +6264,14 @@ export enum KnownDeleteOptions { Detach = "Detach" } +// @public +export enum KnownDeploymentStatus { + Deployed = "Deployed", + Deploying = "Deploying", + Failed = "Failed", + NotStarted = "NotStarted" +} + // @public export enum KnownDestinationPortBehavior { ListenIfAvailable = "ListenIfAvailable", @@ -5382,6 +6296,12 @@ export enum KnownDirection { Outbound = "Outbound" } +// @public +export enum KnownEffectiveAdminRuleKind { + Custom = "Custom", + Default = "Default" +} + // @public export enum KnownEffectiveRouteSource { Default = "Default", @@ -5405,8 +6325,10 @@ export enum KnownEffectiveSecurityRuleProtocol { // @public export enum KnownEndpointType { + AzureArcVM = "AzureArcVM", AzureSubnet = "AzureSubnet", AzureVM = "AzureVM", + AzureVmss = "AzureVMSS", AzureVNet = "AzureVNet", ExternalAddress = "ExternalAddress", MMAWorkspaceMachine = "MMAWorkspaceMachine", @@ -5487,6 +6409,18 @@ export enum KnownExpressRoutePeeringType { MicrosoftPeering = "MicrosoftPeering" } +// @public +export enum KnownExpressRoutePortAuthorizationUseStatus { + Available = "Available", + InUse = "InUse" +} + +// @public +export enum KnownExpressRoutePortsBillingType { + MeteredData = "MeteredData", + UnlimitedData = "UnlimitedData" +} + // @public export enum KnownExpressRoutePortsEncapsulation { Dot1Q = "Dot1Q", @@ -5504,6 +6438,12 @@ export enum KnownFirewallPolicyFilterRuleCollectionActionType { Deny = "Deny" } +// @public +export enum KnownFirewallPolicyIdpsQuerySortOrder { + Ascending = "Ascending", + Descending = "Descending" +} + // @public export enum KnownFirewallPolicyIntrusionDetectionProtocol { ANY = "ANY", @@ -5577,6 +6517,25 @@ export enum KnownGatewayLoadBalancerTunnelProtocol { Vxlan = "VXLAN" } +// @public +export enum KnownGeo { + Afri = "AFRI", + Apac = "APAC", + AQ = "AQ", + Euro = "EURO", + Global = "GLOBAL", + Latam = "LATAM", + ME = "ME", + NAM = "NAM", + Oceania = "OCEANIA" +} + +// @public +export enum KnownGroupConnectivity { + DirectlyConnected = "DirectlyConnected", + None = "None" +} + // @public export enum KnownHttpConfigurationMethod { Get = "Get", @@ -5596,6 +6555,13 @@ export enum KnownHubBgpConnectionStatus { Unknown = "Unknown" } +// @public +export enum KnownHubRoutingPreference { + ASPath = "ASPath", + ExpressRoute = "ExpressRoute", + VpnGateway = "VpnGateway" +} + // @public export enum KnownHubVirtualNetworkConnectionStatus { Connected = "Connected", @@ -5678,6 +6644,12 @@ export enum KnownIPVersion { IPv6 = "IPv6" } +// @public +export enum KnownIsGlobal { + False = "False", + True = "True" +} + // @public export enum KnownIssueType { AgentStopped = "AgentStopped", @@ -5691,6 +6663,20 @@ export enum KnownIssueType { UserDefinedRoute = "UserDefinedRoute" } +// @public +export enum KnownIsWorkloadProtected { + False = "False", + True = "True" +} + +// @public +export enum KnownLoadBalancerBackendAddressAdminState { + Down = "Down", + Drain = "Drain", + None = "None", + Up = "Up" +} + // @public export enum KnownLoadBalancerOutboundRuleProtocol { All = "All", @@ -5720,7 +6706,8 @@ export enum KnownLoadDistribution { // @public export enum KnownManagedRuleEnabledState { - Disabled = "Disabled" + Disabled = "Disabled", + Enabled = "Enabled" } // @public @@ -5728,6 +6715,20 @@ export enum KnownNatGatewaySkuName { Standard = "Standard" } +// @public +export enum KnownNetworkIntentPolicyBasedService { + All = "All", + AllowRulesOnly = "AllowRulesOnly", + None = "None" +} + +// @public +export enum KnownNetworkInterfaceAuxiliaryMode { + Floating = "Floating", + MaxConnections = "MaxConnections", + None = "None" +} + // @public export enum KnownNetworkInterfaceMigrationPhase { Abort = "Abort", @@ -5760,6 +6761,13 @@ export enum KnownNextHopType { VnetLocal = "VnetLocal" } +// @public +export enum KnownNextStep { + Continue = "Continue", + Terminate = "Terminate", + Unknown = "Unknown" +} + // @public export enum KnownOfficeTrafficCategory { All = "All", @@ -5768,12 +6776,6 @@ export enum KnownOfficeTrafficCategory { OptimizeAndAllow = "OptimizeAndAllow" } -// @public -export enum KnownOrderByOrder { - Ascending = "Ascending", - Descending = "Descending" -} - // @public export enum KnownOrigin { Inbound = "Inbound", @@ -5938,6 +6940,24 @@ export enum KnownRouteFilterRuleType { Community = "Community" } +// @public +export enum KnownRouteMapActionType { + Add = "Add", + Drop = "Drop", + Remove = "Remove", + Replace = "Replace", + Unknown = "Unknown" +} + +// @public +export enum KnownRouteMapMatchCondition { + Contains = "Contains", + Equals = "Equals", + NotContains = "NotContains", + NotEquals = "NotEquals", + Unknown = "Unknown" +} + // @public export enum KnownRouteNextHopType { Internet = "Internet", @@ -5955,6 +6975,38 @@ export enum KnownRoutingState { Provisioning = "Provisioning" } +// @public +export enum KnownScopeConnectionState { + Conflict = "Conflict", + Connected = "Connected", + Pending = "Pending", + Rejected = "Rejected", + Revoked = "Revoked" +} + +// @public +export enum KnownSecurityConfigurationRuleAccess { + Allow = "Allow", + AlwaysAllow = "AlwaysAllow", + Deny = "Deny" +} + +// @public +export enum KnownSecurityConfigurationRuleDirection { + Inbound = "Inbound", + Outbound = "Outbound" +} + +// @public +export enum KnownSecurityConfigurationRuleProtocol { + Ah = "Ah", + Any = "Any", + Esp = "Esp", + Icmp = "Icmp", + Tcp = "Tcp", + Udp = "Udp" +} + // @public export enum KnownSecurityPartnerProviderConnectionStatus { Connected = "Connected", @@ -6006,27 +7058,6 @@ export enum KnownSeverity { Warning = "Warning" } -// @public -export enum KnownSingleQueryResultDirection { - One = 1, - Two = 2, - Zero = 0 -} - -// @public -export enum KnownSingleQueryResultMode { - One = 1, - Two = 2, - Zero = 0 -} - -// @public -export enum KnownSingleQueryResultSeverity { - One = 1, - Three = 3, - Two = 2 -} - // @public export enum KnownSyncRemoteAddressSpace { True = "true" @@ -6052,6 +7083,12 @@ export enum KnownUsageUnit { Count = "Count" } +// @public +export enum KnownUseHubGateway { + False = "False", + True = "True" +} + // @public export enum KnownVerbosityLevel { Full = "Full", @@ -6176,6 +7213,12 @@ export enum KnownVirtualWanSecurityProviderType { Native = "Native" } +// @public +export enum KnownVnetLocalRouteOverrideCriteria { + Contains = "Contains", + Equal = "Equal" +} + // @public export enum KnownVpnAuthenticationType { AAD = "AAD", @@ -6230,6 +7273,13 @@ export enum KnownVpnNatRuleType { Static = "Static" } +// @public +export enum KnownVpnPolicyMemberAttributeType { + AADGroupId = "AADGroupId", + CertificateGroupId = "CertificateGroupId", + RadiusAzureGroupId = "RadiusAzureGroupId" +} + // @public export enum KnownVpnType { PolicyBased = "PolicyBased", @@ -6269,6 +7319,7 @@ export enum KnownWebApplicationFirewallMode { // @public export enum KnownWebApplicationFirewallOperator { + Any = "Any", BeginsWith = "BeginsWith", Contains = "Contains", EndsWith = "EndsWith", @@ -6304,10 +7355,27 @@ export enum KnownWebApplicationFirewallTransform { Lowercase = "Lowercase", RemoveNulls = "RemoveNulls", Trim = "Trim", + Uppercase = "Uppercase", UrlDecode = "UrlDecode", UrlEncode = "UrlEncode" } +// @public +export interface ListActiveConnectivityConfigurationsOptionalParams extends coreClient.OperationOptions { + top?: number; +} + +// @public +export type ListActiveConnectivityConfigurationsResponse = ActiveConnectivityConfigurationsListResult; + +// @public +export interface ListActiveSecurityAdminRulesOptionalParams extends coreClient.OperationOptions { + top?: number; +} + +// @public +export type ListActiveSecurityAdminRulesResponse = ActiveSecurityAdminRulesListResult; + // @public export interface ListHubRouteTablesResult { nextLink?: string; @@ -6320,12 +7388,34 @@ export interface ListHubVirtualNetworkConnectionsResult { value?: HubVirtualNetworkConnection[]; } +// @public +export interface ListNetworkManagerEffectiveConnectivityConfigurationsOptionalParams extends coreClient.OperationOptions { + top?: number; +} + +// @public +export type ListNetworkManagerEffectiveConnectivityConfigurationsResponse = NetworkManagerEffectiveConnectivityConfigurationListResult; + +// @public +export interface ListNetworkManagerEffectiveSecurityAdminRulesOptionalParams extends coreClient.OperationOptions { + top?: number; +} + +// @public +export type ListNetworkManagerEffectiveSecurityAdminRulesResponse = NetworkManagerEffectiveSecurityAdminRulesListResult; + // @public export interface ListP2SVpnGatewaysResult { nextLink?: string; value?: P2SVpnGateway[]; } +// @public +export interface ListRouteMapsResult { + nextLink?: string; + value?: RouteMap[]; +} + // @public export interface ListRoutingIntentResult { nextLink?: string; @@ -6386,6 +7476,12 @@ export interface ListVpnGatewaysResult { value?: VpnGateway[]; } +// @public +export interface ListVpnServerConfigurationPolicyGroupsResult { + nextLink?: string; + value?: VpnServerConfigurationPolicyGroup[]; +} + // @public export interface ListVpnServerConfigurationsResult { nextLink?: string; @@ -6428,6 +7524,7 @@ export interface LoadBalancer extends Resource { // @public export interface LoadBalancerBackendAddress { + adminState?: LoadBalancerBackendAddressAdminState; readonly inboundNatRulesPortMapping?: NatRulePortMapping[]; ipAddress?: string; loadBalancerFrontendIPConfiguration?: SubResource; @@ -6437,6 +7534,9 @@ export interface LoadBalancerBackendAddress { virtualNetwork?: SubResource; } +// @public +export type LoadBalancerBackendAddressAdminState = string; + // @public export interface LoadBalancerBackendAddressPoolListResult { readonly nextLink?: string; @@ -6873,6 +7973,7 @@ export interface ManagedRuleGroupOverride { // @public export interface ManagedRuleOverride { + action?: ActionType; ruleId: string; state?: ManagedRuleEnabledState; } @@ -6900,6 +8001,48 @@ export interface ManagedServiceIdentity { }; } +// @public +export interface ManagementGroupNetworkManagerConnections { + createOrUpdate(managementGroupId: string, networkManagerConnectionName: string, parameters: NetworkManagerConnection, options?: ManagementGroupNetworkManagerConnectionsCreateOrUpdateOptionalParams): Promise; + delete(managementGroupId: string, networkManagerConnectionName: string, options?: ManagementGroupNetworkManagerConnectionsDeleteOptionalParams): Promise; + get(managementGroupId: string, networkManagerConnectionName: string, options?: ManagementGroupNetworkManagerConnectionsGetOptionalParams): Promise; + list(managementGroupId: string, options?: ManagementGroupNetworkManagerConnectionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ManagementGroupNetworkManagerConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagementGroupNetworkManagerConnectionsCreateOrUpdateResponse = NetworkManagerConnection; + +// @public +export interface ManagementGroupNetworkManagerConnectionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ManagementGroupNetworkManagerConnectionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagementGroupNetworkManagerConnectionsGetResponse = NetworkManagerConnection; + +// @public +export interface ManagementGroupNetworkManagerConnectionsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagementGroupNetworkManagerConnectionsListNextResponse = NetworkManagerConnectionListResult; + +// @public +export interface ManagementGroupNetworkManagerConnectionsListOptionalParams extends coreClient.OperationOptions { + skipToken?: string; + top?: number; +} + +// @public +export type ManagementGroupNetworkManagerConnectionsListResponse = NetworkManagerConnectionListResult; + // @public export interface MatchCondition { matchValues: string[]; @@ -7093,47 +8236,120 @@ export interface NatRulesListByVpnGatewayNextOptionalParams extends coreClient.O } // @public -export type NatRulesListByVpnGatewayNextResponse = ListVpnGatewayNatRulesResult; +export type NatRulesListByVpnGatewayNextResponse = ListVpnGatewayNatRulesResult; + +// @public +export interface NatRulesListByVpnGatewayOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NatRulesListByVpnGatewayResponse = ListVpnGatewayNatRulesResult; + +// @public +export interface NetworkConfigurationDiagnosticParameters { + profiles: NetworkConfigurationDiagnosticProfile[]; + targetResourceId: string; + verbosityLevel?: VerbosityLevel; +} + +// @public +export interface NetworkConfigurationDiagnosticProfile { + destination: string; + destinationPort: string; + direction: Direction; + protocol: string; + source: string; +} + +// @public +export interface NetworkConfigurationDiagnosticResponse { + readonly results?: NetworkConfigurationDiagnosticResult[]; +} + +// @public +export interface NetworkConfigurationDiagnosticResult { + networkSecurityGroupResult?: NetworkSecurityGroupResult; + profile?: NetworkConfigurationDiagnosticProfile; +} + +// @public +export interface NetworkGroup extends ChildResource { + description?: string; + readonly provisioningState?: ProvisioningState; + readonly systemData?: SystemData; +} + +// @public +export interface NetworkGroupListResult { + nextLink?: string; + value?: NetworkGroup[]; +} + +// @public +export interface NetworkGroups { + beginDelete(resourceGroupName: string, networkManagerName: string, networkGroupName: string, options?: NetworkGroupsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, networkManagerName: string, networkGroupName: string, options?: NetworkGroupsDeleteOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, networkManagerName: string, networkGroupName: string, parameters: NetworkGroup, options?: NetworkGroupsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, networkManagerName: string, networkGroupName: string, options?: NetworkGroupsGetOptionalParams): Promise; + list(resourceGroupName: string, networkManagerName: string, options?: NetworkGroupsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface NetworkGroupsCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface NetworkGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type NetworkGroupsCreateOrUpdateResponse = NetworkGroupsCreateOrUpdateHeaders & NetworkGroup; + +// @public +export interface NetworkGroupsDeleteHeaders { + location?: string; +} + +// @public +export interface NetworkGroupsDeleteOptionalParams extends coreClient.OperationOptions { + force?: boolean; + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public -export interface NatRulesListByVpnGatewayOptionalParams extends coreClient.OperationOptions { +export interface NetworkGroupsGetOptionalParams extends coreClient.OperationOptions { } // @public -export type NatRulesListByVpnGatewayResponse = ListVpnGatewayNatRulesResult; +export type NetworkGroupsGetResponse = NetworkGroup; // @public -export interface NetworkConfigurationDiagnosticParameters { - profiles: NetworkConfigurationDiagnosticProfile[]; - targetResourceId: string; - verbosityLevel?: VerbosityLevel; +export interface NetworkGroupsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface NetworkConfigurationDiagnosticProfile { - destination: string; - destinationPort: string; - direction: Direction; - protocol: string; - source: string; -} +export type NetworkGroupsListNextResponse = NetworkGroupListResult; // @public -export interface NetworkConfigurationDiagnosticResponse { - readonly results?: NetworkConfigurationDiagnosticResult[]; +export interface NetworkGroupsListOptionalParams extends coreClient.OperationOptions { + skipToken?: string; + top?: number; } // @public -export interface NetworkConfigurationDiagnosticResult { - networkSecurityGroupResult?: NetworkSecurityGroupResult; - profile?: NetworkConfigurationDiagnosticProfile; -} +export type NetworkGroupsListResponse = NetworkGroupListResult; // @public export interface NetworkIntentPolicy extends Resource { readonly etag?: string; } +// @public +export type NetworkIntentPolicyBasedService = string; + // @public export interface NetworkIntentPolicyConfiguration { networkIntentPolicyName?: string; @@ -7142,6 +8358,8 @@ export interface NetworkIntentPolicyConfiguration { // @public export interface NetworkInterface extends Resource { + auxiliaryMode?: NetworkInterfaceAuxiliaryMode; + disableTcpStateTracking?: boolean; dnsSettings?: NetworkInterfaceDnsSettings; readonly dscpConfiguration?: SubResource; enableAcceleratedNetworking?: boolean; @@ -7171,6 +8389,9 @@ export interface NetworkInterfaceAssociation { securityRules?: SecurityRule[]; } +// @public +export type NetworkInterfaceAuxiliaryMode = string; + // @public export interface NetworkInterfaceDnsSettings { readonly appliedDnsServers?: string[]; @@ -7540,12 +8761,20 @@ export class NetworkManagementClient extends coreClient.ServiceClient { $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: NetworkManagementClientOptionalParams); // (undocumented) + adminRuleCollections: AdminRuleCollections; + // (undocumented) + adminRules: AdminRules; + // (undocumented) applicationGatewayPrivateEndpointConnections: ApplicationGatewayPrivateEndpointConnections; // (undocumented) applicationGatewayPrivateLinkResources: ApplicationGatewayPrivateLinkResources; // (undocumented) applicationGateways: ApplicationGateways; // (undocumented) + applicationGatewayWafDynamicManifests: ApplicationGatewayWafDynamicManifests; + // (undocumented) + applicationGatewayWafDynamicManifestsDefault: ApplicationGatewayWafDynamicManifestsDefault; + // (undocumented) applicationSecurityGroups: ApplicationSecurityGroups; // (undocumented) availableDelegations: AvailableDelegations; @@ -7573,8 +8802,12 @@ export class NetworkManagementClient extends coreClient.ServiceClient { bgpServiceCommunities: BgpServiceCommunities; checkDnsNameAvailability(location: string, domainNameLabel: string, options?: CheckDnsNameAvailabilityOptionalParams): Promise; // (undocumented) + configurationPolicyGroups: ConfigurationPolicyGroups; + // (undocumented) connectionMonitors: ConnectionMonitors; // (undocumented) + connectivityConfigurations: ConnectivityConfigurations; + // (undocumented) customIPPrefixes: CustomIPPrefixes; // (undocumented) ddosCustomPolicies: DdosCustomPolicies; @@ -7603,9 +8836,14 @@ export class NetworkManagementClient extends coreClient.ServiceClient { // (undocumented) expressRouteLinks: ExpressRouteLinks; // (undocumented) + expressRoutePortAuthorizations: ExpressRoutePortAuthorizations; + // (undocumented) expressRoutePorts: ExpressRoutePorts; // (undocumented) expressRoutePortsLocations: ExpressRoutePortsLocations; + expressRouteProviderPort(providerport: string, options?: ExpressRouteProviderPortOptionalParams): Promise; + // (undocumented) + expressRouteProviderPortsLocation: ExpressRouteProviderPortsLocation; // (undocumented) expressRouteServiceProviders: ExpressRouteServiceProviders; // (undocumented) @@ -7632,8 +8870,12 @@ export class NetworkManagementClient extends coreClient.ServiceClient { ipAllocations: IpAllocations; // (undocumented) ipGroups: IpGroups; + listActiveConnectivityConfigurations(resourceGroupName: string, networkManagerName: string, parameters: ActiveConfigurationParameter, options?: ListActiveConnectivityConfigurationsOptionalParams): Promise; + listActiveSecurityAdminRules(resourceGroupName: string, networkManagerName: string, parameters: ActiveConfigurationParameter, options?: ListActiveSecurityAdminRulesOptionalParams): Promise; listBastionShareableLink(resourceGroupName: string, bastionHostName: string, bslRequest: BastionShareableLinkListRequest, options?: GetBastionShareableLinkOptionalParams): PagedAsyncIterableIterator; listDisconnectActiveSessions(resourceGroupName: string, bastionHostName: string, sessionIds: SessionIds, options?: DisconnectActiveSessionsOptionalParams): PagedAsyncIterableIterator; + listNetworkManagerEffectiveConnectivityConfigurations(resourceGroupName: string, virtualNetworkName: string, parameters: QueryRequestOptions, options?: ListNetworkManagerEffectiveConnectivityConfigurationsOptionalParams): Promise; + listNetworkManagerEffectiveSecurityAdminRules(resourceGroupName: string, virtualNetworkName: string, parameters: QueryRequestOptions, options?: ListNetworkManagerEffectiveSecurityAdminRulesOptionalParams): Promise; // (undocumented) loadBalancerBackendAddressPools: LoadBalancerBackendAddressPools; // (undocumented) @@ -7651,10 +8893,14 @@ export class NetworkManagementClient extends coreClient.ServiceClient { // (undocumented) localNetworkGateways: LocalNetworkGateways; // (undocumented) + managementGroupNetworkManagerConnections: ManagementGroupNetworkManagerConnections; + // (undocumented) natGateways: NatGateways; // (undocumented) natRules: NatRules; // (undocumented) + networkGroups: NetworkGroups; + // (undocumented) networkInterfaceIPConfigurations: NetworkInterfaceIPConfigurations; // (undocumented) networkInterfaceLoadBalancers: NetworkInterfaceLoadBalancers; @@ -7663,6 +8909,12 @@ export class NetworkManagementClient extends coreClient.ServiceClient { // (undocumented) networkInterfaceTapConfigurations: NetworkInterfaceTapConfigurations; // (undocumented) + networkManagerCommits: NetworkManagerCommits; + // (undocumented) + networkManagerDeploymentStatusOperations: NetworkManagerDeploymentStatusOperations; + // (undocumented) + networkManagers: NetworkManagers; + // (undocumented) networkProfiles: NetworkProfiles; // (undocumented) networkSecurityGroups: NetworkSecurityGroups; @@ -7695,12 +8947,18 @@ export class NetworkManagementClient extends coreClient.ServiceClient { // (undocumented) routeFilters: RouteFilters; // (undocumented) + routeMaps: RouteMaps; + // (undocumented) routes: Routes; // (undocumented) routeTables: RouteTables; // (undocumented) routingIntentOperations: RoutingIntentOperations; // (undocumented) + scopeConnections: ScopeConnections; + // (undocumented) + securityAdminConfigurations: SecurityAdminConfigurations; + // (undocumented) securityPartnerProviders: SecurityPartnerProviders; // (undocumented) securityRules: SecurityRules; @@ -7715,13 +8973,19 @@ export class NetworkManagementClient extends coreClient.ServiceClient { // (undocumented) serviceTags: ServiceTags; // (undocumented) + staticMembers: StaticMembers; + // (undocumented) subnets: Subnets; // (undocumented) subscriptionId: string; + // (undocumented) + subscriptionNetworkManagerConnections: SubscriptionNetworkManagerConnections; supportedSecurityProviders(resourceGroupName: string, virtualWANName: string, options?: SupportedSecurityProvidersOptionalParams): Promise; // (undocumented) usages: Usages; // (undocumented) + vipSwap: VipSwap; + // (undocumented) virtualApplianceSites: VirtualApplianceSites; // (undocumented) virtualApplianceSkus: VirtualApplianceSkus; @@ -7783,6 +9047,200 @@ export interface NetworkManagementClientOptionalParams extends coreClient.Servic endpoint?: string; } +// @public +export interface NetworkManager extends Resource { + description?: string; + readonly etag?: string; + networkManagerScopeAccesses?: ConfigurationType[]; + networkManagerScopes?: NetworkManagerPropertiesNetworkManagerScopes; + readonly provisioningState?: ProvisioningState; + readonly systemData?: SystemData; +} + +// @public +export interface NetworkManagerCommit { + readonly commitId?: string; + commitType: ConfigurationType; + configurationIds?: string[]; + targetLocations: string[]; +} + +// @public +export interface NetworkManagerCommits { + beginPost(resourceGroupName: string, networkManagerName: string, parameters: NetworkManagerCommit, options?: NetworkManagerCommitsPostOptionalParams): Promise, NetworkManagerCommitsPostResponse>>; + beginPostAndWait(resourceGroupName: string, networkManagerName: string, parameters: NetworkManagerCommit, options?: NetworkManagerCommitsPostOptionalParams): Promise; +} + +// @public +export interface NetworkManagerCommitsPostHeaders { + location?: string; +} + +// @public +export interface NetworkManagerCommitsPostOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetworkManagerCommitsPostResponse = NetworkManagerCommit; + +// @public +export interface NetworkManagerConnection extends ChildResource { + readonly connectionState?: ScopeConnectionState; + description?: string; + networkManagerId?: string; + readonly systemData?: SystemData; +} + +// @public +export interface NetworkManagerConnectionListResult { + nextLink?: string; + value?: NetworkManagerConnection[]; +} + +// @public +export interface NetworkManagerDeploymentStatus { + commitTime?: Date; + configurationIds?: string[]; + deploymentStatus?: DeploymentStatus; + deploymentType?: ConfigurationType; + errorMessage?: string; + region?: string; +} + +// @public +export interface NetworkManagerDeploymentStatusListOptionalParams extends coreClient.OperationOptions { + top?: number; +} + +// @public +export type NetworkManagerDeploymentStatusListResponse = NetworkManagerDeploymentStatusListResult; + +// @public +export interface NetworkManagerDeploymentStatusListResult { + skipToken?: string; + value?: NetworkManagerDeploymentStatus[]; +} + +// @public +export interface NetworkManagerDeploymentStatusOperations { + list(resourceGroupName: string, networkManagerName: string, parameters: NetworkManagerDeploymentStatusParameter, options?: NetworkManagerDeploymentStatusListOptionalParams): Promise; +} + +// @public +export interface NetworkManagerDeploymentStatusParameter { + deploymentTypes?: ConfigurationType[]; + regions?: string[]; + skipToken?: string; +} + +// @public +export interface NetworkManagerEffectiveConnectivityConfigurationListResult { + skipToken?: string; + value?: EffectiveConnectivityConfiguration[]; +} + +// @public +export interface NetworkManagerEffectiveSecurityAdminRulesListResult { + skipToken?: string; + value?: EffectiveBaseSecurityAdminRuleUnion[]; +} + +// @public +export interface NetworkManagerListResult { + nextLink?: string; + value?: NetworkManager[]; +} + +// @public +export interface NetworkManagerPropertiesNetworkManagerScopes { + readonly crossTenantScopes?: CrossTenantScopes[]; + managementGroups?: string[]; + subscriptions?: string[]; +} + +// @public +export interface NetworkManagers { + beginDelete(resourceGroupName: string, networkManagerName: string, options?: NetworkManagersDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, networkManagerName: string, options?: NetworkManagersDeleteOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, networkManagerName: string, parameters: NetworkManager, options?: NetworkManagersCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, networkManagerName: string, options?: NetworkManagersGetOptionalParams): Promise; + list(resourceGroupName: string, options?: NetworkManagersListOptionalParams): PagedAsyncIterableIterator; + listBySubscription(options?: NetworkManagersListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + patch(resourceGroupName: string, networkManagerName: string, parameters: PatchObject, options?: NetworkManagersPatchOptionalParams): Promise; +} + +// @public +export interface NetworkManagersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkManagersCreateOrUpdateResponse = NetworkManager; + +// @public +export interface NetworkManagersDeleteHeaders { + location?: string; +} + +// @public +export interface NetworkManagersDeleteOptionalParams extends coreClient.OperationOptions { + force?: boolean; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface NetworkManagerSecurityGroupItem { + networkGroupId: string; +} + +// @public +export interface NetworkManagersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkManagersGetResponse = NetworkManager; + +// @public +export interface NetworkManagersListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkManagersListBySubscriptionNextResponse = NetworkManagerListResult; + +// @public +export interface NetworkManagersListBySubscriptionOptionalParams extends coreClient.OperationOptions { + skipToken?: string; + top?: number; +} + +// @public +export type NetworkManagersListBySubscriptionResponse = NetworkManagerListResult; + +// @public +export interface NetworkManagersListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkManagersListNextResponse = NetworkManagerListResult; + +// @public +export interface NetworkManagersListOptionalParams extends coreClient.OperationOptions { + skipToken?: string; + top?: number; +} + +// @public +export type NetworkManagersListResponse = NetworkManagerListResult; + +// @public +export interface NetworkManagersPatchOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkManagersPatchResponse = NetworkManager; + // @public export type NetworkOperationStatus = string; @@ -7885,6 +9343,7 @@ export interface NetworkSecurityGroup extends Resource { readonly defaultSecurityRules?: SecurityRule[]; readonly etag?: string; readonly flowLogs?: FlowLog[]; + flushConnection?: boolean; readonly networkInterfaces?: NetworkInterface[]; readonly provisioningState?: ProvisioningState; readonly resourceGuid?: string; @@ -7990,10 +9449,13 @@ export interface NetworkVirtualAppliance extends Resource { bootStrapConfigurationBlobs?: string[]; cloudInitConfiguration?: string; cloudInitConfigurationBlobs?: string[]; + delegation?: DelegationProperties; + readonly deploymentType?: string; readonly etag?: string; identity?: ManagedServiceIdentity; readonly inboundSecurityRules?: SubResource[]; nvaSku?: VirtualApplianceSkuProperties; + partnerManagedResource?: PartnerManagedResourceProperties; readonly provisioningState?: ProvisioningState; sshPublicKey?: string; virtualApplianceAsn?: number; @@ -8314,6 +9776,9 @@ export interface NextHopResult { // @public export type NextHopType = string; +// @public +export type NextStep = string; + // @public export interface O365BreakOutCategoryPolicies { allow?: boolean; @@ -8384,12 +9849,9 @@ export type OperationsListResponse = OperationListResult; // @public export interface OrderBy { field?: string; - order?: OrderByOrder; + order?: FirewallPolicyIdpsQuerySortOrder; } -// @public -export type OrderByOrder = string; - // @public export type Origin = string; @@ -8426,9 +9888,11 @@ export type OwaspCrsExclusionEntrySelectorMatchOperator = string; // @public export interface P2SConnectionConfiguration extends SubResource { + readonly configurationPolicyGroupAssociations?: SubResource[]; enableInternetSecurity?: boolean; readonly etag?: string; name?: string; + readonly previousConfigurationPolicyGroupAssociations?: VpnServerConfigurationPolicyGroup[]; readonly provisioningState?: ProvisioningState; routingConfiguration?: RoutingConfiguration; vpnClientAddressPool?: AddressSpace; @@ -8596,8 +10060,10 @@ export interface P2SVpnProfileParameters { export interface PacketCapture { bytesToCapturePerPacket?: number; filters?: PacketCaptureFilter[]; + scope?: PacketCaptureMachineScope; storageLocation: PacketCaptureStorageLocation; target: string; + targetType?: PacketCaptureTargetType; timeLimitInSeconds?: number; totalBytesPerSession?: number; } @@ -8616,12 +10082,20 @@ export interface PacketCaptureListResult { value?: PacketCaptureResult[]; } +// @public +export interface PacketCaptureMachineScope { + exclude?: string[]; + include?: string[]; +} + // @public export interface PacketCaptureParameters { bytesToCapturePerPacket?: number; filters?: PacketCaptureFilter[]; + scope?: PacketCaptureMachineScope; storageLocation: PacketCaptureStorageLocation; target: string; + targetType?: PacketCaptureTargetType; timeLimitInSeconds?: number; totalBytesPerSession?: number; } @@ -8644,8 +10118,10 @@ export interface PacketCaptureResult { readonly id?: string; readonly name?: string; readonly provisioningState?: ProvisioningState; + scope?: PacketCaptureMachineScope; storageLocation?: PacketCaptureStorageLocation; target?: string; + targetType?: PacketCaptureTargetType; timeLimitInSeconds?: number; totalBytesPerSession?: number; } @@ -8720,6 +10196,30 @@ export interface PacketCaptureStorageLocation { storagePath?: string; } +// @public +export type PacketCaptureTargetType = "AzureVM" | "AzureVMSS"; + +// @public +export interface Parameter { + asPath?: string[]; + community?: string[]; + routePrefix?: string[]; +} + +// @public +export interface PartnerManagedResourceProperties { + readonly id?: string; + readonly internalLoadBalancerId?: string; + readonly standardLoadBalancerId?: string; +} + +// @public +export interface PatchObject { + tags?: { + [propertyName: string]: string; + }; +} + // @public export interface PatchRouteFilter extends SubResource { readonly etag?: string; @@ -8821,6 +10321,8 @@ export type PfsGroup = string; // @public export interface PolicySettings { + customBlockResponseBody?: string; + customBlockResponseStatusCode?: number; fileUploadLimitInMb?: number; maxRequestBodySizeInKb?: number; mode?: WebApplicationFirewallMode; @@ -9246,6 +10748,7 @@ export interface Probe extends SubResource { name?: string; numberOfProbes?: number; port?: number; + probeThreshold?: number; protocol?: ProbeProtocol; readonly provisioningState?: ProvisioningState; requestPath?: string; @@ -9272,14 +10775,6 @@ export interface ProtocolConfiguration { httpConfiguration?: HttpConfiguration; } -// @public -export interface ProtocolCustomSettingsFormat { - protocol?: DdosCustomPolicyProtocol; - sourceRateOverride?: string; - triggerRateOverride?: string; - triggerSensitivityOverride?: DdosCustomPolicyTriggerSensitivityOverride; -} - // @public export type ProtocolType = string; @@ -9321,6 +10816,8 @@ export interface PublicIPAddressDnsSettings { export interface PublicIPAddresses { beginCreateOrUpdate(resourceGroupName: string, publicIpAddressName: string, parameters: PublicIPAddress, options?: PublicIPAddressesCreateOrUpdateOptionalParams): Promise, PublicIPAddressesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, publicIpAddressName: string, parameters: PublicIPAddress, options?: PublicIPAddressesCreateOrUpdateOptionalParams): Promise; + beginDdosProtectionStatus(resourceGroupName: string, publicIpAddressName: string, options?: PublicIPAddressesDdosProtectionStatusOptionalParams): Promise, PublicIPAddressesDdosProtectionStatusResponse>>; + beginDdosProtectionStatusAndWait(resourceGroupName: string, publicIpAddressName: string, options?: PublicIPAddressesDdosProtectionStatusOptionalParams): Promise; beginDelete(resourceGroupName: string, publicIpAddressName: string, options?: PublicIPAddressesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, publicIpAddressName: string, options?: PublicIPAddressesDeleteOptionalParams): Promise; get(resourceGroupName: string, publicIpAddressName: string, options?: PublicIPAddressesGetOptionalParams): Promise; @@ -9344,6 +10841,25 @@ export interface PublicIPAddressesCreateOrUpdateOptionalParams extends coreClien // @public export type PublicIPAddressesCreateOrUpdateResponse = PublicIPAddress; +// @public +export interface PublicIPAddressesDdosProtectionStatusHeaders { + location?: string; +} + +// @public +export interface PublicIPAddressesDdosProtectionStatusOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type PublicIPAddressesDdosProtectionStatusResponse = PublicIpDdosProtectionStatusResult; + +// @public +export interface PublicIPAddressesDeleteHeaders { + location?: string; +} + // @public export interface PublicIPAddressesDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -9486,6 +11002,14 @@ export type PublicIPAddressSkuName = string; // @public export type PublicIPAddressSkuTier = string; +// @public +export interface PublicIpDdosProtectionStatusResult { + ddosProtectionPlanId?: string; + isWorkloadProtected?: IsWorkloadProtected; + publicIpAddress?: string; + publicIpAddressId?: string; +} + // @public export interface PublicIPPrefix extends Resource { customIPPrefix?: SubResource; @@ -9636,6 +11160,11 @@ export interface QueryInboundNatRulePortMappingRequest { ipConfiguration?: SubResource; } +// @public +export interface QueryRequestOptions { + skipToken?: string; +} + // @public export interface QueryResults { matchingRecordsCount?: number; @@ -9876,21 +11405,92 @@ export interface RouteFiltersListOptionalParams extends coreClient.OperationOpti } // @public -export type RouteFiltersListResponse = RouteFilterListResult; +export type RouteFiltersListResponse = RouteFilterListResult; + +// @public +export interface RouteFiltersUpdateTagsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RouteFiltersUpdateTagsResponse = RouteFilter; + +// @public +export interface RouteListResult { + nextLink?: string; + value?: Route[]; +} + +// @public +export interface RouteMap extends SubResource { + associatedInboundConnections?: string[]; + associatedOutboundConnections?: string[]; + readonly etag?: string; + readonly name?: string; + readonly provisioningState?: ProvisioningState; + rules?: RouteMapRule[]; + readonly type?: string; +} + +// @public +export type RouteMapActionType = string; + +// @public +export type RouteMapMatchCondition = string; + +// @public +export interface RouteMapRule { + actions?: Action[]; + matchCriteria?: Criterion[]; + name?: string; + nextStepIfMatched?: NextStep; +} + +// @public +export interface RouteMaps { + beginCreateOrUpdate(resourceGroupName: string, virtualHubName: string, routeMapName: string, routeMapParameters: RouteMap, options?: RouteMapsCreateOrUpdateOptionalParams): Promise, RouteMapsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, virtualHubName: string, routeMapName: string, routeMapParameters: RouteMap, options?: RouteMapsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, virtualHubName: string, routeMapName: string, options?: RouteMapsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, virtualHubName: string, routeMapName: string, options?: RouteMapsDeleteOptionalParams): Promise; + get(resourceGroupName: string, virtualHubName: string, routeMapName: string, options?: RouteMapsGetOptionalParams): Promise; + list(resourceGroupName: string, virtualHubName: string, options?: RouteMapsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface RouteMapsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type RouteMapsCreateOrUpdateResponse = RouteMap; + +// @public +export interface RouteMapsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface RouteMapsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RouteMapsGetResponse = RouteMap; // @public -export interface RouteFiltersUpdateTagsOptionalParams extends coreClient.OperationOptions { +export interface RouteMapsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type RouteFiltersUpdateTagsResponse = RouteFilter; +export type RouteMapsListNextResponse = ListRouteMapsResult; // @public -export interface RouteListResult { - nextLink?: string; - value?: Route[]; +export interface RouteMapsListOptionalParams extends coreClient.OperationOptions { } +// @public +export type RouteMapsListResponse = ListRouteMapsResult; + // @public export type RouteNextHopType = string; @@ -10029,6 +11629,8 @@ export type RouteTablesUpdateTagsResponse = RouteTable; // @public export interface RoutingConfiguration { associatedRouteTable?: SubResource; + inboundRouteMap?: SubResource; + outboundRouteMap?: SubResource; propagatedRouteTables?: PropagatedRouteTable; vnetRoutes?: VnetRoute; } @@ -10098,6 +11700,140 @@ export interface RoutingPolicy { // @public export type RoutingState = string; +// @public +export interface ScopeConnection extends ChildResource { + readonly connectionState?: ScopeConnectionState; + description?: string; + resourceId?: string; + readonly systemData?: SystemData; + tenantId?: string; +} + +// @public +export interface ScopeConnectionListResult { + nextLink?: string; + value?: ScopeConnection[]; +} + +// @public +export interface ScopeConnections { + createOrUpdate(resourceGroupName: string, networkManagerName: string, scopeConnectionName: string, parameters: ScopeConnection, options?: ScopeConnectionsCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, networkManagerName: string, scopeConnectionName: string, options?: ScopeConnectionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, networkManagerName: string, scopeConnectionName: string, options?: ScopeConnectionsGetOptionalParams): Promise; + list(resourceGroupName: string, networkManagerName: string, options?: ScopeConnectionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ScopeConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ScopeConnectionsCreateOrUpdateResponse = ScopeConnection; + +// @public +export interface ScopeConnectionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ScopeConnectionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ScopeConnectionsGetResponse = ScopeConnection; + +// @public +export interface ScopeConnectionsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ScopeConnectionsListNextResponse = ScopeConnectionListResult; + +// @public +export interface ScopeConnectionsListOptionalParams extends coreClient.OperationOptions { + skipToken?: string; + top?: number; +} + +// @public +export type ScopeConnectionsListResponse = ScopeConnectionListResult; + +// @public +export type ScopeConnectionState = string; + +// @public +export interface SecurityAdminConfiguration extends ChildResource { + applyOnNetworkIntentPolicyBasedServices?: NetworkIntentPolicyBasedService[]; + description?: string; + readonly provisioningState?: ProvisioningState; + readonly systemData?: SystemData; +} + +// @public +export interface SecurityAdminConfigurationListResult { + nextLink?: string; + value?: SecurityAdminConfiguration[]; +} + +// @public +export interface SecurityAdminConfigurations { + beginDelete(resourceGroupName: string, networkManagerName: string, configurationName: string, options?: SecurityAdminConfigurationsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, networkManagerName: string, configurationName: string, options?: SecurityAdminConfigurationsDeleteOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, networkManagerName: string, configurationName: string, securityAdminConfiguration: SecurityAdminConfiguration, options?: SecurityAdminConfigurationsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, networkManagerName: string, configurationName: string, options?: SecurityAdminConfigurationsGetOptionalParams): Promise; + list(resourceGroupName: string, networkManagerName: string, options?: SecurityAdminConfigurationsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SecurityAdminConfigurationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SecurityAdminConfigurationsCreateOrUpdateResponse = SecurityAdminConfiguration; + +// @public +export interface SecurityAdminConfigurationsDeleteHeaders { + location?: string; +} + +// @public +export interface SecurityAdminConfigurationsDeleteOptionalParams extends coreClient.OperationOptions { + force?: boolean; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface SecurityAdminConfigurationsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SecurityAdminConfigurationsGetResponse = SecurityAdminConfiguration; + +// @public +export interface SecurityAdminConfigurationsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SecurityAdminConfigurationsListNextResponse = SecurityAdminConfigurationListResult; + +// @public +export interface SecurityAdminConfigurationsListOptionalParams extends coreClient.OperationOptions { + skipToken?: string; + top?: number; +} + +// @public +export type SecurityAdminConfigurationsListResponse = SecurityAdminConfigurationListResult; + +// @public +export type SecurityConfigurationRuleAccess = string; + +// @public +export type SecurityConfigurationRuleDirection = string; + +// @public +export type SecurityConfigurationRuleProtocol = string; + // @public export interface SecurityGroupNetworkInterface { id?: string; @@ -10596,31 +12332,81 @@ export interface SignaturesOverridesProperties { export interface SingleQueryResult { description?: string; destinationPorts?: string[]; - direction?: SingleQueryResultDirection; + direction?: FirewallPolicyIdpsSignatureDirection; group?: string; inheritedFromParentPolicy?: boolean; lastUpdated?: string; - mode?: SingleQueryResultMode; + mode?: FirewallPolicyIdpsSignatureMode; protocol?: string; - severity?: SingleQueryResultSeverity; + severity?: FirewallPolicyIdpsSignatureSeverity; signatureId?: number; sourcePorts?: string[]; } // @public -export type SingleQueryResultDirection = number; +export interface Sku { + name?: BastionHostSkuName; +} + +// @public +export type SlotType = "Production" | "Staging"; // @public -export type SingleQueryResultMode = number; +export interface StaticMember extends ChildResource { + readonly provisioningState?: ProvisioningState; + readonly region?: string; + resourceId?: string; + readonly systemData?: SystemData; +} // @public -export type SingleQueryResultSeverity = number; +export interface StaticMemberListResult { + nextLink?: string; + value?: StaticMember[]; +} // @public -export interface Sku { - name?: BastionHostSkuName; +export interface StaticMembers { + createOrUpdate(resourceGroupName: string, networkManagerName: string, networkGroupName: string, staticMemberName: string, parameters: StaticMember, options?: StaticMembersCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, networkManagerName: string, networkGroupName: string, staticMemberName: string, options?: StaticMembersDeleteOptionalParams): Promise; + get(resourceGroupName: string, networkManagerName: string, networkGroupName: string, staticMemberName: string, options?: StaticMembersGetOptionalParams): Promise; + list(resourceGroupName: string, networkManagerName: string, networkGroupName: string, options?: StaticMembersListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface StaticMembersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StaticMembersCreateOrUpdateResponse = StaticMember; + +// @public +export interface StaticMembersDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface StaticMembersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StaticMembersGetResponse = StaticMember; + +// @public +export interface StaticMembersListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StaticMembersListNextResponse = StaticMemberListResult; + +// @public +export interface StaticMembersListOptionalParams extends coreClient.OperationOptions { + skipToken?: string; + top?: number; } +// @public +export type StaticMembersListResponse = StaticMemberListResult; + // @public export interface StaticRoute { addressPrefixes?: string[]; @@ -10628,6 +12414,12 @@ export interface StaticRoute { nextHopIpAddress?: string; } +// @public +export interface StaticRoutesConfig { + readonly propagateStaticRoutes?: boolean; + vnetLocalRouteOverrideCriteria?: VnetLocalRouteOverrideCriteria; +} + // @public export interface Subnet extends SubResource { addressPrefix?: string; @@ -10734,6 +12526,48 @@ export interface SubResource { id?: string; } +// @public +export interface SubscriptionNetworkManagerConnections { + createOrUpdate(networkManagerConnectionName: string, parameters: NetworkManagerConnection, options?: SubscriptionNetworkManagerConnectionsCreateOrUpdateOptionalParams): Promise; + delete(networkManagerConnectionName: string, options?: SubscriptionNetworkManagerConnectionsDeleteOptionalParams): Promise; + get(networkManagerConnectionName: string, options?: SubscriptionNetworkManagerConnectionsGetOptionalParams): Promise; + list(options?: SubscriptionNetworkManagerConnectionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SubscriptionNetworkManagerConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SubscriptionNetworkManagerConnectionsCreateOrUpdateResponse = NetworkManagerConnection; + +// @public +export interface SubscriptionNetworkManagerConnectionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface SubscriptionNetworkManagerConnectionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SubscriptionNetworkManagerConnectionsGetResponse = NetworkManagerConnection; + +// @public +export interface SubscriptionNetworkManagerConnectionsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SubscriptionNetworkManagerConnectionsListNextResponse = NetworkManagerConnectionListResult; + +// @public +export interface SubscriptionNetworkManagerConnectionsListOptionalParams extends coreClient.OperationOptions { + skipToken?: string; + top?: number; +} + +// @public +export type SubscriptionNetworkManagerConnectionsListResponse = NetworkManagerConnectionListResult; + // @public export interface SupportedSecurityProvidersOptionalParams extends coreClient.OperationOptions { } @@ -10741,9 +12575,38 @@ export interface SupportedSecurityProvidersOptionalParams extends coreClient.Ope // @public export type SupportedSecurityProvidersResponse = VirtualWanSecurityProviders; +// @public +export interface SwapResource { + readonly id?: string; + readonly name?: string; + properties?: SwapResourceProperties; + readonly type?: string; +} + +// @public +export interface SwapResourceListResult { + // (undocumented) + value?: SwapResource[]; +} + +// @public +export interface SwapResourceProperties { + slotType?: SlotType; +} + // @public export type SyncRemoteAddressSpace = string; +// @public +export interface SystemData { + createdAt?: Date; + createdBy?: string; + createdByType?: CreatedByType; + lastModifiedAt?: Date; + lastModifiedBy?: string; + lastModifiedByType?: CreatedByType; +} + // @public export interface TagsObject { tags?: { @@ -10896,6 +12759,9 @@ export interface UsagesListResult { // @public export type UsageUnit = string; +// @public +export type UseHubGateway = string; + // @public export type VerbosityLevel = string; @@ -10917,6 +12783,34 @@ export interface VerificationIPFlowResult { ruleName?: string; } +// @public +export interface VipSwap { + beginCreate(groupName: string, resourceName: string, parameters: SwapResource, options?: VipSwapCreateOptionalParams): Promise, void>>; + beginCreateAndWait(groupName: string, resourceName: string, parameters: SwapResource, options?: VipSwapCreateOptionalParams): Promise; + get(groupName: string, resourceName: string, options?: VipSwapGetOptionalParams): Promise; + list(groupName: string, resourceName: string, options?: VipSwapListOptionalParams): Promise; +} + +// @public +export interface VipSwapCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface VipSwapGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VipSwapGetResponse = SwapResource; + +// @public +export interface VipSwapListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VipSwapListResponse = SwapResourceListResult; + // @public export interface VirtualApplianceNicProperties { readonly name?: string; @@ -11022,11 +12916,13 @@ export interface VirtualHub extends Resource { readonly bgpConnections?: SubResource[]; readonly etag?: string; expressRouteGateway?: SubResource; + hubRoutingPreference?: HubRoutingPreference; readonly ipConfigurations?: SubResource[]; readonly kind?: string; p2SVpnGateway?: SubResource; preferredRoutingGateway?: PreferredRoutingGateway; readonly provisioningState?: ProvisioningState; + readonly routeMaps?: SubResource[]; routeTable?: VirtualHubRouteTable; readonly routingState?: RoutingState; securityPartnerProvider?: SubResource; @@ -11034,6 +12930,7 @@ export interface VirtualHub extends Resource { sku?: string; virtualHubRouteTableV2S?: VirtualHubRouteTableV2[]; virtualRouterAsn?: number; + virtualRouterAutoScaleConfiguration?: VirtualRouterAutoScaleConfiguration; virtualRouterIps?: string[]; virtualWan?: SubResource; vpnGateway?: SubResource; @@ -11258,6 +13155,10 @@ export interface VirtualHubs { beginDeleteAndWait(resourceGroupName: string, virtualHubName: string, options?: VirtualHubsDeleteOptionalParams): Promise; beginGetEffectiveVirtualHubRoutes(resourceGroupName: string, virtualHubName: string, options?: VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams): Promise, void>>; beginGetEffectiveVirtualHubRoutesAndWait(resourceGroupName: string, virtualHubName: string, options?: VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams): Promise; + beginGetInboundRoutes(resourceGroupName: string, virtualHubName: string, getInboundRoutesParameters: GetInboundRoutesParameters, options?: VirtualHubsGetInboundRoutesOptionalParams): Promise, void>>; + beginGetInboundRoutesAndWait(resourceGroupName: string, virtualHubName: string, getInboundRoutesParameters: GetInboundRoutesParameters, options?: VirtualHubsGetInboundRoutesOptionalParams): Promise; + beginGetOutboundRoutes(resourceGroupName: string, virtualHubName: string, getOutboundRoutesParameters: GetOutboundRoutesParameters, options?: VirtualHubsGetOutboundRoutesOptionalParams): Promise, void>>; + beginGetOutboundRoutesAndWait(resourceGroupName: string, virtualHubName: string, getOutboundRoutesParameters: GetOutboundRoutesParameters, options?: VirtualHubsGetOutboundRoutesOptionalParams): Promise; get(resourceGroupName: string, virtualHubName: string, options?: VirtualHubsGetOptionalParams): Promise; list(options?: VirtualHubsListOptionalParams): PagedAsyncIterableIterator; listByResourceGroup(resourceGroupName: string, options?: VirtualHubsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; @@ -11286,10 +13187,22 @@ export interface VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams extends c updateIntervalInMs?: number; } +// @public +export interface VirtualHubsGetInboundRoutesOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + // @public export interface VirtualHubsGetOptionalParams extends coreClient.OperationOptions { } +// @public +export interface VirtualHubsGetOutboundRoutesOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + // @public export type VirtualHubsGetResponse = VirtualHub; @@ -11358,6 +13271,12 @@ export interface VirtualNetworkConnectionGatewayReference { id: string; } +// @public +export interface VirtualNetworkDdosProtectionStatusResult { + nextLink?: string; + value?: PublicIpDdosProtectionStatusResult[]; +} + // @public export interface VirtualNetworkEncryption { enabled: boolean; @@ -11370,6 +13289,8 @@ export type VirtualNetworkEncryptionEnforcement = string; // @public export interface VirtualNetworkGateway extends Resource { active?: boolean; + allowRemoteVnetTraffic?: boolean; + allowVirtualWanTraffic?: boolean; bgpSettings?: BgpSettings; customRoutes?: AddressSpace; disableIPSecReplayProtection?: boolean; @@ -11387,6 +13308,7 @@ export interface VirtualNetworkGateway extends Resource { readonly provisioningState?: ProvisioningState; readonly resourceGuid?: string; sku?: VirtualNetworkGatewaySku; + virtualNetworkGatewayPolicyGroups?: VirtualNetworkGatewayPolicyGroup[]; vNetExtendedLocationResourceId?: string; vpnClientConfiguration?: VpnClientConfiguration; vpnGatewayGeneration?: VpnGatewayGeneration; @@ -11404,8 +13326,10 @@ export interface VirtualNetworkGatewayConnection extends Resource { readonly egressBytesTransferred?: number; egressNatRules?: SubResource[]; enableBgp?: boolean; + enablePrivateLinkFastPath?: boolean; readonly etag?: string; expressRouteGatewayBypass?: boolean; + gatewayCustomBgpIpAddresses?: GatewayCustomBgpIpAddressIpConfiguration[]; readonly ingressBytesTransferred?: number; ingressNatRules?: SubResource[]; ipsecPolicies?: IpsecPolicy[]; @@ -11432,8 +13356,10 @@ export interface VirtualNetworkGatewayConnectionListEntity extends Resource { connectionType: VirtualNetworkGatewayConnectionType; readonly egressBytesTransferred?: number; enableBgp?: boolean; + enablePrivateLinkFastPath?: boolean; readonly etag?: string; expressRouteGatewayBypass?: boolean; + gatewayCustomBgpIpAddresses?: GatewayCustomBgpIpAddressIpConfiguration[]; readonly ingressBytesTransferred?: number; ipsecPolicies?: IpsecPolicy[]; localNetworkGateway2?: VirtualNetworkConnectionGatewayReference; @@ -11684,6 +13610,24 @@ export interface VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayOptiona // @public export type VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayResponse = ListVirtualNetworkGatewayNatRulesResult; +// @public +export interface VirtualNetworkGatewayPolicyGroup extends SubResource { + readonly etag?: string; + isDefault?: boolean; + name?: string; + policyMembers?: VirtualNetworkGatewayPolicyGroupMember[]; + priority?: number; + readonly provisioningState?: ProvisioningState; + readonly vngClientConnectionConfigurations?: SubResource[]; +} + +// @public +export interface VirtualNetworkGatewayPolicyGroupMember { + attributeType?: VpnPolicyMemberAttributeType; + attributeValue?: string; + name?: string; +} + // @public export interface VirtualNetworkGateways { beginCreateOrUpdate(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: VirtualNetworkGateway, options?: VirtualNetworkGatewaysCreateOrUpdateOptionalParams): Promise, VirtualNetworkGatewaysCreateOrUpdateResponse>>; @@ -12057,6 +14001,7 @@ export interface VirtualNetworks { beginCreateOrUpdateAndWait(resourceGroupName: string, virtualNetworkName: string, parameters: VirtualNetwork, options?: VirtualNetworksCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, virtualNetworkName: string, options?: VirtualNetworksDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, virtualNetworkName: string, options?: VirtualNetworksDeleteOptionalParams): Promise; + beginListDdosProtectionStatusAndWait(resourceGroupName: string, virtualNetworkName: string, options?: VirtualNetworksListDdosProtectionStatusOptionalParams): PagedAsyncIterableIterator; checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, ipAddress: string, options?: VirtualNetworksCheckIPAddressAvailabilityOptionalParams): Promise; get(resourceGroupName: string, virtualNetworkName: string, options?: VirtualNetworksGetOptionalParams): Promise; list(resourceGroupName: string, options?: VirtualNetworksListOptionalParams): PagedAsyncIterableIterator; @@ -12109,6 +14054,24 @@ export interface VirtualNetworksListAllOptionalParams extends coreClient.Operati // @public export type VirtualNetworksListAllResponse = VirtualNetworkListResult; +// @public +export interface VirtualNetworksListDdosProtectionStatusNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VirtualNetworksListDdosProtectionStatusNextResponse = VirtualNetworkDdosProtectionStatusResult; + +// @public +export interface VirtualNetworksListDdosProtectionStatusOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + skipToken?: string; + top?: number; + updateIntervalInMs?: number; +} + +// @public +export type VirtualNetworksListDdosProtectionStatusResponse = VirtualNetworkDdosProtectionStatusResult; + // @public export interface VirtualNetworksListNextOptionalParams extends coreClient.OperationOptions { } @@ -12256,6 +14219,11 @@ export interface VirtualRouter extends Resource { virtualRouterIps?: string[]; } +// @public +export interface VirtualRouterAutoScaleConfiguration { + minCapacity?: number; +} + // @public export interface VirtualRouterListResult { nextLink?: string; @@ -12493,10 +14461,23 @@ export interface VirtualWanVpnProfileParameters { export interface Vm extends Resource { } +// @public +export type VnetLocalRouteOverrideCriteria = string; + // @public export interface VnetRoute { readonly bgpConnections?: SubResource[]; staticRoutes?: StaticRoute[]; + staticRoutesConfig?: StaticRoutesConfig; +} + +// @public +export interface VngClientConnectionConfiguration extends SubResource { + readonly etag?: string; + name?: string; + readonly provisioningState?: ProvisioningState; + virtualNetworkGatewayPolicyGroups?: SubResource[]; + vpnClientAddressPool?: AddressSpace; } // @public @@ -12510,6 +14491,7 @@ export interface VpnClientConfiguration { radiusServerAddress?: string; radiusServers?: RadiusServer[]; radiusServerSecret?: string; + vngClientConnectionConfigurations?: VngClientConnectionConfiguration[]; vpnAuthenticationTypes?: VpnAuthenticationType[]; vpnClientAddressPool?: AddressSpace; vpnClientIpsecPolicies?: IpsecPolicy[]; @@ -12947,6 +14929,9 @@ export interface VpnPacketCaptureStopParameters { sasUrl?: string; } +// @public +export type VpnPolicyMemberAttributeType = string; + // @public export interface VpnProfileResponse { profileUrl?: string; @@ -12967,6 +14952,7 @@ export interface VpnServerConfigRadiusServerRootCertificate { // @public export interface VpnServerConfiguration extends Resource { aadAuthenticationParameters?: AadAuthenticationParameters; + configurationPolicyGroups?: VpnServerConfigurationPolicyGroup[]; readonly etag?: string; readonly etagPropertiesEtag?: string; namePropertiesName?: string; @@ -12984,6 +14970,25 @@ export interface VpnServerConfiguration extends Resource { vpnProtocols?: VpnGatewayTunnelingProtocol[]; } +// @public +export interface VpnServerConfigurationPolicyGroup extends SubResource { + readonly etag?: string; + isDefault?: boolean; + name?: string; + readonly p2SConnectionConfigurations?: SubResource[]; + policyMembers?: VpnServerConfigurationPolicyGroupMember[]; + priority?: number; + readonly provisioningState?: ProvisioningState; + readonly type?: string; +} + +// @public +export interface VpnServerConfigurationPolicyGroupMember { + attributeType?: VpnPolicyMemberAttributeType; + attributeValue?: string; + name?: string; +} + // @public export interface VpnServerConfigurations { beginCreateOrUpdate(resourceGroupName: string, vpnServerConfigurationName: string, vpnServerConfigurationParameters: VpnServerConfiguration, options?: VpnServerConfigurationsCreateOrUpdateOptionalParams): Promise, VpnServerConfigurationsCreateOrUpdateResponse>>; @@ -13137,6 +15142,7 @@ export interface VpnSiteLinkConnection extends SubResource { useLocalAzureIpAddress?: boolean; usePolicyBasedTrafficSelectors?: boolean; vpnConnectionProtocolType?: VirtualNetworkGatewayConnectionProtocol; + vpnGatewayCustomBgpAddresses?: GatewayCustomBgpIpAddressIpConfiguration[]; vpnLinkConnectionMode?: VpnLinkConnectionMode; vpnSiteLink?: SubResource; } diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRuleCollectionsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRuleCollectionsCreateOrUpdateSample.ts new file mode 100644 index 0000000000..e571e05e5e --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRuleCollectionsCreateOrUpdateSample.ts @@ -0,0 +1,58 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + AdminRuleCollection, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates an admin rule collection. + * + * @summary Creates or updates an admin rule collection. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerAdminRuleCollectionPut.json + */ +async function createOrUpdateAnAdminRuleCollection() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const configurationName = "myTestSecurityConfig"; + const ruleCollectionName = "testRuleCollection"; + const ruleCollection: AdminRuleCollection = { + description: "A sample policy", + appliesToGroups: [ + { + networkGroupId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" + } + ] + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.adminRuleCollections.createOrUpdate( + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName, + ruleCollection + ); + console.log(result); +} + +async function main() { + createOrUpdateAnAdminRuleCollection(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRuleCollectionsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRuleCollectionsDeleteSample.ts new file mode 100644 index 0000000000..b71be310e3 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRuleCollectionsDeleteSample.ts @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + AdminRuleCollectionsDeleteOptionalParams, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes an admin rule collection. + * + * @summary Deletes an admin rule collection. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerAdminRuleCollectionDelete.json + */ +async function deletesAnAdminRuleCollection() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const configurationName = "myTestSecurityConfig"; + const ruleCollectionName = "testRuleCollection"; + const force = false; + const options: AdminRuleCollectionsDeleteOptionalParams = { force }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.adminRuleCollections.beginDeleteAndWait( + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName, + options + ); + console.log(result); +} + +async function main() { + deletesAnAdminRuleCollection(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRuleCollectionsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRuleCollectionsGetSample.ts new file mode 100644 index 0000000000..eb09550228 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRuleCollectionsGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a network manager security admin configuration rule collection. + * + * @summary Gets a network manager security admin configuration rule collection. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerAdminRuleCollectionGet.json + */ +async function getsSecurityAdminRuleCollection() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const configurationName = "myTestSecurityConfig"; + const ruleCollectionName = "testRuleCollection"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.adminRuleCollections.get( + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName + ); + console.log(result); +} + +async function main() { + getsSecurityAdminRuleCollection(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRuleCollectionsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRuleCollectionsListSample.ts new file mode 100644 index 0000000000..8607750794 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRuleCollectionsListSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists all the rule collections in a security admin configuration, in a paginated format. + * + * @summary Lists all the rule collections in a security admin configuration, in a paginated format. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerAdminRuleCollectionList.json + */ +async function listSecurityAdminRuleCollections() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const configurationName = "myTestSecurityConfig"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.adminRuleCollections.list( + resourceGroupName, + networkManagerName, + configurationName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listSecurityAdminRuleCollections(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRulesCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRulesCreateOrUpdateSample.ts new file mode 100644 index 0000000000..9c8aed53a2 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRulesCreateOrUpdateSample.ts @@ -0,0 +1,96 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + DefaultAdminRule, + AdminRule, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates an admin rule. + * + * @summary Creates or updates an admin rule. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerDefaultAdminRulePut.json + */ +async function createADefaultAdminRule() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const configurationName = "myTestSecurityConfig"; + const ruleCollectionName = "testRuleCollection"; + const ruleName = "SampleDefaultAdminRule"; + const adminRule: DefaultAdminRule = { + flag: "AllowVnetInbound", + kind: "Default" + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.adminRules.createOrUpdate( + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName, + ruleName, + adminRule + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates an admin rule. + * + * @summary Creates or updates an admin rule. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerAdminRulePut.json + */ +async function createAnAdminRule() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const configurationName = "myTestSecurityConfig"; + const ruleCollectionName = "testRuleCollection"; + const ruleName = "SampleAdminRule"; + const adminRule: AdminRule = { + description: "This is Sample Admin Rule", + access: "Deny", + destinationPortRanges: ["22"], + destinations: [{ addressPrefix: "*", addressPrefixType: "IPPrefix" }], + direction: "Inbound", + kind: "Custom", + priority: 1, + sourcePortRanges: ["0-65535"], + sources: [{ addressPrefix: "Internet", addressPrefixType: "ServiceTag" }], + protocol: "Tcp" + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.adminRules.createOrUpdate( + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName, + ruleName, + adminRule + ); + console.log(result); +} + +async function main() { + createADefaultAdminRule(); + createAnAdminRule(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRulesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRulesDeleteSample.ts new file mode 100644 index 0000000000..5733fed466 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRulesDeleteSample.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + AdminRulesDeleteOptionalParams, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes an admin rule. + * + * @summary Deletes an admin rule. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerAdminRuleDelete.json + */ +async function deletesAnAdminRule() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const configurationName = "myTestSecurityConfig"; + const ruleCollectionName = "testRuleCollection"; + const ruleName = "SampleAdminRule"; + const force = false; + const options: AdminRulesDeleteOptionalParams = { force }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.adminRules.beginDeleteAndWait( + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName, + ruleName, + options + ); + console.log(result); +} + +async function main() { + deletesAnAdminRule(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRulesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRulesGetSample.ts new file mode 100644 index 0000000000..a8a1db114b --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRulesGetSample.ts @@ -0,0 +1,74 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a network manager security configuration admin rule. + * + * @summary Gets a network manager security configuration admin rule. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerAdminRuleGet.json + */ +async function getsSecurityAdminRule() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const configurationName = "myTestSecurityConfig"; + const ruleCollectionName = "testRuleCollection"; + const ruleName = "SampleAdminRule"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.adminRules.get( + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName, + ruleName + ); + console.log(result); +} + +/** + * This sample demonstrates how to Gets a network manager security configuration admin rule. + * + * @summary Gets a network manager security configuration admin rule. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerDefaultAdminRuleGet.json + */ +async function getsSecurityDefaultAdminRule() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const configurationName = "myTestSecurityConfig"; + const ruleCollectionName = "testRuleCollection"; + const ruleName = "SampleDefaultAdminRule"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.adminRules.get( + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName, + ruleName + ); + console.log(result); +} + +async function main() { + getsSecurityAdminRule(); + getsSecurityDefaultAdminRule(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRulesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRulesListSample.ts new file mode 100644 index 0000000000..89336382c3 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/adminRulesListSample.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List all network manager security configuration admin rules. + * + * @summary List all network manager security configuration admin rules. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerAdminRuleList.json + */ +async function listSecurityAdminRules() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const configurationName = "myTestSecurityConfig"; + const ruleCollectionName = "testRuleCollection"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.adminRules.list( + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listSecurityAdminRules(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayPrivateEndpointConnectionsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayPrivateEndpointConnectionsDeleteSample.ts index 2f265b6fe2..5254ad1d32 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayPrivateEndpointConnectionsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayPrivateEndpointConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified private endpoint connection on application gateway. * * @summary Deletes the specified private endpoint connection on application gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationGatewayPrivateEndpointConnectionDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationGatewayPrivateEndpointConnectionDelete.json */ async function deleteApplicationGatewayPrivateEndpointConnection() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayPrivateEndpointConnectionsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayPrivateEndpointConnectionsGetSample.ts index 3c99ea711f..d4706c76f7 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayPrivateEndpointConnectionsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayPrivateEndpointConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified private endpoint connection on application gateway. * * @summary Gets the specified private endpoint connection on application gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json */ async function getApplicationGatewayPrivateEndpointConnection() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayPrivateEndpointConnectionsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayPrivateEndpointConnectionsListSample.ts index b8cc68e856..47f3afdce2 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayPrivateEndpointConnectionsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayPrivateEndpointConnectionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all private endpoint connections on an application gateway. * * @summary Lists all private endpoint connections on an application gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationGatewayPrivateEndpointConnectionList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationGatewayPrivateEndpointConnectionList.json */ async function listsAllPrivateEndpointConnectionsOnApplicationGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayPrivateEndpointConnectionsUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayPrivateEndpointConnectionsUpdateSample.ts index 3b099f727a..5a3391bc4b 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayPrivateEndpointConnectionsUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayPrivateEndpointConnectionsUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the specified private endpoint connection on application gateway. * * @summary Updates the specified private endpoint connection on application gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationGatewayPrivateEndpointConnectionUpdate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationGatewayPrivateEndpointConnectionUpdate.json */ async function updateApplicationGatewayPrivateEndpointConnection() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayPrivateLinkResourcesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayPrivateLinkResourcesListSample.ts index 71d3396831..32f6070b5f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayPrivateLinkResourcesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayPrivateLinkResourcesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all private link resources on an application gateway. * * @summary Lists all private link resources on an application gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationGatewayPrivateLinkResourceList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationGatewayPrivateLinkResourceList.json */ async function listsAllPrivateLinkResourcesOnApplicationGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayWafDynamicManifestsDefaultGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayWafDynamicManifestsDefaultGetSample.ts new file mode 100644 index 0000000000..c15dd37c53 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayWafDynamicManifestsDefaultGetSample.ts @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the regional application gateway waf manifest. + * + * @summary Gets the regional application gateway waf manifest. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json + */ +async function getsWafDefaultManifest() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const location = "westus"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.applicationGatewayWafDynamicManifestsDefault.get( + location + ); + console.log(result); +} + +async function main() { + getsWafDefaultManifest(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayWafDynamicManifestsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayWafDynamicManifestsGetSample.ts new file mode 100644 index 0000000000..d323d87d75 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewayWafDynamicManifestsGetSample.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the regional application gateway waf manifest. + * + * @summary Gets the regional application gateway waf manifest. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/GetApplicationGatewayWafDynamicManifests.json + */ +async function getsWafManifests() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const location = "westus"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.applicationGatewayWafDynamicManifests.list( + location + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + getsWafManifests(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysBackendHealthOnDemandSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysBackendHealthOnDemandSample.ts index 0b047b309f..5b825dc4bb 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysBackendHealthOnDemandSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysBackendHealthOnDemandSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group. * * @summary Gets the backend health for given combination of backend pool and http setting of the specified application gateway in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationGatewayBackendHealthTest.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationGatewayBackendHealthTest.json */ async function testBackendHealth() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysBackendHealthSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysBackendHealthSample.ts index 4e218c9518..a71ba6bf29 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysBackendHealthSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysBackendHealthSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the backend health of the specified application gateway in a resource group. * * @summary Gets the backend health of the specified application gateway in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationGatewayBackendHealthGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationGatewayBackendHealthGet.json */ async function getBackendHealth() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysCreateOrUpdateSample.ts index a7c4eca4ab..298ad8c001 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the specified application gateway. * * @summary Creates or updates the specified application gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationGatewayCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationGatewayCreate.json */ async function createApplicationGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysDeleteSample.ts index 85d0bb7cbc..22c03c814f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified application gateway. * * @summary Deletes the specified application gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationGatewayDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationGatewayDelete.json */ async function deleteApplicationGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysGetSample.ts index 2f52e9e696..552bff8340 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified application gateway. * * @summary Gets the specified application gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationGatewayGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationGatewayGet.json */ async function getApplicationGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysGetSslPredefinedPolicySample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysGetSslPredefinedPolicySample.ts index de168d0844..52e843c135 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysGetSslPredefinedPolicySample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysGetSslPredefinedPolicySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets Ssl predefined policy with the specified policy name. * * @summary Gets Ssl predefined policy with the specified policy name. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json */ async function getAvailableSslPredefinedPolicyByName() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAllSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAllSample.ts index 3bba8b4f2a..845e577ab4 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAllSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAllSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the application gateways in a subscription. * * @summary Gets all the application gateways in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationGatewayListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationGatewayListAll.json */ async function listsAllApplicationGatewaysInASubscription() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableRequestHeadersSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableRequestHeadersSample.ts index 97763f1eeb..1c5b146e97 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableRequestHeadersSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableRequestHeadersSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all available request headers. * * @summary Lists all available request headers. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationGatewayAvailableRequestHeadersGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationGatewayAvailableRequestHeadersGet.json */ async function getAvailableRequestHeaders() { const subscriptionId = diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableResponseHeadersSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableResponseHeadersSample.ts index 09ebf1e304..7e611906cd 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableResponseHeadersSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableResponseHeadersSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all available response headers. * * @summary Lists all available response headers. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationGatewayAvailableResponseHeadersGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationGatewayAvailableResponseHeadersGet.json */ async function getAvailableResponseHeaders() { const subscriptionId = diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableServerVariablesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableServerVariablesSample.ts index 40ca890707..179ddce463 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableServerVariablesSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableServerVariablesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all available server variables. * * @summary Lists all available server variables. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationGatewayAvailableServerVariablesGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationGatewayAvailableServerVariablesGet.json */ async function getAvailableServerVariables() { const subscriptionId = diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableSslOptionsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableSslOptionsSample.ts index a24335fcf7..6c8db59047 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableSslOptionsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableSslOptionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists available Ssl options for configuring Ssl policy. * * @summary Lists available Ssl options for configuring Ssl policy. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationGatewayAvailableSslOptionsGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationGatewayAvailableSslOptionsGet.json */ async function getAvailableSslOptions() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableSslPredefinedPoliciesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableSslPredefinedPoliciesSample.ts index de54c91719..9a383a22c3 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableSslPredefinedPoliciesSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableSslPredefinedPoliciesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all SSL predefined policies for configuring Ssl policy. * * @summary Lists all SSL predefined policies for configuring Ssl policy. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json */ async function getAvailableSslPredefinedPolicies() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableWafRuleSetsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableWafRuleSetsSample.ts index 7515a968fb..30e9e96a67 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableWafRuleSetsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListAvailableWafRuleSetsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all available web application firewall rule sets. * * @summary Lists all available web application firewall rule sets. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationGatewayAvailableWafRuleSetsGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationGatewayAvailableWafRuleSetsGet.json */ async function getAvailableWafRuleSets() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListSample.ts index 8c21db534f..95732d1be2 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all application gateways in a resource group. * * @summary Lists all application gateways in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationGatewayList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationGatewayList.json */ async function listsAllApplicationGatewaysInAResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysStartSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysStartSample.ts index 04c1b3c64d..ef47ab8e5c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysStartSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysStartSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Starts the specified application gateway. * * @summary Starts the specified application gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationGatewayStart.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationGatewayStart.json */ async function startApplicationGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysStopSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysStopSample.ts index 5590b8a021..946ed06d47 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysStopSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysStopSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Stops the specified application gateway in a resource group. * * @summary Stops the specified application gateway in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationGatewayStop.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationGatewayStop.json */ async function stopApplicationGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysUpdateTagsSample.ts index 3eaf5e63b7..98aea74395 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationGatewaysUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the specified application gateway tags. * * @summary Updates the specified application gateway tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationGatewayUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationGatewayUpdateTags.json */ async function updateApplicationGatewayTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsCreateOrUpdateSample.ts index 468b2aeddc..d8dd702ddb 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an application security group. * * @summary Creates or updates an application security group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationSecurityGroupCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationSecurityGroupCreate.json */ async function createApplicationSecurityGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsDeleteSample.ts index da5e7574f8..5a1e199be2 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified application security group. * * @summary Deletes the specified application security group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationSecurityGroupDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationSecurityGroupDelete.json */ async function deleteApplicationSecurityGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsGetSample.ts index fd049bc144..8402977bab 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified application security group. * * @summary Gets information about the specified application security group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationSecurityGroupGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationSecurityGroupGet.json */ async function getApplicationSecurityGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsListAllSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsListAllSample.ts index 7bc1cd9785..30bafb60fc 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsListAllSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsListAllSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all application security groups in a subscription. * * @summary Gets all application security groups in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationSecurityGroupListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationSecurityGroupListAll.json */ async function listAllApplicationSecurityGroups() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsListSample.ts index 43e3b3a39b..ce82286295 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the application security groups in a resource group. * * @summary Gets all the application security groups in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationSecurityGroupList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationSecurityGroupList.json */ async function listLoadBalancersInResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsUpdateTagsSample.ts index ceea49b503..b35e2a010b 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/applicationSecurityGroupsUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates an application security group's tags. * * @summary Updates an application security group's tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ApplicationSecurityGroupUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ApplicationSecurityGroupUpdateTags.json */ async function updateApplicationSecurityGroupTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availableDelegationsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availableDelegationsListSample.ts index 042d1a5cd3..12bd0fe025 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availableDelegationsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availableDelegationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all of the available subnet delegations for this subscription in this region. * * @summary Gets all of the available subnet delegations for this subscription in this region. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AvailableDelegationsSubscriptionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AvailableDelegationsSubscriptionGet.json */ async function getAvailableDelegations() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availableEndpointServicesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availableEndpointServicesListSample.ts index 9d42ce51db..e93d748f5a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availableEndpointServicesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availableEndpointServicesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List what values of endpoint services are available for use. * * @summary List what values of endpoint services are available for use. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/EndpointServicesList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/EndpointServicesList.json */ async function endpointServicesList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availablePrivateEndpointTypesListByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availablePrivateEndpointTypesListByResourceGroupSample.ts index 2bb2d56cdd..b58dc90c7d 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availablePrivateEndpointTypesListByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availablePrivateEndpointTypesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. * * @summary Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AvailablePrivateEndpointTypesResourceGroupGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AvailablePrivateEndpointTypesResourceGroupGet.json */ async function getAvailablePrivateEndpointTypesInTheResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availablePrivateEndpointTypesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availablePrivateEndpointTypesListSample.ts index 79c0ceb071..5fd41cde33 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availablePrivateEndpointTypesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availablePrivateEndpointTypesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. * * @summary Returns all of the resource types that can be linked to a Private Endpoint in this subscription in this region. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AvailablePrivateEndpointTypesGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AvailablePrivateEndpointTypesGet.json */ async function getAvailablePrivateEndpointTypes() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availableResourceGroupDelegationsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availableResourceGroupDelegationsListSample.ts index 96711813cf..9b77fdecd5 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availableResourceGroupDelegationsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availableResourceGroupDelegationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all of the available subnet delegations for this resource group in this region. * * @summary Gets all of the available subnet delegations for this resource group in this region. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AvailableDelegationsResourceGroupGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AvailableDelegationsResourceGroupGet.json */ async function getAvailableDelegationsInTheResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availableServiceAliasesListByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availableServiceAliasesListByResourceGroupSample.ts index 26f7377cf0..7d7880e90f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availableServiceAliasesListByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availableServiceAliasesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all available service aliases for this resource group in this region. * * @summary Gets all available service aliases for this resource group in this region. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AvailableServiceAliasesListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AvailableServiceAliasesListByResourceGroup.json */ async function getAvailableServiceAliasesInTheResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availableServiceAliasesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availableServiceAliasesListSample.ts index 86628609d2..714661bc16 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availableServiceAliasesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/availableServiceAliasesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all available service aliases for this subscription in this region. * * @summary Gets all available service aliases for this subscription in this region. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AvailableServiceAliasesList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AvailableServiceAliasesList.json */ async function getAvailableServiceAliases() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallFqdnTagsListAllSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallFqdnTagsListAllSample.ts index 8b82662326..ee768da305 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallFqdnTagsListAllSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallFqdnTagsListAllSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the Azure Firewall FQDN Tags in a subscription. * * @summary Gets all the Azure Firewall FQDN Tags in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AzureFirewallFqdnTagsListBySubscription.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AzureFirewallFqdnTagsListBySubscription.json */ async function listAllAzureFirewallFqdnTagsForAGivenSubscription() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsCreateOrUpdateSample.ts index 9ba9129d02..af42f60787 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the specified Azure Firewall. * * @summary Creates or updates the specified Azure Firewall. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AzureFirewallPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AzureFirewallPut.json */ async function createAzureFirewall() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -135,7 +135,7 @@ async function createAzureFirewall() { * This sample demonstrates how to Creates or updates the specified Azure Firewall. * * @summary Creates or updates the specified Azure Firewall. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AzureFirewallPutWithAdditionalProperties.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AzureFirewallPutWithAdditionalProperties.json */ async function createAzureFirewallWithAdditionalProperties() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -251,7 +251,7 @@ async function createAzureFirewallWithAdditionalProperties() { * This sample demonstrates how to Creates or updates the specified Azure Firewall. * * @summary Creates or updates the specified Azure Firewall. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AzureFirewallPutWithIpGroups.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AzureFirewallPutWithIpGroups.json */ async function createAzureFirewallWithIPGroups() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -365,7 +365,7 @@ async function createAzureFirewallWithIPGroups() { * This sample demonstrates how to Creates or updates the specified Azure Firewall. * * @summary Creates or updates the specified Azure Firewall. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AzureFirewallPutWithZones.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AzureFirewallPutWithZones.json */ async function createAzureFirewallWithZones() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -479,7 +479,7 @@ async function createAzureFirewallWithZones() { * This sample demonstrates how to Creates or updates the specified Azure Firewall. * * @summary Creates or updates the specified Azure Firewall. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AzureFirewallPutWithMgmtSubnet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AzureFirewallPutWithMgmtSubnet.json */ async function createAzureFirewallWithManagementSubnet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -604,7 +604,7 @@ async function createAzureFirewallWithManagementSubnet() { * This sample demonstrates how to Creates or updates the specified Azure Firewall. * * @summary Creates or updates the specified Azure Firewall. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AzureFirewallPutInHub.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AzureFirewallPutInHub.json */ async function createAzureFirewallInVirtualHub() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsDeleteSample.ts index 5d12a054fe..7508172bb0 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Azure Firewall. * * @summary Deletes the specified Azure Firewall. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AzureFirewallDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AzureFirewallDelete.json */ async function deleteAzureFirewall() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsGetSample.ts index 49a560d4bc..6a28c1c481 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified Azure Firewall. * * @summary Gets the specified Azure Firewall. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AzureFirewallGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AzureFirewallGet.json */ async function getAzureFirewall() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -37,7 +37,7 @@ async function getAzureFirewall() { * This sample demonstrates how to Gets the specified Azure Firewall. * * @summary Gets the specified Azure Firewall. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AzureFirewallGetWithAdditionalProperties.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AzureFirewallGetWithAdditionalProperties.json */ async function getAzureFirewallWithAdditionalProperties() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -56,7 +56,7 @@ async function getAzureFirewallWithAdditionalProperties() { * This sample demonstrates how to Gets the specified Azure Firewall. * * @summary Gets the specified Azure Firewall. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AzureFirewallGetWithIpGroups.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AzureFirewallGetWithIpGroups.json */ async function getAzureFirewallWithIPGroups() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -75,7 +75,7 @@ async function getAzureFirewallWithIPGroups() { * This sample demonstrates how to Gets the specified Azure Firewall. * * @summary Gets the specified Azure Firewall. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AzureFirewallGetWithZones.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AzureFirewallGetWithZones.json */ async function getAzureFirewallWithZones() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -94,7 +94,7 @@ async function getAzureFirewallWithZones() { * This sample demonstrates how to Gets the specified Azure Firewall. * * @summary Gets the specified Azure Firewall. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AzureFirewallGetWithMgmtSubnet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AzureFirewallGetWithMgmtSubnet.json */ async function getAzureFirewallWithManagementSubnet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsListAllSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsListAllSample.ts index 77109a7c16..c0ca7f1d07 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsListAllSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsListAllSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the Azure Firewalls in a subscription. * * @summary Gets all the Azure Firewalls in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AzureFirewallListBySubscription.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AzureFirewallListBySubscription.json */ async function listAllAzureFirewallsForAGivenSubscription() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsListLearnedPrefixesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsListLearnedPrefixesSample.ts new file mode 100644 index 0000000000..85c2270589 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsListLearnedPrefixesSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. + * + * @summary Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AzureFirewallListLearnedIPPrefixes.json + */ +async function azureFirewallListLearnedPrefixes() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const azureFirewallName = "azureFirewall1"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.azureFirewalls.beginListLearnedPrefixesAndWait( + resourceGroupName, + azureFirewallName + ); + console.log(result); +} + +async function main() { + azureFirewallListLearnedPrefixes(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsListSample.ts index 26389a2235..9f8de3ab73 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all Azure Firewalls in a resource group. * * @summary Lists all Azure Firewalls in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AzureFirewallListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AzureFirewallListByResourceGroup.json */ async function listAllAzureFirewallsForAGivenResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsUpdateTagsSample.ts index 45b5b0198d..039341a72e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/azureFirewallsUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates tags of an Azure Firewall resource. * * @summary Updates tags of an Azure Firewall resource. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AzureFirewallUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AzureFirewallUpdateTags.json */ async function updateAzureFirewallTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsCreateOrUpdateSample.ts index 4de8c19d41..42a7ae737e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the specified Bastion Host. * * @summary Creates or updates the specified Bastion Host. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/BastionHostPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/BastionHostPut.json */ async function createBastionHost() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsDeleteSample.ts index 092664eb2b..ec9b0bbf92 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Bastion Host. * * @summary Deletes the specified Bastion Host. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/BastionHostDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/BastionHostDelete.json */ async function deleteBastionHost() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsGetSample.ts index acb5304aa7..1a29ed9bc1 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified Bastion Host. * * @summary Gets the specified Bastion Host. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/BastionHostGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/BastionHostGet.json */ async function getBastionHost() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsListByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsListByResourceGroupSample.ts index 68ad7c834c..75f092520c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsListByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all Bastion Hosts in a resource group. * * @summary Lists all Bastion Hosts in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/BastionHostListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/BastionHostListByResourceGroup.json */ async function listAllBastionHostsForAGivenResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsListSample.ts index 4cc57e9eb0..1857195248 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all Bastion Hosts in a subscription. * * @summary Lists all Bastion Hosts in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/BastionHostListBySubscription.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/BastionHostListBySubscription.json */ async function listAllBastionHostsForAGivenSubscription() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsUpdateTagsSample.ts index 6bc1a037f8..ad9c7c5533 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bastionHostsUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates Tags for BastionHost resource * * @summary Updates Tags for BastionHost resource - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/BastionHostPatch.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/BastionHostPatch.json */ async function patchBastionHost() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bgpServiceCommunitiesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bgpServiceCommunitiesListSample.ts index b8c6581b44..b7d0d129a3 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bgpServiceCommunitiesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/bgpServiceCommunitiesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the available bgp service communities. * * @summary Gets all the available bgp service communities. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ServiceCommunityList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ServiceCommunityList.json */ async function serviceCommunityList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/checkDnsNameAvailabilitySample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/checkDnsNameAvailabilitySample.ts index 2392df8c43..6c9f4008b8 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/checkDnsNameAvailabilitySample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/checkDnsNameAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Checks whether a domain name in the cloudapp.azure.com zone is available for use. * * @summary Checks whether a domain name in the cloudapp.azure.com zone is available for use. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/CheckDnsNameAvailability.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/CheckDnsNameAvailability.json */ async function checkDnsNameAvailability() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/configurationPolicyGroupsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/configurationPolicyGroupsCreateOrUpdateSample.ts new file mode 100644 index 0000000000..15dc2a8093 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/configurationPolicyGroupsCreateOrUpdateSample.ts @@ -0,0 +1,62 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + VpnServerConfigurationPolicyGroup, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. + * + * @summary Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ConfigurationPolicyGroupPut.json + */ +async function configurationPolicyGroupPut() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const vpnServerConfigurationName = "vpnServerConfiguration1"; + const configurationPolicyGroupName = "policyGroup1"; + const vpnServerConfigurationPolicyGroupParameters: VpnServerConfigurationPolicyGroup = { + isDefault: true, + policyMembers: [ + { + name: "policy1", + attributeType: "RadiusAzureGroupId", + attributeValue: "6ad1bd08" + }, + { + name: "policy2", + attributeType: "CertificateGroupId", + attributeValue: "red.com" + } + ], + priority: 0 + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.configurationPolicyGroups.beginCreateOrUpdateAndWait( + resourceGroupName, + vpnServerConfigurationName, + configurationPolicyGroupName, + vpnServerConfigurationPolicyGroupParameters + ); + console.log(result); +} + +async function main() { + configurationPolicyGroupPut(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/configurationPolicyGroupsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/configurationPolicyGroupsDeleteSample.ts new file mode 100644 index 0000000000..67e923fcfb --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/configurationPolicyGroupsDeleteSample.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a ConfigurationPolicyGroup. + * + * @summary Deletes a ConfigurationPolicyGroup. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ConfigurationPolicyGroupDelete.json + */ +async function configurationPolicyGroupDelete() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const vpnServerConfigurationName = "vpnServerConfiguration1"; + const configurationPolicyGroupName = "policyGroup1"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.configurationPolicyGroups.beginDeleteAndWait( + resourceGroupName, + vpnServerConfigurationName, + configurationPolicyGroupName + ); + console.log(result); +} + +async function main() { + configurationPolicyGroupDelete(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/configurationPolicyGroupsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/configurationPolicyGroupsGetSample.ts new file mode 100644 index 0000000000..9d1dfdf02c --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/configurationPolicyGroupsGetSample.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Retrieves the details of a ConfigurationPolicyGroup. + * + * @summary Retrieves the details of a ConfigurationPolicyGroup. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ConfigurationPolicyGroupGet.json + */ +async function configurationPolicyGroupGet() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const vpnServerConfigurationName = "vpnServerConfiguration1"; + const configurationPolicyGroupName = "policyGroup1"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.configurationPolicyGroups.get( + resourceGroupName, + vpnServerConfigurationName, + configurationPolicyGroupName + ); + console.log(result); +} + +async function main() { + configurationPolicyGroupGet(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/configurationPolicyGroupsListByVpnServerConfigurationSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/configurationPolicyGroupsListByVpnServerConfigurationSample.ts new file mode 100644 index 0000000000..1cd1a42170 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/configurationPolicyGroupsListByVpnServerConfigurationSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists all the configurationPolicyGroups in a resource group for a vpnServerConfiguration. + * + * @summary Lists all the configurationPolicyGroups in a resource group for a vpnServerConfiguration. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ConfigurationPolicyGroupListByVpnServerConfiguration.json + */ +async function configurationPolicyGroupListByVpnServerConfiguration() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const vpnServerConfigurationName = "vpnServerConfiguration1"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.configurationPolicyGroups.listByVpnServerConfiguration( + resourceGroupName, + vpnServerConfigurationName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + configurationPolicyGroupListByVpnServerConfiguration(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsCreateOrUpdateSample.ts index dc513625c3..a46440a7ac 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a connection monitor. * * @summary Create or update a connection monitor. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherConnectionMonitorCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherConnectionMonitorCreate.json */ async function createConnectionMonitorV1() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -70,7 +70,7 @@ async function createConnectionMonitorV1() { * This sample demonstrates how to Create or update a connection monitor. * * @summary Create or update a connection monitor. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherConnectionMonitorV2Create.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherConnectionMonitorV2Create.json */ async function createConnectionMonitorV2() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsDeleteSample.ts index ac464ae6b0..9d76b0b261 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified connection monitor. * * @summary Deletes the specified connection monitor. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherConnectionMonitorDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherConnectionMonitorDelete.json */ async function deleteConnectionMonitor() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsGetSample.ts index 678fd42b89..abf478173d 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a connection monitor by name. * * @summary Gets a connection monitor by name. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherConnectionMonitorGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherConnectionMonitorGet.json */ async function getConnectionMonitor() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsListSample.ts index f1fe5c0a93..9108703288 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all connection monitors for the specified Network Watcher. * * @summary Lists all connection monitors for the specified Network Watcher. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherConnectionMonitorList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherConnectionMonitorList.json */ async function listConnectionMonitors() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsQuerySample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsQuerySample.ts index 802bc249c8..ee722a27fd 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsQuerySample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsQuerySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Query a snapshot of the most recent connection states. * * @summary Query a snapshot of the most recent connection states. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherConnectionMonitorQuery.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherConnectionMonitorQuery.json */ async function queryConnectionMonitor() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsStartSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsStartSample.ts index f18f6d5a74..85d2a86923 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsStartSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsStartSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Starts the specified connection monitor. * * @summary Starts the specified connection monitor. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherConnectionMonitorStart.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherConnectionMonitorStart.json */ async function startConnectionMonitor() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsStopSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsStopSample.ts index 0b7b036db0..21e456478a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsStopSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsStopSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Stops the specified connection monitor. * * @summary Stops the specified connection monitor. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherConnectionMonitorStop.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherConnectionMonitorStop.json */ async function stopConnectionMonitor() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsUpdateTagsSample.ts index 2b7961d490..91b4a4c7d0 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectionMonitorsUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update tags of the specified connection monitor. * * @summary Update tags of the specified connection monitor. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherConnectionMonitorUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherConnectionMonitorUpdateTags.json */ async function updateConnectionMonitorTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectivityConfigurationsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectivityConfigurationsCreateOrUpdateSample.ts new file mode 100644 index 0000000000..369f5eb8b4 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectivityConfigurationsCreateOrUpdateSample.ts @@ -0,0 +1,69 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ConnectivityConfiguration, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates/Updates a new network manager connectivity configuration + * + * @summary Creates/Updates a new network manager connectivity configuration + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerConnectivityConfigurationPut.json + */ +async function connectivityConfigurationsPut() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "myResourceGroup"; + const networkManagerName = "testNetworkManager"; + const configurationName = "myTestConnectivityConfig"; + const connectivityConfiguration: ConnectivityConfiguration = { + description: "Sample Configuration", + appliesToGroups: [ + { + groupConnectivity: "None", + isGlobal: "False", + networkGroupId: + "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1", + useHubGateway: "True" + } + ], + connectivityTopology: "HubAndSpoke", + deleteExistingPeering: "True", + hubs: [ + { + resourceId: + "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myTestConnectivityConfig", + resourceType: "Microsoft.Network/virtualNetworks" + } + ], + isGlobal: "True" + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.connectivityConfigurations.createOrUpdate( + resourceGroupName, + networkManagerName, + configurationName, + connectivityConfiguration + ); + console.log(result); +} + +async function main() { + connectivityConfigurationsPut(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectivityConfigurationsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectivityConfigurationsDeleteSample.ts new file mode 100644 index 0000000000..380f3a01f6 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectivityConfigurationsDeleteSample.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ConnectivityConfigurationsDeleteOptionalParams, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and connectivity configuration name + * + * @summary Deletes a network manager connectivity configuration, specified by the resource group, network manager name, and connectivity configuration name + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerConnectivityConfigurationDelete.json + */ +async function connectivityConfigurationsDelete() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "myResourceGroup"; + const networkManagerName = "testNetworkManager"; + const configurationName = "myTestConnectivityConfig"; + const force = false; + const options: ConnectivityConfigurationsDeleteOptionalParams = { force }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.connectivityConfigurations.beginDeleteAndWait( + resourceGroupName, + networkManagerName, + configurationName, + options + ); + console.log(result); +} + +async function main() { + connectivityConfigurationsDelete(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectivityConfigurationsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectivityConfigurationsGetSample.ts new file mode 100644 index 0000000000..351642babc --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectivityConfigurationsGetSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a Network Connectivity Configuration, specified by the resource group, network manager name, and connectivity Configuration name + * + * @summary Gets a Network Connectivity Configuration, specified by the resource group, network manager name, and connectivity Configuration name + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerConnectivityConfigurationGet.json + */ +async function connectivityConfigurationsGet() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "myResourceGroup"; + const networkManagerName = "testNetworkManager"; + const configurationName = "myTestConnectivityConfig"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.connectivityConfigurations.get( + resourceGroupName, + networkManagerName, + configurationName + ); + console.log(result); +} + +async function main() { + connectivityConfigurationsGet(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectivityConfigurationsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectivityConfigurationsListSample.ts new file mode 100644 index 0000000000..446914b126 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/connectivityConfigurationsListSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists all the network manager connectivity configuration in a specified network manager. + * + * @summary Lists all the network manager connectivity configuration in a specified network manager. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerConnectivityConfigurationList.json + */ +async function connectivityConfigurationsList() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "myResourceGroup"; + const networkManagerName = "testNetworkManager"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.connectivityConfigurations.list( + resourceGroupName, + networkManagerName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + connectivityConfigurationsList(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesCreateOrUpdateSample.ts index 9266fea523..293598be84 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a custom IP prefix. * * @summary Creates or updates a custom IP prefix. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/CustomIpPrefixCreateCustomizedValues.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/CustomIpPrefixCreateCustomizedValues.json */ async function createCustomIPPrefixAllocationMethod() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesDeleteSample.ts index d93af254da..65b999ea52 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified custom IP prefix. * * @summary Deletes the specified custom IP prefix. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/CustomIpPrefixDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/CustomIpPrefixDelete.json */ async function deleteCustomIPPrefix() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesGetSample.ts index 72c6779c40..c4a3bceecd 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified custom IP prefix in a specified resource group. * * @summary Gets the specified custom IP prefix in a specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/CustomIpPrefixGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/CustomIpPrefixGet.json */ async function getCustomIPPrefix() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesListAllSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesListAllSample.ts index caa91432ba..a0dddb9867 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesListAllSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesListAllSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the custom IP prefixes in a subscription. * * @summary Gets all the custom IP prefixes in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/CustomIpPrefixListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/CustomIpPrefixListAll.json */ async function listAllCustomIPPrefixes() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesListSample.ts index 21101dfb07..97e7f3371e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all custom IP prefixes in a resource group. * * @summary Gets all custom IP prefixes in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/CustomIpPrefixList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/CustomIpPrefixList.json */ async function listResourceGroupCustomIPPrefixes() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesUpdateTagsSample.ts index cb35f71950..3c85fe9e2d 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/customIPPrefixesUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates custom IP prefix tags. * * @summary Updates custom IP prefix tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/CustomIpPrefixUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/CustomIpPrefixUpdateTags.json */ async function updatePublicIPAddressTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosCustomPoliciesCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosCustomPoliciesCreateOrUpdateSample.ts index 3873fc140e..a1cda13dda 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosCustomPoliciesCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosCustomPoliciesCreateOrUpdateSample.ts @@ -21,16 +21,13 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a DDoS custom policy. * * @summary Creates or updates a DDoS custom policy. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/DdosCustomPolicyCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DdosCustomPolicyCreate.json */ async function createDDoSCustomPolicy() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; const ddosCustomPolicyName = "test-ddos-custom-policy"; - const parameters: DdosCustomPolicy = { - location: "centraluseuap", - protocolCustomSettings: [{ protocol: "Tcp" }] - }; + const parameters: DdosCustomPolicy = { location: "centraluseuap" }; const credential = new DefaultAzureCredential(); const client = new NetworkManagementClient(credential, subscriptionId); const result = await client.ddosCustomPolicies.beginCreateOrUpdateAndWait( diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosCustomPoliciesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosCustomPoliciesDeleteSample.ts index e8ce51d553..441da4ceb0 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosCustomPoliciesDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosCustomPoliciesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified DDoS custom policy. * * @summary Deletes the specified DDoS custom policy. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/DdosCustomPolicyDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DdosCustomPolicyDelete.json */ async function deleteDDoSCustomPolicy() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosCustomPoliciesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosCustomPoliciesGetSample.ts index 46043d1d1e..e902473194 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosCustomPoliciesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosCustomPoliciesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified DDoS custom policy. * * @summary Gets information about the specified DDoS custom policy. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/DdosCustomPolicyGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DdosCustomPolicyGet.json */ async function getDDoSCustomPolicy() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosCustomPoliciesUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosCustomPoliciesUpdateTagsSample.ts index 4bab8c6f9a..602724f1cd 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosCustomPoliciesUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosCustomPoliciesUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update a DDoS custom policy tags. * * @summary Update a DDoS custom policy tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/DdosCustomPolicyUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DdosCustomPolicyUpdateTags.json */ async function dDoSCustomPolicyUpdateTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansCreateOrUpdateSample.ts index 7e139543fd..db9c00b700 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a DDoS protection plan. * * @summary Creates or updates a DDoS protection plan. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/DdosProtectionPlanCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DdosProtectionPlanCreate.json */ async function createDDoSProtectionPlan() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansDeleteSample.ts index 84f2c995e2..f48e13324e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified DDoS protection plan. * * @summary Deletes the specified DDoS protection plan. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/DdosProtectionPlanDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DdosProtectionPlanDelete.json */ async function deleteDDoSProtectionPlan() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansGetSample.ts index 735af44178..591c434576 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified DDoS protection plan. * * @summary Gets information about the specified DDoS protection plan. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/DdosProtectionPlanGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DdosProtectionPlanGet.json */ async function getDDoSProtectionPlan() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansListByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansListByResourceGroupSample.ts index dd1c060973..d24e2233dc 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansListByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the DDoS protection plans in a resource group. * * @summary Gets all the DDoS protection plans in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/DdosProtectionPlanList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DdosProtectionPlanList.json */ async function listDDoSProtectionPlansInResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansListSample.ts index 72d1382022..0fbf3fe574 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all DDoS protection plans in a subscription. * * @summary Gets all DDoS protection plans in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/DdosProtectionPlanListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DdosProtectionPlanListAll.json */ async function listAllDDoSProtectionPlans() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansUpdateTagsSample.ts index 6bf51012a1..0bf6ce0e9a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ddosProtectionPlansUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update a DDoS protection plan tags. * * @summary Update a DDoS protection plan tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/DdosProtectionPlanUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DdosProtectionPlanUpdateTags.json */ async function dDoSProtectionPlanUpdateTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/defaultSecurityRulesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/defaultSecurityRulesGetSample.ts index 1670ac429d..5ca8db841f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/defaultSecurityRulesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/defaultSecurityRulesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the specified default network security rule. * * @summary Get the specified default network security rule. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/DefaultSecurityRuleGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DefaultSecurityRuleGet.json */ async function defaultSecurityRuleGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/defaultSecurityRulesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/defaultSecurityRulesListSample.ts index 6f1991c6de..4ad2619a87 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/defaultSecurityRulesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/defaultSecurityRulesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all default security rules in a network security group. * * @summary Gets all default security rules in a network security group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/DefaultSecurityRuleList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DefaultSecurityRuleList.json */ async function defaultSecurityRuleList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/deleteBastionShareableLinkSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/deleteBastionShareableLinkSample.ts index 94bdfa35ca..3b3944d969 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/deleteBastionShareableLinkSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/deleteBastionShareableLinkSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the Bastion Shareable Links for all the VMs specified in the request. * * @summary Deletes the Bastion Shareable Links for all the VMs specified in the request. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/BastionShareableLinkDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/BastionShareableLinkDelete.json */ async function deleteBastionShareableLinksForTheRequestVMS() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/disconnectActiveSessionsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/disconnectActiveSessionsSample.ts index 4b314f922f..a2b78283e5 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/disconnectActiveSessionsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/disconnectActiveSessionsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Returns the list of currently active sessions on the Bastion. * * @summary Returns the list of currently active sessions on the Bastion. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/BastionSessionDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/BastionSessionDelete.json */ async function deletesTheSpecifiedActiveSession() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/dscpConfigurationCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/dscpConfigurationCreateOrUpdateSample.ts index ba7a412509..4d34055008 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/dscpConfigurationCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/dscpConfigurationCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a DSCP Configuration. * * @summary Creates or updates a DSCP Configuration. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/DscpConfigurationCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DscpConfigurationCreate.json */ async function createDscpConfiguration() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/dscpConfigurationDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/dscpConfigurationDeleteSample.ts index c45135a7f6..ea702ba4bc 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/dscpConfigurationDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/dscpConfigurationDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a DSCP Configuration. * * @summary Deletes a DSCP Configuration. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/DscpConfigurationDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DscpConfigurationDelete.json */ async function deleteDscpConfiguration() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/dscpConfigurationGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/dscpConfigurationGetSample.ts index 27c19befb0..5cd6ac3cea 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/dscpConfigurationGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/dscpConfigurationGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a DSCP Configuration. * * @summary Gets a DSCP Configuration. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/DscpConfigurationGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DscpConfigurationGet.json */ async function getDscpConfiguration() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/dscpConfigurationListAllSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/dscpConfigurationListAllSample.ts index c0ecde8018..fac0a96a81 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/dscpConfigurationListAllSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/dscpConfigurationListAllSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all dscp configurations in a subscription. * * @summary Gets all dscp configurations in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/DscpConfigurationListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DscpConfigurationListAll.json */ async function listAllNetworkInterfaces() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/dscpConfigurationListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/dscpConfigurationListSample.ts index 2962e5aa65..05dfc9346a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/dscpConfigurationListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/dscpConfigurationListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a DSCP Configuration. * * @summary Gets a DSCP Configuration. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/DscpConfigurationList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/DscpConfigurationList.json */ async function getDscpConfiguration() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitAuthorizationsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitAuthorizationsCreateOrUpdateSample.ts index bef8ab6b1a..014e059681 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitAuthorizationsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitAuthorizationsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an authorization in the specified express route circuit. * * @summary Creates or updates an authorization in the specified express route circuit. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitAuthorizationCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitAuthorizationCreate.json */ async function createExpressRouteCircuitAuthorization() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitAuthorizationsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitAuthorizationsDeleteSample.ts index d950add8cd..efe86fe3a0 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitAuthorizationsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitAuthorizationsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified authorization from the specified express route circuit. * * @summary Deletes the specified authorization from the specified express route circuit. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitAuthorizationDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitAuthorizationDelete.json */ async function deleteExpressRouteCircuitAuthorization() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitAuthorizationsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitAuthorizationsGetSample.ts index c9f6d9ebc6..a22b410a4d 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitAuthorizationsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitAuthorizationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified authorization from the specified express route circuit. * * @summary Gets the specified authorization from the specified express route circuit. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitAuthorizationGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitAuthorizationGet.json */ async function getExpressRouteCircuitAuthorization() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitAuthorizationsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitAuthorizationsListSample.ts index 4fd3a38ca0..8fed4e7cfa 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitAuthorizationsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitAuthorizationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all authorizations in an express route circuit. * * @summary Gets all authorizations in an express route circuit. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitAuthorizationList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitAuthorizationList.json */ async function listExpressRouteCircuitAuthorization() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitConnectionsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitConnectionsCreateOrUpdateSample.ts index 624f8064b4..b43e856d5f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitConnectionsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitConnectionsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a Express Route Circuit Connection in the specified express route circuits. * * @summary Creates or updates a Express Route Circuit Connection in the specified express route circuits. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitConnectionCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitConnectionCreate.json */ async function expressRouteCircuitConnectionCreate() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid1"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitConnectionsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitConnectionsDeleteSample.ts index eec3593945..b5705fac94 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitConnectionsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Express Route Circuit Connection from the specified express route circuit. * * @summary Deletes the specified Express Route Circuit Connection from the specified express route circuit. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitConnectionDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitConnectionDelete.json */ async function deleteExpressRouteCircuit() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitConnectionsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitConnectionsGetSample.ts index 68ee335145..383d31e2ea 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitConnectionsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified Express Route Circuit Connection from the specified express route circuit. * * @summary Gets the specified Express Route Circuit Connection from the specified express route circuit. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitConnectionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitConnectionGet.json */ async function expressRouteCircuitConnectionGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid1"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitConnectionsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitConnectionsListSample.ts index 6577e79335..eff8e32ebb 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitConnectionsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitConnectionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all global reach connections associated with a private peering in an express route circuit. * * @summary Gets all global reach connections associated with a private peering in an express route circuit. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitConnectionList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitConnectionList.json */ async function listExpressRouteCircuitConnection() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid1"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitPeeringsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitPeeringsCreateOrUpdateSample.ts index 60b697ab00..7186a2e068 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitPeeringsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitPeeringsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a peering in the specified express route circuits. * * @summary Creates or updates a peering in the specified express route circuits. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitPeeringCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitPeeringCreate.json */ async function createExpressRouteCircuitPeerings() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitPeeringsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitPeeringsDeleteSample.ts index 79e1d7a6bc..832dccdd1c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitPeeringsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitPeeringsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified peering from the specified express route circuit. * * @summary Deletes the specified peering from the specified express route circuit. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitPeeringDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitPeeringDelete.json */ async function deleteExpressRouteCircuitPeerings() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitPeeringsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitPeeringsGetSample.ts index b815e99948..f3709bd0e2 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitPeeringsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitPeeringsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified peering for the express route circuit. * * @summary Gets the specified peering for the express route circuit. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitPeeringGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitPeeringGet.json */ async function getExpressRouteCircuitPeering() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitPeeringsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitPeeringsListSample.ts index 6054b2f13a..5f4887b376 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitPeeringsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitPeeringsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all peerings in a specified express route circuit. * * @summary Gets all peerings in a specified express route circuit. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitPeeringList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitPeeringList.json */ async function listExpressRouteCircuitPeerings() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsCreateOrUpdateSample.ts index 3a828a2fdf..e3a6108c76 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an express route circuit. * * @summary Creates or updates an express route circuit. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitCreate.json */ async function createExpressRouteCircuit() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -57,13 +57,14 @@ async function createExpressRouteCircuit() { * This sample demonstrates how to Creates or updates an express route circuit. * * @summary Creates or updates an express route circuit. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json */ async function createExpressRouteCircuitOnExpressRoutePort() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; const circuitName = "expressRouteCircuit1"; const parameters: ExpressRouteCircuit = { + authorizationKey: "b0be57f5-1fba-463b-adec-ffe767354cdd", bandwidthInGbps: 10, expressRoutePort: { id: diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsDeleteSample.ts index 64740ee48b..62b306ec1e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified express route circuit. * * @summary Deletes the specified express route circuit. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitDelete.json */ async function deleteExpressRouteCircuit() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsGetPeeringStatsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsGetPeeringStatsSample.ts index 8fd4b91002..30fe20e89f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsGetPeeringStatsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsGetPeeringStatsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all stats from an express route circuit in a resource group. * * @summary Gets all stats from an express route circuit in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitPeeringStats.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitPeeringStats.json */ async function getExpressRouteCircuitPeeringTrafficStats() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsGetSample.ts index 6724cf6cf4..feaf261177 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified express route circuit. * * @summary Gets information about the specified express route circuit. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitGet.json */ async function getExpressRouteCircuit() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsGetStatsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsGetStatsSample.ts index 25503aa06f..567bf7c7d3 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsGetStatsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsGetStatsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the stats from an express route circuit in a resource group. * * @summary Gets all the stats from an express route circuit in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitStats.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitStats.json */ async function getExpressRouteCircuitTrafficStats() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsListAllSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsListAllSample.ts index 948277fb59..fb8e0c0baa 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsListAllSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsListAllSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the express route circuits in a subscription. * * @summary Gets all the express route circuits in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitListBySubscription.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitListBySubscription.json */ async function listExpressRouteCircuitsInASubscription() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsListArpTableSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsListArpTableSample.ts index 4ba432b88c..6c2b18fe10 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsListArpTableSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsListArpTableSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the currently advertised ARP table associated with the express route circuit in a resource group. * * @summary Gets the currently advertised ARP table associated with the express route circuit in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitARPTableList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitARPTableList.json */ async function listArpTable() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsListRoutesTableSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsListRoutesTableSample.ts index 598f4cc340..1cf1296759 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsListRoutesTableSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsListRoutesTableSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the currently advertised routes table associated with the express route circuit in a resource group. * * @summary Gets the currently advertised routes table associated with the express route circuit in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitRouteTableList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitRouteTableList.json */ async function listRouteTables() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsListRoutesTableSummarySample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsListRoutesTableSummarySample.ts index a3f5b3b193..fcd41463a7 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsListRoutesTableSummarySample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsListRoutesTableSummarySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the currently advertised routes table summary associated with the express route circuit in a resource group. * * @summary Gets the currently advertised routes table summary associated with the express route circuit in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitRouteTableSummaryList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitRouteTableSummaryList.json */ async function listRouteTableSummary() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsListSample.ts index 81cc6cff28..0e4067f41f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the express route circuits in a resource group. * * @summary Gets all the express route circuits in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitListByResourceGroup.json */ async function listExpressRouteCircuitsInAResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsUpdateTagsSample.ts index 5ce4461e40..ac8b7f3f53 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCircuitsUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates an express route circuit tags. * * @summary Updates an express route circuit tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCircuitUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCircuitUpdateTags.json */ async function updateExpressRouteCircuitTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteConnectionsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteConnectionsCreateOrUpdateSample.ts index a98a0facdc..f1daafcfa4 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteConnectionsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteConnectionsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. * * @summary Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteConnectionCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteConnectionCreate.json */ async function expressRouteConnectionCreate() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -38,6 +38,37 @@ async function expressRouteConnectionCreate() { }, id: "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2/expressRouteConnections/connectionName", + routingConfiguration: { + associatedRouteTable: { + id: + "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/hub1/hubRouteTables/hubRouteTable1" + }, + inboundRouteMap: { + id: + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/routeMaps/routeMap1" + }, + outboundRouteMap: { + id: + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/routeMaps/routeMap2" + }, + propagatedRouteTables: { + ids: [ + { + id: + "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/hub1/hubRouteTables/hubRouteTable1" + }, + { + id: + "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/hub1/hubRouteTables/hubRouteTable2" + }, + { + id: + "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/hub1/hubRouteTables/hubRouteTable3" + } + ], + labels: ["label1", "label2"] + } + }, routingWeight: 2 }; const credential = new DefaultAzureCredential(); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteConnectionsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteConnectionsDeleteSample.ts index c94f3d93b1..c3acb64b11 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteConnectionsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a connection to a ExpressRoute circuit. * * @summary Deletes a connection to a ExpressRoute circuit. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteConnectionDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteConnectionDelete.json */ async function expressRouteConnectionDelete() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteConnectionsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteConnectionsGetSample.ts index 5a35e4b4a3..707aadced4 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteConnectionsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified ExpressRouteConnection. * * @summary Gets the specified ExpressRouteConnection. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteConnectionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteConnectionGet.json */ async function expressRouteConnectionGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteConnectionsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteConnectionsListSample.ts index e75248ae40..6ced6217e4 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteConnectionsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteConnectionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists ExpressRouteConnections. * * @summary Lists ExpressRouteConnections. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteConnectionList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteConnectionList.json */ async function expressRouteConnectionList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionPeeringsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionPeeringsCreateOrUpdateSample.ts index 19ebf35893..3f6d67068e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionPeeringsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionPeeringsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a peering in the specified ExpressRouteCrossConnection. * * @summary Creates or updates a peering in the specified ExpressRouteCrossConnection. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCrossConnectionBgpPeeringCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCrossConnectionBgpPeeringCreate.json */ async function expressRouteCrossConnectionBgpPeeringCreate() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionPeeringsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionPeeringsDeleteSample.ts index 128d34d83a..f4ead7dfba 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionPeeringsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionPeeringsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified peering from the ExpressRouteCrossConnection. * * @summary Deletes the specified peering from the ExpressRouteCrossConnection. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCrossConnectionBgpPeeringDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCrossConnectionBgpPeeringDelete.json */ async function deleteExpressRouteCrossConnectionBgpPeering() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionPeeringsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionPeeringsGetSample.ts index 4df3542e82..f4d9f25d2b 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionPeeringsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionPeeringsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified peering for the ExpressRouteCrossConnection. * * @summary Gets the specified peering for the ExpressRouteCrossConnection. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json */ async function getExpressRouteCrossConnectionBgpPeering() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionPeeringsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionPeeringsListSample.ts index ca2679e480..5f57e45d2f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionPeeringsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionPeeringsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all peerings in a specified ExpressRouteCrossConnection. * * @summary Gets all peerings in a specified ExpressRouteCrossConnection. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCrossConnectionBgpPeeringList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCrossConnectionBgpPeeringList.json */ async function expressRouteCrossConnectionBgpPeeringList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsCreateOrUpdateSample.ts index 0e10ba168a..ea079f5189 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update the specified ExpressRouteCrossConnection. * * @summary Update the specified ExpressRouteCrossConnection. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCrossConnectionUpdate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCrossConnectionUpdate.json */ async function updateExpressRouteCrossConnection() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsGetSample.ts index c7e465d0fd..28edfec68a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets details about the specified ExpressRouteCrossConnection. * * @summary Gets details about the specified ExpressRouteCrossConnection. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCrossConnectionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCrossConnectionGet.json */ async function getExpressRouteCrossConnection() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsListArpTableSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsListArpTableSample.ts index 654c9e539d..828714b195 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsListArpTableSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsListArpTableSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the currently advertised ARP table associated with the express route cross connection in a resource group. * * @summary Gets the currently advertised ARP table associated with the express route cross connection in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCrossConnectionsArpTable.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCrossConnectionsArpTable.json */ async function getExpressRouteCrossConnectionsArpTable() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsListByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsListByResourceGroupSample.ts index 4fa30a280d..cd66861ae6 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsListByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves all the ExpressRouteCrossConnections in a resource group. * * @summary Retrieves all the ExpressRouteCrossConnections in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCrossConnectionListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCrossConnectionListByResourceGroup.json */ async function expressRouteCrossConnectionListByResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsListRoutesTableSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsListRoutesTableSample.ts index 17e0f2c700..21db3bcb79 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsListRoutesTableSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsListRoutesTableSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the currently advertised routes table associated with the express route cross connection in a resource group. * * @summary Gets the currently advertised routes table associated with the express route cross connection in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCrossConnectionsRouteTable.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCrossConnectionsRouteTable.json */ async function getExpressRouteCrossConnectionsRouteTable() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsListRoutesTableSummarySample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsListRoutesTableSummarySample.ts index bc07ba2242..df6a6ac5ad 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsListRoutesTableSummarySample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsListRoutesTableSummarySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the route table summary associated with the express route cross connection in a resource group. * * @summary Gets the route table summary associated with the express route cross connection in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCrossConnectionsRouteTableSummary.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCrossConnectionsRouteTableSummary.json */ async function getExpressRouteCrossConnectionsRouteTableSummary() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsListSample.ts index 4040b3a4da..7fb51a606a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves all the ExpressRouteCrossConnections in a subscription. * * @summary Retrieves all the ExpressRouteCrossConnections in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCrossConnectionList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCrossConnectionList.json */ async function expressRouteCrossConnectionList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsUpdateTagsSample.ts index 11fff9f712..1e537d7fca 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteCrossConnectionsUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates an express route cross connection tags. * * @summary Updates an express route cross connection tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteCrossConnectionUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteCrossConnectionUpdateTags.json */ async function updateExpressRouteCrossConnectionTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysCreateOrUpdateSample.ts index 424b3fedfe..88462835bf 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a ExpressRoute gateway in a specified resource group. * * @summary Creates or updates a ExpressRoute gateway in a specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteGatewayCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteGatewayCreate.json */ async function expressRouteGatewayCreate() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -29,6 +29,7 @@ async function expressRouteGatewayCreate() { process.env["RESOURCE_GROUP"] || "resourceGroupName"; const expressRouteGatewayName = "gateway-2"; const putExpressRouteGatewayParameters: ExpressRouteGateway = { + allowNonVirtualWanTraffic: false, autoScaleConfiguration: { bounds: { min: 3 } }, location: "westus", virtualHub: { diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysDeleteSample.ts index d487fc5290..d44188d09c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be deleted when there are no connection subresources. * * @summary Deletes the specified ExpressRoute gateway in a resource group. An ExpressRoute gateway resource can only be deleted when there are no connection subresources. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteGatewayDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteGatewayDelete.json */ async function expressRouteGatewayDelete() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysGetSample.ts index e1d51da690..90a9f0c136 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Fetches the details of a ExpressRoute gateway in a resource group. * * @summary Fetches the details of a ExpressRoute gateway in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteGatewayGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteGatewayGet.json */ async function expressRouteGatewayGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysListByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysListByResourceGroupSample.ts index 8c01feea1d..413ccbb34a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysListByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists ExpressRoute gateways in a given resource group. * * @summary Lists ExpressRoute gateways in a given resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteGatewayListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteGatewayListByResourceGroup.json */ async function expressRouteGatewayListByResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysListBySubscriptionSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysListBySubscriptionSample.ts index 90e363b971..fadaed7606 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysListBySubscriptionSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists ExpressRoute gateways under a given subscription. * * @summary Lists ExpressRoute gateways under a given subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteGatewayListBySubscription.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteGatewayListBySubscription.json */ async function expressRouteGatewayListBySubscription() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysUpdateTagsSample.ts index 86914d6b11..4fc8310624 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteGatewaysUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates express route gateway tags. * * @summary Updates express route gateway tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteGatewayUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteGatewayUpdateTags.json */ async function expressRouteGatewayUpdate() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteLinksGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteLinksGetSample.ts index cc8ee1c4b3..73538882a2 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteLinksGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteLinksGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the specified ExpressRouteLink resource. * * @summary Retrieves the specified ExpressRouteLink resource. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteLinkGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteLinkGet.json */ async function expressRouteLinkGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteLinksListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteLinksListSample.ts index 6197da7732..c575008aa8 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteLinksListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteLinksListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieve the ExpressRouteLink sub-resources of the specified ExpressRoutePort resource. * * @summary Retrieve the ExpressRouteLink sub-resources of the specified ExpressRoutePort resource. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteLinkList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteLinkList.json */ async function expressRouteLinkGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortAuthorizationsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortAuthorizationsCreateOrUpdateSample.ts new file mode 100644 index 0000000000..3c5eecd311 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortAuthorizationsCreateOrUpdateSample.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ExpressRoutePortAuthorization, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates an authorization in the specified express route port. + * + * @summary Creates or updates an authorization in the specified express route port. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRoutePortAuthorizationCreate.json + */ +async function createExpressRoutePortAuthorization() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const expressRoutePortName = "expressRoutePortName"; + const authorizationName = "authorizatinName"; + const authorizationParameters: ExpressRoutePortAuthorization = {}; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.expressRoutePortAuthorizations.beginCreateOrUpdateAndWait( + resourceGroupName, + expressRoutePortName, + authorizationName, + authorizationParameters + ); + console.log(result); +} + +async function main() { + createExpressRoutePortAuthorization(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortAuthorizationsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortAuthorizationsDeleteSample.ts new file mode 100644 index 0000000000..847b7dd414 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortAuthorizationsDeleteSample.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes the specified authorization from the specified express route port. + * + * @summary Deletes the specified authorization from the specified express route port. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRoutePortAuthorizationDelete.json + */ +async function deleteExpressRoutePortAuthorization() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const expressRoutePortName = "expressRoutePortName"; + const authorizationName = "authorizationName"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.expressRoutePortAuthorizations.beginDeleteAndWait( + resourceGroupName, + expressRoutePortName, + authorizationName + ); + console.log(result); +} + +async function main() { + deleteExpressRoutePortAuthorization(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortAuthorizationsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortAuthorizationsGetSample.ts new file mode 100644 index 0000000000..35a599d8d1 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortAuthorizationsGetSample.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the specified authorization from the specified express route port. + * + * @summary Gets the specified authorization from the specified express route port. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRoutePortAuthorizationGet.json + */ +async function getExpressRoutePortAuthorization() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const expressRoutePortName = "expressRoutePortName"; + const authorizationName = "authorizationName"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.expressRoutePortAuthorizations.get( + resourceGroupName, + expressRoutePortName, + authorizationName + ); + console.log(result); +} + +async function main() { + getExpressRoutePortAuthorization(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortAuthorizationsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortAuthorizationsListSample.ts new file mode 100644 index 0000000000..bc3b81e823 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortAuthorizationsListSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets all authorizations in an express route port. + * + * @summary Gets all authorizations in an express route port. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRoutePortAuthorizationList.json + */ +async function listExpressRoutePortAuthorization() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const expressRoutePortName = "expressRoutePortName"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.expressRoutePortAuthorizations.list( + resourceGroupName, + expressRoutePortName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listExpressRoutePortAuthorization(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsCreateOrUpdateSample.ts index 4be1dee873..a923eb09ab 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the specified ExpressRoutePort resource. * * @summary Creates or updates the specified ExpressRoutePort resource. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRoutePortCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRoutePortCreate.json */ async function expressRoutePortCreate() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -29,6 +29,7 @@ async function expressRoutePortCreate() { const expressRoutePortName = "portName"; const parameters: ExpressRoutePort = { bandwidthInGbps: 100, + billingType: "UnlimitedData", encapsulation: "QinQ", location: "westus", peeringLocation: "peeringLocationName" @@ -47,7 +48,7 @@ async function expressRoutePortCreate() { * This sample demonstrates how to Creates or updates the specified ExpressRoutePort resource. * * @summary Creates or updates the specified ExpressRoutePort resource. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRoutePortUpdateLink.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRoutePortUpdateLink.json */ async function expressRoutePortUpdateLink() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -55,6 +56,7 @@ async function expressRoutePortUpdateLink() { const expressRoutePortName = "portName"; const parameters: ExpressRoutePort = { bandwidthInGbps: 100, + billingType: "UnlimitedData", encapsulation: "QinQ", links: [{ name: "link1", adminState: "Enabled" }], location: "westus", diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsDeleteSample.ts index 5d8f0df7ee..26824bca8f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified ExpressRoutePort resource. * * @summary Deletes the specified ExpressRoutePort resource. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRoutePortDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRoutePortDelete.json */ async function expressRoutePortDelete() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsGenerateLoaSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsGenerateLoaSample.ts index e72eb7fe4f..739a6fe0bd 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsGenerateLoaSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsGenerateLoaSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Generate a letter of authorization for the requested ExpressRoutePort resource. * * @summary Generate a letter of authorization for the requested ExpressRoutePort resource. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/GenerateExpressRoutePortsLOA.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/GenerateExpressRoutePortsLOA.json */ async function generateExpressRoutePortLoa() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsGetSample.ts index 03a3d56630..b4d53378fa 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the requested ExpressRoutePort resource. * * @summary Retrieves the requested ExpressRoutePort resource. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRoutePortGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRoutePortGet.json */ async function expressRoutePortGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsListByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsListByResourceGroupSample.ts index 791bc1897d..16ad5caae9 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsListByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all the ExpressRoutePort resources in the specified resource group. * * @summary List all the ExpressRoutePort resources in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRoutePortListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRoutePortListByResourceGroup.json */ async function expressRoutePortListByResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsListSample.ts index 8aa2cccabc..db1d29cb5a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all the ExpressRoutePort resources in the specified subscription. * * @summary List all the ExpressRoutePort resources in the specified subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRoutePortList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRoutePortList.json */ async function expressRoutePortList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsLocationsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsLocationsGetSample.ts index ad5b28edd5..d0f4f9a6ee 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsLocationsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsLocationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves a single ExpressRoutePort peering location, including the list of available bandwidths available at said peering location. * * @summary Retrieves a single ExpressRoutePort peering location, including the list of available bandwidths available at said peering location. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRoutePortsLocationGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRoutePortsLocationGet.json */ async function expressRoutePortsLocationGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsLocationsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsLocationsListSample.ts index dfb85c7d78..7c50893457 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsLocationsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsLocationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. Available bandwidths can only be obtained when retrieving a specific peering location. * * @summary Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. Available bandwidths can only be obtained when retrieving a specific peering location. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRoutePortsLocationList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRoutePortsLocationList.json */ async function expressRoutePortsLocationList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsUpdateTagsSample.ts index 2a98113db8..64aa253634 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRoutePortsUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update ExpressRoutePort tags. * * @summary Update ExpressRoutePort tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRoutePortUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRoutePortUpdateTags.json */ async function expressRoutePortUpdateTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteProviderPortSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteProviderPortSample.ts new file mode 100644 index 0000000000..09ad5c7fbe --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteProviderPortSample.ts @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Retrieves detail of a provider port. + * + * @summary Retrieves detail of a provider port. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/expressRouteProviderPort.json + */ +async function expressRouteProviderPort() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const providerport = "abc"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.expressRouteProviderPort(providerport); + console.log(result); +} + +async function main() { + expressRouteProviderPort(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteProviderPortsLocationListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteProviderPortsLocationListSample.ts new file mode 100644 index 0000000000..8b40f7bda1 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteProviderPortsLocationListSample.ts @@ -0,0 +1,35 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Retrieves all the ExpressRouteProviderPorts in a subscription. + * + * @summary Retrieves all the ExpressRouteProviderPorts in a subscription. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/expressRouteProviderPortList.json + */ +async function expressRouteProviderPortList() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.expressRouteProviderPortsLocation.list(); + console.log(result); +} + +async function main() { + expressRouteProviderPortList(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteServiceProvidersListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteServiceProvidersListSample.ts index 00c3d3962a..25712c30b1 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteServiceProvidersListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/expressRouteServiceProvidersListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the available express route service providers. * * @summary Gets all the available express route service providers. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ExpressRouteProviderList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ExpressRouteProviderList.json */ async function listExpressRouteProviders() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesCreateOrUpdateSample.ts index faadb244e6..df7de81593 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the specified Firewall Policy. * * @summary Creates or updates the specified Firewall Policy. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicyPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicyPut.json */ async function createFirewallPolicy() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -33,8 +33,9 @@ async function createFirewallPolicy() { requireProxyForNetworkRules: false, servers: ["30.3.4.5"] }, - explicitProxySettings: { + explicitProxy: { enableExplicitProxy: true, + enablePacFile: true, httpPort: 8087, httpsPort: 8087, pacFile: diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesDeleteSample.ts index a609b3f814..1a43733d80 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Firewall Policy. * * @summary Deletes the specified Firewall Policy. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicyDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicyDelete.json */ async function deleteFirewallPolicy() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesGetSample.ts index aca82ce036..fcb5a0a387 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified Firewall Policy. * * @summary Gets the specified Firewall Policy. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicyGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicyGet.json */ async function getFirewallPolicy() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesListAllSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesListAllSample.ts index 0d3ea552e0..22710ae092 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesListAllSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesListAllSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the Firewall Policies in a subscription. * * @summary Gets all the Firewall Policies in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicyListBySubscription.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicyListBySubscription.json */ async function listAllFirewallPoliciesForAGivenSubscription() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesListSample.ts index 04b4040dc7..94be567f8e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all Firewall Policies in a resource group. * * @summary Lists all Firewall Policies in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicyListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicyListByResourceGroup.json */ async function listAllFirewallPoliciesForAGivenResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesUpdateTagsSample.ts new file mode 100644 index 0000000000..e71f0f0dfa --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPoliciesUpdateTagsSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + TagsObject, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates tags of a Azure Firewall Policy resource. + * + * @summary Updates tags of a Azure Firewall Policy resource. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicyPatch.json + */ +async function updateFirewallPolicyTags() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "myResourceGroup"; + const firewallPolicyName = "firewallPolicy"; + const parameters: TagsObject = { tags: { key1: "value1", key2: "value2" } }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.firewallPolicies.updateTags( + resourceGroupName, + firewallPolicyName, + parameters + ); + console.log(result); +} + +async function main() { + updateFirewallPolicyTags(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesFilterValuesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesFilterValuesListSample.ts index e92e15a1d6..f549110c52 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesFilterValuesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesFilterValuesListSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the current filter values for the signatures overrides * * @summary Retrieves the current filter values for the signatures overrides - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicyQuerySignatureOverridesFilterValues.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicyQuerySignatureOverridesFilterValues.json */ async function querySignatureOverrides() { const subscriptionId = diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesListSample.ts index 61b6702ed2..4e22847a27 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesListSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the current status of IDPS signatures for the relevant policy * * @summary Retrieves the current status of IDPS signatures for the relevant policy - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicyQuerySignatureOverrides.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicyQuerySignatureOverrides.json */ async function querySignatureOverrides() { const subscriptionId = diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesOverridesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesOverridesGetSample.ts index e220c008e4..3ece7cab75 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesOverridesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesOverridesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns all signatures overrides for a specific policy. * * @summary Returns all signatures overrides for a specific policy. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicySignatureOverridesGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicySignatureOverridesGet.json */ async function getSignatureOverrides() { const subscriptionId = diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesOverridesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesOverridesListSample.ts index a6a44078b4..a3ec21166b 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesOverridesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesOverridesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns all signatures overrides objects for a specific policy as a list containing a single value. * * @summary Returns all signatures overrides objects for a specific policy as a list containing a single value. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicySignatureOverridesList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicySignatureOverridesList.json */ async function getSignatureOverrides() { const subscriptionId = diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesOverridesPatchSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesOverridesPatchSample.ts index e2f4134d25..d491c67eb9 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesOverridesPatchSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesOverridesPatchSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Will update the status of policy's signature overrides for IDPS * * @summary Will update the status of policy's signature overrides for IDPS - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicySignatureOverridesPatch.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicySignatureOverridesPatch.json */ async function patchSignatureOverrides() { const subscriptionId = diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesOverridesPutSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesOverridesPutSample.ts index d565362663..6c5cf0807a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesOverridesPutSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyIdpsSignaturesOverridesPutSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Will override/create a new signature overrides for the policy's IDPS * * @summary Will override/create a new signature overrides for the policy's IDPS - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicySignatureOverridesPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicySignatureOverridesPut.json */ async function putSignatureOverrides() { const subscriptionId = diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyRuleCollectionGroupsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyRuleCollectionGroupsCreateOrUpdateSample.ts index 47990ab61f..533665466c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyRuleCollectionGroupsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyRuleCollectionGroupsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the specified FirewallPolicyRuleCollectionGroup. * * @summary Creates or updates the specified FirewallPolicyRuleCollectionGroup. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicyNatRuleCollectionGroupPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicyNatRuleCollectionGroupPut.json */ async function createFirewallPolicyNatRuleCollectionGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -67,7 +67,7 @@ async function createFirewallPolicyNatRuleCollectionGroup() { * This sample demonstrates how to Creates or updates the specified FirewallPolicyRuleCollectionGroup. * * @summary Creates or updates the specified FirewallPolicyRuleCollectionGroup. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicyRuleCollectionGroupPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicyRuleCollectionGroupPut.json */ async function createFirewallPolicyRuleCollectionGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -110,7 +110,7 @@ async function createFirewallPolicyRuleCollectionGroup() { * This sample demonstrates how to Creates or updates the specified FirewallPolicyRuleCollectionGroup. * * @summary Creates or updates the specified FirewallPolicyRuleCollectionGroup. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json */ async function createFirewallPolicyRuleCollectionGroupWithIPGroups() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -156,7 +156,7 @@ async function createFirewallPolicyRuleCollectionGroupWithIPGroups() { * This sample demonstrates how to Creates or updates the specified FirewallPolicyRuleCollectionGroup. * * @summary Creates or updates the specified FirewallPolicyRuleCollectionGroup. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json */ async function createFirewallPolicyRuleCollectionGroupWithWebCategories() { const subscriptionId = diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyRuleCollectionGroupsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyRuleCollectionGroupsDeleteSample.ts index e7905148e4..574a642631 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyRuleCollectionGroupsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyRuleCollectionGroupsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified FirewallPolicyRuleCollectionGroup. * * @summary Deletes the specified FirewallPolicyRuleCollectionGroup. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicyRuleCollectionGroupDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicyRuleCollectionGroupDelete.json */ async function deleteFirewallPolicyRuleCollectionGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyRuleCollectionGroupsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyRuleCollectionGroupsGetSample.ts index f3e429b4f5..093552798a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyRuleCollectionGroupsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyRuleCollectionGroupsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified FirewallPolicyRuleCollectionGroup. * * @summary Gets the specified FirewallPolicyRuleCollectionGroup. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json */ async function getFirewallPolicyNatRuleCollectionGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -39,7 +39,7 @@ async function getFirewallPolicyNatRuleCollectionGroup() { * This sample demonstrates how to Gets the specified FirewallPolicyRuleCollectionGroup. * * @summary Gets the specified FirewallPolicyRuleCollectionGroup. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicyRuleCollectionGroupGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicyRuleCollectionGroupGet.json */ async function getFirewallPolicyRuleCollectionGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -60,7 +60,7 @@ async function getFirewallPolicyRuleCollectionGroup() { * This sample demonstrates how to Gets the specified FirewallPolicyRuleCollectionGroup. * * @summary Gets the specified FirewallPolicyRuleCollectionGroup. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json */ async function getFirewallPolicyRuleCollectionGroupWithIPGroups() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -81,7 +81,7 @@ async function getFirewallPolicyRuleCollectionGroupWithIPGroups() { * This sample demonstrates how to Gets the specified FirewallPolicyRuleCollectionGroup. * * @summary Gets the specified FirewallPolicyRuleCollectionGroup. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json */ async function getFirewallPolicyRuleCollectionGroupWithWebCategories() { const subscriptionId = diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyRuleCollectionGroupsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyRuleCollectionGroupsListSample.ts index da6298efe9..4670d56fde 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyRuleCollectionGroupsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/firewallPolicyRuleCollectionGroupsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. * * @summary Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesList.json */ async function listAllFirewallPolicyRuleCollectionGroupWithWebCategories() { const subscriptionId = @@ -41,7 +41,7 @@ async function listAllFirewallPolicyRuleCollectionGroupWithWebCategories() { * This sample demonstrates how to Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. * * @summary Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicyRuleCollectionGroupList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicyRuleCollectionGroupList.json */ async function listAllFirewallPolicyRuleCollectionGroupsForAGivenFirewallPolicy() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -63,7 +63,7 @@ async function listAllFirewallPolicyRuleCollectionGroupsForAGivenFirewallPolicy( * This sample demonstrates how to Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. * * @summary Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsList.json */ async function listAllFirewallPolicyRuleCollectionGroupsWithIPGroupsForAGivenFirewallPolicy() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/flowLogsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/flowLogsCreateOrUpdateSample.ts index af22f4c94e..de499514a2 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/flowLogsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/flowLogsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a flow log for the specified network security group. * * @summary Create or update a flow log for the specified network security group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherFlowLogCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherFlowLogCreate.json */ async function createOrUpdateFlowLog() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/flowLogsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/flowLogsDeleteSample.ts index 8e4bd3963e..e0a5d3b5fe 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/flowLogsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/flowLogsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified flow log resource. * * @summary Deletes the specified flow log resource. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherFlowLogDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherFlowLogDelete.json */ async function deleteFlowLog() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/flowLogsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/flowLogsGetSample.ts index e9aa15be01..5e8391cf52 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/flowLogsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/flowLogsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a flow log resource by name. * * @summary Gets a flow log resource by name. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherFlowLogGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherFlowLogGet.json */ async function getFlowLog() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/flowLogsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/flowLogsListSample.ts index 79d866ad02..c548d39e6a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/flowLogsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/flowLogsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all flow log resources for the specified Network Watcher. * * @summary Lists all flow log resources for the specified Network Watcher. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherFlowLogList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherFlowLogList.json */ async function listConnectionMonitors() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/flowLogsUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/flowLogsUpdateTagsSample.ts index 14ca5aad84..e590570d31 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/flowLogsUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/flowLogsUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update tags of the specified flow log. * * @summary Update tags of the specified flow log. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherFlowLogUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherFlowLogUpdateTags.json */ async function updateFlowLogTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/generatevirtualwanvpnserverconfigurationvpnprofileSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/generatevirtualwanvpnserverconfigurationvpnprofileSample.ts index 6852934987..5cc78e7146 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/generatevirtualwanvpnserverconfigurationvpnprofileSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/generatevirtualwanvpnserverconfigurationvpnprofileSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination in the specified resource group. * * @summary Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/GenerateVirtualWanVpnServerConfigurationVpnProfile.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/GenerateVirtualWanVpnServerConfigurationVpnProfile.json */ async function generateVirtualWanVpnServerConfigurationVpnProfile() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/getActiveSessionsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/getActiveSessionsSample.ts index fc4e8314c6..2c0b3b209a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/getActiveSessionsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/getActiveSessionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the list of currently active sessions on the Bastion. * * @summary Returns the list of currently active sessions on the Bastion. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/BastionSessionsList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/BastionSessionsList.json */ async function returnsAListOfCurrentlyActiveSessionsOnTheBastion() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/getBastionShareableLinkSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/getBastionShareableLinkSample.ts index eeab1ae795..3de4674c98 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/getBastionShareableLinkSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/getBastionShareableLinkSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Return the Bastion Shareable Links for all the VMs specified in the request. * * @summary Return the Bastion Shareable Links for all the VMs specified in the request. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/BastionShareableLinkGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/BastionShareableLinkGet.json */ async function returnsTheBastionShareableLinksForTheRequestVMS() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubRouteTablesCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubRouteTablesCreateOrUpdateSample.ts index f7ffb32832..e906481958 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubRouteTablesCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubRouteTablesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. * * @summary Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/HubRouteTablePut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/HubRouteTablePut.json */ async function routeTablePut() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubRouteTablesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubRouteTablesDeleteSample.ts index 4385094949..a610340989 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubRouteTablesDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubRouteTablesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a RouteTable. * * @summary Deletes a RouteTable. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/HubRouteTableDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/HubRouteTableDelete.json */ async function routeTableDelete() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubRouteTablesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubRouteTablesGetSample.ts index b419a888d9..c77d0533fc 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubRouteTablesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubRouteTablesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of a RouteTable. * * @summary Retrieves the details of a RouteTable. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/HubRouteTableGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/HubRouteTableGet.json */ async function routeTableGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubRouteTablesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubRouteTablesListSample.ts index bc71fa0cf9..13555b8c14 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubRouteTablesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubRouteTablesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of all RouteTables. * * @summary Retrieves the details of all RouteTables. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/HubRouteTableList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/HubRouteTableList.json */ async function routeTableList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubVirtualNetworkConnectionsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubVirtualNetworkConnectionsCreateOrUpdateSample.ts index 5d51bc1ccb..185147054c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubVirtualNetworkConnectionsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubVirtualNetworkConnectionsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a hub virtual network connection if it doesn't exist else updates the existing one. * * @summary Creates a hub virtual network connection if it doesn't exist else updates the existing one. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/HubVirtualNetworkConnectionPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/HubVirtualNetworkConnectionPut.json */ async function hubVirtualNetworkConnectionPut() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -39,6 +39,14 @@ async function hubVirtualNetworkConnectionPut() { id: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable1" }, + inboundRouteMap: { + id: + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/routeMaps/routeMap1" + }, + outboundRouteMap: { + id: + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/routeMaps/routeMap2" + }, propagatedRouteTables: { ids: [ { @@ -60,7 +68,8 @@ async function hubVirtualNetworkConnectionPut() { addressPrefixes: ["10.3.0.0/16", "10.4.0.0/16"], nextHopIpAddress: "10.0.0.65" } - ] + ], + staticRoutesConfig: { vnetLocalRouteOverrideCriteria: "Equal" } } } }; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubVirtualNetworkConnectionsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubVirtualNetworkConnectionsDeleteSample.ts index 0b2726fcaa..a30c914dfa 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubVirtualNetworkConnectionsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubVirtualNetworkConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a HubVirtualNetworkConnection. * * @summary Deletes a HubVirtualNetworkConnection. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/HubVirtualNetworkConnectionDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/HubVirtualNetworkConnectionDelete.json */ async function hubVirtualNetworkConnectionDelete() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubVirtualNetworkConnectionsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubVirtualNetworkConnectionsGetSample.ts index 40fc88b16b..414f348b6f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubVirtualNetworkConnectionsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubVirtualNetworkConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of a HubVirtualNetworkConnection. * * @summary Retrieves the details of a HubVirtualNetworkConnection. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/HubVirtualNetworkConnectionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/HubVirtualNetworkConnectionGet.json */ async function hubVirtualNetworkConnectionGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubVirtualNetworkConnectionsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubVirtualNetworkConnectionsListSample.ts index 7530259fd1..264987a82b 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubVirtualNetworkConnectionsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/hubVirtualNetworkConnectionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of all HubVirtualNetworkConnections. * * @summary Retrieves the details of all HubVirtualNetworkConnections. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/HubVirtualNetworkConnectionList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/HubVirtualNetworkConnectionList.json */ async function hubVirtualNetworkConnectionList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/inboundNatRulesCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/inboundNatRulesCreateOrUpdateSample.ts index 4055079564..4ede59a329 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/inboundNatRulesCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/inboundNatRulesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a load balancer inbound NAT rule. * * @summary Creates or updates a load balancer inbound NAT rule. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/InboundNatRuleCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/InboundNatRuleCreate.json */ async function inboundNatRuleCreate() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/inboundNatRulesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/inboundNatRulesDeleteSample.ts index 8132a59f3c..b2168888f8 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/inboundNatRulesDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/inboundNatRulesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified load balancer inbound NAT rule. * * @summary Deletes the specified load balancer inbound NAT rule. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/InboundNatRuleDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/InboundNatRuleDelete.json */ async function inboundNatRuleDelete() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/inboundNatRulesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/inboundNatRulesGetSample.ts index dc953e54c3..4bc7b0e853 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/inboundNatRulesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/inboundNatRulesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified load balancer inbound NAT rule. * * @summary Gets the specified load balancer inbound NAT rule. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/InboundNatRuleGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/InboundNatRuleGet.json */ async function inboundNatRuleGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/inboundNatRulesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/inboundNatRulesListSample.ts index 061463427f..0c8a0d2bd8 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/inboundNatRulesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/inboundNatRulesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the inbound NAT rules in a load balancer. * * @summary Gets all the inbound NAT rules in a load balancer. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/InboundNatRuleList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/InboundNatRuleList.json */ async function inboundNatRuleList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/inboundSecurityRuleCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/inboundSecurityRuleCreateOrUpdateSample.ts index 442a70470b..3f7017bdd4 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/inboundSecurityRuleCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/inboundSecurityRuleCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the specified Network Virtual Appliance Inbound Security Rules. * * @summary Creates or updates the specified Network Virtual Appliance Inbound Security Rules. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/InboundSecurityRulePut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/InboundSecurityRulePut.json */ async function createNetworkVirtualApplianceInboundSecurityRules() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsCreateOrUpdateSample.ts index 2f4666dde5..7c36d948c4 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an IpAllocation in the specified resource group. * * @summary Creates or updates an IpAllocation in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/IpAllocationCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/IpAllocationCreate.json */ async function createIPAllocation() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsDeleteSample.ts index a89bec25df..cefddc167c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified IpAllocation. * * @summary Deletes the specified IpAllocation. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/IpAllocationDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/IpAllocationDelete.json */ async function deleteIPAllocation() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsGetSample.ts index 78e82ffd44..bedc2d990d 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified IpAllocation by resource group. * * @summary Gets the specified IpAllocation by resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/IpAllocationGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/IpAllocationGet.json */ async function getIPAllocation() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsListByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsListByResourceGroupSample.ts index 1e45b6b63d..2eb1539bd7 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsListByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all IpAllocations in a resource group. * * @summary Gets all IpAllocations in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/IpAllocationListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/IpAllocationListByResourceGroup.json */ async function listIPAllocationsInResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsListSample.ts index 07b995a7a5..ccb5b94356 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all IpAllocations in a subscription. * * @summary Gets all IpAllocations in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/IpAllocationList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/IpAllocationList.json */ async function listAllIPAllocations() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsUpdateTagsSample.ts index f103087259..4f80e20fbe 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipAllocationsUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a IpAllocation tags. * * @summary Updates a IpAllocation tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/IpAllocationUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/IpAllocationUpdateTags.json */ async function updateVirtualNetworkTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsCreateOrUpdateSample.ts index 5818d4360d..a99dc2f00b 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an ipGroups in a specified resource group. * * @summary Creates or updates an ipGroups in a specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/IpGroupsCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/IpGroupsCreate.json */ async function createOrUpdateIPGroups() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsDeleteSample.ts index a385b92eea..054ee72b5f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified ipGroups. * * @summary Deletes the specified ipGroups. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/IpGroupsDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/IpGroupsDelete.json */ async function deleteIPGroups() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsGetSample.ts index df10a761e8..a6cee45e6e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified ipGroups. * * @summary Gets the specified ipGroups. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/IpGroupsGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/IpGroupsGet.json */ async function getIPGroups() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsListByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsListByResourceGroupSample.ts index b95b2d5b45..70060c5c55 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsListByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all IpGroups in a resource group. * * @summary Gets all IpGroups in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/IpGroupsListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/IpGroupsListByResourceGroup.json */ async function listByResourceGroupIPGroups() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsListSample.ts index 731a642558..a8aade0f6c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all IpGroups in a subscription. * * @summary Gets all IpGroups in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/IpGroupsListBySubscription.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/IpGroupsListBySubscription.json */ async function listIPGroups() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsUpdateGroupsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsUpdateGroupsSample.ts index ea2b54cde2..c341b4bb33 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsUpdateGroupsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/ipGroupsUpdateGroupsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates tags of an IpGroups resource. * * @summary Updates tags of an IpGroups resource. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/IpGroupsUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/IpGroupsUpdateTags.json */ async function updateIPGroups() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/listActiveConnectivityConfigurationsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/listActiveConnectivityConfigurationsSample.ts new file mode 100644 index 0000000000..6489cd0b02 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/listActiveConnectivityConfigurationsSample.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ActiveConfigurationParameter, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists active connectivity configurations in a network manager. + * + * @summary Lists active connectivity configurations in a network manager. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerActiveConnectivityConfigurationsList.json + */ +async function listActiveConnectivityConfigurations() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "myResourceGroup"; + const networkManagerName = "testNetworkManager"; + const parameters: ActiveConfigurationParameter = { + regions: ["westus"], + skipToken: "fakeSkipTokenCode" + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.listActiveConnectivityConfigurations( + resourceGroupName, + networkManagerName, + parameters + ); + console.log(result); +} + +async function main() { + listActiveConnectivityConfigurations(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/listActiveSecurityAdminRulesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/listActiveSecurityAdminRulesSample.ts new file mode 100644 index 0000000000..df957a5f53 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/listActiveSecurityAdminRulesSample.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ActiveConfigurationParameter, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists active security admin rules in a network manager. + * + * @summary Lists active security admin rules in a network manager. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerActiveSecurityAdminRulesList.json + */ +async function listActiveSecurityAdminRules() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "myResourceGroup"; + const networkManagerName = "testNetworkManager"; + const parameters: ActiveConfigurationParameter = { + regions: ["westus"], + skipToken: "fakeSkipTokenCode" + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.listActiveSecurityAdminRules( + resourceGroupName, + networkManagerName, + parameters + ); + console.log(result); +} + +async function main() { + listActiveSecurityAdminRules(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/listNetworkManagerEffectiveConnectivityConfigurationsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/listNetworkManagerEffectiveConnectivityConfigurationsSample.ts new file mode 100644 index 0000000000..f843924e47 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/listNetworkManagerEffectiveConnectivityConfigurationsSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + QueryRequestOptions, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List all effective connectivity configurations applied on a virtual network. + * + * @summary List all effective connectivity configurations applied on a virtual network. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerEffectiveConnectivityConfigurationsList.json + */ +async function listEffectiveConnectivityConfiguration() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "myResourceGroup"; + const virtualNetworkName = "testVirtualNetwork"; + const parameters: QueryRequestOptions = { skipToken: "FakeSkipTokenCode" }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.listNetworkManagerEffectiveConnectivityConfigurations( + resourceGroupName, + virtualNetworkName, + parameters + ); + console.log(result); +} + +async function main() { + listEffectiveConnectivityConfiguration(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/listNetworkManagerEffectiveSecurityAdminRulesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/listNetworkManagerEffectiveSecurityAdminRulesSample.ts new file mode 100644 index 0000000000..0f83b346a4 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/listNetworkManagerEffectiveSecurityAdminRulesSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + QueryRequestOptions, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List all effective security admin rules applied on a virtual network. + * + * @summary List all effective security admin rules applied on a virtual network. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerEffectiveSecurityAdminRulesList.json + */ +async function listEffectiveSecurityAdminRules() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "myResourceGroup"; + const virtualNetworkName = "testVirtualNetwork"; + const parameters: QueryRequestOptions = { skipToken: "FakeSkipTokenCode" }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.listNetworkManagerEffectiveSecurityAdminRules( + resourceGroupName, + virtualNetworkName, + parameters + ); + console.log(result); +} + +async function main() { + listEffectiveSecurityAdminRules(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerBackendAddressPoolsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerBackendAddressPoolsCreateOrUpdateSample.ts index f1d1a0b0f8..0caeda313e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerBackendAddressPoolsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerBackendAddressPoolsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a load balancer backend address pool. * * @summary Creates or updates a load balancer backend address pool. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LBBackendAddressPoolWithBackendAddressesPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LBBackendAddressPoolWithBackendAddressesPut.json */ async function updateLoadBalancerBackendPoolWithBackendAddressesContainingVirtualNetworkAndIPAddress() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerBackendAddressPoolsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerBackendAddressPoolsDeleteSample.ts index 6963428538..2a995e12e2 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerBackendAddressPoolsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerBackendAddressPoolsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified load balancer backend address pool. * * @summary Deletes the specified load balancer backend address pool. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerBackendAddressPoolDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerBackendAddressPoolDelete.json */ async function backendAddressPoolDelete() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerBackendAddressPoolsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerBackendAddressPoolsGetSample.ts index c39f107018..8d6be23efe 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerBackendAddressPoolsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerBackendAddressPoolsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets load balancer backend address pool. * * @summary Gets load balancer backend address pool. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json */ async function loadBalancerWithBackendAddressPoolWithBackendAddresses() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -39,7 +39,7 @@ async function loadBalancerWithBackendAddressPoolWithBackendAddresses() { * This sample demonstrates how to Gets load balancer backend address pool. * * @summary Gets load balancer backend address pool. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerBackendAddressPoolGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerBackendAddressPoolGet.json */ async function loadBalancerBackendAddressPoolGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerBackendAddressPoolsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerBackendAddressPoolsListSample.ts index 5df0412c8b..2521f397a2 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerBackendAddressPoolsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerBackendAddressPoolsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the load balancer backed address pools. * * @summary Gets all the load balancer backed address pools. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LBBackendAddressPoolListWithBackendAddressesPoolType.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LBBackendAddressPoolListWithBackendAddressesPoolType.json */ async function loadBalancerWithBackendAddressPoolContainingBackendAddresses() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -40,7 +40,7 @@ async function loadBalancerWithBackendAddressPoolContainingBackendAddresses() { * This sample demonstrates how to Gets all the load balancer backed address pools. * * @summary Gets all the load balancer backed address pools. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerBackendAddressPoolList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerBackendAddressPoolList.json */ async function loadBalancerBackendAddressPoolList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerFrontendIPConfigurationsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerFrontendIPConfigurationsGetSample.ts index 6026420ad1..d701ac923f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerFrontendIPConfigurationsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerFrontendIPConfigurationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets load balancer frontend IP configuration. * * @summary Gets load balancer frontend IP configuration. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerFrontendIPConfigurationGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerFrontendIPConfigurationGet.json */ async function loadBalancerFrontendIPConfigurationGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerFrontendIPConfigurationsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerFrontendIPConfigurationsListSample.ts index a45b8a0f0b..49c3c0e328 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerFrontendIPConfigurationsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerFrontendIPConfigurationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the load balancer frontend IP configurations. * * @summary Gets all the load balancer frontend IP configurations. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerFrontendIPConfigurationList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerFrontendIPConfigurationList.json */ async function loadBalancerFrontendIPConfigurationList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerLoadBalancingRulesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerLoadBalancingRulesGetSample.ts index 0119180934..d9df6ce7ce 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerLoadBalancingRulesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerLoadBalancingRulesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified load balancer load balancing rule. * * @summary Gets the specified load balancer load balancing rule. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerLoadBalancingRuleGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerLoadBalancingRuleGet.json */ async function loadBalancerLoadBalancingRuleGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerLoadBalancingRulesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerLoadBalancingRulesListSample.ts index f9adb81ff8..b7ace5eed5 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerLoadBalancingRulesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerLoadBalancingRulesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the load balancing rules in a load balancer. * * @summary Gets all the load balancing rules in a load balancer. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerLoadBalancingRuleList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerLoadBalancingRuleList.json */ async function loadBalancerLoadBalancingRuleList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerNetworkInterfacesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerNetworkInterfacesListSample.ts index bc0a56e470..c7a1eb0b5f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerNetworkInterfacesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerNetworkInterfacesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets associated load balancer network interfaces. * * @summary Gets associated load balancer network interfaces. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerNetworkInterfaceListSimple.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerNetworkInterfaceListSimple.json */ async function loadBalancerNetworkInterfaceListSimple() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -40,7 +40,7 @@ async function loadBalancerNetworkInterfaceListSimple() { * This sample demonstrates how to Gets associated load balancer network interfaces. * * @summary Gets associated load balancer network interfaces. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerNetworkInterfaceListVmss.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerNetworkInterfaceListVmss.json */ async function loadBalancerNetworkInterfaceListVmss() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerOutboundRulesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerOutboundRulesGetSample.ts index 7326373731..98bf0e63bb 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerOutboundRulesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerOutboundRulesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified load balancer outbound rule. * * @summary Gets the specified load balancer outbound rule. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerOutboundRuleGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerOutboundRuleGet.json */ async function loadBalancerOutboundRuleGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerOutboundRulesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerOutboundRulesListSample.ts index 5a7100b82e..d9426c9f40 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerOutboundRulesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerOutboundRulesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the outbound rules in a load balancer. * * @summary Gets all the outbound rules in a load balancer. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerOutboundRuleList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerOutboundRuleList.json */ async function loadBalancerOutboundRuleList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerProbesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerProbesGetSample.ts index afdda7295d..824f614d19 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerProbesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerProbesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets load balancer probe. * * @summary Gets load balancer probe. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerProbeGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerProbeGet.json */ async function loadBalancerProbeGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerProbesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerProbesListSample.ts index c7d26f8829..cbe6ce7dfc 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerProbesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancerProbesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the load balancer probes. * * @summary Gets all the load balancer probes. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerProbeList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerProbeList.json */ async function loadBalancerProbeList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersCreateOrUpdateSample.ts index 5f0af39917..8c6ccf2cc2 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a load balancer. * * @summary Creates or updates a load balancer. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerCreate.json */ async function createLoadBalancer() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -85,6 +85,7 @@ async function createLoadBalancer() { intervalInSeconds: 15, numberOfProbes: 2, port: 80, + probeThreshold: 1, requestPath: "healthcheck.aspx", protocol: "Http" } @@ -104,7 +105,7 @@ async function createLoadBalancer() { * This sample demonstrates how to Creates or updates a load balancer. * * @summary Creates or updates a load balancer. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerCreateWithZones.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerCreateWithZones.json */ async function createLoadBalancerWithFrontendIPInZone1() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -168,6 +169,7 @@ async function createLoadBalancerWithFrontendIPInZone1() { intervalInSeconds: 15, numberOfProbes: 2, port: 80, + probeThreshold: 1, requestPath: "healthcheck.aspx", protocol: "Http" } @@ -188,7 +190,7 @@ async function createLoadBalancerWithFrontendIPInZone1() { * This sample demonstrates how to Creates or updates a load balancer. * * @summary Creates or updates a load balancer. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerCreateGatewayLoadBalancerConsumer.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerCreateGatewayLoadBalancerConsumer.json */ async function createLoadBalancerWithGatewayLoadBalancerConsumerConfigured() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -255,6 +257,7 @@ async function createLoadBalancerWithGatewayLoadBalancerConsumerConfigured() { intervalInSeconds: 15, numberOfProbes: 2, port: 80, + probeThreshold: 1, requestPath: "healthcheck.aspx", protocol: "Http" } @@ -275,7 +278,7 @@ async function createLoadBalancerWithGatewayLoadBalancerConsumerConfigured() { * This sample demonstrates how to Creates or updates a load balancer. * * @summary Creates or updates a load balancer. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerCreateGatewayLoadBalancerProviderWithOneBackendPool.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerCreateGatewayLoadBalancerProviderWithOneBackendPool.json */ async function createLoadBalancerWithGatewayLoadBalancerProviderConfiguredWithOneBackendPool() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -334,6 +337,7 @@ async function createLoadBalancerWithGatewayLoadBalancerProviderConfiguredWithOn intervalInSeconds: 15, numberOfProbes: 2, port: 80, + probeThreshold: 1, requestPath: "healthcheck.aspx", protocol: "Http" } @@ -354,7 +358,7 @@ async function createLoadBalancerWithGatewayLoadBalancerProviderConfiguredWithOn * This sample demonstrates how to Creates or updates a load balancer. * * @summary Creates or updates a load balancer. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerCreateGatewayLoadBalancerProviderWithTwoBackendPool.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerCreateGatewayLoadBalancerProviderWithTwoBackendPool.json */ async function createLoadBalancerWithGatewayLoadBalancerProviderConfiguredWithTwoBackendPool() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -410,6 +414,7 @@ async function createLoadBalancerWithGatewayLoadBalancerProviderConfiguredWithTw intervalInSeconds: 15, numberOfProbes: 2, port: 80, + probeThreshold: 1, requestPath: "healthcheck.aspx", protocol: "Http" } @@ -430,7 +435,7 @@ async function createLoadBalancerWithGatewayLoadBalancerProviderConfiguredWithTw * This sample demonstrates how to Creates or updates a load balancer. * * @summary Creates or updates a load balancer. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerCreateGlobalTier.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerCreateGlobalTier.json */ async function createLoadBalancerWithGlobalTierAndOneRegionalLoadBalancerInItsBackendPool() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -490,6 +495,7 @@ async function createLoadBalancerWithGlobalTierAndOneRegionalLoadBalancerInItsBa intervalInSeconds: 15, numberOfProbes: 2, port: 80, + probeThreshold: 1, requestPath: "healthcheck.aspx", protocol: "Http" } @@ -510,7 +516,7 @@ async function createLoadBalancerWithGlobalTierAndOneRegionalLoadBalancerInItsBa * This sample demonstrates how to Creates or updates a load balancer. * * @summary Creates or updates a load balancer. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerCreateStandardSku.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerCreateStandardSku.json */ async function createLoadBalancerWithStandardSku() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -573,6 +579,7 @@ async function createLoadBalancerWithStandardSku() { intervalInSeconds: 15, numberOfProbes: 2, port: 80, + probeThreshold: 1, requestPath: "healthcheck.aspx", protocol: "Http" } @@ -593,7 +600,7 @@ async function createLoadBalancerWithStandardSku() { * This sample demonstrates how to Creates or updates a load balancer. * * @summary Creates or updates a load balancer. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerCreateWithInboundNatPool.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerCreateWithInboundNatPool.json */ async function createLoadBalancerWithInboundNatPool() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -653,7 +660,7 @@ async function createLoadBalancerWithInboundNatPool() { * This sample demonstrates how to Creates or updates a load balancer. * * @summary Creates or updates a load balancer. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerCreateWithOutboundRules.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerCreateWithOutboundRules.json */ async function createLoadBalancerWithOutboundRules() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -732,6 +739,7 @@ async function createLoadBalancerWithOutboundRules() { intervalInSeconds: 15, numberOfProbes: 2, port: 80, + probeThreshold: 1, requestPath: "healthcheck.aspx", protocol: "Http" } diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersDeleteSample.ts index 9a4193d73f..5631fd3cf4 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified load balancer. * * @summary Deletes the specified load balancer. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerDelete.json */ async function deleteLoadBalancer() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersGetSample.ts index 584e1358f2..610a8a7cf5 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified load balancer. * * @summary Gets the specified load balancer. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerGet.json */ async function getLoadBalancer() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -37,7 +37,7 @@ async function getLoadBalancer() { * This sample demonstrates how to Gets the specified load balancer. * * @summary Gets the specified load balancer. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerGetInboundNatRulePortMapping.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerGetInboundNatRulePortMapping.json */ async function getLoadBalancerWithInboundNatRulePortMapping() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersListAllSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersListAllSample.ts index 02da3256e0..a1711453ce 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersListAllSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersListAllSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the load balancers in a subscription. * * @summary Gets all the load balancers in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerListAll.json */ async function listAllLoadBalancers() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersListInboundNatRulePortMappingsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersListInboundNatRulePortMappingsSample.ts index 655630688e..18479baf15 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersListInboundNatRulePortMappingsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersListInboundNatRulePortMappingsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to List of inbound NAT rule port mappings. * * @summary List of inbound NAT rule port mappings. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/QueryInboundNatRulePortMapping.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/QueryInboundNatRulePortMapping.json */ async function queryInboundNatRulePortMapping() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersListSample.ts index fdfe115d09..3099cfb4db 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the load balancers in a resource group. * * @summary Gets all the load balancers in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerList.json */ async function listLoadBalancersInResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersSwapPublicIPAddressesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersSwapPublicIPAddressesSample.ts index a8dc491a5b..1f3d87180b 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersSwapPublicIPAddressesSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersSwapPublicIPAddressesSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Swaps VIPs between two load balancers. * * @summary Swaps VIPs between two load balancers. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancersSwapPublicIpAddresses.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancersSwapPublicIpAddresses.json */ async function swapViPsBetweenTwoLoadBalancers() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersUpdateTagsSample.ts index 8575f2538a..f2fd0f4b41 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/loadBalancersUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a load balancer tags. * * @summary Updates a load balancer tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LoadBalancerUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LoadBalancerUpdateTags.json */ async function updateLoadBalancerTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/localNetworkGatewaysCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/localNetworkGatewaysCreateOrUpdateSample.ts index f92ab9d969..9d7c86a4c2 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/localNetworkGatewaysCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/localNetworkGatewaysCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a local network gateway in the specified resource group. * * @summary Creates or updates a local network gateway in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LocalNetworkGatewayCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LocalNetworkGatewayCreate.json */ async function createLocalNetworkGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/localNetworkGatewaysDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/localNetworkGatewaysDeleteSample.ts index 26de41147f..ad0297f9f5 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/localNetworkGatewaysDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/localNetworkGatewaysDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified local network gateway. * * @summary Deletes the specified local network gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LocalNetworkGatewayDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LocalNetworkGatewayDelete.json */ async function deleteLocalNetworkGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/localNetworkGatewaysGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/localNetworkGatewaysGetSample.ts index 2ba2806533..c36cb260cb 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/localNetworkGatewaysGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/localNetworkGatewaysGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified local network gateway in a resource group. * * @summary Gets the specified local network gateway in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LocalNetworkGatewayGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LocalNetworkGatewayGet.json */ async function getLocalNetworkGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/localNetworkGatewaysListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/localNetworkGatewaysListSample.ts index d24c4c4f83..c716918c41 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/localNetworkGatewaysListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/localNetworkGatewaysListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the local network gateways in a resource group. * * @summary Gets all the local network gateways in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LocalNetworkGatewayList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LocalNetworkGatewayList.json */ async function listLocalNetworkGateways() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/localNetworkGatewaysUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/localNetworkGatewaysUpdateTagsSample.ts index 1ea4ca73e8..890673ee93 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/localNetworkGatewaysUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/localNetworkGatewaysUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a local network gateway tags. * * @summary Updates a local network gateway tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/LocalNetworkGatewayUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/LocalNetworkGatewayUpdateTags.json */ async function updateLocalNetworkGatewayTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/managementGroupNetworkManagerConnectionsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/managementGroupNetworkManagerConnectionsCreateOrUpdateSample.ts new file mode 100644 index 0000000000..f13b579f8a --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/managementGroupNetworkManagerConnectionsCreateOrUpdateSample.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + NetworkManagerConnection, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create a network manager connection on this management group. + * + * @summary Create a network manager connection on this management group. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerConnectionManagementGroupPut.json + */ +async function createOrUpdateManagementGroupNetworkManagerConnection() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const managementGroupId = "managementGroupA"; + const networkManagerConnectionName = "TestNMConnection"; + const parameters: NetworkManagerConnection = { + networkManagerId: + "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager" + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.managementGroupNetworkManagerConnections.createOrUpdate( + managementGroupId, + networkManagerConnectionName, + parameters + ); + console.log(result); +} + +async function main() { + createOrUpdateManagementGroupNetworkManagerConnection(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/managementGroupNetworkManagerConnectionsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/managementGroupNetworkManagerConnectionsDeleteSample.ts new file mode 100644 index 0000000000..c93a4c579c --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/managementGroupNetworkManagerConnectionsDeleteSample.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete specified pending connection created by this management group. + * + * @summary Delete specified pending connection created by this management group. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerConnectionManagementGroupDelete.json + */ +async function deleteManagementGroupNetworkManagerConnection() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const managementGroupId = "managementGroupA"; + const networkManagerConnectionName = "TestNMConnection"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.managementGroupNetworkManagerConnections.delete( + managementGroupId, + networkManagerConnectionName + ); + console.log(result); +} + +async function main() { + deleteManagementGroupNetworkManagerConnection(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/managementGroupNetworkManagerConnectionsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/managementGroupNetworkManagerConnectionsGetSample.ts new file mode 100644 index 0000000000..e2e6cdb6ef --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/managementGroupNetworkManagerConnectionsGetSample.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get a specified connection created by this management group. + * + * @summary Get a specified connection created by this management group. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerConnectionManagementGroupGet.json + */ +async function getManagementGroupNetworkManagerConnection() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const managementGroupId = "managementGroupA"; + const networkManagerConnectionName = "TestNMConnection"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.managementGroupNetworkManagerConnections.get( + managementGroupId, + networkManagerConnectionName + ); + console.log(result); +} + +async function main() { + getManagementGroupNetworkManagerConnection(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/managementGroupNetworkManagerConnectionsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/managementGroupNetworkManagerConnectionsListSample.ts new file mode 100644 index 0000000000..5840e4e945 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/managementGroupNetworkManagerConnectionsListSample.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List all network manager connections created by this management group. + * + * @summary List all network manager connections created by this management group. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerConnectionManagementGroupList.json + */ +async function listManagementGroupNetworkManagerConnection() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const managementGroupId = "managementGroupA"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.managementGroupNetworkManagerConnections.list( + managementGroupId + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listManagementGroupNetworkManagerConnection(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysCreateOrUpdateSample.ts index e3554fe0bb..9f166c7254 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a nat gateway. * * @summary Creates or updates a nat gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NatGatewayCreateOrUpdate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NatGatewayCreateOrUpdate.json */ async function createNatGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysDeleteSample.ts index 79a79879f0..205e75cd8f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified nat gateway. * * @summary Deletes the specified nat gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NatGatewayDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NatGatewayDelete.json */ async function deleteNatGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysGetSample.ts index a1fd2f0c46..10a81e7284 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified nat gateway in a specified resource group. * * @summary Gets the specified nat gateway in a specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NatGatewayGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NatGatewayGet.json */ async function getNatGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysListAllSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysListAllSample.ts index 9b89185b66..8b4eb0128a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysListAllSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysListAllSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the Nat Gateways in a subscription. * * @summary Gets all the Nat Gateways in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NatGatewayListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NatGatewayListAll.json */ async function listAllNatGateways() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysListSample.ts index 840b7351d7..e8a35f34e8 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all nat gateways in a resource group. * * @summary Gets all nat gateways in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NatGatewayList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NatGatewayList.json */ async function listNatGatewaysInResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysUpdateTagsSample.ts index b28259f27e..9caf6f0e52 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natGatewaysUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates nat gateway tags. * * @summary Updates nat gateway tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NatGatewayUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NatGatewayUpdateTags.json */ async function updateNatGatewayTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natRulesCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natRulesCreateOrUpdateSample.ts index 507f62a6c5..656d1b0c3d 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natRulesCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natRulesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules. * * @summary Creates a nat rule to a scalable vpn gateway if it doesn't exist else updates the existing nat rules. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NatRulePut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NatRulePut.json */ async function natRulePut() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natRulesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natRulesDeleteSample.ts index 65bfbe3cab..e1a00fd4bc 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natRulesDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natRulesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a nat rule. * * @summary Deletes a nat rule. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NatRuleDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NatRuleDelete.json */ async function natRuleDelete() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natRulesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natRulesGetSample.ts index 72ba951bb0..f0a5443a4f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natRulesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natRulesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of a nat ruleGet. * * @summary Retrieves the details of a nat ruleGet. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NatRuleGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NatRuleGet.json */ async function natRuleGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natRulesListByVpnGatewaySample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natRulesListByVpnGatewaySample.ts index 0763bf44fe..166797f0cd 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natRulesListByVpnGatewaySample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/natRulesListByVpnGatewaySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves all nat rules for a particular virtual wan vpn gateway. * * @summary Retrieves all nat rules for a particular virtual wan vpn gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NatRuleList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NatRuleList.json */ async function natRuleList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkGroupsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkGroupsCreateOrUpdateSample.ts new file mode 100644 index 0000000000..dd4b058622 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkGroupsCreateOrUpdateSample.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + NetworkGroup, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates a network group. + * + * @summary Creates or updates a network group. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerGroupPut.json + */ +async function networkGroupsPut() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const networkGroupName = "testNetworkGroup"; + const parameters: NetworkGroup = { description: "A sample group" }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.networkGroups.createOrUpdate( + resourceGroupName, + networkManagerName, + networkGroupName, + parameters + ); + console.log(result); +} + +async function main() { + networkGroupsPut(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkGroupsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkGroupsDeleteSample.ts new file mode 100644 index 0000000000..f9d494e674 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkGroupsDeleteSample.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + NetworkGroupsDeleteOptionalParams, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a network group. + * + * @summary Deletes a network group. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerGroupDelete.json + */ +async function networkGroupsDelete() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const networkGroupName = "testNetworkGroup"; + const force = false; + const options: NetworkGroupsDeleteOptionalParams = { force }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.networkGroups.beginDeleteAndWait( + resourceGroupName, + networkManagerName, + networkGroupName, + options + ); + console.log(result); +} + +async function main() { + networkGroupsDelete(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkGroupsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkGroupsGetSample.ts new file mode 100644 index 0000000000..db59ecf585 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkGroupsGetSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the specified network group. + * + * @summary Gets the specified network group. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerGroupGet.json + */ +async function networkGroupsGet() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const networkGroupName = "testNetworkGroup"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.networkGroups.get( + resourceGroupName, + networkManagerName, + networkGroupName + ); + console.log(result); +} + +async function main() { + networkGroupsGet(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkGroupsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkGroupsListSample.ts new file mode 100644 index 0000000000..613ce084fd --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkGroupsListSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists the specified network group. + * + * @summary Lists the specified network group. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerGroupList.json + */ +async function networkGroupsList() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.networkGroups.list( + resourceGroupName, + networkManagerName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + networkGroupsList(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceIPConfigurationsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceIPConfigurationsGetSample.ts index 918397c179..017cac5530 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceIPConfigurationsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceIPConfigurationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified network interface ip configuration. * * @summary Gets the specified network interface ip configuration. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkInterfaceIPConfigurationGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkInterfaceIPConfigurationGet.json */ async function networkInterfaceIPConfigurationGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceIPConfigurationsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceIPConfigurationsListSample.ts index 4ce383e4b3..1d6e7548a0 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceIPConfigurationsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceIPConfigurationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get all ip configurations in a network interface. * * @summary Get all ip configurations in a network interface. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkInterfaceIPConfigurationList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkInterfaceIPConfigurationList.json */ async function networkInterfaceIPConfigurationList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceLoadBalancersListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceLoadBalancersListSample.ts index b3edaeba75..f0388e2edd 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceLoadBalancersListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceLoadBalancersListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all load balancers in a network interface. * * @summary List all load balancers in a network interface. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkInterfaceLoadBalancerList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkInterfaceLoadBalancerList.json */ async function networkInterfaceLoadBalancerList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceTapConfigurationsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceTapConfigurationsCreateOrUpdateSample.ts index eee5ec2e41..780d3295b5 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceTapConfigurationsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceTapConfigurationsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a Tap configuration in the specified NetworkInterface. * * @summary Creates or updates a Tap configuration in the specified NetworkInterface. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkInterfaceTapConfigurationCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkInterfaceTapConfigurationCreate.json */ async function createNetworkInterfaceTapConfigurations() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceTapConfigurationsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceTapConfigurationsDeleteSample.ts index 922a45d8f0..438b8cc883 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceTapConfigurationsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceTapConfigurationsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified tap configuration from the NetworkInterface. * * @summary Deletes the specified tap configuration from the NetworkInterface. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkInterfaceTapConfigurationDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkInterfaceTapConfigurationDelete.json */ async function deleteTapConfiguration() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceTapConfigurationsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceTapConfigurationsGetSample.ts index fc09723cda..a1815dd056 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceTapConfigurationsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceTapConfigurationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the specified tap configuration on a network interface. * * @summary Get the specified tap configuration on a network interface. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkInterfaceTapConfigurationGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkInterfaceTapConfigurationGet.json */ async function getNetworkInterfaceTapConfigurations() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceTapConfigurationsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceTapConfigurationsListSample.ts index f2d29a7c60..447c135fa5 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceTapConfigurationsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfaceTapConfigurationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get all Tap configurations in a network interface. * * @summary Get all Tap configurations in a network interface. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkInterfaceTapConfigurationList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkInterfaceTapConfigurationList.json */ async function listVirtualNetworkTapConfigurations() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesCreateOrUpdateSample.ts index 9240e2a680..8333892412 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesCreateOrUpdateSample.ts @@ -21,13 +21,14 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a network interface. * * @summary Creates or updates a network interface. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkInterfaceCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkInterfaceCreate.json */ async function createNetworkInterface() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; const networkInterfaceName = "test-nic"; const parameters: NetworkInterface = { + disableTcpStateTracking: true, enableAcceleratedNetworking: true, ipConfigurations: [ { @@ -58,7 +59,7 @@ async function createNetworkInterface() { * This sample demonstrates how to Creates or updates a network interface. * * @summary Creates or updates a network interface. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkInterfaceCreateGatewayLoadBalancerConsumer.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkInterfaceCreateGatewayLoadBalancerConsumer.json */ async function createNetworkInterfaceWithGatewayLoadBalancerConsumerConfigured() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesDeleteSample.ts index 3b80fc64cc..9eec2dee34 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified network interface. * * @summary Deletes the specified network interface. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkInterfaceDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkInterfaceDelete.json */ async function deleteNetworkInterface() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesGetCloudServiceNetworkInterfaceSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesGetCloudServiceNetworkInterfaceSample.ts index ce0b0d8974..8b2013cea1 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesGetCloudServiceNetworkInterfaceSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesGetCloudServiceNetworkInterfaceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the specified network interface in a cloud service. * * @summary Get the specified network interface in a cloud service. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/CloudServiceNetworkInterfaceGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/CloudServiceNetworkInterfaceGet.json */ async function getCloudServiceNetworkInterface() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesGetEffectiveRouteTableSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesGetEffectiveRouteTableSample.ts index 7c244d539a..9ffe3e338e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesGetEffectiveRouteTableSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesGetEffectiveRouteTableSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all route tables applied to a network interface. * * @summary Gets all route tables applied to a network interface. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkInterfaceEffectiveRouteTableList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkInterfaceEffectiveRouteTableList.json */ async function showNetworkInterfaceEffectiveRouteTables() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesGetSample.ts index b5dfecb195..f091d1469c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified network interface. * * @summary Gets information about the specified network interface. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkInterfaceGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkInterfaceGet.json */ async function getNetworkInterface() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesGetVirtualMachineScaleSetIPConfigurationSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesGetVirtualMachineScaleSetIPConfigurationSample.ts index 88c5f0abed..6c64891db4 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesGetVirtualMachineScaleSetIPConfigurationSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesGetVirtualMachineScaleSetIPConfigurationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the specified network interface ip configuration in a virtual machine scale set. * * @summary Get the specified network interface ip configuration in a virtual machine scale set. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VmssNetworkInterfaceIpConfigGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VmssNetworkInterfaceIpConfigGet.json */ async function getVirtualMachineScaleSetNetworkInterface() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesGetVirtualMachineScaleSetNetworkInterfaceSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesGetVirtualMachineScaleSetNetworkInterfaceSample.ts index de30153cbd..2f8c7f44ee 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesGetVirtualMachineScaleSetNetworkInterfaceSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesGetVirtualMachineScaleSetNetworkInterfaceSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the specified network interface in a virtual machine scale set. * * @summary Get the specified network interface in a virtual machine scale set. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VmssNetworkInterfaceGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VmssNetworkInterfaceGet.json */ async function getVirtualMachineScaleSetNetworkInterface() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListAllSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListAllSample.ts index ab60b29394..d3de325e8e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListAllSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListAllSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all network interfaces in a subscription. * * @summary Gets all network interfaces in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkInterfaceListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkInterfaceListAll.json */ async function listAllNetworkInterfaces() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListCloudServiceNetworkInterfacesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListCloudServiceNetworkInterfacesSample.ts index a7b77664fb..e143c934f4 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListCloudServiceNetworkInterfacesSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListCloudServiceNetworkInterfacesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all network interfaces in a cloud service. * * @summary Gets all network interfaces in a cloud service. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/CloudServiceNetworkInterfaceList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/CloudServiceNetworkInterfaceList.json */ async function listCloudServiceNetworkInterfaces() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListCloudServiceRoleInstanceNetworkInterfacesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListCloudServiceRoleInstanceNetworkInterfacesSample.ts index b6a6c7713a..36854b8e76 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListCloudServiceRoleInstanceNetworkInterfacesSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListCloudServiceRoleInstanceNetworkInterfacesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about all network interfaces in a role instance in a cloud service. * * @summary Gets information about all network interfaces in a role instance in a cloud service. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/CloudServiceRoleInstanceNetworkInterfaceList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/CloudServiceRoleInstanceNetworkInterfaceList.json */ async function listCloudServiceRoleInstanceNetworkInterfaces() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListEffectiveNetworkSecurityGroupsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListEffectiveNetworkSecurityGroupsSample.ts index 7f5babe073..a7fee85747 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListEffectiveNetworkSecurityGroupsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListEffectiveNetworkSecurityGroupsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all network security groups applied to a network interface. * * @summary Gets all network security groups applied to a network interface. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkInterfaceEffectiveNSGList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkInterfaceEffectiveNSGList.json */ async function listNetworkInterfaceEffectiveNetworkSecurityGroups() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListSample.ts index d4cd409d8c..e9ba163d35 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all network interfaces in a resource group. * * @summary Gets all network interfaces in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkInterfaceList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkInterfaceList.json */ async function listNetworkInterfacesInResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListVirtualMachineScaleSetIPConfigurationsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListVirtualMachineScaleSetIPConfigurationsSample.ts index e8fc3b3edc..bbb71a4271 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListVirtualMachineScaleSetIPConfigurationsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListVirtualMachineScaleSetIPConfigurationsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the specified network interface ip configuration in a virtual machine scale set. * * @summary Get the specified network interface ip configuration in a virtual machine scale set. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VmssNetworkInterfaceIpConfigList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VmssNetworkInterfaceIpConfigList.json */ async function listVirtualMachineScaleSetNetworkInterfaceIPConfigurations() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListVirtualMachineScaleSetNetworkInterfacesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListVirtualMachineScaleSetNetworkInterfacesSample.ts index 4508cced06..28b3b06de9 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListVirtualMachineScaleSetNetworkInterfacesSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListVirtualMachineScaleSetNetworkInterfacesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all network interfaces in a virtual machine scale set. * * @summary Gets all network interfaces in a virtual machine scale set. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VmssNetworkInterfaceList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VmssNetworkInterfaceList.json */ async function listVirtualMachineScaleSetNetworkInterfaces() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesSample.ts index 26aa638c40..2bd428f927 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about all network interfaces in a virtual machine in a virtual machine scale set. * * @summary Gets information about all network interfaces in a virtual machine in a virtual machine scale set. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VmssVmNetworkInterfaceList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VmssVmNetworkInterfaceList.json */ async function listVirtualMachineScaleSetVMNetworkInterfaces() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesUpdateTagsSample.ts index 242761fd24..f2e23766a8 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkInterfacesUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a network interface tags. * * @summary Updates a network interface tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkInterfaceUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkInterfaceUpdateTags.json */ async function updateNetworkInterfaceTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagerCommitsPostSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagerCommitsPostSample.ts new file mode 100644 index 0000000000..96f5d3f82c --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagerCommitsPostSample.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + NetworkManagerCommit, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Post a Network Manager Commit. + * + * @summary Post a Network Manager Commit. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerCommitPost.json + */ +async function networkManageCommitPost() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["RESOURCE_GROUP"] || "resoureGroupSample"; + const networkManagerName = "testNetworkManager"; + const parameters: NetworkManagerCommit = { + commitType: "SecurityAdmin", + configurationIds: [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resoureGroupSample/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/SampleSecurityAdminConfig" + ], + targetLocations: ["useast"] + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.networkManagerCommits.beginPostAndWait( + resourceGroupName, + networkManagerName, + parameters + ); + console.log(result); +} + +async function main() { + networkManageCommitPost(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagerDeploymentStatusListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagerDeploymentStatusListSample.ts new file mode 100644 index 0000000000..5bc14708b2 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagerDeploymentStatusListSample.ts @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + NetworkManagerDeploymentStatusParameter, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Post to List of Network Manager Deployment Status. + * + * @summary Post to List of Network Manager Deployment Status. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerDeploymentStatusList.json + */ +async function networkManagerDeploymentStatusList() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["RESOURCE_GROUP"] || "resoureGroupSample"; + const networkManagerName = "testNetworkManager"; + const parameters: NetworkManagerDeploymentStatusParameter = { + deploymentTypes: ["Connectivity", "AdminPolicy"], + regions: ["eastus", "westus"], + skipToken: "FakeSkipTokenCode" + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.networkManagerDeploymentStatusOperations.list( + resourceGroupName, + networkManagerName, + parameters + ); + console.log(result); +} + +async function main() { + networkManagerDeploymentStatusList(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagersCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagersCreateOrUpdateSample.ts new file mode 100644 index 0000000000..5f88090ff2 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagersCreateOrUpdateSample.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + NetworkManager, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates a Network Manager. + * + * @summary Creates or updates a Network Manager. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerPut.json + */ +async function putNetworkManager() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "TestNetworkManager"; + const parameters: NetworkManager = { + description: "My Test Network Manager", + networkManagerScopeAccesses: ["Connectivity"], + networkManagerScopes: { + managementGroups: ["/Microsoft.Management/testmg"], + subscriptions: ["/subscriptions/00000000-0000-0000-0000-000000000000"] + } + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.networkManagers.createOrUpdate( + resourceGroupName, + networkManagerName, + parameters + ); + console.log(result); +} + +async function main() { + putNetworkManager(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagersDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagersDeleteSample.ts new file mode 100644 index 0000000000..25d3fd84da --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagersDeleteSample.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + NetworkManagersDeleteOptionalParams, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a network manager. + * + * @summary Deletes a network manager. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerDelete.json + */ +async function networkManagersDelete() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const force = false; + const options: NetworkManagersDeleteOptionalParams = { force }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.networkManagers.beginDeleteAndWait( + resourceGroupName, + networkManagerName, + options + ); + console.log(result); +} + +async function main() { + networkManagersDelete(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagersGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagersGetSample.ts new file mode 100644 index 0000000000..0c7a734510 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagersGetSample.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the specified Network Manager. + * + * @summary Gets the specified Network Manager. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerGet.json + */ +async function networkManagersGet() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.networkManagers.get( + resourceGroupName, + networkManagerName + ); + console.log(result); +} + +async function main() { + networkManagersGet(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagersListBySubscriptionSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagersListBySubscriptionSample.ts new file mode 100644 index 0000000000..a79dfc36da --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagersListBySubscriptionSample.ts @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List all network managers in a subscription. + * + * @summary List all network managers in a subscription. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerListAll.json + */ +async function networkManagersList() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.networkManagers.listBySubscription()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + networkManagersList(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagersListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagersListSample.ts new file mode 100644 index 0000000000..244b79c3f0 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagersListSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List network managers in a resource group. + * + * @summary List network managers in a resource group. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerList.json + */ +async function listNetworkManager() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.networkManagers.list(resourceGroupName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listNetworkManager(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagersPatchSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagersPatchSample.ts new file mode 100644 index 0000000000..bec98f2160 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkManagersPatchSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + PatchObject, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Patch NetworkManager. + * + * @summary Patch NetworkManager. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerPatch.json + */ +async function networkManagesPatch() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const parameters: PatchObject = { tags: { tag1: "value1", tag2: "value2" } }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.networkManagers.patch( + resourceGroupName, + networkManagerName, + parameters + ); + console.log(result); +} + +async function main() { + networkManagesPatch(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesCreateOrUpdateSample.ts index b1a13fdb43..bc6726f624 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a network profile. * * @summary Creates or updates a network profile. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkProfileCreateConfigOnly.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkProfileCreateConfigOnly.json */ async function createNetworkProfileDefaults() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesDeleteSample.ts index cb2e45badf..789b9b96a5 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified network profile. * * @summary Deletes the specified network profile. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkProfileDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkProfileDelete.json */ async function deleteNetworkProfile() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesGetSample.ts index 410081d54d..668f2ceddf 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified network profile in a specified resource group. * * @summary Gets the specified network profile in a specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkProfileGetConfigOnly.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkProfileGetConfigOnly.json */ async function getNetworkProfile() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -37,7 +37,7 @@ async function getNetworkProfile() { * This sample demonstrates how to Gets the specified network profile in a specified resource group. * * @summary Gets the specified network profile in a specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkProfileGetWithContainerNic.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkProfileGetWithContainerNic.json */ async function getNetworkProfileWithContainerNetworkInterfaces() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesListAllSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesListAllSample.ts index 6d9fde4286..55024229c7 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesListAllSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesListAllSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the network profiles in a subscription. * * @summary Gets all the network profiles in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkProfileListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkProfileListAll.json */ async function listAllNetworkProfiles() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesListSample.ts index 613c61d7d7..3cca0e92ab 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all network profiles in a resource group. * * @summary Gets all network profiles in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkProfileList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkProfileList.json */ async function listResourceGroupNetworkProfiles() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesUpdateTagsSample.ts index 0c8767f9f5..bcf063c554 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkProfilesUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates network profile tags. * * @summary Updates network profile tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkProfileUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkProfileUpdateTags.json */ async function updateNetworkProfileTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsCreateOrUpdateSample.ts index 1e9bfc3f8e..813eb5b69a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a network security group in the specified resource group. * * @summary Creates or updates a network security group in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkSecurityGroupCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkSecurityGroupCreate.json */ async function createNetworkSecurityGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -42,7 +42,7 @@ async function createNetworkSecurityGroup() { * This sample demonstrates how to Creates or updates a network security group in the specified resource group. * * @summary Creates or updates a network security group in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkSecurityGroupCreateWithRule.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkSecurityGroupCreateWithRule.json */ async function createNetworkSecurityGroupWithRule() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsDeleteSample.ts index 6214bb555a..9b6ff92e84 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified network security group. * * @summary Deletes the specified network security group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkSecurityGroupDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkSecurityGroupDelete.json */ async function deleteNetworkSecurityGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsGetSample.ts index aae0752af0..c596bc10b2 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified network security group. * * @summary Gets the specified network security group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkSecurityGroupGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkSecurityGroupGet.json */ async function getNetworkSecurityGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsListAllSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsListAllSample.ts index cf07b83b40..a356164868 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsListAllSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsListAllSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all network security groups in a subscription. * * @summary Gets all network security groups in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkSecurityGroupListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkSecurityGroupListAll.json */ async function listAllNetworkSecurityGroups() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsListSample.ts index d81e7376f7..c6e025ac72 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all network security groups in a resource group. * * @summary Gets all network security groups in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkSecurityGroupList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkSecurityGroupList.json */ async function listNetworkSecurityGroupsInResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsUpdateTagsSample.ts index ac017b4719..0e9427aab6 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkSecurityGroupsUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a network security group tags. * * @summary Updates a network security group tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkSecurityGroupUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkSecurityGroupUpdateTags.json */ async function updateNetworkSecurityGroupTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesCreateOrUpdateSample.ts index 66ad747206..f15fd955f7 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the specified Network Virtual Appliance. * * @summary Creates or updates the specified Network Virtual Appliance. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkVirtualAppliancePut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkVirtualAppliancePut.json */ async function createNetworkVirtualAppliance() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -63,8 +63,38 @@ async function createNetworkVirtualAppliance() { console.log(result); } +/** + * This sample demonstrates how to Creates or updates the specified Network Virtual Appliance. + * + * @summary Creates or updates the specified Network Virtual Appliance. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkVirtualApplianceSaaSPut.json + */ +async function createSaaSNetworkVirtualAppliance() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkVirtualApplianceName = "nva"; + const parameters: NetworkVirtualAppliance = { + delegation: { serviceName: "PaloAltoNetworks.Cloudngfw/firewalls" }, + location: "West US", + tags: { key1: "value1" }, + virtualHub: { + id: + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1" + } + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.networkVirtualAppliances.beginCreateOrUpdateAndWait( + resourceGroupName, + networkVirtualApplianceName, + parameters + ); + console.log(result); +} + async function main() { createNetworkVirtualAppliance(); + createSaaSNetworkVirtualAppliance(); } main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesDeleteSample.ts index f294290dbb..128fb66f02 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Network Virtual Appliance. * * @summary Deletes the specified Network Virtual Appliance. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkVirtualApplianceDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkVirtualApplianceDelete.json */ async function deleteNetworkVirtualAppliance() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesGetSample.ts index 1fdfe17fa4..d76671e511 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified Network Virtual Appliance. * * @summary Gets the specified Network Virtual Appliance. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkVirtualApplianceGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkVirtualApplianceGet.json */ async function getNetworkVirtualAppliance() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesListByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesListByResourceGroupSample.ts index 74b08eb8f1..306f2a16d4 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesListByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all Network Virtual Appliances in a resource group. * * @summary Lists all Network Virtual Appliances in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkVirtualApplianceListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkVirtualApplianceListByResourceGroup.json */ async function listAllNetworkVirtualApplianceForAGivenResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesListSample.ts index 9b64cb4b8e..e250e3a90a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all Network Virtual Appliances in a subscription. * * @summary Gets all Network Virtual Appliances in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkVirtualApplianceListBySubscription.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkVirtualApplianceListBySubscription.json */ async function listAllNetworkVirtualAppliancesForAGivenSubscription() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesUpdateTagsSample.ts index 3602b8246e..46658e32d3 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkVirtualAppliancesUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a Network Virtual Appliance. * * @summary Updates a Network Virtual Appliance. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkVirtualApplianceUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkVirtualApplianceUpdateTags.json */ async function updateNetworkVirtualAppliance() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersCheckConnectivitySample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersCheckConnectivitySample.ts index 99d1e3871c..0d96c461ae 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersCheckConnectivitySample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersCheckConnectivitySample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint including another VM or an arbitrary remote server. * * @summary Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint including another VM or an arbitrary remote server. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherConnectivityCheck.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherConnectivityCheck.json */ async function checkConnectivity() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersCreateOrUpdateSample.ts index 3cef1e28c8..a5392cf175 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a network watcher in the specified resource group. * * @summary Creates or updates a network watcher in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherCreate.json */ async function createNetworkWatcher() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersDeleteSample.ts index 032eca2609..f809328a08 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified network watcher resource. * * @summary Deletes the specified network watcher resource. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherDelete.json */ async function deleteNetworkWatcher() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetAzureReachabilityReportSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetAzureReachabilityReportSample.ts index 948d49a106..050fd70e79 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetAzureReachabilityReportSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetAzureReachabilityReportSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score for internet service providers from a specified location to Azure regions. * * @summary NOTE: This feature is currently in preview and still being tested for stability. Gets the relative latency score for internet service providers from a specified location to Azure regions. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherAzureReachabilityReportGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherAzureReachabilityReportGet.json */ async function getAzureReachabilityReport() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetFlowLogStatusSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetFlowLogStatusSample.ts index 1b947d5063..2eb92baed6 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetFlowLogStatusSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetFlowLogStatusSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Queries status of flow log and traffic analytics (optional) on a specified resource. * * @summary Queries status of flow log and traffic analytics (optional) on a specified resource. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherFlowLogStatusQuery.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherFlowLogStatusQuery.json */ async function getFlowLogStatus() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetNetworkConfigurationDiagnosticSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetNetworkConfigurationDiagnosticSample.ts index 44805ea2d3..e5fe8b2672 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetNetworkConfigurationDiagnosticSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetNetworkConfigurationDiagnosticSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Gets Network Configuration Diagnostic data to help customers understand and debug network behavior. It provides detailed information on what security rules were applied to a specified traffic flow and the result of evaluating these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results. * * @summary Gets Network Configuration Diagnostic data to help customers understand and debug network behavior. It provides detailed information on what security rules were applied to a specified traffic flow and the result of evaluating these rules. Customers must provide details of a flow like source, destination, protocol, etc. The API returns whether traffic was allowed or denied, the rules evaluated for the specified flow and the evaluation results. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherNetworkConfigurationDiagnostic.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherNetworkConfigurationDiagnostic.json */ async function networkConfigurationDiagnostic() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetNextHopSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetNextHopSample.ts index 4f88c2dde8..0546df5c7c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetNextHopSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetNextHopSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Gets the next hop from the specified VM. * * @summary Gets the next hop from the specified VM. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherNextHopGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherNextHopGet.json */ async function getNextHop() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetSample.ts index 7781de09d7..57d714f55b 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified network watcher by resource group. * * @summary Gets the specified network watcher by resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherGet.json */ async function getNetworkWatcher() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetTopologySample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetTopologySample.ts index b2a1721979..6bafad6020 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetTopologySample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetTopologySample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Gets the current network topology by resource group. * * @summary Gets the current network topology by resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherTopologyGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherTopologyGet.json */ async function getTopology() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetTroubleshootingResultSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetTroubleshootingResultSample.ts index dee024f7c6..3453c77ea8 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetTroubleshootingResultSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetTroubleshootingResultSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Get the last completed troubleshooting result on a specified resource. * * @summary Get the last completed troubleshooting result on a specified resource. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherTroubleshootResultQuery.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherTroubleshootResultQuery.json */ async function getTroubleshootResult() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetTroubleshootingSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetTroubleshootingSample.ts index afb108481f..380bd41888 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetTroubleshootingSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetTroubleshootingSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Initiate troubleshooting on a specified resource. * * @summary Initiate troubleshooting on a specified resource. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherTroubleshootGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherTroubleshootGet.json */ async function getTroubleshooting() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetVMSecurityRulesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetVMSecurityRulesSample.ts index 7042145616..51fa33b18e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetVMSecurityRulesSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersGetVMSecurityRulesSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Gets the configured and effective security group rules on the specified VM. * * @summary Gets the configured and effective security group rules on the specified VM. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherSecurityGroupViewGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherSecurityGroupViewGet.json */ async function getSecurityGroupView() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersListAllSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersListAllSample.ts index 1d1b57568c..e6057ee850 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersListAllSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersListAllSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all network watchers by subscription. * * @summary Gets all network watchers by subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherListAll.json */ async function listAllNetworkWatchers() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersListAvailableProvidersSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersListAvailableProvidersSample.ts index b89bcd1f3b..cc2f8ad5ea 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersListAvailableProvidersSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersListAvailableProvidersSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet service providers for a specified Azure region. * * @summary NOTE: This feature is currently in preview and still being tested for stability. Lists all available internet service providers for a specified Azure region. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherAvailableProvidersListGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherAvailableProvidersListGet.json */ async function getAvailableProvidersList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersListSample.ts index d0e412df46..13bc1bf1f6 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all network watchers by resource group. * * @summary Gets all network watchers by resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherList.json */ async function listNetworkWatchers() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersSetFlowLogConfigurationSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersSetFlowLogConfigurationSample.ts index 9c2e7c9930..1672d91100 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersSetFlowLogConfigurationSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersSetFlowLogConfigurationSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Configures flow log and traffic analytics (optional) on a specified resource. * * @summary Configures flow log and traffic analytics (optional) on a specified resource. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherFlowLogConfigure.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherFlowLogConfigure.json */ async function configureFlowLog() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersUpdateTagsSample.ts index d67a9d849d..5a216ba90e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a network watcher tags. * * @summary Updates a network watcher tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherUpdateTags.json */ async function updateNetworkWatcherTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersVerifyIPFlowSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersVerifyIPFlowSample.ts index ff43682a83..891e5174d5 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersVerifyIPFlowSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/networkWatchersVerifyIPFlowSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Verify IP flow from the specified VM to a location given the currently configured NSG rules. * * @summary Verify IP flow from the specified VM to a location given the currently configured NSG rules. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherIpFlowVerify.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherIpFlowVerify.json */ async function ipFlowVerify() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/operationsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/operationsListSample.ts index 7de82c5201..c74ff5c71e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/operationsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the available Network Rest API operations. * * @summary Lists all of the available Network Rest API operations. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/OperationList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/OperationList.json */ async function getAListOfOperationsForAResourceProvider() { const subscriptionId = diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysCreateOrUpdateSample.ts index ae904ebddd..86ac807dd5 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. * * @summary Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/P2SVpnGatewayPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/P2SVpnGatewayPut.json */ async function p2SVpnGatewayPut() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysDeleteSample.ts index d88714ee94..fa7caf3100 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a virtual wan p2s vpn gateway. * * @summary Deletes a virtual wan p2s vpn gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/P2SVpnGatewayDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/P2SVpnGatewayDelete.json */ async function p2SVpnGatewayDelete() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysDisconnectP2SvpnConnectionsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysDisconnectP2SvpnConnectionsSample.ts index c0df23e8ed..1379357923 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysDisconnectP2SvpnConnectionsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysDisconnectP2SvpnConnectionsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group. * * @summary Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/P2sVpnGatewaysDisconnectP2sVpnConnections.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/P2sVpnGatewaysDisconnectP2sVpnConnections.json */ async function disconnectVpnConnectionsFromP2SVpnGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysGenerateVpnProfileSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysGenerateVpnProfileSample.ts index 012cba0715..22522aee35 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysGenerateVpnProfileSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysGenerateVpnProfileSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. * * @summary Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/P2SVpnGatewayGenerateVpnProfile.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/P2SVpnGatewayGenerateVpnProfile.json */ async function generateP2SVpnGatewayVpnprofile() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysGetP2SvpnConnectionHealthDetailedSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysGetP2SvpnConnectionHealthDetailedSample.ts index 3d395502cc..1195374368 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysGetP2SvpnConnectionHealthDetailedSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysGetP2SvpnConnectionHealthDetailedSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. * * @summary Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/P2SVpnGatewayGetConnectionHealthDetailed.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/P2SVpnGatewayGetConnectionHealthDetailed.json */ async function p2SVpnGatewayGetConnectionHealthDetailed() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysGetP2SvpnConnectionHealthSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysGetP2SvpnConnectionHealthSample.ts index b6552953ff..0011639e4b 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysGetP2SvpnConnectionHealthSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysGetP2SvpnConnectionHealthSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. * * @summary Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/P2SVpnGatewayGetConnectionHealth.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/P2SVpnGatewayGetConnectionHealth.json */ async function p2SVpnGatewayGetConnectionHealth() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysGetSample.ts index 13938eb7d6..15f617be94 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of a virtual wan p2s vpn gateway. * * @summary Retrieves the details of a virtual wan p2s vpn gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/P2SVpnGatewayGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/P2SVpnGatewayGet.json */ async function p2SVpnGatewayGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysListByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysListByResourceGroupSample.ts index 80d26a7dd0..a904953b68 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysListByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the P2SVpnGateways in a resource group. * * @summary Lists all the P2SVpnGateways in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/P2SVpnGatewayListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/P2SVpnGatewayListByResourceGroup.json */ async function p2SVpnGatewayListByResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysListSample.ts index c0db43c4a3..527d939dc8 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the P2SVpnGateways in a subscription. * * @summary Lists all the P2SVpnGateways in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/P2SVpnGatewayList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/P2SVpnGatewayList.json */ async function p2SVpnGatewayListBySubscription() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysResetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysResetSample.ts index dffa521987..ed199cbfbc 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysResetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysResetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Resets the primary of the p2s vpn gateway in the specified resource group. * * @summary Resets the primary of the p2s vpn gateway in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/P2SVpnGatewayReset.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/P2SVpnGatewayReset.json */ async function resetP2SVpnGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysUpdateTagsSample.ts index 8bda65a950..aef0f1cd39 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/p2SVpnGatewaysUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates virtual wan p2s vpn gateway tags. * * @summary Updates virtual wan p2s vpn gateway tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/P2SVpnGatewayUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/P2SVpnGatewayUpdateTags.json */ async function p2SVpnGatewayUpdate() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesCreateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesCreateSample.ts index 271d4ed7e3..24de9c7381 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesCreateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesCreateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create and start a packet capture on the specified VM. * * @summary Create and start a packet capture on the specified VM. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherPacketCaptureCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherPacketCaptureCreate.json */ async function createPacketCapture() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesDeleteSample.ts index 9ca6c3565e..80ca96a59f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified packet capture session. * * @summary Deletes the specified packet capture session. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherPacketCaptureDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherPacketCaptureDelete.json */ async function deletePacketCapture() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesGetSample.ts index bb687ac0dc..1b9c9aa59d 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a packet capture session by name. * * @summary Gets a packet capture session by name. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherPacketCaptureGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherPacketCaptureGet.json */ async function getPacketCapture() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesGetStatusSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesGetStatusSample.ts index 622360b342..00bf1ad75c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesGetStatusSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesGetStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Query the status of a running packet capture session. * * @summary Query the status of a running packet capture session. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherPacketCaptureQueryStatus.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherPacketCaptureQueryStatus.json */ async function queryPacketCaptureStatus() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesListSample.ts index 925ae9878b..6e55c072ab 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all packet capture sessions within the specified resource group. * * @summary Lists all packet capture sessions within the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherPacketCapturesList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherPacketCapturesList.json */ async function listPacketCaptures() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesStopSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesStopSample.ts index 67ea43c43a..5599f19121 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesStopSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/packetCapturesStopSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Stops a specified packet capture session. * * @summary Stops a specified packet capture session. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkWatcherPacketCaptureStop.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkWatcherPacketCaptureStop.json */ async function stopPacketCapture() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/peerExpressRouteCircuitConnectionsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/peerExpressRouteCircuitConnectionsGetSample.ts index f45f8dbae3..ca7e564700 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/peerExpressRouteCircuitConnectionsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/peerExpressRouteCircuitConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified Peer Express Route Circuit Connection from the specified express route circuit. * * @summary Gets the specified Peer Express Route Circuit Connection from the specified express route circuit. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PeerExpressRouteCircuitConnectionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PeerExpressRouteCircuitConnectionGet.json */ async function peerExpressRouteCircuitConnectionGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid1"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/peerExpressRouteCircuitConnectionsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/peerExpressRouteCircuitConnectionsListSample.ts index 2fde3e56a6..6c9ad555d2 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/peerExpressRouteCircuitConnectionsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/peerExpressRouteCircuitConnectionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all global reach peer connections associated with a private peering in an express route circuit. * * @summary Gets all global reach peer connections associated with a private peering in an express route circuit. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PeerExpressRouteCircuitConnectionList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PeerExpressRouteCircuitConnectionList.json */ async function listPeerExpressRouteCircuitConnection() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid1"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateDnsZoneGroupsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateDnsZoneGroupsCreateOrUpdateSample.ts index 9483da69fa..2ef19745f7 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateDnsZoneGroupsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateDnsZoneGroupsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a private dns zone group in the specified private endpoint. * * @summary Creates or updates a private dns zone group in the specified private endpoint. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PrivateEndpointDnsZoneGroupCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PrivateEndpointDnsZoneGroupCreate.json */ async function createPrivateDnsZoneGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateDnsZoneGroupsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateDnsZoneGroupsDeleteSample.ts index effe8a50ca..e8c79edc43 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateDnsZoneGroupsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateDnsZoneGroupsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified private dns zone group. * * @summary Deletes the specified private dns zone group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PrivateEndpointDnsZoneGroupDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PrivateEndpointDnsZoneGroupDelete.json */ async function deletePrivateDnsZoneGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateDnsZoneGroupsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateDnsZoneGroupsGetSample.ts index 70cd1418f7..ba994559b1 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateDnsZoneGroupsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateDnsZoneGroupsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the private dns zone group resource by specified private dns zone group name. * * @summary Gets the private dns zone group resource by specified private dns zone group name. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PrivateEndpointDnsZoneGroupGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PrivateEndpointDnsZoneGroupGet.json */ async function getPrivateDnsZoneGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateDnsZoneGroupsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateDnsZoneGroupsListSample.ts index c1961f967f..40b1a19737 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateDnsZoneGroupsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateDnsZoneGroupsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all private dns zone groups in a private endpoint. * * @summary Gets all private dns zone groups in a private endpoint. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PrivateEndpointDnsZoneGroupList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PrivateEndpointDnsZoneGroupList.json */ async function listPrivateEndpointsInResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateEndpointsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateEndpointsCreateOrUpdateSample.ts index 571d5675fa..b18f2d4bd6 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateEndpointsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateEndpointsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an private endpoint in the specified resource group. * * @summary Creates or updates an private endpoint in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PrivateEndpointCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PrivateEndpointCreate.json */ async function createPrivateEndpoint() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; @@ -65,7 +65,7 @@ async function createPrivateEndpoint() { * This sample demonstrates how to Creates or updates an private endpoint in the specified resource group. * * @summary Creates or updates an private endpoint in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PrivateEndpointCreateWithASG.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PrivateEndpointCreateWithASG.json */ async function createPrivateEndpointWithApplicationSecurityGroups() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; @@ -106,7 +106,7 @@ async function createPrivateEndpointWithApplicationSecurityGroups() { * This sample demonstrates how to Creates or updates an private endpoint in the specified resource group. * * @summary Creates or updates an private endpoint in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PrivateEndpointCreateForManualApproval.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PrivateEndpointCreateForManualApproval.json */ async function createPrivateEndpointWithManualApprovalConnection() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateEndpointsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateEndpointsDeleteSample.ts index a588957dac..b24f1e932d 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateEndpointsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateEndpointsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified private endpoint. * * @summary Deletes the specified private endpoint. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PrivateEndpointDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PrivateEndpointDelete.json */ async function deletePrivateEndpoint() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateEndpointsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateEndpointsGetSample.ts index f3ee8e0ba2..d5f5957695 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateEndpointsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateEndpointsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified private endpoint by resource group. * * @summary Gets the specified private endpoint by resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PrivateEndpointGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PrivateEndpointGet.json */ async function getPrivateEndpoint() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; @@ -37,7 +37,7 @@ async function getPrivateEndpoint() { * This sample demonstrates how to Gets the specified private endpoint by resource group. * * @summary Gets the specified private endpoint by resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PrivateEndpointGetWithASG.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PrivateEndpointGetWithASG.json */ async function getPrivateEndpointWithApplicationSecurityGroups() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; @@ -56,7 +56,7 @@ async function getPrivateEndpointWithApplicationSecurityGroups() { * This sample demonstrates how to Gets the specified private endpoint by resource group. * * @summary Gets the specified private endpoint by resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PrivateEndpointGetForManualApproval.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PrivateEndpointGetForManualApproval.json */ async function getPrivateEndpointWithManualApprovalConnection() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateEndpointsListBySubscriptionSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateEndpointsListBySubscriptionSample.ts index 0b0d6714fd..840639d98a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateEndpointsListBySubscriptionSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateEndpointsListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all private endpoints in a subscription. * * @summary Gets all private endpoints in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PrivateEndpointListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PrivateEndpointListAll.json */ async function listAllPrivateEndpoints() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateEndpointsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateEndpointsListSample.ts index ddb3a1a422..b106ca2283 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateEndpointsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateEndpointsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all private endpoints in a resource group. * * @summary Gets all private endpoints in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PrivateEndpointList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PrivateEndpointList.json */ async function listPrivateEndpointsInResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupSample.ts index 39b4f11de0..af905a0257 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Checks whether the subscription is visible to private link service in the specified resource group. * * @summary Checks whether the subscription is visible to private link service in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/CheckPrivateLinkServiceVisibilityByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/CheckPrivateLinkServiceVisibilityByResourceGroup.json */ async function checkPrivateLinkServiceVisibility() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesCheckPrivateLinkServiceVisibilitySample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesCheckPrivateLinkServiceVisibilitySample.ts index 92f25b60e0..cf29b0377e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesCheckPrivateLinkServiceVisibilitySample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesCheckPrivateLinkServiceVisibilitySample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Checks whether the subscription is visible to private link service. * * @summary Checks whether the subscription is visible to private link service. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/CheckPrivateLinkServiceVisibility.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/CheckPrivateLinkServiceVisibility.json */ async function checkPrivateLinkServiceVisibility() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesCreateOrUpdateSample.ts index f1b0e930e2..9480f53092 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates an private link service in the specified resource group. * * @summary Creates or updates an private link service in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PrivateLinkServiceCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PrivateLinkServiceCreate.json */ async function createPrivateLinkService() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesDeletePrivateEndpointConnectionSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesDeletePrivateEndpointConnectionSample.ts index 93da81a6f0..556530f430 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesDeletePrivateEndpointConnectionSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesDeletePrivateEndpointConnectionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete private end point connection for a private link service in a subscription. * * @summary Delete private end point connection for a private link service in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PrivateLinkServiceDeletePrivateEndpointConnection.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PrivateLinkServiceDeletePrivateEndpointConnection.json */ async function deletePrivateEndPointConnectionForAPrivateLinkService() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesDeleteSample.ts index 37c57d5717..38ce796eac 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified private link service. * * @summary Deletes the specified private link service. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PrivateLinkServiceDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PrivateLinkServiceDelete.json */ async function deletePrivateLinkService() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesGetPrivateEndpointConnectionSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesGetPrivateEndpointConnectionSample.ts index d2993c202d..2d08294bc1 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesGetPrivateEndpointConnectionSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesGetPrivateEndpointConnectionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the specific private end point connection by specific private link service in the resource group. * * @summary Get the specific private end point connection by specific private link service in the resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json */ async function getPrivateEndPointConnection() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesGetSample.ts index 8b8ecc177a..0d0bccf1b0 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified private link service by resource group. * * @summary Gets the specified private link service by resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PrivateLinkServiceGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PrivateLinkServiceGet.json */ async function getPrivateLinkService() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupSample.ts index 26230bc895..c00874fd0a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region. * * @summary Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AutoApprovedPrivateLinkServicesResourceGroupGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AutoApprovedPrivateLinkServicesResourceGroupGet.json */ async function getListOfPrivateLinkServiceIdThatCanBeLinkedToAPrivateEndPointWithAutoApproved() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesListAutoApprovedPrivateLinkServicesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesListAutoApprovedPrivateLinkServicesSample.ts index ed36959d83..88fe3ac4da 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesListAutoApprovedPrivateLinkServicesSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesListAutoApprovedPrivateLinkServicesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region. * * @summary Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AutoApprovedPrivateLinkServicesGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AutoApprovedPrivateLinkServicesGet.json */ async function getListOfPrivateLinkServiceIdThatCanBeLinkedToAPrivateEndPointWithAutoApproved() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesListBySubscriptionSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesListBySubscriptionSample.ts index 0685b232e3..ba9805ba86 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesListBySubscriptionSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all private link service in a subscription. * * @summary Gets all private link service in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PrivateLinkServiceListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PrivateLinkServiceListAll.json */ async function listAllPrivateListService() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesListPrivateEndpointConnectionsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesListPrivateEndpointConnectionsSample.ts index b2d1251415..8be470d26c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesListPrivateEndpointConnectionsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesListPrivateEndpointConnectionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all private end point connections for a specific private link service. * * @summary Gets all private end point connections for a specific private link service. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PrivateLinkServiceListPrivateEndpointConnection.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PrivateLinkServiceListPrivateEndpointConnection.json */ async function listPrivateLinkServiceInResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesListSample.ts index 5fdd2aea68..245c283b49 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all private link services in a resource group. * * @summary Gets all private link services in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PrivateLinkServiceList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PrivateLinkServiceList.json */ async function listPrivateLinkServiceInResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesUpdatePrivateEndpointConnectionSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesUpdatePrivateEndpointConnectionSample.ts index 8815f4fddb..2405c358d0 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesUpdatePrivateEndpointConnectionSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/privateLinkServicesUpdatePrivateEndpointConnectionSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Approve or reject private end point connection for a private link service in a subscription. * * @summary Approve or reject private end point connection for a private link service in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json */ async function approveOrRejectPrivateEndPointConnectionForAPrivateLinkService() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesCreateOrUpdateSample.ts index f938c9a2a6..262756ae02 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a static or dynamic public IP address. * * @summary Creates or updates a static or dynamic public IP address. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PublicIpAddressCreateDns.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PublicIpAddressCreateDns.json */ async function createPublicIPAddressDns() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -45,7 +45,7 @@ async function createPublicIPAddressDns() { * This sample demonstrates how to Creates or updates a static or dynamic public IP address. * * @summary Creates or updates a static or dynamic public IP address. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PublicIpAddressCreateCustomizedValues.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PublicIpAddressCreateCustomizedValues.json */ async function createPublicIPAddressAllocationMethod() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -72,7 +72,7 @@ async function createPublicIPAddressAllocationMethod() { * This sample demonstrates how to Creates or updates a static or dynamic public IP address. * * @summary Creates or updates a static or dynamic public IP address. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PublicIpAddressCreateDefaults.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PublicIpAddressCreateDefaults.json */ async function createPublicIPAddressDefaults() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesDdosProtectionStatusSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesDdosProtectionStatusSample.ts new file mode 100644 index 0000000000..bca3734c86 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesDdosProtectionStatusSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the Ddos Protection Status of a Public IP Address + * + * @summary Gets the Ddos Protection Status of a Public IP Address + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PublicIpAddressGetDdosProtectionStatus.json + */ +async function getDdosProtectionStatusOfAPublicIPAddress() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const publicIpAddressName = "test-pip"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.publicIPAddresses.beginDdosProtectionStatusAndWait( + resourceGroupName, + publicIpAddressName + ); + console.log(result); +} + +async function main() { + getDdosProtectionStatusOfAPublicIPAddress(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesDeleteSample.ts index 3e702c537f..ae9a6bd710 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified public IP address. * * @summary Deletes the specified public IP address. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PublicIpAddressDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PublicIpAddressDelete.json */ async function deletePublicIPAddress() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesGetCloudServicePublicIpaddressSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesGetCloudServicePublicIpaddressSample.ts index 8a0768cb8b..923cce4566 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesGetCloudServicePublicIpaddressSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesGetCloudServicePublicIpaddressSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the specified public IP address in a cloud service. * * @summary Get the specified public IP address in a cloud service. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/CloudServicePublicIpGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/CloudServicePublicIpGet.json */ async function getVmssPublicIP() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesGetSample.ts index d375ccc703..027bac2ddc 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified public IP address in a specified resource group. * * @summary Gets the specified public IP address in a specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PublicIpAddressGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PublicIpAddressGet.json */ async function getPublicIPAddress() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesGetVirtualMachineScaleSetPublicIpaddressSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesGetVirtualMachineScaleSetPublicIpaddressSample.ts index 446a748bb3..9f7c478419 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesGetVirtualMachineScaleSetPublicIpaddressSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesGetVirtualMachineScaleSetPublicIpaddressSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the specified public IP address in a virtual machine scale set. * * @summary Get the specified public IP address in a virtual machine scale set. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VmssPublicIpGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VmssPublicIpGet.json */ async function getVmssPublicIP() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListAllSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListAllSample.ts index 7054fccd51..f11ba4c769 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListAllSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListAllSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the public IP addresses in a subscription. * * @summary Gets all the public IP addresses in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PublicIpAddressListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PublicIpAddressListAll.json */ async function listAllPublicIPAddresses() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListCloudServicePublicIpaddressesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListCloudServicePublicIpaddressesSample.ts index cb29355a9f..3bb4fba273 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListCloudServicePublicIpaddressesSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListCloudServicePublicIpaddressesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about all public IP addresses on a cloud service level. * * @summary Gets information about all public IP addresses on a cloud service level. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/CloudServicePublicIpListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/CloudServicePublicIpListAll.json */ async function listVmssPublicIP() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListCloudServiceRoleInstancePublicIpaddressesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListCloudServiceRoleInstancePublicIpaddressesSample.ts index b3bdb55cbb..5de2306495 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListCloudServiceRoleInstancePublicIpaddressesSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListCloudServiceRoleInstancePublicIpaddressesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about all public IP addresses in a role instance IP configuration in a cloud service. * * @summary Gets information about all public IP addresses in a role instance IP configuration in a cloud service. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/CloudServiceRoleInstancePublicIpList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/CloudServiceRoleInstancePublicIpList.json */ async function listVmssvmPublicIP() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListSample.ts index 56e6485f79..fdbeea5264 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all public IP addresses in a resource group. * * @summary Gets all public IP addresses in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PublicIpAddressList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PublicIpAddressList.json */ async function listResourceGroupPublicIPAddresses() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListVirtualMachineScaleSetPublicIpaddressesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListVirtualMachineScaleSetPublicIpaddressesSample.ts index d41fe56b6d..aad2bc0dcc 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListVirtualMachineScaleSetPublicIpaddressesSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListVirtualMachineScaleSetPublicIpaddressesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about all public IP addresses on a virtual machine scale set level. * * @summary Gets information about all public IP addresses on a virtual machine scale set level. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VmssPublicIpListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VmssPublicIpListAll.json */ async function listVmssPublicIP() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListVirtualMachineScaleSetVmpublicIpaddressesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListVirtualMachineScaleSetVmpublicIpaddressesSample.ts index 5255b41b08..4e776ecd3e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListVirtualMachineScaleSetVmpublicIpaddressesSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesListVirtualMachineScaleSetVmpublicIpaddressesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale set. * * @summary Gets information about all public IP addresses in a virtual machine IP configuration in a virtual machine scale set. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VmssVmPublicIpList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VmssVmPublicIpList.json */ async function listVmssvmPublicIP() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesUpdateTagsSample.ts index 8d72546dc5..335865a623 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPAddressesUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates public IP address tags. * * @summary Updates public IP address tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PublicIpAddressUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PublicIpAddressUpdateTags.json */ async function updatePublicIPAddressTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesCreateOrUpdateSample.ts index d2d1aae61f..e7dfb69e60 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a static or dynamic public IP prefix. * * @summary Creates or updates a static or dynamic public IP prefix. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PublicIpPrefixCreateCustomizedValues.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PublicIpPrefixCreateCustomizedValues.json */ async function createPublicIPPrefixAllocationMethod() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -47,7 +47,7 @@ async function createPublicIPPrefixAllocationMethod() { * This sample demonstrates how to Creates or updates a static or dynamic public IP prefix. * * @summary Creates or updates a static or dynamic public IP prefix. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PublicIpPrefixCreateDefaults.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PublicIpPrefixCreateDefaults.json */ async function createPublicIPPrefixDefaults() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesDeleteSample.ts index bda23b3264..207be4c28a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified public IP prefix. * * @summary Deletes the specified public IP prefix. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PublicIpPrefixDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PublicIpPrefixDelete.json */ async function deletePublicIPPrefix() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesGetSample.ts index e747d043d7..5c4a4e94ad 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified public IP prefix in a specified resource group. * * @summary Gets the specified public IP prefix in a specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PublicIpPrefixGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PublicIpPrefixGet.json */ async function getPublicIPPrefix() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesListAllSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesListAllSample.ts index ae1ba970c9..5ee81ce35c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesListAllSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesListAllSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the public IP prefixes in a subscription. * * @summary Gets all the public IP prefixes in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PublicIpPrefixListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PublicIpPrefixListAll.json */ async function listAllPublicIPPrefixes() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesListSample.ts index 499f7259c3..cf274a7e71 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all public IP prefixes in a resource group. * * @summary Gets all public IP prefixes in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PublicIpPrefixList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PublicIpPrefixList.json */ async function listResourceGroupPublicIPPrefixes() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesUpdateTagsSample.ts index 0197c1e79c..17783d0e65 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/publicIPPrefixesUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates public IP prefix tags. * * @summary Updates public IP prefix tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/PublicIpPrefixUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/PublicIpPrefixUpdateTags.json */ async function updatePublicIPPrefixTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/putBastionShareableLinkSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/putBastionShareableLinkSample.ts index 8808d4306d..73ff81e0ba 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/putBastionShareableLinkSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/putBastionShareableLinkSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a Bastion Shareable Links for all the VMs specified in the request. * * @summary Creates a Bastion Shareable Links for all the VMs specified in the request. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/BastionShareableLinkCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/BastionShareableLinkCreate.json */ async function createBastionShareableLinksForTheRequestVMS() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/resourceNavigationLinksListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/resourceNavigationLinksListSample.ts index 1c815578c9..e165f516e0 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/resourceNavigationLinksListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/resourceNavigationLinksListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of resource navigation links for a subnet. * * @summary Gets a list of resource navigation links for a subnet. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGetResourceNavigationLinks.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGetResourceNavigationLinks.json */ async function getResourceNavigationLinks() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFilterRulesCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFilterRulesCreateOrUpdateSample.ts index 3fc3014b3e..503c54ef83 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFilterRulesCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFilterRulesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a route in the specified route filter. * * @summary Creates or updates a route in the specified route filter. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RouteFilterRuleCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteFilterRuleCreate.json */ async function routeFilterRuleCreate() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFilterRulesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFilterRulesDeleteSample.ts index a52c05e59e..6977118b00 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFilterRulesDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFilterRulesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified rule from a route filter. * * @summary Deletes the specified rule from a route filter. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RouteFilterRuleDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteFilterRuleDelete.json */ async function routeFilterRuleDelete() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFilterRulesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFilterRulesGetSample.ts index be2de4c0c7..89f0b6497a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFilterRulesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFilterRulesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified rule from a route filter. * * @summary Gets the specified rule from a route filter. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RouteFilterRuleGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteFilterRuleGet.json */ async function routeFilterRuleGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFilterRulesListByRouteFilterSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFilterRulesListByRouteFilterSample.ts index edd684485e..48c5fc09d5 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFilterRulesListByRouteFilterSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFilterRulesListByRouteFilterSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all RouteFilterRules in a route filter. * * @summary Gets all RouteFilterRules in a route filter. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RouteFilterRuleListByRouteFilter.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteFilterRuleListByRouteFilter.json */ async function routeFilterRuleListByRouteFilter() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersCreateOrUpdateSample.ts index 2be37007b3..99ad8dc256 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a route filter in a specified resource group. * * @summary Creates or updates a route filter in a specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RouteFilterCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteFilterCreate.json */ async function routeFilterCreate() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersDeleteSample.ts index dc97ac0486..61e6e394c6 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified route filter. * * @summary Deletes the specified route filter. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RouteFilterDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteFilterDelete.json */ async function routeFilterDelete() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersGetSample.ts index 8bc9b42272..4816fa4dd8 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified route filter. * * @summary Gets the specified route filter. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RouteFilterGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteFilterGet.json */ async function routeFilterGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersListByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersListByResourceGroupSample.ts index 8ed8dbf5d5..6624e8e3f9 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersListByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all route filters in a resource group. * * @summary Gets all route filters in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RouteFilterListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteFilterListByResourceGroup.json */ async function routeFilterListByResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersListSample.ts index ae5c5eaedc..03d29f8b1a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all route filters in a subscription. * * @summary Gets all route filters in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RouteFilterList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteFilterList.json */ async function routeFilterList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersUpdateTagsSample.ts index ff80dd59a0..551c7309d0 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeFiltersUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates tags of a route filter. * * @summary Updates tags of a route filter. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RouteFilterUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteFilterUpdateTags.json */ async function updateRouteFilterTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeMapsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeMapsCreateOrUpdateSample.ts new file mode 100644 index 0000000000..5f9ad8ffe5 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeMapsCreateOrUpdateSample.ts @@ -0,0 +1,72 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + RouteMap, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates a RouteMap if it doesn't exist else updates the existing one. + * + * @summary Creates a RouteMap if it doesn't exist else updates the existing one. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteMapPut.json + */ +async function routeMapPut() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const virtualHubName = "virtualHub1"; + const routeMapName = "routeMap1"; + const routeMapParameters: RouteMap = { + associatedInboundConnections: [ + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/exrGateway1/expressRouteConnections/exrConn1" + ], + associatedOutboundConnections: [], + rules: [ + { + name: "rule1", + actions: [ + { + type: "Add", + parameters: [{ asPath: ["22334"], community: [], routePrefix: [] }] + } + ], + matchCriteria: [ + { + asPath: [], + community: [], + matchCondition: "Contains", + routePrefix: ["10.0.0.0/8"] + } + ], + nextStepIfMatched: "Continue" + } + ] + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.routeMaps.beginCreateOrUpdateAndWait( + resourceGroupName, + virtualHubName, + routeMapName, + routeMapParameters + ); + console.log(result); +} + +async function main() { + routeMapPut(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeMapsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeMapsDeleteSample.ts new file mode 100644 index 0000000000..c9a4fafe91 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeMapsDeleteSample.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a RouteMap. + * + * @summary Deletes a RouteMap. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteMapDelete.json + */ +async function routeMapDelete() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const virtualHubName = "virtualHub1"; + const routeMapName = "routeMap1"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.routeMaps.beginDeleteAndWait( + resourceGroupName, + virtualHubName, + routeMapName + ); + console.log(result); +} + +async function main() { + routeMapDelete(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeMapsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeMapsGetSample.ts new file mode 100644 index 0000000000..7403d8467d --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeMapsGetSample.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Retrieves the details of a RouteMap. + * + * @summary Retrieves the details of a RouteMap. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteMapGet.json + */ +async function routeMapGet() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const virtualHubName = "virtualHub1"; + const routeMapName = "routeMap1"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.routeMaps.get( + resourceGroupName, + virtualHubName, + routeMapName + ); + console.log(result); +} + +async function main() { + routeMapGet(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeMapsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeMapsListSample.ts new file mode 100644 index 0000000000..a0adbe901d --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeMapsListSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Retrieves the details of all RouteMaps. + * + * @summary Retrieves the details of all RouteMaps. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteMapList.json + */ +async function routeMapList() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const virtualHubName = "virtualHub1"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.routeMaps.list( + resourceGroupName, + virtualHubName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + routeMapList(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesCreateOrUpdateSample.ts index 889b5adda4..1794174dc5 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or updates a route table in a specified resource group. * * @summary Create or updates a route table in a specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RouteTableCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteTableCreate.json */ async function createRouteTable() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -42,7 +42,7 @@ async function createRouteTable() { * This sample demonstrates how to Create or updates a route table in a specified resource group. * * @summary Create or updates a route table in a specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RouteTableCreateWithRoute.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteTableCreateWithRoute.json */ async function createRouteTableWithRoute() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesDeleteSample.ts index dc57439211..72bc38d138 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified route table. * * @summary Deletes the specified route table. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RouteTableDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteTableDelete.json */ async function deleteRouteTable() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesGetSample.ts index 7ecaa0d5bf..cfaf816d40 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified route table. * * @summary Gets the specified route table. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RouteTableGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteTableGet.json */ async function getRouteTable() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesListAllSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesListAllSample.ts index d7f734cc4f..f5fe24f10b 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesListAllSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesListAllSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all route tables in a subscription. * * @summary Gets all route tables in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RouteTableListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteTableListAll.json */ async function listAllRouteTables() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesListSample.ts index 63f6efcae8..d62997c612 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all route tables in a resource group. * * @summary Gets all route tables in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RouteTableList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteTableList.json */ async function listRouteTablesInResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesUpdateTagsSample.ts index af414ab421..0214cabf9e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routeTablesUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a route table tags. * * @summary Updates a route table tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RouteTableUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteTableUpdateTags.json */ async function updateRouteTableTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routesCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routesCreateOrUpdateSample.ts index a47281ef1e..31b8ed0bdf 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routesCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a route in the specified route table. * * @summary Creates or updates a route in the specified route table. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RouteTableRouteCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteTableRouteCreate.json */ async function createRoute() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routesDeleteSample.ts index 7de6e09df1..4847e2a45e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routesDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified route from a route table. * * @summary Deletes the specified route from a route table. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RouteTableRouteDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteTableRouteDelete.json */ async function deleteRoute() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routesGetSample.ts index 6ad1706297..9275846ff3 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified route from a route table. * * @summary Gets the specified route from a route table. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RouteTableRouteGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteTableRouteGet.json */ async function getRoute() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routesListSample.ts index aa632804d2..020f3b56fa 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all routes in a route table. * * @summary Gets all routes in a route table. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RouteTableRouteList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RouteTableRouteList.json */ async function listRoutes() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routingIntentCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routingIntentCreateOrUpdateSample.ts index c986c7ecba..d6f3e6ef41 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routingIntentCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routingIntentCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. * * @summary Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RoutingIntentPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RoutingIntentPut.json */ async function routeTablePut() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routingIntentDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routingIntentDeleteSample.ts index de20de1ccc..466766898a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routingIntentDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routingIntentDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a RoutingIntent. * * @summary Deletes a RoutingIntent. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RoutingIntentDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RoutingIntentDelete.json */ async function routeTableDelete() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routingIntentGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routingIntentGetSample.ts index d20558e228..95f95da5f7 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routingIntentGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routingIntentGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of a RoutingIntent. * * @summary Retrieves the details of a RoutingIntent. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RoutingIntentGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RoutingIntentGet.json */ async function routeTableGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routingIntentListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routingIntentListSample.ts index 49fb46a4a2..d0b47ba0db 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routingIntentListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/routingIntentListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of all RoutingIntent child resources of the VirtualHub. * * @summary Retrieves the details of all RoutingIntent child resources of the VirtualHub. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/RoutingIntentList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/RoutingIntentList.json */ async function routingIntentList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/scopeConnectionsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/scopeConnectionsCreateOrUpdateSample.ts new file mode 100644 index 0000000000..37f45b1ae7 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/scopeConnectionsCreateOrUpdateSample.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ScopeConnection, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates scope connection from Network Manager + * + * @summary Creates or updates scope connection from Network Manager + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerScopeConnectionPut.json + */ +async function createOrUpdateNetworkManagerScopeConnection() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const scopeConnectionName = "TestScopeConnection"; + const parameters: ScopeConnection = { + description: "This is a scope connection to a cross tenant subscription.", + resourceId: "subscriptions/f0dc2b34-dfad-40e4-83e0-2309fed8d00b", + tenantId: "6babcaad-604b-40ac-a9d7-9fd97c0b779f" + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.scopeConnections.createOrUpdate( + resourceGroupName, + networkManagerName, + scopeConnectionName, + parameters + ); + console.log(result); +} + +async function main() { + createOrUpdateNetworkManagerScopeConnection(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/scopeConnectionsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/scopeConnectionsDeleteSample.ts new file mode 100644 index 0000000000..29573b2896 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/scopeConnectionsDeleteSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete the pending scope connection created by this network manager. + * + * @summary Delete the pending scope connection created by this network manager. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerScopeConnectionDelete.json + */ +async function deleteNetworkManagerScopeConnection() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const scopeConnectionName = "TestScopeConnection"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.scopeConnections.delete( + resourceGroupName, + networkManagerName, + scopeConnectionName + ); + console.log(result); +} + +async function main() { + deleteNetworkManagerScopeConnection(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/scopeConnectionsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/scopeConnectionsGetSample.ts new file mode 100644 index 0000000000..5b27cea641 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/scopeConnectionsGetSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get specified scope connection created by this Network Manager. + * + * @summary Get specified scope connection created by this Network Manager. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerScopeConnectionGet.json + */ +async function getNetworkManagerScopeConnection() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const scopeConnectionName = "TestScopeConnection"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.scopeConnections.get( + resourceGroupName, + networkManagerName, + scopeConnectionName + ); + console.log(result); +} + +async function main() { + getNetworkManagerScopeConnection(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/scopeConnectionsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/scopeConnectionsListSample.ts new file mode 100644 index 0000000000..e64a5be7ef --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/scopeConnectionsListSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List all scope connections created by this network manager. + * + * @summary List all scope connections created by this network manager. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerScopeConnectionList.json + */ +async function listNetworkManagerScopeConnection() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.scopeConnections.list( + resourceGroupName, + networkManagerName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listNetworkManagerScopeConnection(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityAdminConfigurationsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityAdminConfigurationsCreateOrUpdateSample.ts new file mode 100644 index 0000000000..855fdb5363 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityAdminConfigurationsCreateOrUpdateSample.ts @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + SecurityAdminConfiguration, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates a network manager security admin configuration. + * + * @summary Creates or updates a network manager security admin configuration. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerSecurityAdminConfigurationPut.json + */ +async function createNetworkManagerSecurityAdminConfiguration() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const configurationName = "myTestSecurityConfig"; + const securityAdminConfiguration: SecurityAdminConfiguration = { + description: "A sample policy", + applyOnNetworkIntentPolicyBasedServices: ["None"] + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.securityAdminConfigurations.createOrUpdate( + resourceGroupName, + networkManagerName, + configurationName, + securityAdminConfiguration + ); + console.log(result); +} + +async function main() { + createNetworkManagerSecurityAdminConfiguration(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityAdminConfigurationsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityAdminConfigurationsDeleteSample.ts new file mode 100644 index 0000000000..e1f57ada37 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityAdminConfigurationsDeleteSample.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + SecurityAdminConfigurationsDeleteOptionalParams, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a network manager security admin configuration. + * + * @summary Deletes a network manager security admin configuration. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerSecurityAdminConfigurationDelete.json + */ +async function deleteNetworkManagerSecurityAdminConfiguration() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const configurationName = "myTestSecurityConfig"; + const force = false; + const options: SecurityAdminConfigurationsDeleteOptionalParams = { force }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.securityAdminConfigurations.beginDeleteAndWait( + resourceGroupName, + networkManagerName, + configurationName, + options + ); + console.log(result); +} + +async function main() { + deleteNetworkManagerSecurityAdminConfiguration(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityAdminConfigurationsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityAdminConfigurationsGetSample.ts new file mode 100644 index 0000000000..6ebb77d3aa --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityAdminConfigurationsGetSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Retrieves a network manager security admin configuration. + * + * @summary Retrieves a network manager security admin configuration. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerSecurityAdminConfigurationGet.json + */ +async function getSecurityAdminConfigurations() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const configurationName = "myTestSecurityConfig"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.securityAdminConfigurations.get( + resourceGroupName, + networkManagerName, + configurationName + ); + console.log(result); +} + +async function main() { + getSecurityAdminConfigurations(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityAdminConfigurationsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityAdminConfigurationsListSample.ts new file mode 100644 index 0000000000..9c396e6a98 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityAdminConfigurationsListSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists all the network manager security admin configurations in a network manager, in a paginated format. + * + * @summary Lists all the network manager security admin configurations in a network manager, in a paginated format. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerSecurityAdminConfigurationList.json + */ +async function listSecurityAdminConfigurationsInANetworkManager() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.securityAdminConfigurations.list( + resourceGroupName, + networkManagerName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listSecurityAdminConfigurationsInANetworkManager(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersCreateOrUpdateSample.ts index dd2dcb6cee..4ae807e929 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the specified Security Partner Provider. * * @summary Creates or updates the specified Security Partner Provider. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/SecurityPartnerProviderPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/SecurityPartnerProviderPut.json */ async function createSecurityPartnerProvider() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersDeleteSample.ts index 0eaeb20f3e..8d11d3d4c7 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Security Partner Provider. * * @summary Deletes the specified Security Partner Provider. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/SecurityPartnerProviderDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/SecurityPartnerProviderDelete.json */ async function deleteSecurityPartnerProvider() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersGetSample.ts index 4b3569e49d..bf8cd62317 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified Security Partner Provider. * * @summary Gets the specified Security Partner Provider. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/SecurityPartnerProviderGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/SecurityPartnerProviderGet.json */ async function getSecurityPartnerProvider() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersListByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersListByResourceGroupSample.ts index 6b6fa68fb5..c412113700 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersListByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all Security Partner Providers in a resource group. * * @summary Lists all Security Partner Providers in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/SecurityPartnerProviderListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/SecurityPartnerProviderListByResourceGroup.json */ async function listAllSecurityPartnerProvidersForAGivenResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersListSample.ts index 37468c305e..73b57390e2 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the Security Partner Providers in a subscription. * * @summary Gets all the Security Partner Providers in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/SecurityPartnerProviderListBySubscription.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/SecurityPartnerProviderListBySubscription.json */ async function listAllSecurityPartnerProvidersForAGivenSubscription() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersUpdateTagsSample.ts index 4173b59df4..b98a6ba08d 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityPartnerProvidersUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates tags of a Security Partner Provider resource. * * @summary Updates tags of a Security Partner Provider resource. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/SecurityPartnerProviderUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/SecurityPartnerProviderUpdateTags.json */ async function updateSecurityPartnerProviderTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityRulesCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityRulesCreateOrUpdateSample.ts index 2ef3e1a560..8ce168a945 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityRulesCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityRulesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a security rule in the specified network security group. * * @summary Creates or updates a security rule in the specified network security group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkSecurityGroupRuleCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkSecurityGroupRuleCreate.json */ async function createSecurityRule() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityRulesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityRulesDeleteSample.ts index 6021ce7a44..f1c628ef77 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityRulesDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityRulesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified network security rule. * * @summary Deletes the specified network security rule. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkSecurityGroupRuleDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkSecurityGroupRuleDelete.json */ async function deleteNetworkSecurityRuleFromNetworkSecurityGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityRulesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityRulesGetSample.ts index c6005e836c..ac506db6ed 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityRulesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityRulesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the specified network security rule. * * @summary Get the specified network security rule. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkSecurityGroupRuleGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkSecurityGroupRuleGet.json */ async function getNetworkSecurityRuleInNetworkSecurityGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityRulesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityRulesListSample.ts index 4f7ca4723d..726b95c8f8 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityRulesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/securityRulesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all security rules in a network security group. * * @summary Gets all security rules in a network security group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkSecurityGroupRuleList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkSecurityGroupRuleList.json */ async function listNetworkSecurityRulesInNetworkSecurityGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceAssociationLinksListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceAssociationLinksListSample.ts index b46eb481b6..48a4c1b40a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceAssociationLinksListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceAssociationLinksListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of service association links for a subnet. * * @summary Gets a list of service association links for a subnet. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGetServiceAssociationLinks.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGetServiceAssociationLinks.json */ async function getServiceAssociationLinks() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesCreateOrUpdateSample.ts index bf03e0d779..af9c58e52c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a service Endpoint Policies. * * @summary Creates or updates a service Endpoint Policies. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ServiceEndpointPolicyCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ServiceEndpointPolicyCreate.json */ async function createServiceEndpointPolicy() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -42,7 +42,7 @@ async function createServiceEndpointPolicy() { * This sample demonstrates how to Creates or updates a service Endpoint Policies. * * @summary Creates or updates a service Endpoint Policies. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ServiceEndpointPolicyCreateWithDefinition.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ServiceEndpointPolicyCreateWithDefinition.json */ async function createServiceEndpointPolicyWithDefinition() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesDeleteSample.ts index b4fb2caf66..a683eed109 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified service endpoint policy. * * @summary Deletes the specified service endpoint policy. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ServiceEndpointPolicyDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ServiceEndpointPolicyDelete.json */ async function deleteServiceEndpointPolicy() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesGetSample.ts index e0fca0ae08..e153ab222d 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified service Endpoint Policies in a specified resource group. * * @summary Gets the specified service Endpoint Policies in a specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ServiceEndpointPolicyGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ServiceEndpointPolicyGet.json */ async function getServiceEndPointPolicy() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesListByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesListByResourceGroupSample.ts index d8f71c069e..48f82fb55c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesListByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all service endpoint Policies in a resource group. * * @summary Gets all service endpoint Policies in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ServiceEndpointPolicyList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ServiceEndpointPolicyList.json */ async function listResourceGroupServiceEndpointPolicies() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesListSample.ts index c874bd4b35..f85bed9940 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the service endpoint policies in a subscription. * * @summary Gets all the service endpoint policies in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ServiceEndpointPolicyListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ServiceEndpointPolicyListAll.json */ async function listAllServiceEndpointPolicy() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesUpdateTagsSample.ts index 6380e6497e..d9e7331c0a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPoliciesUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates tags of a service endpoint policy. * * @summary Updates tags of a service endpoint policy. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ServiceEndpointPolicyUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ServiceEndpointPolicyUpdateTags.json */ async function updateServiceEndpointPolicyTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPolicyDefinitionsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPolicyDefinitionsCreateOrUpdateSample.ts index 7d431b5ff2..67911160d5 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPolicyDefinitionsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPolicyDefinitionsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a service endpoint policy definition in the specified service endpoint policy. * * @summary Creates or updates a service endpoint policy definition in the specified service endpoint policy. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ServiceEndpointPolicyDefinitionCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ServiceEndpointPolicyDefinitionCreate.json */ async function createServiceEndpointPolicyDefinition() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPolicyDefinitionsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPolicyDefinitionsDeleteSample.ts index de982760f3..ffb8f7e27f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPolicyDefinitionsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPolicyDefinitionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified ServiceEndpoint policy definitions. * * @summary Deletes the specified ServiceEndpoint policy definitions. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ServiceEndpointPolicyDefinitionDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ServiceEndpointPolicyDefinitionDelete.json */ async function deleteServiceEndpointPolicyDefinitionsFromServiceEndpointPolicy() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPolicyDefinitionsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPolicyDefinitionsGetSample.ts index cf911c74ee..13973c1912 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPolicyDefinitionsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPolicyDefinitionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the specified service endpoint policy definitions from service endpoint policy. * * @summary Get the specified service endpoint policy definitions from service endpoint policy. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ServiceEndpointPolicyDefinitionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ServiceEndpointPolicyDefinitionGet.json */ async function getServiceEndpointDefinitionInServiceEndpointPolicy() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPolicyDefinitionsListByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPolicyDefinitionsListByResourceGroupSample.ts index eaf411c3e9..5a8b3daa5d 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPolicyDefinitionsListByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceEndpointPolicyDefinitionsListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all service endpoint policy definitions in a service end point policy. * * @summary Gets all service endpoint policy definitions in a service end point policy. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ServiceEndpointPolicyDefinitionList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ServiceEndpointPolicyDefinitionList.json */ async function listServiceEndpointDefinitionsInServiceEndPointPolicy() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceTagInformationListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceTagInformationListSample.ts index 5f796f7a5a..c3cecc94a0 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceTagInformationListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceTagInformationListSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of service tag information resources with pagination. * * @summary Gets a list of service tag information resources with pagination. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ServiceTagInformationListResult.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ServiceTagInformationListResult.json */ async function getListOfServiceTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -41,7 +41,7 @@ async function getListOfServiceTags() { * This sample demonstrates how to Gets a list of service tag information resources with pagination. * * @summary Gets a list of service tag information resources with pagination. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ServiceTagInformationListResultWithNoAddressPrefixes.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ServiceTagInformationListResultWithNoAddressPrefixes.json */ async function getListOfServiceTagsWithNoAddressPrefixes() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -66,7 +66,7 @@ async function getListOfServiceTagsWithNoAddressPrefixes() { * This sample demonstrates how to Gets a list of service tag information resources with pagination. * * @summary Gets a list of service tag information resources with pagination. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ServiceTagInformationListResultWithTagname.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ServiceTagInformationListResultWithTagname.json */ async function getListOfServiceTagsWithTagName() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceTagsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceTagsListSample.ts index 840fe48b43..b3eb92c84e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceTagsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/serviceTagsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a list of service tag information resources. * * @summary Gets a list of service tag information resources. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/ServiceTagsList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/ServiceTagsList.json */ async function getListOfServiceTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/staticMembersCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/staticMembersCreateOrUpdateSample.ts new file mode 100644 index 0000000000..c262536774 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/staticMembersCreateOrUpdateSample.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + StaticMember, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates a static member. + * + * @summary Creates or updates a static member. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerStaticMemberPut.json + */ +async function staticMemberPut() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const networkGroupName = "testNetworkGroup"; + const staticMemberName = "testStaticMember"; + const parameters: StaticMember = { + resourceId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1" + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.staticMembers.createOrUpdate( + resourceGroupName, + networkManagerName, + networkGroupName, + staticMemberName, + parameters + ); + console.log(result); +} + +async function main() { + staticMemberPut(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/staticMembersDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/staticMembersDeleteSample.ts new file mode 100644 index 0000000000..31b2227a82 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/staticMembersDeleteSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a static member. + * + * @summary Deletes a static member. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerStaticMemberDelete.json + */ +async function staticMembersDelete() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "SampleRG"; + const networkManagerName = "TestNM"; + const networkGroupName = "testNetworkGroup"; + const staticMemberName = "testStaticMember"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.staticMembers.delete( + resourceGroupName, + networkManagerName, + networkGroupName, + staticMemberName + ); + console.log(result); +} + +async function main() { + staticMembersDelete(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/staticMembersGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/staticMembersGetSample.ts new file mode 100644 index 0000000000..f8b2f510d3 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/staticMembersGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the specified static member. + * + * @summary Gets the specified static member. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerStaticMemberGet.json + */ +async function staticMembersGet() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const networkGroupName = "testNetworkGroup"; + const staticMemberName = "testStaticMember"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.staticMembers.get( + resourceGroupName, + networkManagerName, + networkGroupName, + staticMemberName + ); + console.log(result); +} + +async function main() { + staticMembersGet(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/staticMembersListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/staticMembersListSample.ts new file mode 100644 index 0000000000..c020b65dda --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/staticMembersListSample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists the specified static member. + * + * @summary Lists the specified static member. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerStaticMemberList.json + */ +async function staticMembersList() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const networkManagerName = "testNetworkManager"; + const networkGroupName = "testNetworkGroup"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.staticMembers.list( + resourceGroupName, + networkManagerName, + networkGroupName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + staticMembersList(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsCreateOrUpdateSample.ts index cb0fd2bdca..f218ce7056 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a subnet in the specified virtual network. * * @summary Creates or updates a subnet in the specified virtual network. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/SubnetCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/SubnetCreate.json */ async function createSubnet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -44,7 +44,7 @@ async function createSubnet() { * This sample demonstrates how to Creates or updates a subnet in the specified virtual network. * * @summary Creates or updates a subnet in the specified virtual network. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/SubnetCreateWithDelegation.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/SubnetCreateWithDelegation.json */ async function createSubnetWithADelegation() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; @@ -67,7 +67,7 @@ async function createSubnetWithADelegation() { * This sample demonstrates how to Creates or updates a subnet in the specified virtual network. * * @summary Creates or updates a subnet in the specified virtual network. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/SubnetCreateServiceEndpoint.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/SubnetCreateServiceEndpoint.json */ async function createSubnetWithServiceEndpoints() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsDeleteSample.ts index 116f469a26..ec5ccc029a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified subnet. * * @summary Deletes the specified subnet. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/SubnetDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/SubnetDelete.json */ async function deleteSubnet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsGetSample.ts index b854c64445..68d19e81ca 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified subnet by virtual network and resource group. * * @summary Gets the specified subnet by virtual network and resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/SubnetGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/SubnetGet.json */ async function getSubnet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -39,7 +39,7 @@ async function getSubnet() { * This sample demonstrates how to Gets the specified subnet by virtual network and resource group. * * @summary Gets the specified subnet by virtual network and resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/SubnetGetWithDelegation.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/SubnetGetWithDelegation.json */ async function getSubnetWithADelegation() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsListSample.ts index f298b0295d..eb397a38e9 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all subnets in a virtual network. * * @summary Gets all subnets in a virtual network. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/SubnetList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/SubnetList.json */ async function listSubnets() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsPrepareNetworkPoliciesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsPrepareNetworkPoliciesSample.ts index cd774177b3..c0a19098af 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsPrepareNetworkPoliciesSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsPrepareNetworkPoliciesSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Prepares a subnet by applying network intent policies. * * @summary Prepares a subnet by applying network intent policies. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/SubnetPrepareNetworkPolicies.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/SubnetPrepareNetworkPolicies.json */ async function prepareNetworkPolicies() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsUnprepareNetworkPoliciesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsUnprepareNetworkPoliciesSample.ts index 19000fff84..745fc01e58 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsUnprepareNetworkPoliciesSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subnetsUnprepareNetworkPoliciesSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Unprepares a subnet by removing network intent policies. * * @summary Unprepares a subnet by removing network intent policies. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/SubnetUnprepareNetworkPolicies.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/SubnetUnprepareNetworkPolicies.json */ async function unprepareNetworkPolicies() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subscriptionNetworkManagerConnectionsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subscriptionNetworkManagerConnectionsCreateOrUpdateSample.ts new file mode 100644 index 0000000000..72cf5667ea --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subscriptionNetworkManagerConnectionsCreateOrUpdateSample.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + NetworkManagerConnection, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create a network manager connection on this subscription. + * + * @summary Create a network manager connection on this subscription. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerConnectionSubscriptionPut.json + */ +async function createOrUpdateSubscriptionNetworkManagerConnection() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const networkManagerConnectionName = "TestNMConnection"; + const parameters: NetworkManagerConnection = { + networkManagerId: + "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager" + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.subscriptionNetworkManagerConnections.createOrUpdate( + networkManagerConnectionName, + parameters + ); + console.log(result); +} + +async function main() { + createOrUpdateSubscriptionNetworkManagerConnection(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subscriptionNetworkManagerConnectionsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subscriptionNetworkManagerConnectionsDeleteSample.ts new file mode 100644 index 0000000000..4b33c4c230 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subscriptionNetworkManagerConnectionsDeleteSample.ts @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Delete specified connection created by this subscription. + * + * @summary Delete specified connection created by this subscription. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerConnectionSubscriptionDelete.json + */ +async function deleteSubscriptionNetworkManagerConnection() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const networkManagerConnectionName = "TestNMConnection"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.subscriptionNetworkManagerConnections.delete( + networkManagerConnectionName + ); + console.log(result); +} + +async function main() { + deleteSubscriptionNetworkManagerConnection(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subscriptionNetworkManagerConnectionsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subscriptionNetworkManagerConnectionsGetSample.ts new file mode 100644 index 0000000000..86dd95314c --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subscriptionNetworkManagerConnectionsGetSample.ts @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get a specified connection created by this subscription. + * + * @summary Get a specified connection created by this subscription. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerConnectionSubscriptionGet.json + */ +async function getSubscriptionNetworkManagerConnection() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const networkManagerConnectionName = "TestNMConnection"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.subscriptionNetworkManagerConnections.get( + networkManagerConnectionName + ); + console.log(result); +} + +async function main() { + getSubscriptionNetworkManagerConnection(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subscriptionNetworkManagerConnectionsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subscriptionNetworkManagerConnectionsListSample.ts new file mode 100644 index 0000000000..461661ee1b --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/subscriptionNetworkManagerConnectionsListSample.ts @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List all network manager connections created by this subscription. + * + * @summary List all network manager connections created by this subscription. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkManagerConnectionSubscriptionList.json + */ +async function listSubscriptionNetworkManagerConnection() { + const subscriptionId = + process.env["SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.subscriptionNetworkManagerConnections.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + listSubscriptionNetworkManagerConnection(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/supportedSecurityProvidersSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/supportedSecurityProvidersSample.ts index 78871cb2f8..3edb8a593b 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/supportedSecurityProvidersSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/supportedSecurityProvidersSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gives the supported security providers for the virtual wan. * * @summary Gives the supported security providers for the virtual wan. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualWanSupportedSecurityProviders.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualWanSupportedSecurityProviders.json */ async function supportedSecurityProviders() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/usagesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/usagesListSample.ts index 5ed04da4b3..38591bffc3 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/usagesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/usagesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List network usages for a subscription. * * @summary List network usages for a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/UsageList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/UsageList.json */ async function listUsages() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -36,7 +36,7 @@ async function listUsages() { * This sample demonstrates how to List network usages for a subscription. * * @summary List network usages for a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/UsageListSpacedLocation.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/UsageListSpacedLocation.json */ async function listUsagesSpacedLocation() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vipSwapCreateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vipSwapCreateSample.ts new file mode 100644 index 0000000000..980926589b --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vipSwapCreateSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + SwapResource, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Performs vip swap operation on swappable cloud services. + * + * @summary Performs vip swap operation on swappable cloud services. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/CloudServiceSwapPut.json + */ +async function putVipSwapOperation() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const groupName = "rg1"; + const resourceName = "testCloudService"; + const parameters: SwapResource = { properties: { slotType: "Production" } }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.vipSwap.beginCreateAndWait( + groupName, + resourceName, + parameters + ); + console.log(result); +} + +async function main() { + putVipSwapOperation(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vipSwapGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vipSwapGetSample.ts new file mode 100644 index 0000000000..709f8ec4fc --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vipSwapGetSample.ts @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud service can either be Staging or Production + * + * @summary Gets the SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud service can either be Staging or Production + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/CloudServiceSwapGet.json + */ +async function getSwapResource() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const groupName = "rg1"; + const resourceName = "testCloudService"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.vipSwap.get(groupName, resourceName); + console.log(result); +} + +async function main() { + getSwapResource(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vipSwapListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vipSwapListSample.ts new file mode 100644 index 0000000000..1ba3362f66 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vipSwapListSample.ts @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { NetworkManagementClient } from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the list of SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud service can either be Staging or Production + * + * @summary Gets the list of SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud service can either be Staging or Production + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/CloudServiceSwapList.json + */ +async function getSwapResourceList() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const groupName = "rg1"; + const resourceName = "testCloudService"; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.vipSwap.list(groupName, resourceName); + console.log(result); +} + +async function main() { + getSwapResourceList(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSitesCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSitesCreateOrUpdateSample.ts index 37c9c4fa7f..fcd9a0b5c5 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSitesCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSitesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the specified Network Virtual Appliance Site. * * @summary Creates or updates the specified Network Virtual Appliance Site. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkVirtualApplianceSitePut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkVirtualApplianceSitePut.json */ async function createNetworkVirtualApplianceSite() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSitesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSitesDeleteSample.ts index 55b5a7d2e8..ec532d02e0 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSitesDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSitesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified site from a Virtual Appliance. * * @summary Deletes the specified site from a Virtual Appliance. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkVirtualApplianceSiteDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkVirtualApplianceSiteDelete.json */ async function deleteNetworkVirtualApplianceSite() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSitesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSitesGetSample.ts index 6ac8c2e473..e54fb03487 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSitesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSitesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified Virtual Appliance Site. * * @summary Gets the specified Virtual Appliance Site. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkVirtualApplianceSiteGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkVirtualApplianceSiteGet.json */ async function getNetworkVirtualApplianceSite() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSitesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSitesListSample.ts index 6e378169cd..420289ff36 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSitesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSitesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all Network Virtual Appliance Sites in a Network Virtual Appliance resource. * * @summary Lists all Network Virtual Appliance Sites in a Network Virtual Appliance resource. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkVirtualApplianceSiteList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkVirtualApplianceSiteList.json */ async function listAllNetworkVirtualApplianceSitesForAGivenNetworkVirtualAppliance() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSkusGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSkusGetSample.ts index 1f4c37a799..e7ab8235f1 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSkusGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSkusGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves a single available sku for network virtual appliance. * * @summary Retrieves a single available sku for network virtual appliance. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkVirtualApplianceSkuGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkVirtualApplianceSkuGet.json */ async function networkVirtualApplianceSkuGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSkusListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSkusListSample.ts index 36690571dc..6c62d1aab7 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSkusListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualApplianceSkusListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all SKUs available for a virtual appliance. * * @summary List all SKUs available for a virtual appliance. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/NetworkVirtualApplianceSkuList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/NetworkVirtualApplianceSkuList.json */ async function networkVirtualApplianceSkuListResult() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionCreateOrUpdateSample.ts index 9aeb8b7612..57c8d510ec 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection. * * @summary Creates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualHubBgpConnectionPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualHubBgpConnectionPut.json */ async function virtualHubRouteTableV2Put() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionDeleteSample.ts index b353f21c98..2dd497e906 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a VirtualHubBgpConnection. * * @summary Deletes a VirtualHubBgpConnection. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualHubBgpConnectionDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualHubBgpConnectionDelete.json */ async function virtualHubRouteTableV2Delete() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionGetSample.ts index 411c95b1eb..4c4517d09b 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of a Virtual Hub Bgp Connection. * * @summary Retrieves the details of a Virtual Hub Bgp Connection. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualHubBgpConnectionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualHubBgpConnectionGet.json */ async function virtualHubVirtualHubRouteTableV2Get() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionsListAdvertisedRoutesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionsListAdvertisedRoutesSample.ts index 283781b701..28c83c6252 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionsListAdvertisedRoutesSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionsListAdvertisedRoutesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer. * * @summary Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualRouterPeerListAdvertisedRoute.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualRouterPeerListAdvertisedRoute.json */ async function virtualRouterPeerListAdvertisedRoutes() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionsListLearnedRoutesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionsListLearnedRoutesSample.ts index 5b4eaf2673..fa9b73b452 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionsListLearnedRoutesSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionsListLearnedRoutesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves a list of routes the virtual hub bgp connection has learned. * * @summary Retrieves a list of routes the virtual hub bgp connection has learned. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualRouterPeerListLearnedRoute.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualRouterPeerListLearnedRoute.json */ async function virtualRouterPeerListLearnedRoutes() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionsListSample.ts index 3e120e6f56..781e250c6a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubBgpConnectionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of all VirtualHubBgpConnections. * * @summary Retrieves the details of all VirtualHubBgpConnections. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualHubBgpConnectionList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualHubBgpConnectionList.json */ async function virtualHubRouteTableV2List() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubIPConfigurationCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubIPConfigurationCreateOrUpdateSample.ts index d7a9579bd4..957b20a805 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubIPConfigurationCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubIPConfigurationCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing VirtualHubIpConfiguration. * * @summary Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing VirtualHubIpConfiguration. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualHubIpConfigurationPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualHubIpConfigurationPut.json */ async function virtualHubIPConfigurationPut() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubIPConfigurationDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubIPConfigurationDeleteSample.ts index 290a6b2965..e06778b527 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubIPConfigurationDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubIPConfigurationDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a VirtualHubIpConfiguration. * * @summary Deletes a VirtualHubIpConfiguration. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualHubIpConfigurationDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualHubIpConfigurationDelete.json */ async function virtualHubIPConfigurationDelete() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubIPConfigurationGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubIPConfigurationGetSample.ts index 0ddeacb488..da5d9ca428 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubIPConfigurationGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubIPConfigurationGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of a Virtual Hub Ip configuration. * * @summary Retrieves the details of a Virtual Hub Ip configuration. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualHubIpConfigurationGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualHubIpConfigurationGet.json */ async function virtualHubVirtualHubRouteTableV2Get() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubIPConfigurationListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubIPConfigurationListSample.ts index fabfa3c887..817c101be6 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubIPConfigurationListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubIPConfigurationListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of all VirtualHubIpConfigurations. * * @summary Retrieves the details of all VirtualHubIpConfigurations. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualHubIpConfigurationList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualHubIpConfigurationList.json */ async function virtualHubRouteTableV2List() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubRouteTableV2SCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubRouteTableV2SCreateOrUpdateSample.ts index 3afca76d26..6479efc4f0 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubRouteTableV2SCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubRouteTableV2SCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2. * * @summary Creates a VirtualHubRouteTableV2 resource if it doesn't exist else updates the existing VirtualHubRouteTableV2. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualHubRouteTableV2Put.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualHubRouteTableV2Put.json */ async function virtualHubRouteTableV2Put() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubRouteTableV2SDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubRouteTableV2SDeleteSample.ts index d30932472d..9cba02b65e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubRouteTableV2SDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubRouteTableV2SDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a VirtualHubRouteTableV2. * * @summary Deletes a VirtualHubRouteTableV2. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualHubRouteTableV2Delete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualHubRouteTableV2Delete.json */ async function virtualHubRouteTableV2Delete() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubRouteTableV2SGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubRouteTableV2SGetSample.ts index de966ee433..a76568049e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubRouteTableV2SGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubRouteTableV2SGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of a VirtualHubRouteTableV2. * * @summary Retrieves the details of a VirtualHubRouteTableV2. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualHubRouteTableV2Get.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualHubRouteTableV2Get.json */ async function virtualHubVirtualHubRouteTableV2Get() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubRouteTableV2SListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubRouteTableV2SListSample.ts index 1abbd40c74..e9d248eab7 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubRouteTableV2SListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubRouteTableV2SListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of all VirtualHubRouteTableV2s. * * @summary Retrieves the details of all VirtualHubRouteTableV2s. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualHubRouteTableV2List.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualHubRouteTableV2List.json */ async function virtualHubRouteTableV2List() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsCreateOrUpdateSample.ts index 9c4396e1cf..de0546246c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. * * @summary Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualHubPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualHubPut.json */ async function virtualHubPut() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsDeleteSample.ts index b7e9a078a9..a3fdbffc0c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a VirtualHub. * * @summary Deletes a VirtualHub. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualHubDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualHubDelete.json */ async function virtualHubDelete() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsGetEffectiveVirtualHubRoutesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsGetEffectiveVirtualHubRoutesSample.ts index f23db73f25..48961a99f7 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsGetEffectiveVirtualHubRoutesSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsGetEffectiveVirtualHubRoutesSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Gets the effective routes configured for the Virtual Hub resource or the specified resource . * * @summary Gets the effective routes configured for the Virtual Hub resource or the specified resource . - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/EffectiveRoutesListForConnection.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/EffectiveRoutesListForConnection.json */ async function effectiveRoutesForAConnectionResource() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -50,7 +50,7 @@ async function effectiveRoutesForAConnectionResource() { * This sample demonstrates how to Gets the effective routes configured for the Virtual Hub resource or the specified resource . * * @summary Gets the effective routes configured for the Virtual Hub resource or the specified resource . - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/EffectiveRoutesListForRouteTable.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/EffectiveRoutesListForRouteTable.json */ async function effectiveRoutesForARouteTableResource() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -78,7 +78,7 @@ async function effectiveRoutesForARouteTableResource() { * This sample demonstrates how to Gets the effective routes configured for the Virtual Hub resource or the specified resource . * * @summary Gets the effective routes configured for the Virtual Hub resource or the specified resource . - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/EffectiveRoutesListForVirtualHub.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/EffectiveRoutesListForVirtualHub.json */ async function effectiveRoutesForTheVirtualHub() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsGetInboundRoutesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsGetInboundRoutesSample.ts new file mode 100644 index 0000000000..3320150e01 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsGetInboundRoutesSample.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + GetInboundRoutesParameters, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the inbound routes configured for the Virtual Hub on a particular connection. + * + * @summary Gets the inbound routes configured for the Virtual Hub on a particular connection. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/GetInboundRoutes.json + */ +async function inboundRoutesForTheVirtualHubOnAParticularConnection() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const virtualHubName = "virtualHub1"; + const getInboundRoutesParameters: GetInboundRoutesParameters = { + connectionType: "ExpressRouteConnection", + resourceUri: + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/exrGw1/expressRouteConnections/exrConn1" + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.virtualHubs.beginGetInboundRoutesAndWait( + resourceGroupName, + virtualHubName, + getInboundRoutesParameters + ); + console.log(result); +} + +async function main() { + inboundRoutesForTheVirtualHubOnAParticularConnection(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsGetOutboundRoutesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsGetOutboundRoutesSample.ts new file mode 100644 index 0000000000..78d58539b7 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsGetOutboundRoutesSample.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + GetOutboundRoutesParameters, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the outbound routes configured for the Virtual Hub on a particular connection. + * + * @summary Gets the outbound routes configured for the Virtual Hub on a particular connection. + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/GetOutboundRoutes.json + */ +async function outboundRoutesForTheVirtualHubOnAParticularConnection() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const virtualHubName = "virtualHub1"; + const getOutboundRoutesParameters: GetOutboundRoutesParameters = { + connectionType: "ExpressRouteConnection", + resourceUri: + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/exrGw1/expressRouteConnections/exrConn1" + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const result = await client.virtualHubs.beginGetOutboundRoutesAndWait( + resourceGroupName, + virtualHubName, + getOutboundRoutesParameters + ); + console.log(result); +} + +async function main() { + outboundRoutesForTheVirtualHubOnAParticularConnection(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsGetSample.ts index dcfe5567e1..c31d98a92a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of a VirtualHub. * * @summary Retrieves the details of a VirtualHub. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualHubGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualHubGet.json */ async function virtualHubGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsListByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsListByResourceGroupSample.ts index 293eed3b23..d0f1bb443d 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsListByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the VirtualHubs in a resource group. * * @summary Lists all the VirtualHubs in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualHubListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualHubListByResourceGroup.json */ async function virtualHubListByResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsListSample.ts index 54fef333ed..acf3d20346 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the VirtualHubs in a subscription. * * @summary Lists all the VirtualHubs in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualHubList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualHubList.json */ async function virtualHubList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsUpdateTagsSample.ts index d061f6ce70..4b71fb90ac 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualHubsUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates VirtualHub tags. * * @summary Updates VirtualHub tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualHubUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualHubUpdateTags.json */ async function virtualHubUpdate() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsCreateOrUpdateSample.ts index 9d1273d425..d0a8d881ca 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a virtual network gateway connection in the specified resource group. * * @summary Creates or updates a virtual network gateway connection in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayConnectionCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayConnectionCreate.json */ async function createVirtualNetworkGatewayConnectionS2S() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -39,6 +39,18 @@ async function createVirtualNetworkGatewayConnectionS2S() { } ], enableBgp: false, + gatewayCustomBgpIpAddresses: [ + { + customBgpIpAddress: "169.254.21.1", + ipConfigurationId: + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/ipConfigurations/default" + }, + { + customBgpIpAddress: "169.254.21.3", + ipConfigurationId: + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/ipConfigurations/ActiveActive" + } + ], ingressNatRules: [ { id: diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsDeleteSample.ts index 1e6e466ec2..43b78d4130 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified virtual network Gateway connection. * * @summary Deletes the specified virtual network Gateway connection. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayConnectionDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayConnectionDelete.json */ async function deleteVirtualNetworkGatewayConnection() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsGetIkeSasSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsGetIkeSasSample.ts index d139349be6..7867ffe92f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsGetIkeSasSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsGetIkeSasSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists IKE Security Associations for the virtual network gateway connection in the specified resource group. * * @summary Lists IKE Security Associations for the virtual network gateway connection in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayConnectionGetIkeSas.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayConnectionGetIkeSas.json */ async function getVirtualNetworkGatewayConnectionIkeSa() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsGetSample.ts index 29449fb866..f371b6d6eb 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified virtual network gateway connection by resource group. * * @summary Gets the specified virtual network gateway connection by resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayConnectionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayConnectionGet.json */ async function getVirtualNetworkGatewayConnection() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsGetSharedKeySample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsGetSharedKeySample.ts index 65b4863d6f..6f11ef9170 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsGetSharedKeySample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsGetSharedKeySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the specified virtual network gateway connection shared key through Network resource provider. * * @summary The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the specified virtual network gateway connection shared key through Network resource provider. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayConnectionGetSharedKey.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayConnectionGetSharedKey.json */ async function getVirtualNetworkGatewayConnectionSharedKey() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsListSample.ts index 8657c309b2..caf8c6da75 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections created. * * @summary The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections created. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayConnectionsList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayConnectionsList.json */ async function listVirtualNetworkGatewayConnectionsinResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsResetConnectionSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsResetConnectionSample.ts index 75c986783a..d430eedc0e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsResetConnectionSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsResetConnectionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Resets the virtual network gateway connection specified. * * @summary Resets the virtual network gateway connection specified. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayConnectionReset.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayConnectionReset.json */ async function resetVirtualNetworkGatewayConnection() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsResetSharedKeySample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsResetSharedKeySample.ts index 503b6bde06..e33841c492 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsResetSharedKeySample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsResetSharedKeySample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The VirtualNetworkGatewayConnectionResetSharedKey operation resets the virtual network gateway connection shared key for passed virtual network gateway connection in the specified resource group through Network resource provider. * * @summary The VirtualNetworkGatewayConnectionResetSharedKey operation resets the virtual network gateway connection shared key for passed virtual network gateway connection in the specified resource group through Network resource provider. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayConnectionResetSharedKey.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayConnectionResetSharedKey.json */ async function resetVirtualNetworkGatewayConnectionSharedKey() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsSetSharedKeySample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsSetSharedKeySample.ts index c9926e4a53..ca31d0e2c8 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsSetSharedKeySample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsSetSharedKeySample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key for passed virtual network gateway connection in the specified resource group through Network resource provider. * * @summary The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key for passed virtual network gateway connection in the specified resource group through Network resource provider. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayConnectionSetSharedKey.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayConnectionSetSharedKey.json */ async function setVirtualNetworkGatewayConnectionSharedKey() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsStartPacketCaptureSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsStartPacketCaptureSample.ts index 8d0aea4cc0..04e6727d07 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsStartPacketCaptureSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsStartPacketCaptureSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Starts packet capture on virtual network gateway connection in the specified resource group. * * @summary Starts packet capture on virtual network gateway connection in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayConnectionStartPacketCaptureFilterData.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayConnectionStartPacketCaptureFilterData.json */ async function startPacketCaptureOnVirtualNetworkGatewayConnectionWithFilter() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -49,7 +49,7 @@ async function startPacketCaptureOnVirtualNetworkGatewayConnectionWithFilter() { * This sample demonstrates how to Starts packet capture on virtual network gateway connection in the specified resource group. * * @summary Starts packet capture on virtual network gateway connection in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayConnectionStartPacketCapture.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayConnectionStartPacketCapture.json */ async function startPacketCaptureOnVirtualNetworkGatewayConnectionWithoutFilter() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsStopPacketCaptureSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsStopPacketCaptureSample.ts index 76933e6b8e..0ce3f73d02 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsStopPacketCaptureSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsStopPacketCaptureSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Stops packet capture on virtual network gateway connection in the specified resource group. * * @summary Stops packet capture on virtual network gateway connection in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayConnectionStopPacketCapture.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayConnectionStopPacketCapture.json */ async function stopPacketCaptureOnVirtualNetworkGatewayConnection() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsUpdateTagsSample.ts index f1eb40c149..289142e19a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayConnectionsUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a virtual network gateway connection tags. * * @summary Updates a virtual network gateway connection tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayConnectionUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayConnectionUpdateTags.json */ async function updateVirtualNetworkGatewayConnectionTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayNatRulesCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayNatRulesCreateOrUpdateSample.ts index bdcf90e679..f1cef311aa 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayNatRulesCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayNatRulesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the existing nat rules. * * @summary Creates a nat rule to a scalable virtual network gateway if it doesn't exist else updates the existing nat rules. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayNatRulePut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayNatRulePut.json */ async function virtualNetworkGatewayNatRulePut() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayNatRulesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayNatRulesDeleteSample.ts index 76bed8eadd..d1a9664bfe 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayNatRulesDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayNatRulesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a nat rule. * * @summary Deletes a nat rule. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayNatRuleDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayNatRuleDelete.json */ async function virtualNetworkGatewayNatRuleDelete() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayNatRulesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayNatRulesGetSample.ts index 9225e8b5a7..3bf1039a22 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayNatRulesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayNatRulesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of a nat rule. * * @summary Retrieves the details of a nat rule. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayNatRuleGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayNatRuleGet.json */ async function virtualNetworkGatewayNatRuleGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayNatRulesListByVirtualNetworkGatewaySample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayNatRulesListByVirtualNetworkGatewaySample.ts index 5452a01f61..5c58dafeea 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayNatRulesListByVirtualNetworkGatewaySample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewayNatRulesListByVirtualNetworkGatewaySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves all nat rules for a particular virtual network gateway. * * @summary Retrieves all nat rules for a particular virtual network gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayNatRuleList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayNatRuleList.json */ async function virtualNetworkGatewayNatRuleList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysCreateOrUpdateSample.ts index 9bb4e06b12..4f2c5a28ae 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a virtual network gateway in the specified resource group. * * @summary Creates or updates a virtual network gateway in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayUpdate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayUpdate.json */ async function updateVirtualNetworkGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -29,6 +29,8 @@ async function updateVirtualNetworkGateway() { const virtualNetworkGatewayName = "vpngw"; const parameters: VirtualNetworkGateway = { active: false, + allowRemoteVnetTraffic: false, + allowVirtualWanTraffic: false, bgpSettings: { asn: 65515, bgpPeeringAddress: "10.0.1.30", peerWeight: 0 }, customRoutes: { addressPrefixes: ["101.168.0.6/32"] }, disableIPSecReplayProtection: false, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysDeleteSample.ts index 7faad50831..846d01e444 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified virtual network gateway. * * @summary Deletes the specified virtual network gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayDelete.json */ async function deleteVirtualNetworkGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsSample.ts index b84f59bf74..3f48e10ec3 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Disconnect vpn connections of virtual network gateway in the specified resource group. * * @summary Disconnect vpn connections of virtual network gateway in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewaysDisconnectP2sVpnConnections.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewaysDisconnectP2sVpnConnections.json */ async function disconnectVpnConnectionsFromVirtualNetworkGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGenerateVpnProfileSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGenerateVpnProfileSample.ts index 53e2a1a402..9f00fd32fb 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGenerateVpnProfileSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGenerateVpnProfileSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for IKEV2 and radius based authentication. * * @summary Generates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for IKEV2 and radius based authentication. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayGenerateVpnProfile.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayGenerateVpnProfile.json */ async function generateVirtualNetworkGatewayVpnProfile() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGeneratevpnclientpackageSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGeneratevpnclientpackageSample.ts index 4f1ccdaddf..82caea4bc8 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGeneratevpnclientpackageSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGeneratevpnclientpackageSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. * * @summary Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayGenerateVpnClientPackage.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayGenerateVpnClientPackage.json */ async function generateVpnClientPackage() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetAdvertisedRoutesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetAdvertisedRoutesSample.ts index 71f78f8eb5..9164dc9d0a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetAdvertisedRoutesSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetAdvertisedRoutesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. * * @summary This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayGetAdvertisedRoutes.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayGetAdvertisedRoutes.json */ async function getVirtualNetworkGatewayAdvertisedRoutes() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetBgpPeerStatusSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetBgpPeerStatusSample.ts index 279c784266..afb123ce5b 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetBgpPeerStatusSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetBgpPeerStatusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The GetBgpPeerStatus operation retrieves the status of all BGP peers. * * @summary The GetBgpPeerStatus operation retrieves the status of all BGP peers. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayGetBGPPeerStatus.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayGetBGPPeerStatus.json */ async function getVirtualNetworkGatewayBgpPeerStatus() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetLearnedRoutesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetLearnedRoutesSample.ts index e5b3898600..83913b69d7 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetLearnedRoutesSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetLearnedRoutesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from BGP peers. * * @summary This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from BGP peers. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayLearnedRoutes.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayLearnedRoutes.json */ async function getVirtualNetworkGatewayLearnedRoutes() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetSample.ts index 7fbed32ce1..1f4445e061 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified virtual network gateway by resource group. * * @summary Gets the specified virtual network gateway by resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayGet.json */ async function getVirtualNetworkGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetVpnProfilePackageUrlSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetVpnProfilePackageUrlSample.ts index b681dad51b..fde94c0c08 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetVpnProfilePackageUrlSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetVpnProfilePackageUrlSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The profile needs to be generated first using generateVpnProfile. * * @summary Gets pre-generated VPN profile for P2S client of the virtual network gateway in the specified resource group. The profile needs to be generated first using generateVpnProfile. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayGetVpnProfilePackageUrl.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayGetVpnProfilePackageUrl.json */ async function getVirtualNetworkGatewayVpnProfilePackageUrl() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetVpnclientConnectionHealthSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetVpnclientConnectionHealthSample.ts index 74772c74eb..2c94dbfd18 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetVpnclientConnectionHealthSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetVpnclientConnectionHealthSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified resource group. * * @summary Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayGetVpnclientConnectionHealth.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayGetVpnclientConnectionHealth.json */ async function getVirtualNetworkGatewayVpnclientConnectionHealth() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetVpnclientIpsecParametersSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetVpnclientIpsecParametersSample.ts index 9a1c13b488..0fb7aed310 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetVpnclientIpsecParametersSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysGetVpnclientIpsecParametersSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. * * @summary The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json */ async function getVirtualNetworkGatewayVpnClientIpsecParameters() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysListConnectionsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysListConnectionsSample.ts index 7dd23888dd..98713f074c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysListConnectionsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysListConnectionsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the connections in a virtual network gateway. * * @summary Gets all the connections in a virtual network gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewaysListConnections.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewaysListConnections.json */ async function virtualNetworkGatewaysListConnections() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysListSample.ts index e9caa76c67..0682560fcd 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all virtual network gateways by resource group. * * @summary Gets all virtual network gateways by resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayList.json */ async function listVirtualNetworkGatewaysinResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysResetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysResetSample.ts index 40cd4502bd..2fcd5adec5 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysResetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysResetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Resets the primary of the virtual network gateway in the specified resource group. * * @summary Resets the primary of the virtual network gateway in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayReset.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayReset.json */ async function resetVirtualNetworkGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysResetVpnClientSharedKeySample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysResetVpnClientSharedKeySample.ts index 593385b1ee..de8cde4504 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysResetVpnClientSharedKeySample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysResetVpnClientSharedKeySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Resets the VPN client shared key of the virtual network gateway in the specified resource group. * * @summary Resets the VPN client shared key of the virtual network gateway in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayResetVpnClientSharedKey.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayResetVpnClientSharedKey.json */ async function resetVpnClientSharedKey() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysSetVpnclientIpsecParametersSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysSetVpnclientIpsecParametersSample.ts index 1dc1fc6a55..aa336658f1 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysSetVpnclientIpsecParametersSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysSetVpnclientIpsecParametersSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. * * @summary The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewaySetVpnClientIpsecParameters.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewaySetVpnClientIpsecParameters.json */ async function setVirtualNetworkGatewayVpnClientIpsecParameters() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysStartPacketCaptureSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysStartPacketCaptureSample.ts index d5c4161021..f84a7c27ec 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysStartPacketCaptureSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysStartPacketCaptureSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Starts packet capture on virtual network gateway in the specified resource group. * * @summary Starts packet capture on virtual network gateway in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayStartPacketCaptureFilterData.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayStartPacketCaptureFilterData.json */ async function startPacketCaptureOnVirtualNetworkGatewayWithFilter() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -49,7 +49,7 @@ async function startPacketCaptureOnVirtualNetworkGatewayWithFilter() { * This sample demonstrates how to Starts packet capture on virtual network gateway in the specified resource group. * * @summary Starts packet capture on virtual network gateway in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayStartPacketCapture.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayStartPacketCapture.json */ async function startPacketCaptureOnVirtualNetworkGatewayWithoutFilter() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysStopPacketCaptureSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysStopPacketCaptureSample.ts index 8cf390407c..33b811c376 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysStopPacketCaptureSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysStopPacketCaptureSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Stops packet capture on virtual network gateway in the specified resource group. * * @summary Stops packet capture on virtual network gateway in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayStopPacketCapture.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayStopPacketCapture.json */ async function stopPacketCaptureOnVirtualNetworkGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysSupportedVpnDevicesSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysSupportedVpnDevicesSample.ts index 783c1db837..8780db97e8 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysSupportedVpnDevicesSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysSupportedVpnDevicesSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets a xml format representation for supported vpn devices. * * @summary Gets a xml format representation for supported vpn devices. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewaySupportedVpnDevice.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewaySupportedVpnDevice.json */ async function listVirtualNetworkGatewaySupportedVpnDevices() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysUpdateTagsSample.ts index e059f517a3..eae325a5f4 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a virtual network gateway tags. * * @summary Updates a virtual network gateway tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayUpdateTags.json */ async function updateVirtualNetworkGatewayTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysVpnDeviceConfigurationScriptSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysVpnDeviceConfigurationScriptSample.ts index 778ddabfb7..bdef84400b 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysVpnDeviceConfigurationScriptSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkGatewaysVpnDeviceConfigurationScriptSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Gets a xml format representation for vpn device configuration script. * * @summary Gets a xml format representation for vpn device configuration script. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGatewayVpnDeviceConfigurationScript.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGatewayVpnDeviceConfigurationScript.json */ async function getVpnDeviceConfigurationScript() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkPeeringsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkPeeringsCreateOrUpdateSample.ts index 784758ed34..e4741c479c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkPeeringsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkPeeringsCreateOrUpdateSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a peering in the specified virtual network. * * @summary Creates or updates a peering in the specified virtual network. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkPeeringCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkPeeringCreate.json */ async function createPeering() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -54,7 +54,7 @@ async function createPeering() { * This sample demonstrates how to Creates or updates a peering in the specified virtual network. * * @summary Creates or updates a peering in the specified virtual network. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkPeeringCreateWithRemoteVirtualNetworkEncryption.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkPeeringCreateWithRemoteVirtualNetworkEncryption.json */ async function createPeeringWithRemoteVirtualNetworkEncryption() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -86,7 +86,7 @@ async function createPeeringWithRemoteVirtualNetworkEncryption() { * This sample demonstrates how to Creates or updates a peering in the specified virtual network. * * @summary Creates or updates a peering in the specified virtual network. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkPeeringSync.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkPeeringSync.json */ async function syncPeering() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkPeeringsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkPeeringsDeleteSample.ts index 38dfe08e72..ce253cb063 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkPeeringsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkPeeringsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified virtual network peering. * * @summary Deletes the specified virtual network peering. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkPeeringDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkPeeringDelete.json */ async function deletePeering() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkPeeringsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkPeeringsGetSample.ts index 430edd928e..dd532fee4c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkPeeringsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkPeeringsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified virtual network peering. * * @summary Gets the specified virtual network peering. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkPeeringGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkPeeringGet.json */ async function getPeering() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -39,7 +39,7 @@ async function getPeering() { * This sample demonstrates how to Gets the specified virtual network peering. * * @summary Gets the specified virtual network peering. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json */ async function getPeeringWithRemoteVirtualNetworkEncryption() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkPeeringsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkPeeringsListSample.ts index 6d3d4af94a..3fb1c60e2b 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkPeeringsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkPeeringsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all virtual network peerings in a virtual network. * * @summary Gets all virtual network peerings in a virtual network. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkPeeringList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkPeeringList.json */ async function listPeerings() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -40,7 +40,7 @@ async function listPeerings() { * This sample demonstrates how to Gets all virtual network peerings in a virtual network. * * @summary Gets all virtual network peerings in a virtual network. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkPeeringListWithRemoteVirtualNetworkEncryption.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkPeeringListWithRemoteVirtualNetworkEncryption.json */ async function listPeeringsWithRemoteVirtualNetworkEncryption() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsCreateOrUpdateSample.ts index dc42468b4b..b83823ffe3 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a Virtual Network Tap. * * @summary Creates or updates a Virtual Network Tap. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkTapCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkTapCreate.json */ async function createVirtualNetworkTap() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsDeleteSample.ts index 056af5e32c..7332685977 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified virtual network tap. * * @summary Deletes the specified virtual network tap. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkTapDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkTapDelete.json */ async function deleteVirtualNetworkTapResource() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsGetSample.ts index 3a471d8a68..96a8f33a3c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified virtual network tap. * * @summary Gets information about the specified virtual network tap. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkTapGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkTapGet.json */ async function getVirtualNetworkTap() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsListAllSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsListAllSample.ts index c5e8b950cf..92bece317e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsListAllSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsListAllSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the VirtualNetworkTaps in a subscription. * * @summary Gets all the VirtualNetworkTaps in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkTapListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkTapListAll.json */ async function listAllVirtualNetworkTaps() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsListByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsListByResourceGroupSample.ts index bfdb123bb3..b7f63a4173 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsListByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the VirtualNetworkTaps in a subscription. * * @summary Gets all the VirtualNetworkTaps in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkTapList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkTapList.json */ async function listVirtualNetworkTapsInResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsUpdateTagsSample.ts index 3b896d7b8d..2be1a4ac3b 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworkTapsUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates an VirtualNetworkTap tags. * * @summary Updates an VirtualNetworkTap tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkTapUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkTapUpdateTags.json */ async function updateVirtualNetworkTapTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksCheckIPAddressAvailabilitySample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksCheckIPAddressAvailabilitySample.ts index c4c652ae6c..6afcb6a900 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksCheckIPAddressAvailabilitySample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksCheckIPAddressAvailabilitySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Checks whether a private IP address is available for use. * * @summary Checks whether a private IP address is available for use. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkCheckIPAddressAvailability.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkCheckIPAddressAvailability.json */ async function checkIPAddressAvailability() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksCreateOrUpdateSample.ts index 92da7c061d..a824d5fd31 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a virtual network in the specified resource group. * * @summary Creates or updates a virtual network in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkCreate.json */ async function createVirtualNetwork() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -46,7 +46,7 @@ async function createVirtualNetwork() { * This sample demonstrates how to Creates or updates a virtual network in the specified resource group. * * @summary Creates or updates a virtual network in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkCreateWithBgpCommunities.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkCreateWithBgpCommunities.json */ async function createVirtualNetworkWithBgpCommunities() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -72,7 +72,7 @@ async function createVirtualNetworkWithBgpCommunities() { * This sample demonstrates how to Creates or updates a virtual network in the specified resource group. * * @summary Creates or updates a virtual network in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkCreateSubnetWithDelegation.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkCreateSubnetWithDelegation.json */ async function createVirtualNetworkWithDelegatedSubnets() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; @@ -108,7 +108,7 @@ async function createVirtualNetworkWithDelegatedSubnets() { * This sample demonstrates how to Creates or updates a virtual network in the specified resource group. * * @summary Creates or updates a virtual network in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkCreateWithEncryption.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkCreateWithEncryption.json */ async function createVirtualNetworkWithEncryption() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -134,7 +134,7 @@ async function createVirtualNetworkWithEncryption() { * This sample demonstrates how to Creates or updates a virtual network in the specified resource group. * * @summary Creates or updates a virtual network in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkCreateServiceEndpoints.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkCreateServiceEndpoints.json */ async function createVirtualNetworkWithServiceEndpoints() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -165,7 +165,7 @@ async function createVirtualNetworkWithServiceEndpoints() { * This sample demonstrates how to Creates or updates a virtual network in the specified resource group. * * @summary Creates or updates a virtual network in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkCreateServiceEndpointPolicy.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkCreateServiceEndpointPolicy.json */ async function createVirtualNetworkWithServiceEndpointsAndServiceEndpointPolicy() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -202,7 +202,7 @@ async function createVirtualNetworkWithServiceEndpointsAndServiceEndpointPolicy( * This sample demonstrates how to Creates or updates a virtual network in the specified resource group. * * @summary Creates or updates a virtual network in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkCreateSubnet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkCreateSubnet.json */ async function createVirtualNetworkWithSubnet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -227,7 +227,7 @@ async function createVirtualNetworkWithSubnet() { * This sample demonstrates how to Creates or updates a virtual network in the specified resource group. * * @summary Creates or updates a virtual network in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkCreateSubnetWithAddressPrefixes.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkCreateSubnetWithAddressPrefixes.json */ async function createVirtualNetworkWithSubnetContainingAddressPrefixes() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksDeleteSample.ts index 5243d82be6..69e666dab4 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified virtual network. * * @summary Deletes the specified virtual network. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkDelete.json */ async function deleteVirtualNetwork() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksGetSample.ts index b66ca7762e..8eeb779385 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified virtual network by resource group. * * @summary Gets the specified virtual network by resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGet.json */ async function getVirtualNetwork() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -37,7 +37,7 @@ async function getVirtualNetwork() { * This sample demonstrates how to Gets the specified virtual network by resource group. * * @summary Gets the specified virtual network by resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGetWithSubnetDelegation.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGetWithSubnetDelegation.json */ async function getVirtualNetworkWithADelegatedSubnet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; @@ -56,7 +56,7 @@ async function getVirtualNetworkWithADelegatedSubnet() { * This sample demonstrates how to Gets the specified virtual network by resource group. * * @summary Gets the specified virtual network by resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkGetWithServiceAssociationLink.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGetWithServiceAssociationLink.json */ async function getVirtualNetworkWithServiceAssociationLinks() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subId"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksListAllSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksListAllSample.ts index 838ca68996..d030d34a3e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksListAllSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksListAllSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all virtual networks in a subscription. * * @summary Gets all virtual networks in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkListAll.json */ async function listAllVirtualNetworks() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksListDdosProtectionStatusSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksListDdosProtectionStatusSample.ts new file mode 100644 index 0000000000..8c091dfdfc --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksListDdosProtectionStatusSample.ts @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + VirtualNetworksListDdosProtectionStatusOptionalParams, + NetworkManagementClient +} from "@msinternal/network-resource-manager"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the Ddos Protection Status of all IP Addresses under the Virtual Network + * + * @summary Gets the Ddos Protection Status of all IP Addresses under the Virtual Network + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkGetDdosProtectionStatus.json + */ +async function getDdosProtectionStatusOfAVirtualNetwork() { + const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; + const virtualNetworkName = "test-vnet"; + const top = 75; + const options: VirtualNetworksListDdosProtectionStatusOptionalParams = { + top + }; + const credential = new DefaultAzureCredential(); + const client = new NetworkManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.virtualNetworks.beginListDdosProtectionStatusAndWait( + resourceGroupName, + virtualNetworkName, + options + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + getDdosProtectionStatusOfAVirtualNetwork(); +} + +main().catch(console.error); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksListSample.ts index 96c393ae37..f47f6636be 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all virtual networks in a resource group. * * @summary Gets all virtual networks in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkList.json */ async function listVirtualNetworksInResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksListUsageSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksListUsageSample.ts index 2e3cfd4b9c..e2368d13de 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksListUsageSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksListUsageSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists usage stats. * * @summary Lists usage stats. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkListUsage.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkListUsage.json */ async function vnetGetUsage() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksUpdateTagsSample.ts index 3389c3f647..bbdce0280a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualNetworksUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a virtual network tags. * * @summary Updates a virtual network tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualNetworkUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualNetworkUpdateTags.json */ async function updateVirtualNetworkTags() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRouterPeeringsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRouterPeeringsCreateOrUpdateSample.ts index 6affe83b77..fd70fe9a51 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRouterPeeringsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRouterPeeringsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the specified Virtual Router Peering. * * @summary Creates or updates the specified Virtual Router Peering. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualRouterPeeringPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualRouterPeeringPut.json */ async function createVirtualRouterPeering() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRouterPeeringsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRouterPeeringsDeleteSample.ts index a97ecbc0fd..475c6edcd0 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRouterPeeringsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRouterPeeringsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified peering from a Virtual Router. * * @summary Deletes the specified peering from a Virtual Router. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualRouterPeeringDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualRouterPeeringDelete.json */ async function deleteVirtualRouterPeering() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRouterPeeringsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRouterPeeringsGetSample.ts index 3ae45bc310..ebbb65ab70 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRouterPeeringsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRouterPeeringsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified Virtual Router Peering. * * @summary Gets the specified Virtual Router Peering. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualRouterPeeringGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualRouterPeeringGet.json */ async function getVirtualRouterPeering() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRouterPeeringsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRouterPeeringsListSample.ts index 5ea3e067fc..8228ca61dd 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRouterPeeringsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRouterPeeringsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all Virtual Router Peerings in a Virtual Router resource. * * @summary Lists all Virtual Router Peerings in a Virtual Router resource. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualRouterPeeringList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualRouterPeeringList.json */ async function listAllVirtualRouterPeeringsForAGivenVirtualRouter() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRoutersCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRoutersCreateOrUpdateSample.ts index c7cc029914..9a3f1f7357 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRoutersCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRoutersCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates the specified Virtual Router. * * @summary Creates or updates the specified Virtual Router. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualRouterPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualRouterPut.json */ async function createVirtualRouter() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRoutersDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRoutersDeleteSample.ts index cfcc7f1c81..db08e5599c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRoutersDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRoutersDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Virtual Router. * * @summary Deletes the specified Virtual Router. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualRouterDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualRouterDelete.json */ async function deleteVirtualRouter() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRoutersGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRoutersGetSample.ts index a4dc409d2a..01134fde80 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRoutersGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRoutersGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified Virtual Router. * * @summary Gets the specified Virtual Router. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualRouterGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualRouterGet.json */ async function getVirtualRouter() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRoutersListByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRoutersListByResourceGroupSample.ts index 7941c4d273..60e06056fa 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRoutersListByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRoutersListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all Virtual Routers in a resource group. * * @summary Lists all Virtual Routers in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualRouterListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualRouterListByResourceGroup.json */ async function listAllVirtualRouterForAGivenResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRoutersListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRoutersListSample.ts index 50667029c3..b0f166a32b 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRoutersListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualRoutersListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the Virtual Routers in a subscription. * * @summary Gets all the Virtual Routers in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualRouterListBySubscription.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualRouterListBySubscription.json */ async function listAllVirtualRoutersForAGivenSubscription() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansCreateOrUpdateSample.ts index 567fb54c02..571e7da474 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. * * @summary Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualWANPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualWANPut.json */ async function virtualWanCreate() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansDeleteSample.ts index c9757bc3d6..36c5b47f91 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a VirtualWAN. * * @summary Deletes a VirtualWAN. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualWANDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualWANDelete.json */ async function virtualWanDelete() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansGetSample.ts index d863ddbbcf..5037c22d13 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of a VirtualWAN. * * @summary Retrieves the details of a VirtualWAN. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualWANGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualWANGet.json */ async function virtualWanGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansListByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansListByResourceGroupSample.ts index 69cba9444d..49c5e57d74 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansListByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the VirtualWANs in a resource group. * * @summary Lists all the VirtualWANs in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualWANListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualWANListByResourceGroup.json */ async function virtualWanListByResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansListSample.ts index 2a8d661618..a888a7d8a3 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the VirtualWANs in a subscription. * * @summary Lists all the VirtualWANs in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualWANList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualWANList.json */ async function virtualWanList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansUpdateTagsSample.ts index 90d37b4a6f..819b604ea6 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/virtualWansUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates a VirtualWAN tags. * * @summary Updates a VirtualWAN tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VirtualWANUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VirtualWANUpdateTags.json */ async function virtualWanUpdate() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsCreateOrUpdateSample.ts index 9d8b94f924..5f44b7add5 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. * * @summary Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnConnectionPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnConnectionPut.json */ async function vpnConnectionPut() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -33,6 +33,37 @@ async function vpnConnectionPut() { id: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1" }, + routingConfiguration: { + associatedRouteTable: { + id: + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1/hubRouteTables/hubRouteTable1" + }, + inboundRouteMap: { + id: + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/routeMaps/routeMap1" + }, + outboundRouteMap: { + id: + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/routeMaps/routeMap2" + }, + propagatedRouteTables: { + ids: [ + { + id: + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1/hubRouteTables/hubRouteTable1" + }, + { + id: + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1/hubRouteTables/hubRouteTable2" + }, + { + id: + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1/hubRouteTables/hubRouteTable3" + } + ], + labels: ["label1", "label2"] + } + }, trafficSelectorPolicies: [], vpnLinkConnections: [ { diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsDeleteSample.ts index cec0d6d08d..e5f3caa9e1 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a vpn connection. * * @summary Deletes a vpn connection. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnConnectionDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnConnectionDelete.json */ async function vpnConnectionDelete() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsGetSample.ts index 5b2d211a48..61b6c9fa9b 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of a vpn connection. * * @summary Retrieves the details of a vpn connection. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnConnectionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnConnectionGet.json */ async function vpnConnectionGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsListByVpnGatewaySample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsListByVpnGatewaySample.ts index a282f274db..f7a73beec5 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsListByVpnGatewaySample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsListByVpnGatewaySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves all vpn connections for a particular virtual wan vpn gateway. * * @summary Retrieves all vpn connections for a particular virtual wan vpn gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnConnectionList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnConnectionList.json */ async function vpnConnectionList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsStartPacketCaptureSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsStartPacketCaptureSample.ts index dc583deb78..5b95b27eed 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsStartPacketCaptureSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsStartPacketCaptureSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Starts packet capture on Vpn connection in the specified resource group. * * @summary Starts packet capture on Vpn connection in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnConnectionStartPacketCaptureFilterData.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnConnectionStartPacketCaptureFilterData.json */ async function startPacketCaptureOnVpnConnectionWithFilter() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -52,7 +52,7 @@ async function startPacketCaptureOnVpnConnectionWithFilter() { * This sample demonstrates how to Starts packet capture on Vpn connection in the specified resource group. * * @summary Starts packet capture on Vpn connection in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnConnectionStartPacketCapture.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnConnectionStartPacketCapture.json */ async function startPacketCaptureOnVpnConnectionWithoutFilter() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsStopPacketCaptureSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsStopPacketCaptureSample.ts index 46b4633e98..75a474244b 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsStopPacketCaptureSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnConnectionsStopPacketCaptureSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Stops packet capture on Vpn connection in the specified resource group. * * @summary Stops packet capture on Vpn connection in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnConnectionStopPacketCapture.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnConnectionStopPacketCapture.json */ async function startPacketCaptureOnVpnConnectionWithoutFilter() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysCreateOrUpdateSample.ts index 51ca6ec88a..3bba77f247 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. * * @summary Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnGatewayPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnGatewayPut.json */ async function vpnGatewayPut() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysDeleteSample.ts index 5070c077a4..09f503f51a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a virtual wan vpn gateway. * * @summary Deletes a virtual wan vpn gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnGatewayDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnGatewayDelete.json */ async function vpnGatewayDelete() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysGetSample.ts index 26a93598d8..24b3dead22 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of a virtual wan vpn gateway. * * @summary Retrieves the details of a virtual wan vpn gateway. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnGatewayGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnGatewayGet.json */ async function vpnGatewayGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysListByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysListByResourceGroupSample.ts index 5709622dc1..3758f18697 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysListByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the VpnGateways in a resource group. * * @summary Lists all the VpnGateways in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnGatewayListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnGatewayListByResourceGroup.json */ async function vpnGatewayListByResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysListSample.ts index b90f6733bb..96e01f037f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the VpnGateways in a subscription. * * @summary Lists all the VpnGateways in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnGatewayList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnGatewayList.json */ async function vpnGatewayListBySubscription() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysResetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysResetSample.ts index 5d435abcfd..f0deee2c1e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysResetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysResetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Resets the primary of the vpn gateway in the specified resource group. * * @summary Resets the primary of the vpn gateway in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnGatewayReset.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnGatewayReset.json */ async function resetVpnGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysStartPacketCaptureSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysStartPacketCaptureSample.ts index f9d7ed8f23..644e9ad35d 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysStartPacketCaptureSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysStartPacketCaptureSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Starts packet capture on vpn gateway in the specified resource group. * * @summary Starts packet capture on vpn gateway in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnGatewayStartPacketCaptureFilterData.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnGatewayStartPacketCaptureFilterData.json */ async function startPacketCaptureOnVpnGatewayWithFilter() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -47,7 +47,7 @@ async function startPacketCaptureOnVpnGatewayWithFilter() { * This sample demonstrates how to Starts packet capture on vpn gateway in the specified resource group. * * @summary Starts packet capture on vpn gateway in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnGatewayStartPacketCapture.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnGatewayStartPacketCapture.json */ async function startPacketCaptureOnVpnGatewayWithoutFilter() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysStopPacketCaptureSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysStopPacketCaptureSample.ts index 18e565f139..94d071e56e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysStopPacketCaptureSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysStopPacketCaptureSample.ts @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Stops packet capture on vpn gateway in the specified resource group. * * @summary Stops packet capture on vpn gateway in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnGatewayStopPacketCapture.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnGatewayStopPacketCapture.json */ async function stopPacketCaptureOnVpnGateway() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysUpdateTagsSample.ts index e96f4eda6d..c6ae5f44f3 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnGatewaysUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates virtual wan vpn gateway tags. * * @summary Updates virtual wan vpn gateway tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnGatewayUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnGatewayUpdateTags.json */ async function vpnGatewayUpdate() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnLinkConnectionsGetIkeSasSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnLinkConnectionsGetIkeSasSample.ts index 96a6f7744d..7dba26766f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnLinkConnectionsGetIkeSasSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnLinkConnectionsGetIkeSasSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists IKE Security Associations for Vpn Site Link Connection in the specified resource group. * * @summary Lists IKE Security Associations for Vpn Site Link Connection in the specified resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnSiteLinkConnectionGetIkeSas.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnSiteLinkConnectionGetIkeSas.json */ async function getVpnLinkConnectionIkeSa() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnLinkConnectionsListByVpnConnectionSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnLinkConnectionsListByVpnConnectionSample.ts index 4f21aa6336..38e6a1b0a6 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnLinkConnectionsListByVpnConnectionSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnLinkConnectionsListByVpnConnectionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. * * @summary Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnSiteLinkConnectionList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnSiteLinkConnectionList.json */ async function vpnSiteLinkConnectionList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnLinkConnectionsResetConnectionSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnLinkConnectionsResetConnectionSample.ts index 810630d78d..99a374860b 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnLinkConnectionsResetConnectionSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnLinkConnectionsResetConnectionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Resets the VpnLink connection specified. * * @summary Resets the VpnLink connection specified. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnSiteLinkConnectionReset.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnSiteLinkConnectionReset.json */ async function resetVpnLinkConnection() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsAssociatedWithVirtualWanListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsAssociatedWithVirtualWanListSample.ts index 90f68eb7e8..f97ecc2425 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsAssociatedWithVirtualWanListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsAssociatedWithVirtualWanListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gives the list of VpnServerConfigurations associated with Virtual Wan in a resource group. * * @summary Gives the list of VpnServerConfigurations associated with Virtual Wan in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/GetVirtualWanVpnServerConfigurations.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/GetVirtualWanVpnServerConfigurations.json */ async function getVirtualWanVpnServerConfigurations() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsCreateOrUpdateSample.ts index f7947bb37d..8791a3d576 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsCreateOrUpdateSample.ts @@ -21,13 +21,43 @@ dotenv.config(); * This sample demonstrates how to Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing VpnServerConfiguration. * * @summary Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing VpnServerConfiguration. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnServerConfigurationPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnServerConfigurationPut.json */ async function vpnServerConfigurationCreate() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; const resourceGroupName = process.env["RESOURCE_GROUP"] || "rg1"; const vpnServerConfigurationName = "vpnServerConfiguration1"; const vpnServerConfigurationParameters: VpnServerConfiguration = { + configurationPolicyGroups: [ + { + name: "policyGroup1", + id: + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnServerConfigurations/vpnServerConfiguration1/vpnServerConfigurationPolicyGroups/policyGroup1", + isDefault: true, + policyMembers: [ + { + name: "policy1", + attributeType: "RadiusAzureGroupId", + attributeValue: "6ad1bd08" + } + ], + priority: 0 + }, + { + name: "policyGroup2", + id: + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnServerConfigurations/vpnServerConfiguration1/vpnServerConfigurationPolicyGroups/policyGroup2", + isDefault: true, + policyMembers: [ + { + name: "policy2", + attributeType: "CertificateGroupId", + attributeValue: "red.com" + } + ], + priority: 0 + } + ], location: "West US", radiusClientRootCertificates: [ { diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsDeleteSample.ts index cf4c003560..78f11165c7 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a VpnServerConfiguration. * * @summary Deletes a VpnServerConfiguration. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnServerConfigurationDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnServerConfigurationDelete.json */ async function vpnServerConfigurationDelete() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsGetSample.ts index 5a5b1336bd..d22cde9dcf 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of a VpnServerConfiguration. * * @summary Retrieves the details of a VpnServerConfiguration. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnServerConfigurationGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnServerConfigurationGet.json */ async function vpnServerConfigurationGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsListByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsListByResourceGroupSample.ts index 279ed4dd73..43733c3f33 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsListByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the vpnServerConfigurations in a resource group. * * @summary Lists all the vpnServerConfigurations in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnServerConfigurationListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnServerConfigurationListByResourceGroup.json */ async function vpnServerConfigurationListByResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsListSample.ts index e3f2ff2d78..6e24044da0 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the VpnServerConfigurations in a subscription. * * @summary Lists all the VpnServerConfigurations in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnServerConfigurationList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnServerConfigurationList.json */ async function vpnServerConfigurationList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsUpdateTagsSample.ts index 4b4a6996eb..c31b0361dc 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnServerConfigurationsUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates VpnServerConfiguration tags. * * @summary Updates VpnServerConfiguration tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnServerConfigurationUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnServerConfigurationUpdateTags.json */ async function vpnServerConfigurationUpdate() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSiteLinkConnectionsGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSiteLinkConnectionsGetSample.ts index 41c3f71d95..c31d0dae66 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSiteLinkConnectionsGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSiteLinkConnectionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of a vpn site link connection. * * @summary Retrieves the details of a vpn site link connection. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnSiteLinkConnectionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnSiteLinkConnectionGet.json */ async function vpnSiteLinkConnectionGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSiteLinksGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSiteLinksGetSample.ts index 15b3cc21ca..7c910500b6 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSiteLinksGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSiteLinksGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of a VPN site link. * * @summary Retrieves the details of a VPN site link. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnSiteLinkGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnSiteLinkGet.json */ async function vpnSiteGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSiteLinksListByVpnSiteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSiteLinksListByVpnSiteSample.ts index f3bbdb833b..b79f06a13f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSiteLinksListByVpnSiteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSiteLinksListByVpnSiteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the vpnSiteLinks in a resource group for a vpn site. * * @summary Lists all the vpnSiteLinks in a resource group for a vpn site. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnSiteLinkListByVpnSite.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnSiteLinkListByVpnSite.json */ async function vpnSiteLinkListByVpnSite() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesConfigurationDownloadSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesConfigurationDownloadSample.ts index 326c79d43b..cf8c0a723d 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesConfigurationDownloadSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesConfigurationDownloadSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Gives the sas-url to download the configurations for vpn-sites in a resource group. * * @summary Gives the sas-url to download the configurations for vpn-sites in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnSitesConfigurationDownload.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnSitesConfigurationDownload.json */ async function vpnSitesConfigurationDownload() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesCreateOrUpdateSample.ts index 69c4c527aa..d029a94a62 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. * * @summary Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnSitePut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnSitePut.json */ async function vpnSiteCreate() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesDeleteSample.ts index cfc5f618ae..346eb3b78d 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a VpnSite. * * @summary Deletes a VpnSite. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnSiteDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnSiteDelete.json */ async function vpnSiteDelete() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesGetSample.ts index c3396fe0f6..3f23935093 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves the details of a VPN site. * * @summary Retrieves the details of a VPN site. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnSiteGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnSiteGet.json */ async function vpnSiteGet() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesListByResourceGroupSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesListByResourceGroupSample.ts index b8c798dc06..af5ca30361 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesListByResourceGroupSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the vpnSites in a resource group. * * @summary Lists all the vpnSites in a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnSiteListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnSiteListByResourceGroup.json */ async function vpnSiteListByResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesListSample.ts index 40bad3fe16..1eebcbe65a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all the VpnSites in a subscription. * * @summary Lists all the VpnSites in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnSiteList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnSiteList.json */ async function vpnSiteList() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesUpdateTagsSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesUpdateTagsSample.ts index bc7fb6146e..b7819b5879 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesUpdateTagsSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/vpnSitesUpdateTagsSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates VpnSite tags. * * @summary Updates VpnSite tags. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/VpnSiteUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/VpnSiteUpdateTags.json */ async function vpnSiteUpdate() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webApplicationFirewallPoliciesCreateOrUpdateSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webApplicationFirewallPoliciesCreateOrUpdateSample.ts index 9af814e81f..1d409b280e 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webApplicationFirewallPoliciesCreateOrUpdateSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webApplicationFirewallPoliciesCreateOrUpdateSample.ts @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or update policy with specified rule set name within a resource group. * * @summary Creates or update policy with specified rule set name within a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/WafPolicyCreateOrUpdate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/WafPolicyCreateOrUpdate.json */ async function createsOrUpdatesAWafPolicyWithinAResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; @@ -107,7 +107,25 @@ async function createsOrUpdatesAWafPolicyWithinAResourceGroup() { selectorMatchOperator: "StartsWith" } ], - managedRuleSets: [{ ruleSetType: "OWASP", ruleSetVersion: "3.2" }] + managedRuleSets: [ + { + ruleGroupOverrides: [ + { + ruleGroupName: "REQUEST-931-APPLICATION-ATTACK-RFI", + rules: [ + { action: "Log", ruleId: "931120", state: "Enabled" }, + { + action: "AnomalyScoring", + ruleId: "931130", + state: "Disabled" + } + ] + } + ], + ruleSetType: "OWASP", + ruleSetVersion: "3.2" + } + ] } }; const credential = new DefaultAzureCredential(); diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webApplicationFirewallPoliciesDeleteSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webApplicationFirewallPoliciesDeleteSample.ts index 599013c85a..6c1094b4da 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webApplicationFirewallPoliciesDeleteSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webApplicationFirewallPoliciesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes Policy. * * @summary Deletes Policy. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/WafPolicyDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/WafPolicyDelete.json */ async function deletesAWafPolicyWithinAResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webApplicationFirewallPoliciesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webApplicationFirewallPoliciesGetSample.ts index 1c1606d5c6..cb7f2f23a1 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webApplicationFirewallPoliciesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webApplicationFirewallPoliciesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieve protection policy with specified name within a resource group. * * @summary Retrieve protection policy with specified name within a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/WafPolicyGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/WafPolicyGet.json */ async function getsAWafPolicyWithinAResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webApplicationFirewallPoliciesListAllSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webApplicationFirewallPoliciesListAllSample.ts index 194eb70b67..8e55c99874 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webApplicationFirewallPoliciesListAllSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webApplicationFirewallPoliciesListAllSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the WAF policies in a subscription. * * @summary Gets all the WAF policies in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/WafListAllPolicies.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/WafListAllPolicies.json */ async function listsAllWafPoliciesInASubscription() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webApplicationFirewallPoliciesListSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webApplicationFirewallPoliciesListSample.ts index c9b5f924a0..397e3fcbf2 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webApplicationFirewallPoliciesListSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webApplicationFirewallPoliciesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the protection policies within a resource group. * * @summary Lists all of the protection policies within a resource group. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/WafListPolicies.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/WafListPolicies.json */ async function listsAllWafPoliciesInAResourceGroup() { const subscriptionId = process.env["SUBSCRIPTION_ID"] || "subid"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webCategoriesGetSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webCategoriesGetSample.ts index d8c322fea2..4b1720e0c4 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webCategoriesGetSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webCategoriesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the specified Azure Web Category. * * @summary Gets the specified Azure Web Category. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AzureWebCategoryGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AzureWebCategoryGet.json */ async function getAzureWebCategoryByName() { const subscriptionId = diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webCategoriesListBySubscriptionSample.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webCategoriesListBySubscriptionSample.ts index 41179b344c..41c811e2f8 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webCategoriesListBySubscriptionSample.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/samples-dev/webCategoriesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets all the Azure Web Categories in a subscription. * * @summary Gets all the Azure Web Categories in a subscription. - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2021-05-01/examples/AzureWebCategoriesListBySubscription.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2022-07-01/examples/AzureWebCategoriesListBySubscription.json */ async function listAllAzureWebCategoriesForAGivenSubscription() { const subscriptionId = diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/models/index.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/models/index.ts index 7d6e4e8b6c..bcda8f6c59 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/models/index.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/models/index.ts @@ -12,11 +12,20 @@ export type FirewallPolicyRuleCollectionUnion = | FirewallPolicyRuleCollection | FirewallPolicyNatRuleCollection | FirewallPolicyFilterRuleCollection; +export type ActiveBaseSecurityAdminRuleUnion = + | ActiveBaseSecurityAdminRule + | ActiveSecurityAdminRule + | ActiveDefaultSecurityAdminRule; +export type EffectiveBaseSecurityAdminRuleUnion = + | EffectiveBaseSecurityAdminRule + | EffectiveSecurityAdminRule + | EffectiveDefaultSecurityAdminRule; export type FirewallPolicyRuleUnion = | FirewallPolicyRule | ApplicationRule | NatRule | NetworkRule; +export type BaseAdminRuleUnion = BaseAdminRule | AdminRule | DefaultAdminRule; /** An error response from the service. */ export interface CloudError { @@ -240,12 +249,10 @@ export interface PublicIPAddressDnsSettings { /** Contains the DDoS protection settings of the public IP. */ export interface DdosSettings { - /** The DDoS custom policy associated with the public IP. */ - ddosCustomPolicy?: SubResource; - /** The DDoS protection policy customizability of the public IP. Only standard coverage will have the ability to be customized. */ - protectionCoverage?: DdosSettingsProtectionCoverage; - /** Enables DDoS protection on the public IP. */ - protectedIP?: boolean; + /** The DDoS protection mode of the public IP */ + protectionMode?: DdosSettingsProtectionMode; + /** The DDoS protection plan associated with the public IP. Can only be set if ProtectionMode is Enabled */ + ddosProtectionPlan?: SubResource; } /** Contains the IpTag associated with the object. */ @@ -296,6 +303,8 @@ export interface LoadBalancerBackendAddress { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly inboundNatRulesPortMapping?: NatRulePortMapping[]; + /** A list of administrative states which once set can override health probe so that Load Balancer will always forward new connections to backend, or deny new connections and reset existing connections. */ + adminState?: LoadBalancerBackendAddressAdminState; } /** Individual port mappings for inbound NAT rule created for backend pool. */ @@ -355,6 +364,8 @@ export interface ApplicationGatewayCustomError { export interface ApplicationGatewayClientAuthConfiguration { /** Verify client certificate issuer name on the application gateway. */ verifyClientCertIssuerDN?: boolean; + /** Verify client certificate revocation status. */ + verifyClientRevocation?: ApplicationGatewayClientRevocationOptions; } /** Rewrite rule of an application gateway. */ @@ -636,6 +647,12 @@ export interface ApplicationGatewayFirewallRuleGroup { export interface ApplicationGatewayFirewallRule { /** The identifier of the web application firewall rule. */ ruleId: number; + /** The string representation of the web application firewall rule identifier. */ + ruleIdString?: string; + /** The string representation of the web application firewall rule state. */ + state?: ApplicationGatewayWafRuleStateTypes; + /** The string representation of the web application firewall rule action. */ + action?: ApplicationGatewayWafRuleActionTypes; /** The description of the web application firewall rule. */ description?: string; } @@ -648,6 +665,50 @@ export interface ApplicationGatewayAvailableSslPredefinedPolicies { nextLink?: string; } +/** Response for ApplicationGatewayWafDynamicManifest API service call. */ +export interface ApplicationGatewayWafDynamicManifestResult { + /** Resource ID. */ + id?: string; + /** + * Resource name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** The available rulesets. */ + availableRuleSets?: ApplicationGatewayFirewallManifestRuleSet[]; + /** The type of the web application firewall rule set. */ + ruleSetType?: string; + /** The version of the web application firewall rule set type. */ + ruleSetVersion?: string; +} + +/** Properties of the web application firewall rule set. */ +export interface ApplicationGatewayFirewallManifestRuleSet { + /** The type of the web application firewall rule set. */ + ruleSetType: string; + /** The version of the web application firewall rule set type. */ + ruleSetVersion: string; + /** The rule set status */ + status?: ApplicationGatewayRuleSetStatusOptions; + /** Tier of an application gateway that support the rule set. */ + tiers?: ApplicationGatewayTierTypes[]; + /** The rule groups of the web application firewall rule set. */ + ruleGroups: ApplicationGatewayFirewallRuleGroup[]; +} + +/** Response for ApplicationGatewayWafDynamicManifests API service call. */ +export interface ApplicationGatewayWafDynamicManifestResultList { + /** The list of application gateway waf manifest. */ + value?: ApplicationGatewayWafDynamicManifestResult[]; + /** URL to get the next set of results. */ + nextLink?: string; +} + /** A list of application security groups. */ export interface ApplicationSecurityGroupListResult { /** A list of application security groups. */ @@ -843,6 +904,12 @@ export interface AzureFirewallListResult { nextLink?: string; } +/** List of SNAT IP Prefixes learnt by firewall to not SNAT */ +export interface IPPrefixesList { + /** IP Prefix value. */ + ipPrefixes?: string[]; +} + /** Response for ListAzureFirewallFqdnTags API service call. */ export interface AzureFirewallFqdnTagListResult { /** List of Azure Firewall FQDN Tags in a resource group. */ @@ -1059,6 +1126,38 @@ export interface PublicIPAddressListResult { nextLink?: string; } +/** SwapResource to represent slot type on the specified cloud service. */ +export interface SwapResource { + /** + * Resource Id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Resource name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** Swap resource properties */ + properties?: SwapResourceProperties; +} + +/** Swap resource properties */ +export interface SwapResourceProperties { + /** Specifies slot info on a cloud service */ + slotType?: SlotType; +} + +/** SwapResource List with single entry to represent slot type on the specified cloud service. */ +export interface SwapResourceListResult { + value?: SwapResource[]; +} + /** Response for ListCustomIpPrefixes API service call. */ export interface CustomIpPrefixListResult { /** A list of Custom IP prefixes that exists in a resource group. */ @@ -1067,18 +1166,6 @@ export interface CustomIpPrefixListResult { nextLink?: string; } -/** DDoS custom policy properties. */ -export interface ProtocolCustomSettingsFormat { - /** The protocol for which the DDoS protection policy is being customized. */ - protocol?: DdosCustomPolicyProtocol; - /** The customized DDoS protection trigger rate. */ - triggerRateOverride?: string; - /** The customized DDoS protection source rate. */ - sourceRateOverride?: string; - /** The customized DDoS protection trigger rate sensitivity degrees. High: Trigger rate set with most sensitivity w.r.t. normal traffic. Default: Trigger rate set with moderate sensitivity w.r.t. normal traffic. Low: Trigger rate set with less sensitivity w.r.t. normal traffic. Relaxed: Trigger rate set with least sensitivity w.r.t. normal traffic. */ - triggerSensitivityOverride?: DdosCustomPolicyTriggerSensitivityOverride; -} - /** A DDoS protection plan in a resource group. */ export interface DdosProtectionPlan { /** @@ -1115,6 +1202,11 @@ export interface DdosProtectionPlan { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** + * The list of public IPs associated with the DDoS protection plan resource. This list is read-only. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly publicIPAddresses?: SubResource[]; /** * The list of virtual networks associated with the DDoS protection plan resource. This list is read-only. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1502,6 +1594,25 @@ export interface GenerateExpressRoutePortsLOAResult { encodedContent?: string; } +/** Response for ListExpressRoutePortAuthorizations API service call. */ +export interface ExpressRoutePortAuthorizationListResult { + /** The authorizations in an ExpressRoute Port. */ + value?: ExpressRoutePortAuthorization[]; + /** The URL to get the next set of results. */ + nextLink?: string; +} + +/** Response for ListExpressRouteProviderPort API service call. */ +export interface ExpressRouteProviderPortListResult { + /** A list of ExpressRouteProviderPort resources. */ + value?: ExpressRouteProviderPort[]; + /** + * The URL to get the next set of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + /** ThreatIntel Whitelist for Firewall Policy. */ export interface FirewallPolicyThreatIntelWhitelist { /** List of IP addresses for the ThreatIntel Whitelist. */ @@ -1540,6 +1651,8 @@ export interface FirewallPolicyLogAnalyticsWorkspace { export interface FirewallPolicySnat { /** List of private IP addresses/IP address ranges to not be SNAT. */ privateRanges?: string[]; + /** The operation mode for automatically learning private ranges to not be SNAT */ + autoLearnPrivateRanges?: AutoLearnPrivateRangesMode; } /** SQL Settings in Firewall Policy. */ @@ -1559,13 +1672,15 @@ export interface DnsSettings { } /** Explicit Proxy Settings in Firewall Policy. */ -export interface ExplicitProxySettings { +export interface ExplicitProxy { /** When set to true, explicit proxy mode is enabled. */ enableExplicitProxy?: boolean; /** Port number for explicit proxy http protocol, cannot be greater than 64000. */ httpPort?: number; /** Port number for explicit proxy https protocol, cannot be greater than 64000. */ httpsPort?: number; + /** When set to true, pac file port and url needs to be provided. */ + enablePacFile?: boolean; /** Port number for firewall to serve PAC file. */ pacFilePort?: number; /** SAS URL for PAC file. */ @@ -1586,6 +1701,8 @@ export interface FirewallPolicyIntrusionDetectionConfiguration { signatureOverrides?: FirewallPolicyIntrusionDetectionSignatureSpecification[]; /** List of rules for traffic to bypass. */ bypassTrafficSettings?: FirewallPolicyIntrusionDetectionBypassTrafficSpecifications[]; + /** IDPS Private IP address ranges are used to identify traffic direction (i.e. inbound, outbound, etc.). By default, only ranges defined by IANA RFC 1918 are considered private IP addresses. To modify default ranges, specify your Private IP address ranges with this property */ + privateRanges?: string[]; } /** Intrusion detection signatures specification states. */ @@ -1691,7 +1808,7 @@ export interface OrderBy { /** Describes the actual column name to sort by */ field?: string; /** Describes if results should be in ascending/descending order */ - order?: OrderByOrder; + order?: FirewallPolicyIdpsQuerySortOrder; } /** Query result */ @@ -1706,11 +1823,11 @@ export interface SingleQueryResult { /** The ID of the signature */ signatureId?: number; /** The current mode enforced, 0 - Disabled, 1 - Alert, 2 -Deny */ - mode?: SingleQueryResultMode; + mode?: FirewallPolicyIdpsSignatureMode; /** Describes the severity of signature: 1 - Low, 2 - Medium, 3 - High */ - severity?: SingleQueryResultSeverity; + severity?: FirewallPolicyIdpsSignatureSeverity; /** Describes in which direction signature is being enforced: 0 - Inbound, 1 - OutBound, 2 - Bidirectional */ - direction?: SingleQueryResultDirection; + direction?: FirewallPolicyIdpsSignatureDirection; /** Describes the groups the signature belongs to */ group?: string; /** Describes what is the signature enforces */ @@ -2053,6 +2170,351 @@ export interface NetworkInterfaceTapConfigurationListResult { readonly nextLink?: string; } +/** Scope of Network Manager. */ +export interface NetworkManagerPropertiesNetworkManagerScopes { + /** List of management groups. */ + managementGroups?: string[]; + /** List of subscriptions. */ + subscriptions?: string[]; + /** + * List of cross tenant scopes. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly crossTenantScopes?: CrossTenantScopes[]; +} + +/** Cross tenant scopes. */ +export interface CrossTenantScopes { + /** + * Tenant ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** + * List of management groups. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly managementGroups?: string[]; + /** + * List of subscriptions. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly subscriptions?: string[]; +} + +/** 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; + /** The type of identity that last modified the resource. */ + lastModifiedAt?: Date; +} + +/** Object for patch operations. */ +export interface PatchObject { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; +} + +/** Network Manager Commit. */ +export interface NetworkManagerCommit { + /** + * Commit Id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly commitId?: string; + /** List of target locations. */ + targetLocations: string[]; + /** List of configuration ids. */ + configurationIds?: string[]; + /** Commit Type. */ + commitType: ConfigurationType; +} + +/** Network Manager Deployment Status Parameter. */ +export interface NetworkManagerDeploymentStatusParameter { + /** List of locations. */ + regions?: string[]; + /** List of deployment types. */ + deploymentTypes?: ConfigurationType[]; + /** Continuation token for pagination, capturing the next page size and offset, as well as the context of the query. */ + skipToken?: string; +} + +/** A list of Network Manager Deployment Status */ +export interface NetworkManagerDeploymentStatusListResult { + /** Gets a page of Network Manager Deployment Status */ + value?: NetworkManagerDeploymentStatus[]; + /** When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data. */ + skipToken?: string; +} + +/** Network Manager Deployment Status. */ +export interface NetworkManagerDeploymentStatus { + /** Commit Time. */ + commitTime?: Date; + /** Region Name. */ + region?: string; + /** Deployment Status. */ + deploymentStatus?: DeploymentStatus; + /** List of configuration ids. */ + configurationIds?: string[]; + /** Configuration Deployment Type. */ + deploymentType?: ConfigurationType; + /** Error Message. */ + errorMessage?: string; +} + +/** Result of the request to list NetworkManager. It contains a list of network managers and a URL link to get the next set of results. */ +export interface NetworkManagerListResult { + /** Gets a page of NetworkManager */ + value?: NetworkManager[]; + /** Gets the URL to get the next page of results. */ + nextLink?: string; +} + +/** Effective Virtual Networks Parameter. */ +export interface ActiveConfigurationParameter { + /** List of regions. */ + regions?: string[]; + /** When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data. */ + skipToken?: string; +} + +/** Result of the request to list active connectivity configurations. It contains a list of active connectivity configurations and a skiptoken to get the next set of results. */ +export interface ActiveConnectivityConfigurationsListResult { + /** Gets a page of active connectivity configurations. */ + value?: ActiveConnectivityConfiguration[]; + /** When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data. */ + skipToken?: string; +} + +/** The network manager effective connectivity configuration */ +export interface EffectiveConnectivityConfiguration { + /** Connectivity configuration ID. */ + id?: string; + /** Effective configuration groups. */ + configurationGroups?: ConfigurationGroup[]; + /** A description of the connectivity configuration. */ + description?: string; + /** Connectivity topology type. */ + connectivityTopology?: ConnectivityTopology; + /** List of hubItems */ + hubs?: Hub[]; + /** Flag if global mesh is supported. */ + isGlobal?: IsGlobal; + /** Groups for configuration */ + appliesToGroups?: ConnectivityGroupItem[]; + /** + * The provisioning state of the connectivity configuration resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** Flag if need to remove current existing peerings. */ + deleteExistingPeering?: DeleteExistingPeering; +} + +/** Hub Item. */ +export interface Hub { + /** Resource Id. */ + resourceId?: string; + /** Resource Type. */ + resourceType?: string; +} + +/** Connectivity group item. */ +export interface ConnectivityGroupItem { + /** Network group Id. */ + networkGroupId: string; + /** Flag if need to use hub gateway. */ + useHubGateway?: UseHubGateway; + /** Flag if global is supported. */ + isGlobal?: IsGlobal; + /** Group connectivity type. */ + groupConnectivity: GroupConnectivity; +} + +/** The network configuration group resource */ +export interface ConfigurationGroup { + /** Network group ID. */ + id?: string; + /** A description of the network group. */ + description?: string; + /** + * The provisioning state of the scope assignment resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** Result of the request to list active security admin rules. It contains a list of active security admin rules and a skiptoken to get the next set of results. */ +export interface ActiveSecurityAdminRulesListResult { + /** Gets a page of active security admin rules. */ + value?: ActiveBaseSecurityAdminRuleUnion[]; + /** When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data. */ + skipToken?: string; +} + +/** Network base admin rule. */ +export interface ActiveBaseSecurityAdminRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "Custom" | "Default"; + /** Resource ID. */ + id?: string; + /** Deployment time string. */ + commitTime?: Date; + /** Deployment region. */ + region?: string; + /** A description of the security admin configuration. */ + configurationDescription?: string; + /** A description of the rule collection. */ + ruleCollectionDescription?: string; + /** Groups for rule collection */ + ruleCollectionAppliesToGroups?: NetworkManagerSecurityGroupItem[]; + /** Effective configuration groups. */ + ruleGroups?: ConfigurationGroup[]; +} + +/** Network manager security group item. */ +export interface NetworkManagerSecurityGroupItem { + /** Network manager group Id. */ + networkGroupId: string; +} + +/** Proxy resource representation. */ +export interface ChildResource { + /** + * Resource ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Resource name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * 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; +} + +/** List of network manager connections. */ +export interface NetworkManagerConnectionListResult { + /** List of network manager connections. */ + value?: NetworkManagerConnection[]; + /** Gets the URL to get the next page of results. */ + nextLink?: string; +} + +/** Result of the request to list network manager connectivity configurations. It contains a list of configurations and a link to get the next set of results. */ +export interface ConnectivityConfigurationListResult { + /** Gets a page of Connectivity Configurations */ + value?: ConnectivityConfiguration[]; + /** Gets the URL to get the next page of results. */ + nextLink?: string; +} + +/** Query Request Options */ +export interface QueryRequestOptions { + /** When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data. */ + skipToken?: string; +} + +/** Result of the request to list networkManagerEffectiveConnectivityConfiguration. It contains a list of groups and a skiptoken to get the next set of results. */ +export interface NetworkManagerEffectiveConnectivityConfigurationListResult { + /** Gets a page of NetworkManagerEffectiveConnectivityConfiguration */ + value?: EffectiveConnectivityConfiguration[]; + /** When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data. */ + skipToken?: string; +} + +/** Result of the request to list networkManagerEffectiveSecurityAdminRules. It contains a list of groups and a skiptoken to get the next set of results. */ +export interface NetworkManagerEffectiveSecurityAdminRulesListResult { + /** Gets a page of NetworkManagerEffectiveSecurityAdminRules */ + value?: EffectiveBaseSecurityAdminRuleUnion[]; + /** When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data. */ + skipToken?: string; +} + +/** Network base admin rule. */ +export interface EffectiveBaseSecurityAdminRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "Custom" | "Default"; + /** Resource ID. */ + id?: string; + /** A description of the security admin configuration. */ + configurationDescription?: string; + /** A description of the rule collection. */ + ruleCollectionDescription?: string; + /** Groups for rule collection */ + ruleCollectionAppliesToGroups?: NetworkManagerSecurityGroupItem[]; + /** Effective configuration groups. */ + ruleGroups?: ConfigurationGroup[]; +} + +/** Result of the request to list NetworkGroup. It contains a list of groups and a URL link to get the next set of results. */ +export interface NetworkGroupListResult { + /** Gets a page of NetworkGroup */ + value?: NetworkGroup[]; + /** Gets the URL to get the next set of results. */ + nextLink?: string; +} + +/** Result of the request to list StaticMember. It contains a list of groups and a URL link to get the next set of results. */ +export interface StaticMemberListResult { + /** Gets a page of StaticMember */ + value?: StaticMember[]; + /** Gets the URL to get the next set of results. */ + nextLink?: string; +} + +/** List of scope connections. */ +export interface ScopeConnectionListResult { + /** List of scope connections. */ + value?: ScopeConnection[]; + /** Gets the URL to get the next page of results. */ + nextLink?: string; +} + +/** A list of network manager security admin configurations */ +export interface SecurityAdminConfigurationListResult { + /** Gets a page of security admin configurations */ + value?: SecurityAdminConfiguration[]; + /** Gets the URL to get the next page of results. */ + nextLink?: string; +} + +/** Security admin configuration rule collection list result. */ +export interface AdminRuleCollectionListResult { + /** A list of network manager security admin configuration rule collections */ + value?: AdminRuleCollection[]; + /** Gets the URL to get the next set of results. */ + nextLink?: string; +} + +/** security configuration admin rule list result. */ +export interface AdminRuleListResult { + /** A list of admin rules */ + value?: BaseAdminRuleUnion[]; + /** The URL to get the next set of results. */ + nextLink?: string; +} + /** The ip configuration for a container network interface. */ export interface ContainerNetworkInterfaceIpConfiguration { /** The name of the resource. This name can be used to access the resource. */ @@ -2127,6 +2589,36 @@ export interface VirtualApplianceNicProperties { readonly privateIpAddress?: string; } +/** Properties of the delegation. */ +export interface DelegationProperties { + /** The service name to which the NVA is delegated. */ + serviceName?: string; + /** + * The current provisioning state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** Properties of the partner managed resource. */ +export interface PartnerManagedResourceProperties { + /** + * The partner managed resource id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The partner managed ILB resource id + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly internalLoadBalancerId?: string; + /** + * The partner managed SLB resource id + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly standardLoadBalancerId?: string; +} + /** Response for ListNetworkVirtualAppliances API service call. */ export interface NetworkVirtualApplianceListResult { /** List of Network Virtual Appliances. */ @@ -2362,8 +2854,12 @@ export interface SubnetAssociation { /** Parameters that define the create packet capture operation. */ export interface PacketCapture { - /** The ID of the targeted resource, only VM is currently supported. */ + /** The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently supported. */ target: string; + /** A list of AzureVMSS instances which can be included or excluded to run packet capture. If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS. */ + scope?: PacketCaptureMachineScope; + /** Target type of the resource provided. */ + targetType?: PacketCaptureTargetType; /** Number of bytes captured per packet, the remaining bytes are truncated. */ bytesToCapturePerPacket?: number; /** Maximum size of the capture output. */ @@ -2378,8 +2874,12 @@ export interface PacketCapture { /** Parameters that define the create packet capture operation. */ export interface PacketCaptureParameters { - /** The ID of the targeted resource, only VM is currently supported. */ + /** The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently supported. */ target: string; + /** A list of AzureVMSS instances which can be included or excluded to run packet capture. If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS. */ + scope?: PacketCaptureMachineScope; + /** Target type of the resource provided. */ + targetType?: PacketCaptureTargetType; /** Number of bytes captured per packet, the remaining bytes are truncated. */ bytesToCapturePerPacket?: number; /** Maximum size of the capture output. */ @@ -2392,6 +2892,14 @@ export interface PacketCaptureParameters { filters?: PacketCaptureFilter[]; } +/** A list of AzureVMSS instances which can be included or excluded to run packet capture. If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS. */ +export interface PacketCaptureMachineScope { + /** List of AzureVMSS instances to run packet capture on. */ + include?: string[]; + /** List of AzureVMSS instances which has to be excluded from the AzureVMSS from running packet capture. */ + exclude?: string[]; +} + /** The storage location for a packet capture session. */ export interface PacketCaptureStorageLocation { /** The ID of the storage account to save the packet capture session. Required if no local file path is provided. */ @@ -2433,8 +2941,12 @@ export interface PacketCaptureResult { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly etag?: string; - /** The ID of the targeted resource, only VM is currently supported. */ + /** The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently supported. */ target?: string; + /** A list of AzureVMSS instances which can be included or excluded to run packet capture. If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS. */ + scope?: PacketCaptureMachineScope; + /** Target type of the resource provided. */ + targetType?: PacketCaptureTargetType; /** Number of bytes captured per packet, the remaining bytes are truncated. */ bytesToCapturePerPacket?: number; /** Maximum size of the capture output. */ @@ -3503,6 +4015,18 @@ export interface AutoApprovedPrivateLinkService { privateLinkService?: string; } +/** Response for GetPublicIpAddressDdosProtectionStatusOperation API service call. */ +export interface PublicIpDdosProtectionStatusResult { + /** Public IP ARM resource ID */ + publicIpAddressId?: string; + /** IP Address of the Public IP Resource */ + publicIpAddress?: string; + /** Value indicating whether the IP address is DDoS workload protected or not. */ + isWorkloadProtected?: IsWorkloadProtected; + /** DDoS protection plan Resource Id of a if IP address is protected through a plan. */ + ddosProtectionPlanId?: string; +} + /** SKU of a public IP prefix. */ export interface PublicIPPrefixSku { /** Name of a public IP prefix SKU. */ @@ -3907,6 +4431,14 @@ export interface VirtualNetworkUsageName { readonly value?: string; } +/** Response for GetVirtualNetworkDdosProtectionStatusOperation. */ +export interface VirtualNetworkDdosProtectionStatusResult { + /** The Ddos Protection Status Result for each public ip under a virtual network. */ + value?: PublicIpDdosProtectionStatusResult[]; + /** The URL to get the next set of results. */ + nextLink?: string; +} + /** VirtualNetworkGatewaySku details. */ export interface VirtualNetworkGatewaySku { /** Gateway SKU name. */ @@ -3946,6 +4478,8 @@ export interface VpnClientConfiguration { aadAudience?: string; /** The AADIssuer property of the VirtualNetworkGateway resource for vpn client connection used for AAD authentication. */ aadIssuer?: string; + /** per ip address pool connection policy for virtual network gateway P2S client. */ + vngClientConnectionConfigurations?: VngClientConnectionConfiguration[]; } /** An IPSec Policy configuration for a virtual network gateway connection. */ @@ -3978,6 +4512,16 @@ export interface RadiusServer { radiusServerSecret?: string; } +/** Vpn Client Connection configuration PolicyGroup member */ +export interface VirtualNetworkGatewayPolicyGroupMember { + /** Name of the VirtualNetworkGatewayPolicyGroupMember. */ + name?: string; + /** The Vpn Policy member attribute type. */ + attributeType?: VpnPolicyMemberAttributeType; + /** The value of Attribute used for this VirtualNetworkGatewayPolicyGroupMember. */ + attributeValue?: string; +} + /** BGP settings details. */ export interface BgpSettings { /** The BGP speaker's ASN. */ @@ -4073,6 +4617,14 @@ export interface TunnelConnectionHealth { readonly lastConnectionEstablishedUtcTime?: string; } +/** GatewayCustomBgpIpAddressIpConfiguration for a virtual network gateway connection. */ +export interface GatewayCustomBgpIpAddressIpConfiguration { + /** The IpconfigurationId of ipconfiguration which belongs to gateway. */ + ipConfigurationId: string; + /** The custom BgpPeeringAddress which belongs to IpconfigurationId. */ + customBgpIpAddress: string; +} + /** An traffic selector policy for a virtual network gateway connection. */ export interface TrafficSelectorPolicy { /** A collection of local address spaces in CIDR format. */ @@ -4509,6 +5061,10 @@ export interface RoutingConfiguration { propagatedRouteTables?: PropagatedRouteTable; /** List of routes that control routing from VirtualHub into a virtual network connection. */ vnetRoutes?: VnetRoute; + /** The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes. */ + inboundRouteMap?: SubResource; + /** The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes. */ + outboundRouteMap?: SubResource; } /** The list of RouteTables to advertise the routes to. */ @@ -4521,6 +5077,8 @@ export interface PropagatedRouteTable { /** List of routes that control routing from VirtualHub into a virtual network connection. */ export interface VnetRoute { + /** Configuration for static routes on this HubVnetConnection. */ + staticRoutesConfig?: StaticRoutesConfig; /** List of all Static Routes. */ staticRoutes?: StaticRoute[]; /** @@ -4530,6 +5088,17 @@ export interface VnetRoute { readonly bgpConnections?: SubResource[]; } +/** Configuration for static routes on this HubVnetConnectionConfiguration for static routes on this HubVnetConnection. */ +export interface StaticRoutesConfig { + /** + * Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly propagateStaticRoutes?: boolean; + /** Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke. */ + vnetLocalRouteOverrideCriteria?: VnetLocalRouteOverrideCriteria; +} + /** List of all Static Routes. */ export interface StaticRoute { /** The name of the StaticRoute that is unique within a VnetRoute. */ @@ -4540,6 +5109,16 @@ export interface StaticRoute { nextHopIpAddress?: string; } +/** VpnServerConfiguration PolicyGroup member */ +export interface VpnServerConfigurationPolicyGroupMember { + /** Name of the VpnServerConfigurationPolicyGroupMember. */ + name?: string; + /** The Vpn Policy member attribute type. */ + attributeType?: VpnPolicyMemberAttributeType; + /** The value of Attribute used for this VpnServerConfigurationPolicyGroupMember. */ + attributeValue?: string; +} + /** VpnClientConnectionHealth properties. */ export interface VpnClientConnectionHealth { /** @@ -4566,6 +5145,14 @@ export interface ListVpnServerConfigurationsResult { nextLink?: string; } +/** Result of the request to list VpnServerConfigurationPolicyGroups. It contains a list of VpnServerConfigurationPolicyGroups and a URL nextLink to get the next set of results. */ +export interface ListVpnServerConfigurationPolicyGroupsResult { + /** List of VpnServerConfigurationPolicyGroups. */ + value?: VpnServerConfigurationPolicyGroup[]; + /** URL to get the next set of operation list results if there are any. */ + nextLink?: string; +} + /** VirtualHub route table. */ export interface VirtualHubRouteTable { /** List of all routes. */ @@ -4592,6 +5179,12 @@ export interface VirtualHubRouteV2 { nextHops?: string[]; } +/** The VirtualHub Router autoscale configuration. */ +export interface VirtualRouterAutoScaleConfiguration { + /** The minimum number of scale units for VirtualHub Router. */ + minCapacity?: number; +} + /** Result of the request to list VirtualHubs. It contains a list of VirtualHubs and a URL nextLink to get the next set of results. */ export interface ListVirtualHubsResult { /** List of VirtualHubs. */ @@ -4600,6 +5193,56 @@ export interface ListVirtualHubsResult { nextLink?: string; } +/** A RouteMap Rule. */ +export interface RouteMapRule { + /** The unique name for the rule. */ + name?: string; + /** List of matching criterion which will be applied to traffic. */ + matchCriteria?: Criterion[]; + /** List of actions which will be applied on a match. */ + actions?: Action[]; + /** Next step after rule is evaluated. Current supported behaviors are 'Continue'(to next rule) and 'Terminate'. */ + nextStepIfMatched?: NextStep; +} + +/** A matching criteria which matches routes based on route prefix, community, and AS path. */ +export interface Criterion { + /** List of route prefixes which this criteria matches. */ + routePrefix?: string[]; + /** List of BGP communities which this criteria matches. */ + community?: string[]; + /** List of AS paths which this criteria matches. */ + asPath?: string[]; + /** Match condition to apply RouteMap rules. */ + matchCondition?: RouteMapMatchCondition; +} + +/** Action to be taken on a route matching a RouteMap criterion. */ +export interface Action { + /** Type of action to be taken. Supported types are 'Remove', 'Add', 'Replace', and 'Drop.' */ + type?: RouteMapActionType; + /** List of parameters relevant to the action.For instance if type is drop then parameters has list of prefixes to be dropped.If type is add, parameters would have list of ASN numbers to be added */ + parameters?: Parameter[]; +} + +/** Parameters for an Action. */ +export interface Parameter { + /** List of route prefixes. */ + routePrefix?: string[]; + /** List of BGP communities. */ + community?: string[]; + /** List of AS paths. */ + asPath?: string[]; +} + +/** List of RouteMaps and a URL nextLink to get the next set of results. */ +export interface ListRouteMapsResult { + /** List of RouteMaps. */ + value?: RouteMap[]; + /** URL to get the next set of operation list results if there are any. */ + nextLink?: string; +} + /** List of HubVirtualNetworkConnections and a URL nextLink to get the next set of results. */ export interface ListHubVirtualNetworkConnectionsResult { /** List of HubVirtualNetworkConnections. */ @@ -4863,6 +5506,22 @@ export interface EffectiveRoutesParameters { virtualWanResourceType?: string; } +/** The parameters specifying the connection resource whose inbound routes are being requested. */ +export interface GetInboundRoutesParameters { + /** The connection resource whose inbound routes are being requested. */ + resourceUri?: string; + /** The type of the specified connection resource like ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection. */ + connectionType?: string; +} + +/** The parameters specifying the connection resource whose outbound routes are being requested. */ +export interface GetOutboundRoutesParameters { + /** The connection resource whose outbound routes are being requested. */ + resourceUri?: string; + /** The type of the specified connection resource like ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection. */ + connectionType?: string; +} + /** The routing policy object used in a RoutingIntent resource. */ export interface RoutingPolicy { /** The unique name for the routing policy. */ @@ -4907,6 +5566,10 @@ export interface PolicySettings { maxRequestBodySizeInKb?: number; /** Maximum file upload size in Mb for WAF. */ fileUploadLimitInMb?: number; + /** If the action type is block, customer can override the response status code. */ + customBlockResponseStatusCode?: number; + /** If the action type is block, customer can override the response body. The body must be specified in base64 encoding. */ + customBlockResponseBody?: string; } /** Defines contents of a web application rule. */ @@ -5018,6 +5681,8 @@ export interface ManagedRuleOverride { ruleId: string; /** The state of the managed rule. Defaults to Disabled if not specified. */ state?: ManagedRuleEnabledState; + /** Describes the override action to be applied when rule matches. */ + action?: ActionType; } /** Properties of the FirewallPolicyNatRuleCollectionAction. */ @@ -5058,8 +5723,16 @@ export interface AzureAsyncOperationResult { error?: ErrorModel; } -/** VpnSite Resource. */ -export interface VpnSiteId { +/** Address prefix item. */ +export interface AddressPrefixItem { + /** Address prefix. */ + addressPrefix?: string; + /** Address prefix type. */ + addressPrefixType?: AddressPrefixType; +} + +/** VpnSite Resource. */ +export interface VpnSiteId { /** * The resource-uri of the vpn-site for which config is to be fetched. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5087,6 +5760,16 @@ export interface VirtualHubEffectiveRoute { routeOrigin?: string; } +/** The effective RouteMap route configured on the connection resource. */ +export interface EffectiveRouteMapRoute { + /** The address prefix of the route. */ + prefix?: string[]; + /** BGP communities of the route. */ + bgpCommunities?: string; + /** The ASPath of this route. */ + asPath?: string; +} + /** IP configuration of an application gateway. Currently 1 public and 1 private IP configuration is allowed. */ export interface ApplicationGatewayIPConfiguration extends SubResource { /** Name of the IP configuration that is unique within an Application Gateway. */ @@ -5307,6 +5990,8 @@ export interface ApplicationGatewayProbe extends SubResource { unhealthyThreshold?: number; /** Whether the host header should be picked from the backend http settings. Default value is false. */ pickHostNameFromBackendHttpSettings?: boolean; + /** Whether the server name indication should be picked from the backend settings for Tls protocol. Default value is false. */ + pickHostNameFromBackendSettings?: boolean; /** Minimum number of servers that are always marked healthy. Default value is 0. */ minServers?: number; /** Criterion for classifying a healthy probe response. */ @@ -5839,6 +6524,10 @@ export interface BackendAddressPool extends SubResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** Amount of seconds Load Balancer waits for before sending RESET to client and backend address. */ + drainPeriodInSeconds?: number; + /** A reference to a virtual network. */ + virtualNetwork?: SubResource; } /** Inbound NAT rule of the load balancer. */ @@ -6009,6 +6698,41 @@ export interface ApplicationGatewayBackendHttpSettings extends SubResource { readonly provisioningState?: ProvisioningState; } +/** Backend address pool settings of an application gateway. */ +export interface ApplicationGatewayBackendSettings extends SubResource { + /** Name of the backend settings that is unique within an Application Gateway. */ + name?: string; + /** + * 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; + /** + * Type of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** The destination port on the backend. */ + port?: number; + /** The protocol used to communicate with the backend. */ + protocol?: ApplicationGatewayProtocol; + /** Connection timeout in seconds. Application Gateway will fail the request if response is not received within ConnectionTimeout. Acceptable values are from 1 second to 86400 seconds. */ + timeout?: number; + /** Probe resource of an application gateway. */ + probe?: SubResource; + /** Array of references to application gateway trusted root certificates. */ + trustedRootCertificates?: SubResource[]; + /** Server name indication to be sent to the backend servers for Tls protocol. */ + hostName?: string; + /** Whether to pick server name indication from the host name of the backend server for Tls protocol. Default value is false. */ + pickHostNameFromBackendAddress?: boolean; + /** + * The provisioning state of the backend HTTP settings resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + /** Http listener of an application gateway. */ export interface ApplicationGatewayHttpListener extends SubResource { /** Name of the HTTP listener that is unique within an Application Gateway. */ @@ -6050,6 +6774,37 @@ export interface ApplicationGatewayHttpListener extends SubResource { hostNames?: string[]; } +/** Listener of an application gateway. */ +export interface ApplicationGatewayListener extends SubResource { + /** Name of the listener that is unique within an Application Gateway. */ + name?: string; + /** + * 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; + /** + * Type of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** Frontend IP configuration resource of an application gateway. */ + frontendIPConfiguration?: SubResource; + /** Frontend port resource of an application gateway. */ + frontendPort?: SubResource; + /** Protocol of the listener. */ + protocol?: ApplicationGatewayProtocol; + /** SSL certificate resource of an application gateway. */ + sslCertificate?: SubResource; + /** SSL profile resource of the application gateway. */ + sslProfile?: SubResource; + /** + * The provisioning state of the listener resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + /** SSL profile of an application gateway. */ export interface ApplicationGatewaySslProfile extends SubResource { /** Name of the SSL profile that is unique within an Application Gateway. */ @@ -6184,6 +6939,37 @@ export interface ApplicationGatewayRequestRoutingRule extends SubResource { readonly provisioningState?: ProvisioningState; } +/** Routing rule of an application gateway. */ +export interface ApplicationGatewayRoutingRule extends SubResource { + /** Name of the routing rule that is unique within an Application Gateway. */ + name?: string; + /** + * 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; + /** + * Type of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** Rule type. */ + ruleType?: ApplicationGatewayRequestRoutingRuleType; + /** Priority of the routing rule. */ + priority?: number; + /** Backend address pool resource of the application gateway. */ + backendAddressPool?: SubResource; + /** Backend settings resource of the application gateway. */ + backendSettings?: SubResource; + /** Listener resource of the application gateway. */ + listener?: SubResource; + /** + * The provisioning state of the request routing rule resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + /** Rewrite rule set of an application gateway. */ export interface ApplicationGatewayRewriteRuleSet extends SubResource { /** Name of the rewrite rule set that is unique within an Application Gateway. */ @@ -6789,6 +7575,11 @@ export interface ExpressRouteLink extends SubResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly rackId?: string; + /** + * Cololocation for ExpressRoute Hybrid Direct. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly coloLocation?: string; /** * Physical fiber port type. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -6805,6 +7596,42 @@ export interface ExpressRouteLink extends SubResource { macSecConfig?: ExpressRouteLinkMacSecConfig; } +/** ExpressRoutePort Authorization resource definition. */ +export interface ExpressRoutePortAuthorization extends SubResource { + /** The name of the resource that is unique within a resource group. This name can be used to access the resource. */ + name?: string; + /** + * 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; + /** + * Type of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The authorization key. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly authorizationKey?: string; + /** + * The authorization use status. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly authorizationUseStatus?: ExpressRoutePortAuthorizationUseStatus; + /** + * The reference to the ExpressRoute circuit resource using the authorization. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly circuitResourceUri?: string; + /** + * The provisioning state of the authorization resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + /** Rule Collection Group resource. */ export interface FirewallPolicyRuleCollectionGroup extends SubResource { /** The name of the resource that is unique within a resource group. This name can be used to access the resource. */ @@ -6902,6 +7729,8 @@ export interface Probe extends SubResource { intervalInSeconds?: number; /** The number of probes where if no response, will result in stopping further traffic from being delivered to the endpoint. This values allows endpoints to be taken out of rotation faster or slower than the typical times used in Azure. */ numberOfProbes?: number; + /** The number of consecutive successful or failed probes in order to allow or deny traffic from being delivered to this endpoint. After failing the number of consecutive probes equal to this value, the endpoint will be taken out of rotation and require the same number of successful consecutive probes to be placed back in rotation. */ + probeThreshold?: number; /** The URI used for requesting health status from the VM. Path is required if a protocol is set to http. Otherwise, it is not allowed. There is no default value. */ requestPath?: string; /** @@ -7245,6 +8074,53 @@ export interface VpnClientRevokedCertificate extends SubResource { readonly provisioningState?: ProvisioningState; } +/** A vpn client connection configuration for client connection configuration. */ +export interface VngClientConnectionConfiguration extends SubResource { + /** The name of the resource that is unique within a resource group. This name can be used to access the resource. */ + name?: string; + /** + * 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; + /** The reference to the address space resource which represents Address space for P2S VpnClient. */ + vpnClientAddressPool?: AddressSpace; + /** List of references to virtualNetworkGatewayPolicyGroups */ + virtualNetworkGatewayPolicyGroups?: SubResource[]; + /** + * The provisioning state of the VngClientConnectionConfiguration resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** Parameters for VirtualNetworkGatewayPolicyGroup. */ +export interface VirtualNetworkGatewayPolicyGroup extends SubResource { + /** The name of the resource that is unique within a resource group. This name can be used to access the resource. */ + name?: string; + /** + * 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; + /** Shows if this is a Default VirtualNetworkGatewayPolicyGroup or not. */ + isDefault?: boolean; + /** Priority for VirtualNetworkGatewayPolicyGroup. */ + priority?: number; + /** Multiple PolicyMembers for VirtualNetworkGatewayPolicyGroup. */ + policyMembers?: VirtualNetworkGatewayPolicyGroupMember[]; + /** + * List of references to vngClientConnectionConfigurations. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly vngClientConnectionConfigurations?: SubResource[]; + /** + * The provisioning state of the VirtualNetworkGatewayPolicyGroup resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + /** VirtualNetworkGatewayNatRule Resource. */ export interface VirtualNetworkGatewayNatRule extends SubResource { /** The name of the resource that is unique within a resource group. This name can be used to access the resource. */ @@ -7336,6 +8212,38 @@ export interface VpnSiteLink extends SubResource { readonly provisioningState?: ProvisioningState; } +/** VpnServerConfigurationPolicyGroup Resource. */ +export interface VpnServerConfigurationPolicyGroup extends SubResource { + /** + * 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; + /** The name of the resource that is unique within a resource group. This name can be used to access the resource. */ + name?: string; + /** + * Resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** Shows if this is a Default VpnServerConfigurationPolicyGroup or not. */ + isDefault?: boolean; + /** Priority for VpnServerConfigurationPolicyGroup. */ + priority?: number; + /** Multiple PolicyMembers for VpnServerConfigurationPolicyGroup. */ + policyMembers?: VpnServerConfigurationPolicyGroupMember[]; + /** + * List of references to P2SConnectionConfigurations. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly p2SConnectionConfigurations?: SubResource[]; + /** + * The provisioning state of the VpnServerConfigurationPolicyGroup resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + /** P2SConnectionConfiguration Resource. */ export interface P2SConnectionConfiguration extends SubResource { /** The name of the resource that is unique within a resource group. This name can be used to access the resource. */ @@ -7351,6 +8259,16 @@ export interface P2SConnectionConfiguration extends SubResource { routingConfiguration?: RoutingConfiguration; /** Flag indicating whether the enable internet security flag is turned on for the P2S Connections or not. */ enableInternetSecurity?: boolean; + /** + * List of Configuration Policy Groups that this P2SConnectionConfiguration is attached to. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationPolicyGroupAssociations?: SubResource[]; + /** + * List of previous Configuration Policy Groups that this P2SConnectionConfiguration was attached to. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly previousConfigurationPolicyGroupAssociations?: VpnServerConfigurationPolicyGroup[]; /** * The provisioning state of the P2SConnectionConfiguration resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -7378,6 +8296,36 @@ export interface VirtualHubRouteTableV2 extends SubResource { readonly provisioningState?: ProvisioningState; } +/** The RouteMap child resource of a Virtual hub. */ +export interface RouteMap extends SubResource { + /** + * The name of the resource that is unique within a resource group. This name can be used to access the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * 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; + /** + * Resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** List of connections which have this RoutMap associated for inbound traffic. */ + associatedInboundConnections?: string[]; + /** List of connections which have this RoutMap associated for outbound traffic. */ + associatedOutboundConnections?: string[]; + /** List of RouteMap rules to be applied. */ + rules?: RouteMapRule[]; + /** + * The provisioning state of the RouteMap resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + /** HubVirtualNetworkConnection Resource. */ export interface HubVirtualNetworkConnection extends SubResource { /** The name of the resource that is unique within a resource group. This name can be used to access the resource. */ @@ -7447,6 +8395,8 @@ export interface VpnSiteLinkConnection extends SubResource { sharedKey?: string; /** EnableBgp flag. */ enableBgp?: boolean; + /** vpnGatewayCustomBgpAddresses used by this connection. */ + vpnGatewayCustomBgpAddresses?: GatewayCustomBgpIpAddressIpConfiguration[]; /** Enable policy-based traffic selectors. */ usePolicyBasedTrafficSelectors?: boolean; /** The IPSec Policies to be considered by this connection. */ @@ -7587,6 +8537,8 @@ export interface ExpressRouteConnection extends SubResource { enableInternetSecurity?: boolean; /** Enable FastPath to vWan Firewall hub. */ expressRouteGatewayBypass?: boolean; + /** Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled. */ + enablePrivateLinkFastPath?: boolean; /** The Routing Configuration indicating the associated and propagated route tables on this connection. */ routingConfiguration?: RoutingConfiguration; } @@ -7915,8 +8867,10 @@ export interface NetworkInterface extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly vnetEncryptionSupported?: boolean; - /** If the network interface is accelerated networking enabled. */ + /** If the network interface is configured for accelerated networking. Not applicable to VM sizes which require accelerated networking. */ enableAcceleratedNetworking?: boolean; + /** Indicates whether to disable tcp state tracking. */ + disableTcpStateTracking?: boolean; /** Indicates whether IP forwarding is enabled on this network interface. */ enableIPForwarding?: boolean; /** @@ -7947,6 +8901,8 @@ export interface NetworkInterface extends Resource { privateLinkService?: PrivateLinkService; /** Migration phase of Network Interface resource. */ migrationPhase?: NetworkInterfaceMigrationPhase; + /** Auxiliary mode of Network Interface resource. */ + auxiliaryMode?: NetworkInterfaceAuxiliaryMode; } /** A flow log resource. */ @@ -7987,6 +8943,8 @@ export interface NetworkSecurityGroup extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly etag?: string; + /** When enabled, flows created from Network Security Group connections will be re-evaluated when rules are updates. Initial enablement will trigger re-evaluation. */ + flushConnection?: boolean; /** A collection of security rules of the network security group. */ securityRules?: SecurityRule[]; /** @@ -8244,14 +9202,20 @@ export interface ApplicationGateway extends Resource { backendAddressPools?: ApplicationGatewayBackendAddressPool[]; /** Backend http settings of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ backendHttpSettingsCollection?: ApplicationGatewayBackendHttpSettings[]; + /** Backend settings of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ + backendSettingsCollection?: ApplicationGatewayBackendSettings[]; /** Http listeners of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ httpListeners?: ApplicationGatewayHttpListener[]; + /** Listeners of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ + listeners?: ApplicationGatewayListener[]; /** SSL profiles of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ sslProfiles?: ApplicationGatewaySslProfile[]; /** URL path map of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ urlPathMaps?: ApplicationGatewayUrlPathMap[]; /** Request routing rules of the application gateway resource. */ requestRoutingRules?: ApplicationGatewayRequestRoutingRule[]; + /** Routing rules of the application gateway resource. */ + routingRules?: ApplicationGatewayRoutingRule[]; /** Rewrite rules for the application gateway resource. */ rewriteRuleSets?: ApplicationGatewayRewriteRuleSet[]; /** Redirect configurations of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ @@ -8306,6 +9270,8 @@ export interface ApplicationGatewayFirewallRuleSet extends Resource { ruleSetVersion?: string; /** The rule groups of the web application firewall rule set. */ ruleGroups?: ApplicationGatewayFirewallRuleGroup[]; + /** Tier of an application gateway that support the rule set. */ + tiers?: ApplicationGatewayTierTypes[]; } /** Response for ApplicationGatewayAvailableSslOptions API service call. */ @@ -8428,6 +9394,8 @@ export interface CustomIpPrefix extends Resource { readonly etag?: string; /** A list of availability zones denoting the IP allocated for the resource needs to come from. */ zones?: string[]; + /** The ASN for CIDR advertising. Should be an integer as string. */ + asn?: string; /** The prefix range in CIDR notation. Should include the start address and the prefix length. */ cidr?: string; /** Signed message for WAN validation. */ @@ -8443,6 +9411,14 @@ export interface CustomIpPrefix extends Resource { readonly childCustomIpPrefixes?: SubResource[]; /** The commissioned state of the Custom IP Prefix. */ commissionedState?: CommissionedState; + /** Whether to do express route advertise. */ + expressRouteAdvertise?: boolean; + /** The Geo for CIDR advertising. Should be an Geo code. */ + geo?: Geo; + /** Whether to Advertise the range to Internet. */ + noInternetAdvertise?: boolean; + /** Type of custom IP prefix. Should be Singular, Parent, or Child. */ + prefixType?: CustomIpPrefixType; /** * The list of all referenced PublicIpPrefixes. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -8482,13 +9458,6 @@ export interface DdosCustomPolicy extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** - * The list of public IPs associated with the DDoS custom policy resource. This list is read-only. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly publicIPAddresses?: SubResource[]; - /** The protocol-specific DDoS policy customization parameters. */ - protocolCustomSettings?: ProtocolCustomSettingsFormat[]; } /** Differentiated Services Code Point configuration for any given network interface */ @@ -8577,6 +9546,8 @@ export interface ExpressRouteCircuit extends Resource { gatewayManagerEtag?: string; /** Flag denoting global reach status. */ globalReachEnabled?: boolean; + /** The authorizationKey. */ + authorizationKey?: string; } /** A ExpressRouteResourceProvider object. */ @@ -8712,6 +9683,42 @@ export interface ExpressRoutePort extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly resourceGuid?: string; + /** The billing type of the ExpressRoutePort resource. */ + billingType?: ExpressRoutePortsBillingType; +} + +/** ExpressRouteProviderPort resource. */ +export interface ExpressRouteProviderPort extends Resource { + /** + * 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; + /** + * The name of the port pair. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly portPairDescriptor?: string; + /** + * The name of the primary port. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly primaryAzurePort?: string; + /** + * The name of the secondary port. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly secondaryAzurePort?: string; + /** The peering location of the port pair. */ + peeringLocation?: string; + /** Overprovisioning factor for the port pair. */ + overprovisionFactor?: number; + /** Bandwidth of the port in Mbps */ + portBandwidthInMbps?: number; + /** Used Bandwidth of the port in Mbps */ + usedBandwidthInMbps?: number; + /** Remaining Bandwidth of the port in Mbps */ + remainingBandwidthInMbps?: number; } /** FirewallPolicy Resource. */ @@ -8758,7 +9765,7 @@ export interface FirewallPolicy extends Resource { /** DNS Proxy Settings definition. */ dnsSettings?: DnsSettings; /** Explicit Proxy Settings definition. */ - explicitProxySettings?: ExplicitProxySettings; + explicitProxy?: ExplicitProxy; /** The configuration for Intrusion detection. */ intrusionDetection?: FirewallPolicyIntrusionDetection; /** TLS Configuration definition. */ @@ -8861,6 +9868,31 @@ export interface LoadBalancer extends Resource { readonly provisioningState?: ProvisioningState; } +/** The Managed Network resource */ +export interface NetworkManager extends Resource { + /** + * 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; + /** + * The system metadata related to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** A description of the network manager. */ + description?: string; + /** Scope of Network Manager. */ + networkManagerScopes?: NetworkManagerPropertiesNetworkManagerScopes; + /** Scope Access. */ + networkManagerScopeAccesses?: ConfigurationType[]; + /** + * The provisioning state of the network manager resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + /** Network profile resource. */ export interface NetworkProfile extends Resource { /** @@ -8911,7 +9943,7 @@ export interface NetworkVirtualAppliance extends Resource { cloudInitConfigurationBlobs?: string[]; /** CloudInitConfiguration string in plain text. */ cloudInitConfiguration?: string; - /** VirtualAppliance ASN. */ + /** VirtualAppliance ASN. Microsoft private, public and IANA reserved ASN are not supported. */ virtualApplianceAsn?: number; /** Public key for SSH login. */ sshPublicKey?: string; @@ -8935,6 +9967,15 @@ export interface NetworkVirtualAppliance extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** + * The deployment type. PartnerManaged for the SaaS NVA + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly deploymentType?: string; + /** The delegation for the Virtual Appliance */ + delegation?: DelegationProperties; + /** The delegation for the Virtual Appliance */ + partnerManagedResource?: PartnerManagedResourceProperties; } /** Definition of the NetworkVirtualApplianceSkus resource. */ @@ -9162,6 +10203,8 @@ export interface VirtualNetworkGateway extends Resource { sku?: VirtualNetworkGatewaySku; /** The reference to the VpnClientConfiguration resource which represents the P2S VpnClient configurations. */ vpnClientConfiguration?: VpnClientConfiguration; + /** The reference to the VirtualNetworkGatewayPolicyGroup resource which represents the available VirtualNetworkGatewayPolicyGroup for the gateway. */ + virtualNetworkGatewayPolicyGroups?: VirtualNetworkGatewayPolicyGroup[]; /** Virtual network gateway's BGP speaker settings. */ bgpSettings?: BgpSettings; /** The reference to the address space resource which represents the custom routes address space specified by the customer for virtual network gateway and VpnClient. */ @@ -9189,6 +10232,10 @@ export interface VirtualNetworkGateway extends Resource { natRules?: VirtualNetworkGatewayNatRule[]; /** EnableBgpRouteTranslationForNat flag. */ enableBgpRouteTranslationForNat?: boolean; + /** Configures this gateway to accept traffic from remote Virtual WAN networks. */ + allowVirtualWanTraffic?: boolean; + /** Configure this gateway to accept traffic from other Azure Virtual Networks. This configuration does not support connectivity to Azure Virtual WAN. */ + allowRemoteVnetTraffic?: boolean; } /** A common class for general resource information. */ @@ -9240,6 +10287,8 @@ export interface VirtualNetworkGatewayConnectionListEntity extends Resource { peer?: SubResource; /** EnableBgp flag. */ enableBgp?: boolean; + /** GatewayCustomBgpIpAddresses to be used for virtual network gateway Connection. */ + gatewayCustomBgpIpAddresses?: GatewayCustomBgpIpAddressIpConfiguration[]; /** Enable policy-based traffic selectors. */ usePolicyBasedTrafficSelectors?: boolean; /** The IPSec Policies to be considered by this connection. */ @@ -9258,6 +10307,8 @@ export interface VirtualNetworkGatewayConnectionListEntity extends Resource { readonly provisioningState?: ProvisioningState; /** Bypass ExpressRoute Gateway for data forwarding. */ expressRouteGatewayBypass?: boolean; + /** Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled. */ + enablePrivateLinkFastPath?: boolean; } /** A common class for general resource information. */ @@ -9342,6 +10393,8 @@ export interface VirtualNetworkGatewayConnection extends Resource { peer?: SubResource; /** EnableBgp flag. */ enableBgp?: boolean; + /** GatewayCustomBgpIpAddresses to be used for virtual network gateway Connection. */ + gatewayCustomBgpIpAddresses?: GatewayCustomBgpIpAddressIpConfiguration[]; /** Use private local Azure IP for the connection. */ useLocalAzureIpAddress?: boolean; /** Enable policy-based traffic selectors. */ @@ -9362,6 +10415,8 @@ export interface VirtualNetworkGatewayConnection extends Resource { readonly provisioningState?: ProvisioningState; /** Bypass ExpressRoute Gateway for data forwarding. */ expressRouteGatewayBypass?: boolean; + /** Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled. */ + enablePrivateLinkFastPath?: boolean; } /** VirtualRouter Resource. */ @@ -9532,6 +10587,8 @@ export interface VpnServerConfiguration extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly p2SVpnGateways?: P2SVpnGateway[]; + /** List of all VpnServerConfigurationPolicyGroups. */ + configurationPolicyGroups?: VpnServerConfigurationPolicyGroup[]; /** * 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. @@ -9593,6 +10650,11 @@ export interface VirtualHub extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly ipConfigurations?: SubResource[]; + /** + * List of references to RouteMaps. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly routeMaps?: SubResource[]; /** VirtualRouter ASN. */ virtualRouterAsn?: number; /** VirtualRouter IPs. */ @@ -9601,6 +10663,10 @@ export interface VirtualHub extends Resource { allowBranchToBranchTraffic?: boolean; /** The preferred gateway to route on-prem traffic */ preferredRoutingGateway?: PreferredRoutingGateway; + /** The hubRoutingPreference of this VirtualHub. */ + hubRoutingPreference?: HubRoutingPreference; + /** The VirtualHub Router autoscale configuration. */ + virtualRouterAutoScaleConfiguration?: VirtualRouterAutoScaleConfiguration; } /** VpnGateway Resource. */ @@ -9645,11 +10711,8 @@ export interface ExpressRouteGateway extends Resource { readonly etag?: string; /** Configuration for auto scaling. */ autoScaleConfiguration?: ExpressRouteGatewayPropertiesAutoScaleConfiguration; - /** - * List of ExpressRoute connections to the ExpressRoute gateway. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly expressRouteConnections?: ExpressRouteConnection[]; + /** List of ExpressRoute connections to the ExpressRoute gateway. */ + expressRouteConnections?: ExpressRouteConnection[]; /** * The provisioning state of the express route gateway resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -9657,6 +10720,8 @@ export interface ExpressRouteGateway extends Resource { readonly provisioningState?: ProvisioningState; /** The Virtual Hub where the ExpressRoute gateway is or will be deployed. */ virtualHub?: VirtualHubId; + /** Configures this gateway to accept traffic from non Virtual WAN networks. */ + allowNonVirtualWanTraffic?: boolean; } /** Defines web application firewall policy. */ @@ -9727,10 +10792,344 @@ export interface FirewallPolicyFilterRuleCollection rules?: FirewallPolicyRuleUnion[]; } -/** The properties of a packet capture session. */ -export interface PacketCaptureResultProperties extends PacketCaptureParameters { - /** - * The provisioning state of the packet capture session. +/** Active connectivity configuration. */ +export interface ActiveConnectivityConfiguration + extends EffectiveConnectivityConfiguration { + /** Deployment time string. */ + commitTime?: Date; + /** Deployment region. */ + region?: string; +} + +/** Network admin rule. */ +export interface ActiveSecurityAdminRule extends ActiveBaseSecurityAdminRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "Custom"; + /** A description for this rule. Restricted to 140 chars. */ + description?: string; + /** Network protocol this rule applies to. */ + protocol?: SecurityConfigurationRuleProtocol; + /** The CIDR or source IP ranges. */ + sources?: AddressPrefixItem[]; + /** The destination address prefixes. CIDR or destination IP ranges. */ + destinations?: AddressPrefixItem[]; + /** The source port ranges. */ + sourcePortRanges?: string[]; + /** The destination port ranges. */ + destinationPortRanges?: string[]; + /** Indicates the access allowed for this particular rule */ + access?: SecurityConfigurationRuleAccess; + /** The priority of the rule. The value can be between 1 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. */ + priority?: number; + /** Indicates if the traffic matched against the rule in inbound or outbound. */ + direction?: SecurityConfigurationRuleDirection; + /** + * The provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** Network default admin rule. */ +export interface ActiveDefaultSecurityAdminRule + extends ActiveBaseSecurityAdminRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "Default"; + /** + * A description for this rule. Restricted to 140 chars. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; + /** Default rule flag. */ + flag?: string; + /** + * Network protocol this rule applies to. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly protocol?: SecurityConfigurationRuleProtocol; + /** + * The CIDR or source IP ranges. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sources?: AddressPrefixItem[]; + /** + * The destination address prefixes. CIDR or destination IP ranges. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly destinations?: AddressPrefixItem[]; + /** + * The source port ranges. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sourcePortRanges?: string[]; + /** + * The destination port ranges. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly destinationPortRanges?: string[]; + /** + * Indicates the access allowed for this particular rule + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly access?: SecurityConfigurationRuleAccess; + /** + * The priority of the rule. The value can be between 1 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly priority?: number; + /** + * Indicates if the traffic matched against the rule in inbound or outbound. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly direction?: SecurityConfigurationRuleDirection; + /** + * The provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** The Network Manager Connection resource */ +export interface NetworkManagerConnection extends ChildResource { + /** + * The system metadata related to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** Network Manager Id. */ + networkManagerId?: string; + /** + * Connection state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly connectionState?: ScopeConnectionState; + /** A description of the network manager connection. */ + description?: string; +} + +/** The network manager connectivity configuration resource */ +export interface ConnectivityConfiguration extends ChildResource { + /** + * The system metadata related to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** A description of the connectivity configuration. */ + description?: string; + /** Connectivity topology type. */ + connectivityTopology?: ConnectivityTopology; + /** List of hubItems */ + hubs?: Hub[]; + /** Flag if global mesh is supported. */ + isGlobal?: IsGlobal; + /** Groups for configuration */ + appliesToGroups?: ConnectivityGroupItem[]; + /** + * The provisioning state of the connectivity configuration resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** Flag if need to remove current existing peerings. */ + deleteExistingPeering?: DeleteExistingPeering; +} + +/** The network group resource */ +export interface NetworkGroup extends ChildResource { + /** + * The system metadata related to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** A description of the network group. */ + description?: string; + /** + * The provisioning state of the scope assignment resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** StaticMember Item. */ +export interface StaticMember extends ChildResource { + /** + * The system metadata related to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** Resource Id. */ + resourceId?: string; + /** + * Resource region. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly region?: string; + /** + * The provisioning state of the scope assignment resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** The Scope Connections resource */ +export interface ScopeConnection extends ChildResource { + /** + * The system metadata related to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** Tenant ID. */ + tenantId?: string; + /** Resource ID. */ + resourceId?: string; + /** + * Connection State + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly connectionState?: ScopeConnectionState; + /** A description of the scope connection. */ + description?: string; +} + +/** Defines the security admin configuration */ +export interface SecurityAdminConfiguration extends ChildResource { + /** + * The system metadata related to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** A description of the security configuration. */ + description?: string; + /** Enum list of network intent policy based services. */ + applyOnNetworkIntentPolicyBasedServices?: NetworkIntentPolicyBasedService[]; + /** + * The provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** Defines the admin rule collection. */ +export interface AdminRuleCollection extends ChildResource { + /** + * The system metadata related to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** A description of the admin rule collection. */ + description?: string; + /** Groups for configuration */ + appliesToGroups?: NetworkManagerSecurityGroupItem[]; + /** + * The provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** Network base admin rule. */ +export interface BaseAdminRule extends ChildResource { + /** Whether the rule is custom or default. */ + kind: AdminRuleKind; + /** + * The system metadata related to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; +} + +/** Network admin rule. */ +export interface EffectiveSecurityAdminRule + extends EffectiveBaseSecurityAdminRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "Custom"; + /** A description for this rule. Restricted to 140 chars. */ + description?: string; + /** Network protocol this rule applies to. */ + protocol?: SecurityConfigurationRuleProtocol; + /** The CIDR or source IP ranges. */ + sources?: AddressPrefixItem[]; + /** The destination address prefixes. CIDR or destination IP ranges. */ + destinations?: AddressPrefixItem[]; + /** The source port ranges. */ + sourcePortRanges?: string[]; + /** The destination port ranges. */ + destinationPortRanges?: string[]; + /** Indicates the access allowed for this particular rule */ + access?: SecurityConfigurationRuleAccess; + /** The priority of the rule. The value can be between 1 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. */ + priority?: number; + /** Indicates if the traffic matched against the rule in inbound or outbound. */ + direction?: SecurityConfigurationRuleDirection; + /** + * The provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** Network default admin rule. */ +export interface EffectiveDefaultSecurityAdminRule + extends EffectiveBaseSecurityAdminRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "Default"; + /** + * A description for this rule. Restricted to 140 chars. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; + /** Default rule flag. */ + flag?: string; + /** + * Network protocol this rule applies to. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly protocol?: SecurityConfigurationRuleProtocol; + /** + * The CIDR or source IP ranges. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sources?: AddressPrefixItem[]; + /** + * The destination address prefixes. CIDR or destination IP ranges. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly destinations?: AddressPrefixItem[]; + /** + * The source port ranges. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sourcePortRanges?: string[]; + /** + * The destination port ranges. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly destinationPortRanges?: string[]; + /** + * Indicates the access allowed for this particular rule + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly access?: SecurityConfigurationRuleAccess; + /** + * The priority of the rule. The value can be between 1 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly priority?: number; + /** + * Indicates if the traffic matched against the rule in inbound or outbound. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly direction?: SecurityConfigurationRuleDirection; + /** + * The provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** The properties of a packet capture session. */ +export interface PacketCaptureResultProperties extends PacketCaptureParameters { + /** + * The provisioning state of the packet capture session. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; @@ -9827,54 +11226,207 @@ export interface NetworkRule extends FirewallPolicyRule { destinationFqdns?: string[]; } -/** Known values of {@link ApplicationGatewaySkuName} that the service accepts. */ -export enum KnownApplicationGatewaySkuName { - /** StandardSmall */ - StandardSmall = "Standard_Small", - /** StandardMedium */ - StandardMedium = "Standard_Medium", - /** StandardLarge */ - StandardLarge = "Standard_Large", - /** WAFMedium */ - WAFMedium = "WAF_Medium", - /** WAFLarge */ - WAFLarge = "WAF_Large", - /** StandardV2 */ - StandardV2 = "Standard_v2", - /** WAFV2 */ - WAFV2 = "WAF_v2" -} - -/** - * Defines values for ApplicationGatewaySkuName. \ - * {@link KnownApplicationGatewaySkuName} can be used interchangeably with ApplicationGatewaySkuName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Standard_Small** \ - * **Standard_Medium** \ - * **Standard_Large** \ - * **WAF_Medium** \ - * **WAF_Large** \ - * **Standard_v2** \ - * **WAF_v2** - */ -export type ApplicationGatewaySkuName = string; - -/** Known values of {@link ApplicationGatewayTier} that the service accepts. */ -export enum KnownApplicationGatewayTier { - /** Standard */ - Standard = "Standard", - /** WAF */ - WAF = "WAF", - /** StandardV2 */ - StandardV2 = "Standard_v2", - /** WAFV2 */ - WAFV2 = "WAF_v2" +/** Network admin rule. */ +export interface AdminRule extends BaseAdminRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "Custom"; + /** A description for this rule. Restricted to 140 chars. */ + description?: string; + /** Network protocol this rule applies to. */ + protocol?: SecurityConfigurationRuleProtocol; + /** The CIDR or source IP ranges. */ + sources?: AddressPrefixItem[]; + /** The destination address prefixes. CIDR or destination IP ranges. */ + destinations?: AddressPrefixItem[]; + /** The source port ranges. */ + sourcePortRanges?: string[]; + /** The destination port ranges. */ + destinationPortRanges?: string[]; + /** Indicates the access allowed for this particular rule */ + access?: SecurityConfigurationRuleAccess; + /** The priority of the rule. The value can be between 1 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. */ + priority?: number; + /** Indicates if the traffic matched against the rule in inbound or outbound. */ + direction?: SecurityConfigurationRuleDirection; + /** + * The provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; } -/** - * Defines values for ApplicationGatewayTier. \ - * {@link KnownApplicationGatewayTier} can be used interchangeably with ApplicationGatewayTier, +/** Network default admin rule. */ +export interface DefaultAdminRule extends BaseAdminRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "Default"; + /** + * A description for this rule. Restricted to 140 chars. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; + /** Default rule flag. */ + flag?: string; + /** + * Network protocol this rule applies to. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly protocol?: SecurityConfigurationRuleProtocol; + /** + * The CIDR or source IP ranges. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sources?: AddressPrefixItem[]; + /** + * The destination address prefixes. CIDR or destination IP ranges. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly destinations?: AddressPrefixItem[]; + /** + * The source port ranges. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sourcePortRanges?: string[]; + /** + * The destination port ranges. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly destinationPortRanges?: string[]; + /** + * Indicates the access allowed for this particular rule + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly access?: SecurityConfigurationRuleAccess; + /** + * The priority of the rule. The value can be between 1 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly priority?: number; + /** + * Indicates if the traffic matched against the rule in inbound or outbound. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly direction?: SecurityConfigurationRuleDirection; + /** + * The provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** Defines headers for PublicIPAddresses_delete operation. */ +export interface PublicIPAddressesDeleteHeaders { + /** The URL of the resource used to check the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for PublicIPAddresses_ddosProtectionStatus operation. */ +export interface PublicIPAddressesDdosProtectionStatusHeaders { + /** The URL of the resource used to check the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for DdosProtectionPlans_delete operation. */ +export interface DdosProtectionPlansDeleteHeaders { + /** The URL of the resource used to check the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for NetworkManagers_delete operation. */ +export interface NetworkManagersDeleteHeaders { + /** The URL of the resource used to check the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for NetworkManagerCommits_post operation. */ +export interface NetworkManagerCommitsPostHeaders { + /** The URL of the resource used to check the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for ConnectivityConfigurations_delete operation. */ +export interface ConnectivityConfigurationsDeleteHeaders { + /** The URL of the resource used to check the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for NetworkGroups_createOrUpdate operation. */ +export interface NetworkGroupsCreateOrUpdateHeaders { + /** The current entity tag. */ + eTag?: string; +} + +/** Defines headers for NetworkGroups_delete operation. */ +export interface NetworkGroupsDeleteHeaders { + /** The URL of the resource used to check the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for SecurityAdminConfigurations_delete operation. */ +export interface SecurityAdminConfigurationsDeleteHeaders { + /** The URL of the resource used to check the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for AdminRuleCollections_delete operation. */ +export interface AdminRuleCollectionsDeleteHeaders { + /** The URL of the resource used to check the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for AdminRules_delete operation. */ +export interface AdminRulesDeleteHeaders { + /** The URL of the resource used to check the status of the asynchronous operation. */ + location?: string; +} + +/** Known values of {@link ApplicationGatewaySkuName} that the service accepts. */ +export enum KnownApplicationGatewaySkuName { + /** StandardSmall */ + StandardSmall = "Standard_Small", + /** StandardMedium */ + StandardMedium = "Standard_Medium", + /** StandardLarge */ + StandardLarge = "Standard_Large", + /** WAFMedium */ + WAFMedium = "WAF_Medium", + /** WAFLarge */ + WAFLarge = "WAF_Large", + /** StandardV2 */ + StandardV2 = "Standard_v2", + /** WAFV2 */ + WAFV2 = "WAF_v2" +} + +/** + * Defines values for ApplicationGatewaySkuName. \ + * {@link KnownApplicationGatewaySkuName} can be used interchangeably with ApplicationGatewaySkuName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Standard_Small** \ + * **Standard_Medium** \ + * **Standard_Large** \ + * **WAF_Medium** \ + * **WAF_Large** \ + * **Standard_v2** \ + * **WAF_v2** + */ +export type ApplicationGatewaySkuName = string; + +/** Known values of {@link ApplicationGatewayTier} that the service accepts. */ +export enum KnownApplicationGatewayTier { + /** Standard */ + Standard = "Standard", + /** WAF */ + WAF = "WAF", + /** StandardV2 */ + StandardV2 = "Standard_v2", + /** WAFV2 */ + WAFV2 = "WAF_v2" +} + +/** + * Defines values for ApplicationGatewayTier. \ + * {@link KnownApplicationGatewayTier} can be used interchangeably with ApplicationGatewayTier, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Standard** \ @@ -9891,7 +11443,9 @@ export enum KnownApplicationGatewaySslProtocol { /** TLSv11 */ TLSv11 = "TLSv1_1", /** TLSv12 */ - TLSv12 = "TLSv1_2" + TLSv12 = "TLSv1_2", + /** TLSv13 */ + TLSv13 = "TLSv1_3" } /** @@ -9901,7 +11455,8 @@ export enum KnownApplicationGatewaySslProtocol { * ### Known values supported by the service * **TLSv1_0** \ * **TLSv1_1** \ - * **TLSv1_2** + * **TLSv1_2** \ + * **TLSv1_3** */ export type ApplicationGatewaySslProtocol = string; @@ -9910,7 +11465,9 @@ export enum KnownApplicationGatewaySslPolicyType { /** Predefined */ Predefined = "Predefined", /** Custom */ - Custom = "Custom" + Custom = "Custom", + /** CustomV2 */ + CustomV2 = "CustomV2" } /** @@ -9919,7 +11476,8 @@ export enum KnownApplicationGatewaySslPolicyType { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Predefined** \ - * **Custom** + * **Custom** \ + * **CustomV2** */ export type ApplicationGatewaySslPolicyType = string; @@ -9930,7 +11488,11 @@ export enum KnownApplicationGatewaySslPolicyName { /** AppGwSslPolicy20170401 */ AppGwSslPolicy20170401 = "AppGwSslPolicy20170401", /** AppGwSslPolicy20170401S */ - AppGwSslPolicy20170401S = "AppGwSslPolicy20170401S" + AppGwSslPolicy20170401S = "AppGwSslPolicy20170401S", + /** AppGwSslPolicy20220101 */ + AppGwSslPolicy20220101 = "AppGwSslPolicy20220101", + /** AppGwSslPolicy20220101S */ + AppGwSslPolicy20220101S = "AppGwSslPolicy20220101S" } /** @@ -9940,7 +11502,9 @@ export enum KnownApplicationGatewaySslPolicyName { * ### Known values supported by the service * **AppGwSslPolicy20150501** \ * **AppGwSslPolicy20170401** \ - * **AppGwSslPolicy20170401S** + * **AppGwSslPolicy20170401S** \ + * **AppGwSslPolicy20220101** \ + * **AppGwSslPolicy20220101S** */ export type ApplicationGatewaySslPolicyName = string; @@ -10111,7 +11675,11 @@ export enum KnownApplicationGatewayProtocol { /** Http */ Http = "Http", /** Https */ - Https = "Https" + Https = "Https", + /** Tcp */ + Tcp = "Tcp", + /** Tls */ + Tls = "Tls" } /** @@ -10120,7 +11688,9 @@ export enum KnownApplicationGatewayProtocol { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Http** \ - * **Https** + * **Https** \ + * **Tcp** \ + * **Tls** */ export type ApplicationGatewayProtocol = string; @@ -10268,6 +11838,27 @@ export enum KnownNetworkInterfaceMigrationPhase { */ export type NetworkInterfaceMigrationPhase = string; +/** Known values of {@link NetworkInterfaceAuxiliaryMode} that the service accepts. */ +export enum KnownNetworkInterfaceAuxiliaryMode { + /** None */ + None = "None", + /** MaxConnections */ + MaxConnections = "MaxConnections", + /** Floating */ + Floating = "Floating" +} + +/** + * Defines values for NetworkInterfaceAuxiliaryMode. \ + * {@link KnownNetworkInterfaceAuxiliaryMode} can be used interchangeably with NetworkInterfaceAuxiliaryMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **MaxConnections** \ + * **Floating** + */ +export type NetworkInterfaceAuxiliaryMode = string; + /** Known values of {@link FlowLogFormatType} that the service accepts. */ export enum KnownFlowLogFormatType { /** Json */ @@ -10346,23 +11937,26 @@ export enum KnownPublicIPAddressSkuTier { */ export type PublicIPAddressSkuTier = string; -/** Known values of {@link DdosSettingsProtectionCoverage} that the service accepts. */ -export enum KnownDdosSettingsProtectionCoverage { - /** Basic */ - Basic = "Basic", - /** Standard */ - Standard = "Standard" +/** Known values of {@link DdosSettingsProtectionMode} that the service accepts. */ +export enum KnownDdosSettingsProtectionMode { + /** VirtualNetworkInherited */ + VirtualNetworkInherited = "VirtualNetworkInherited", + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for DdosSettingsProtectionCoverage. \ - * {@link KnownDdosSettingsProtectionCoverage} can be used interchangeably with DdosSettingsProtectionCoverage, + * Defines values for DdosSettingsProtectionMode. \ + * {@link KnownDdosSettingsProtectionMode} can be used interchangeably with DdosSettingsProtectionMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Basic** \ - * **Standard** + * **VirtualNetworkInherited** \ + * **Enabled** \ + * **Disabled** */ -export type DdosSettingsProtectionCoverage = string; +export type DdosSettingsProtectionMode = string; /** Known values of {@link NatGatewaySkuName} that the service accepts. */ export enum KnownNatGatewaySkuName { @@ -10502,6 +12096,30 @@ export enum KnownGatewayLoadBalancerTunnelInterfaceType { */ export type GatewayLoadBalancerTunnelInterfaceType = string; +/** Known values of {@link LoadBalancerBackendAddressAdminState} that the service accepts. */ +export enum KnownLoadBalancerBackendAddressAdminState { + /** None */ + None = "None", + /** Up */ + Up = "Up", + /** Down */ + Down = "Down", + /** Drain */ + Drain = "Drain" +} + +/** + * Defines values for LoadBalancerBackendAddressAdminState. \ + * {@link KnownLoadBalancerBackendAddressAdminState} can be used interchangeably with LoadBalancerBackendAddressAdminState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **Up** \ + * **Down** \ + * **Drain** + */ +export type LoadBalancerBackendAddressAdminState = string; + /** Known values of {@link TransportProtocol} that the service accepts. */ export enum KnownTransportProtocol { /** Udp */ @@ -10559,6 +12177,24 @@ export enum KnownApplicationGatewayCustomErrorStatusCode { */ export type ApplicationGatewayCustomErrorStatusCode = string; +/** Known values of {@link ApplicationGatewayClientRevocationOptions} that the service accepts. */ +export enum KnownApplicationGatewayClientRevocationOptions { + /** None */ + None = "None", + /** Ocsp */ + Ocsp = "OCSP" +} + +/** + * Defines values for ApplicationGatewayClientRevocationOptions. \ + * {@link KnownApplicationGatewayClientRevocationOptions} can be used interchangeably with ApplicationGatewayClientRevocationOptions, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **OCSP** + */ +export type ApplicationGatewayClientRevocationOptions = string; + /** Known values of {@link ApplicationGatewayRequestRoutingRuleType} that the service accepts. */ export enum KnownApplicationGatewayRequestRoutingRuleType { /** Basic */ @@ -10667,6 +12303,99 @@ export enum KnownApplicationGatewayBackendHealthServerHealth { */ export type ApplicationGatewayBackendHealthServerHealth = string; +/** Known values of {@link ApplicationGatewayWafRuleStateTypes} that the service accepts. */ +export enum KnownApplicationGatewayWafRuleStateTypes { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for ApplicationGatewayWafRuleStateTypes. \ + * {@link KnownApplicationGatewayWafRuleStateTypes} can be used interchangeably with ApplicationGatewayWafRuleStateTypes, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type ApplicationGatewayWafRuleStateTypes = string; + +/** Known values of {@link ApplicationGatewayWafRuleActionTypes} that the service accepts. */ +export enum KnownApplicationGatewayWafRuleActionTypes { + /** None */ + None = "None", + /** AnomalyScoring */ + AnomalyScoring = "AnomalyScoring", + /** Allow */ + Allow = "Allow", + /** Block */ + Block = "Block", + /** Log */ + Log = "Log" +} + +/** + * Defines values for ApplicationGatewayWafRuleActionTypes. \ + * {@link KnownApplicationGatewayWafRuleActionTypes} can be used interchangeably with ApplicationGatewayWafRuleActionTypes, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **AnomalyScoring** \ + * **Allow** \ + * **Block** \ + * **Log** + */ +export type ApplicationGatewayWafRuleActionTypes = string; + +/** Known values of {@link ApplicationGatewayTierTypes} that the service accepts. */ +export enum KnownApplicationGatewayTierTypes { + /** Standard */ + Standard = "Standard", + /** WAF */ + WAF = "WAF", + /** StandardV2 */ + StandardV2 = "Standard_v2", + /** WAFV2 */ + WAFV2 = "WAF_v2" +} + +/** + * Defines values for ApplicationGatewayTierTypes. \ + * {@link KnownApplicationGatewayTierTypes} can be used interchangeably with ApplicationGatewayTierTypes, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Standard** \ + * **WAF** \ + * **Standard_v2** \ + * **WAF_v2** + */ +export type ApplicationGatewayTierTypes = string; + +/** Known values of {@link ApplicationGatewayRuleSetStatusOptions} that the service accepts. */ +export enum KnownApplicationGatewayRuleSetStatusOptions { + /** Preview */ + Preview = "Preview", + /** GA */ + GA = "GA", + /** Supported */ + Supported = "Supported", + /** Deprecated */ + Deprecated = "Deprecated" +} + +/** + * Defines values for ApplicationGatewayRuleSetStatusOptions. \ + * {@link KnownApplicationGatewayRuleSetStatusOptions} can be used interchangeably with ApplicationGatewayRuleSetStatusOptions, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Preview** \ + * **GA** \ + * **Supported** \ + * **Deprecated** + */ +export type ApplicationGatewayRuleSetStatusOptions = string; + /** Known values of {@link AzureFirewallRCActionType} that the service accepts. */ export enum KnownAzureFirewallRCActionType { /** Allow */ @@ -10852,12 +12581,16 @@ export enum KnownCommissionedState { Provisioned = "Provisioned", /** Commissioning */ Commissioning = "Commissioning", + /** CommissionedNoInternetAdvertise */ + CommissionedNoInternetAdvertise = "CommissionedNoInternetAdvertise", /** Commissioned */ Commissioned = "Commissioned", /** Decommissioning */ Decommissioning = "Decommissioning", /** Deprovisioning */ - Deprovisioning = "Deprovisioning" + Deprovisioning = "Deprovisioning", + /** Deprovisioned */ + Deprovisioned = "Deprovisioned" } /** @@ -10868,56 +12601,73 @@ export enum KnownCommissionedState { * **Provisioning** \ * **Provisioned** \ * **Commissioning** \ + * **CommissionedNoInternetAdvertise** \ * **Commissioned** \ * **Decommissioning** \ - * **Deprovisioning** + * **Deprovisioning** \ + * **Deprovisioned** */ export type CommissionedState = string; -/** Known values of {@link DdosCustomPolicyProtocol} that the service accepts. */ -export enum KnownDdosCustomPolicyProtocol { - /** Tcp */ - Tcp = "Tcp", - /** Udp */ - Udp = "Udp", - /** Syn */ - Syn = "Syn" +/** Known values of {@link Geo} that the service accepts. */ +export enum KnownGeo { + /** Global */ + Global = "GLOBAL", + /** Afri */ + Afri = "AFRI", + /** Apac */ + Apac = "APAC", + /** Euro */ + Euro = "EURO", + /** Latam */ + Latam = "LATAM", + /** NAM */ + NAM = "NAM", + /** ME */ + ME = "ME", + /** Oceania */ + Oceania = "OCEANIA", + /** AQ */ + AQ = "AQ" } /** - * Defines values for DdosCustomPolicyProtocol. \ - * {@link KnownDdosCustomPolicyProtocol} can be used interchangeably with DdosCustomPolicyProtocol, + * Defines values for Geo. \ + * {@link KnownGeo} can be used interchangeably with Geo, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Tcp** \ - * **Udp** \ - * **Syn** + * **GLOBAL** \ + * **AFRI** \ + * **APAC** \ + * **EURO** \ + * **LATAM** \ + * **NAM** \ + * **ME** \ + * **OCEANIA** \ + * **AQ** */ -export type DdosCustomPolicyProtocol = string; +export type Geo = string; -/** Known values of {@link DdosCustomPolicyTriggerSensitivityOverride} that the service accepts. */ -export enum KnownDdosCustomPolicyTriggerSensitivityOverride { - /** Relaxed */ - Relaxed = "Relaxed", - /** Low */ - Low = "Low", - /** Default */ - Default = "Default", - /** High */ - High = "High" +/** Known values of {@link CustomIpPrefixType} that the service accepts. */ +export enum KnownCustomIpPrefixType { + /** Singular */ + Singular = "Singular", + /** Parent */ + Parent = "Parent", + /** Child */ + Child = "Child" } /** - * Defines values for DdosCustomPolicyTriggerSensitivityOverride. \ - * {@link KnownDdosCustomPolicyTriggerSensitivityOverride} can be used interchangeably with DdosCustomPolicyTriggerSensitivityOverride, + * Defines values for CustomIpPrefixType. \ + * {@link KnownCustomIpPrefixType} can be used interchangeably with CustomIpPrefixType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Relaxed** \ - * **Low** \ - * **Default** \ - * **High** + * **Singular** \ + * **Parent** \ + * **Child** */ -export type DdosCustomPolicyTriggerSensitivityOverride = string; +export type CustomIpPrefixType = string; /** Known values of {@link ProtocolType} that the service accepts. */ export enum KnownProtocolType { @@ -11240,22 +12990,76 @@ export enum KnownExpressRouteLinkMacSecSciState { */ export type ExpressRouteLinkMacSecSciState = string; -/** Known values of {@link FirewallPolicyIntrusionDetectionStateType} that the service accepts. */ -export enum KnownFirewallPolicyIntrusionDetectionStateType { - /** Off */ - Off = "Off", - /** Alert */ - Alert = "Alert", - /** Deny */ - Deny = "Deny" +/** Known values of {@link ExpressRoutePortsBillingType} that the service accepts. */ +export enum KnownExpressRoutePortsBillingType { + /** MeteredData */ + MeteredData = "MeteredData", + /** UnlimitedData */ + UnlimitedData = "UnlimitedData" } /** - * Defines values for FirewallPolicyIntrusionDetectionStateType. \ - * {@link KnownFirewallPolicyIntrusionDetectionStateType} can be used interchangeably with FirewallPolicyIntrusionDetectionStateType, + * Defines values for ExpressRoutePortsBillingType. \ + * {@link KnownExpressRoutePortsBillingType} can be used interchangeably with ExpressRoutePortsBillingType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Off** \ + * **MeteredData** \ + * **UnlimitedData** + */ +export type ExpressRoutePortsBillingType = string; + +/** Known values of {@link ExpressRoutePortAuthorizationUseStatus} that the service accepts. */ +export enum KnownExpressRoutePortAuthorizationUseStatus { + /** Available */ + Available = "Available", + /** InUse */ + InUse = "InUse" +} + +/** + * Defines values for ExpressRoutePortAuthorizationUseStatus. \ + * {@link KnownExpressRoutePortAuthorizationUseStatus} can be used interchangeably with ExpressRoutePortAuthorizationUseStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Available** \ + * **InUse** + */ +export type ExpressRoutePortAuthorizationUseStatus = string; + +/** Known values of {@link AutoLearnPrivateRangesMode} that the service accepts. */ +export enum KnownAutoLearnPrivateRangesMode { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for AutoLearnPrivateRangesMode. \ + * {@link KnownAutoLearnPrivateRangesMode} can be used interchangeably with AutoLearnPrivateRangesMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type AutoLearnPrivateRangesMode = string; + +/** Known values of {@link FirewallPolicyIntrusionDetectionStateType} that the service accepts. */ +export enum KnownFirewallPolicyIntrusionDetectionStateType { + /** Off */ + Off = "Off", + /** Alert */ + Alert = "Alert", + /** Deny */ + Deny = "Deny" +} + +/** + * Defines values for FirewallPolicyIntrusionDetectionStateType. \ + * {@link KnownFirewallPolicyIntrusionDetectionStateType} can be used interchangeably with FirewallPolicyIntrusionDetectionStateType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Off** \ * **Alert** \ * **Deny** */ @@ -11324,8 +13128,8 @@ export enum KnownFirewallPolicyRuleCollectionType { */ export type FirewallPolicyRuleCollectionType = string; -/** Known values of {@link OrderByOrder} that the service accepts. */ -export enum KnownOrderByOrder { +/** Known values of {@link FirewallPolicyIdpsQuerySortOrder} that the service accepts. */ +export enum KnownFirewallPolicyIdpsQuerySortOrder { /** Ascending */ Ascending = "Ascending", /** Descending */ @@ -11333,77 +13137,14 @@ export enum KnownOrderByOrder { } /** - * Defines values for OrderByOrder. \ - * {@link KnownOrderByOrder} can be used interchangeably with OrderByOrder, + * Defines values for FirewallPolicyIdpsQuerySortOrder. \ + * {@link KnownFirewallPolicyIdpsQuerySortOrder} can be used interchangeably with FirewallPolicyIdpsQuerySortOrder, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Ascending** \ * **Descending** */ -export type OrderByOrder = string; - -/** Known values of {@link SingleQueryResultMode} that the service accepts. */ -export enum KnownSingleQueryResultMode { - /** Zero */ - Zero = 0, - /** One */ - One = 1, - /** Two */ - Two = 2 -} - -/** - * Defines values for SingleQueryResultMode. \ - * {@link KnownSingleQueryResultMode} can be used interchangeably with SingleQueryResultMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **0** \ - * **1** \ - * **2** - */ -export type SingleQueryResultMode = number; - -/** Known values of {@link SingleQueryResultSeverity} that the service accepts. */ -export enum KnownSingleQueryResultSeverity { - /** One */ - One = 1, - /** Two */ - Two = 2, - /** Three */ - Three = 3 -} - -/** - * Defines values for SingleQueryResultSeverity. \ - * {@link KnownSingleQueryResultSeverity} can be used interchangeably with SingleQueryResultSeverity, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **1** \ - * **2** \ - * **3** - */ -export type SingleQueryResultSeverity = number; - -/** Known values of {@link SingleQueryResultDirection} that the service accepts. */ -export enum KnownSingleQueryResultDirection { - /** Zero */ - Zero = 0, - /** One */ - One = 1, - /** Two */ - Two = 2 -} - -/** - * Defines values for SingleQueryResultDirection. \ - * {@link KnownSingleQueryResultDirection} can be used interchangeably with SingleQueryResultDirection, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **0** \ - * **1** \ - * **2** - */ -export type SingleQueryResultDirection = number; +export type FirewallPolicyIdpsQuerySortOrder = string; /** Known values of {@link IpAllocationType} that the service accepts. */ export enum KnownIpAllocationType { @@ -11588,6 +13329,246 @@ export enum KnownEffectiveSecurityRuleProtocol { */ export type EffectiveSecurityRuleProtocol = string; +/** Known values of {@link ConfigurationType} that the service accepts. */ +export enum KnownConfigurationType { + /** SecurityAdmin */ + SecurityAdmin = "SecurityAdmin", + /** Connectivity */ + Connectivity = "Connectivity" +} + +/** + * Defines values for ConfigurationType. \ + * {@link KnownConfigurationType} can be used interchangeably with ConfigurationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SecurityAdmin** \ + * **Connectivity** + */ +export type ConfigurationType = string; + +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key" +} + +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; + +/** Known values of {@link DeploymentStatus} that the service accepts. */ +export enum KnownDeploymentStatus { + /** NotStarted */ + NotStarted = "NotStarted", + /** Deploying */ + Deploying = "Deploying", + /** Deployed */ + Deployed = "Deployed", + /** Failed */ + Failed = "Failed" +} + +/** + * Defines values for DeploymentStatus. \ + * {@link KnownDeploymentStatus} can be used interchangeably with DeploymentStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotStarted** \ + * **Deploying** \ + * **Deployed** \ + * **Failed** + */ +export type DeploymentStatus = string; + +/** Known values of {@link ConnectivityTopology} that the service accepts. */ +export enum KnownConnectivityTopology { + /** HubAndSpoke */ + HubAndSpoke = "HubAndSpoke", + /** Mesh */ + Mesh = "Mesh" +} + +/** + * Defines values for ConnectivityTopology. \ + * {@link KnownConnectivityTopology} can be used interchangeably with ConnectivityTopology, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **HubAndSpoke** \ + * **Mesh** + */ +export type ConnectivityTopology = string; + +/** Known values of {@link IsGlobal} that the service accepts. */ +export enum KnownIsGlobal { + /** False */ + False = "False", + /** True */ + True = "True" +} + +/** + * Defines values for IsGlobal. \ + * {@link KnownIsGlobal} can be used interchangeably with IsGlobal, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **False** \ + * **True** + */ +export type IsGlobal = string; + +/** Known values of {@link UseHubGateway} that the service accepts. */ +export enum KnownUseHubGateway { + /** False */ + False = "False", + /** True */ + True = "True" +} + +/** + * Defines values for UseHubGateway. \ + * {@link KnownUseHubGateway} can be used interchangeably with UseHubGateway, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **False** \ + * **True** + */ +export type UseHubGateway = string; + +/** Known values of {@link GroupConnectivity} that the service accepts. */ +export enum KnownGroupConnectivity { + /** None */ + None = "None", + /** DirectlyConnected */ + DirectlyConnected = "DirectlyConnected" +} + +/** + * Defines values for GroupConnectivity. \ + * {@link KnownGroupConnectivity} can be used interchangeably with GroupConnectivity, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **DirectlyConnected** + */ +export type GroupConnectivity = string; + +/** Known values of {@link DeleteExistingPeering} that the service accepts. */ +export enum KnownDeleteExistingPeering { + /** False */ + False = "False", + /** True */ + True = "True" +} + +/** + * Defines values for DeleteExistingPeering. \ + * {@link KnownDeleteExistingPeering} can be used interchangeably with DeleteExistingPeering, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **False** \ + * **True** + */ +export type DeleteExistingPeering = string; + +/** Known values of {@link EffectiveAdminRuleKind} that the service accepts. */ +export enum KnownEffectiveAdminRuleKind { + /** Custom */ + Custom = "Custom", + /** Default */ + Default = "Default" +} + +/** + * Defines values for EffectiveAdminRuleKind. \ + * {@link KnownEffectiveAdminRuleKind} can be used interchangeably with EffectiveAdminRuleKind, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Custom** \ + * **Default** + */ +export type EffectiveAdminRuleKind = string; + +/** Known values of {@link ScopeConnectionState} that the service accepts. */ +export enum KnownScopeConnectionState { + /** Connected */ + Connected = "Connected", + /** Pending */ + Pending = "Pending", + /** Conflict */ + Conflict = "Conflict", + /** Revoked */ + Revoked = "Revoked", + /** Rejected */ + Rejected = "Rejected" +} + +/** + * Defines values for ScopeConnectionState. \ + * {@link KnownScopeConnectionState} can be used interchangeably with ScopeConnectionState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Connected** \ + * **Pending** \ + * **Conflict** \ + * **Revoked** \ + * **Rejected** + */ +export type ScopeConnectionState = string; + +/** Known values of {@link NetworkIntentPolicyBasedService} that the service accepts. */ +export enum KnownNetworkIntentPolicyBasedService { + /** None */ + None = "None", + /** All */ + All = "All", + /** AllowRulesOnly */ + AllowRulesOnly = "AllowRulesOnly" +} + +/** + * Defines values for NetworkIntentPolicyBasedService. \ + * {@link KnownNetworkIntentPolicyBasedService} can be used interchangeably with NetworkIntentPolicyBasedService, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **All** \ + * **AllowRulesOnly** + */ +export type NetworkIntentPolicyBasedService = string; + +/** Known values of {@link AdminRuleKind} that the service accepts. */ +export enum KnownAdminRuleKind { + /** Custom */ + Custom = "Custom", + /** Default */ + Default = "Default" +} + +/** + * Defines values for AdminRuleKind. \ + * {@link KnownAdminRuleKind} can be used interchangeably with AdminRuleKind, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Custom** \ + * **Default** + */ +export type AdminRuleKind = string; + /** Known values of {@link InboundSecurityRulesProtocol} that the service accepts. */ export enum KnownInboundSecurityRulesProtocol { /** TCP */ @@ -11958,7 +13939,11 @@ export enum KnownEndpointType { /** MMAWorkspaceMachine */ MMAWorkspaceMachine = "MMAWorkspaceMachine", /** MMAWorkspaceNetwork */ - MMAWorkspaceNetwork = "MMAWorkspaceNetwork" + MMAWorkspaceNetwork = "MMAWorkspaceNetwork", + /** AzureArcVM */ + AzureArcVM = "AzureArcVM", + /** AzureVmss */ + AzureVmss = "AzureVMSS" } /** @@ -11971,7 +13956,9 @@ export enum KnownEndpointType { * **AzureSubnet** \ * **ExternalAddress** \ * **MMAWorkspaceMachine** \ - * **MMAWorkspaceNetwork** + * **MMAWorkspaceNetwork** \ + * **AzureArcVM** \ + * **AzureVMSS** */ export type EndpointType = string; @@ -12206,6 +14193,24 @@ export enum KnownEvaluationState { */ export type EvaluationState = string; +/** Known values of {@link IsWorkloadProtected} that the service accepts. */ +export enum KnownIsWorkloadProtected { + /** False */ + False = "False", + /** True */ + True = "True" +} + +/** + * Defines values for IsWorkloadProtected. \ + * {@link KnownIsWorkloadProtected} can be used interchangeably with IsWorkloadProtected, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **False** \ + * **True** + */ +export type IsWorkloadProtected = string; + /** Known values of {@link PublicIPPrefixSkuName} that the service accepts. */ export enum KnownPublicIPPrefixSkuName { /** Standard */ @@ -12827,6 +14832,27 @@ export enum KnownPfsGroup { */ export type PfsGroup = string; +/** Known values of {@link VpnPolicyMemberAttributeType} that the service accepts. */ +export enum KnownVpnPolicyMemberAttributeType { + /** CertificateGroupId */ + CertificateGroupId = "CertificateGroupId", + /** AADGroupId */ + AADGroupId = "AADGroupId", + /** RadiusAzureGroupId */ + RadiusAzureGroupId = "RadiusAzureGroupId" +} + +/** + * Defines values for VpnPolicyMemberAttributeType. \ + * {@link KnownVpnPolicyMemberAttributeType} can be used interchangeably with VpnPolicyMemberAttributeType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **CertificateGroupId** \ + * **AADGroupId** \ + * **RadiusAzureGroupId** + */ +export type VpnPolicyMemberAttributeType = string; + /** Known values of {@link VpnNatRuleType} that the service accepts. */ export enum KnownVpnNatRuleType { /** Static */ @@ -13073,6 +15099,24 @@ export enum KnownVpnGatewayTunnelingProtocol { */ export type VpnGatewayTunnelingProtocol = string; +/** Known values of {@link VnetLocalRouteOverrideCriteria} that the service accepts. */ +export enum KnownVnetLocalRouteOverrideCriteria { + /** Contains */ + Contains = "Contains", + /** Equal */ + Equal = "Equal" +} + +/** + * Defines values for VnetLocalRouteOverrideCriteria. \ + * {@link KnownVnetLocalRouteOverrideCriteria} can be used interchangeably with VnetLocalRouteOverrideCriteria, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Contains** \ + * **Equal** + */ +export type VnetLocalRouteOverrideCriteria = string; + /** Known values of {@link RoutingState} that the service accepts. */ export enum KnownRoutingState { /** None */ @@ -13118,6 +15162,102 @@ export enum KnownPreferredRoutingGateway { */ export type PreferredRoutingGateway = string; +/** Known values of {@link HubRoutingPreference} that the service accepts. */ +export enum KnownHubRoutingPreference { + /** ExpressRoute */ + ExpressRoute = "ExpressRoute", + /** VpnGateway */ + VpnGateway = "VpnGateway", + /** ASPath */ + ASPath = "ASPath" +} + +/** + * Defines values for HubRoutingPreference. \ + * {@link KnownHubRoutingPreference} can be used interchangeably with HubRoutingPreference, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ExpressRoute** \ + * **VpnGateway** \ + * **ASPath** + */ +export type HubRoutingPreference = string; + +/** Known values of {@link RouteMapMatchCondition} that the service accepts. */ +export enum KnownRouteMapMatchCondition { + /** Unknown */ + Unknown = "Unknown", + /** Contains */ + Contains = "Contains", + /** Equals */ + Equals = "Equals", + /** NotContains */ + NotContains = "NotContains", + /** NotEquals */ + NotEquals = "NotEquals" +} + +/** + * Defines values for RouteMapMatchCondition. \ + * {@link KnownRouteMapMatchCondition} can be used interchangeably with RouteMapMatchCondition, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unknown** \ + * **Contains** \ + * **Equals** \ + * **NotContains** \ + * **NotEquals** + */ +export type RouteMapMatchCondition = string; + +/** Known values of {@link RouteMapActionType} that the service accepts. */ +export enum KnownRouteMapActionType { + /** Unknown */ + Unknown = "Unknown", + /** Remove */ + Remove = "Remove", + /** Add */ + Add = "Add", + /** Replace */ + Replace = "Replace", + /** Drop */ + Drop = "Drop" +} + +/** + * Defines values for RouteMapActionType. \ + * {@link KnownRouteMapActionType} can be used interchangeably with RouteMapActionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unknown** \ + * **Remove** \ + * **Add** \ + * **Replace** \ + * **Drop** + */ +export type RouteMapActionType = string; + +/** Known values of {@link NextStep} that the service accepts. */ +export enum KnownNextStep { + /** Unknown */ + Unknown = "Unknown", + /** Continue */ + Continue = "Continue", + /** Terminate */ + Terminate = "Terminate" +} + +/** + * Defines values for NextStep. \ + * {@link KnownNextStep} can be used interchangeably with NextStep, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unknown** \ + * **Continue** \ + * **Terminate** + */ +export type NextStep = string; + /** Known values of {@link VpnConnectionStatus} that the service accepts. */ export enum KnownVpnConnectionStatus { /** Unknown */ @@ -13300,7 +15440,9 @@ export enum KnownWebApplicationFirewallOperator { /** Regex */ Regex = "Regex", /** GeoMatch */ - GeoMatch = "GeoMatch" + GeoMatch = "GeoMatch", + /** Any */ + Any = "Any" } /** @@ -13318,12 +15460,15 @@ export enum KnownWebApplicationFirewallOperator { * **BeginsWith** \ * **EndsWith** \ * **Regex** \ - * **GeoMatch** + * **GeoMatch** \ + * **Any** */ export type WebApplicationFirewallOperator = string; /** Known values of {@link WebApplicationFirewallTransform} that the service accepts. */ export enum KnownWebApplicationFirewallTransform { + /** Uppercase */ + Uppercase = "Uppercase", /** Lowercase */ Lowercase = "Lowercase", /** Trim */ @@ -13343,6 +15488,7 @@ export enum KnownWebApplicationFirewallTransform { * {@link KnownWebApplicationFirewallTransform} can be used interchangeably with WebApplicationFirewallTransform, * this enum contains the known values that the service supports. * ### Known values supported by the service + * **Uppercase** \ * **Lowercase** \ * **Trim** \ * **UrlDecode** \ @@ -13472,7 +15618,9 @@ export type OwaspCrsExclusionEntrySelectorMatchOperator = string; /** Known values of {@link ManagedRuleEnabledState} that the service accepts. */ export enum KnownManagedRuleEnabledState { /** Disabled */ - Disabled = "Disabled" + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled" } /** @@ -13480,10 +15628,35 @@ export enum KnownManagedRuleEnabledState { * {@link KnownManagedRuleEnabledState} can be used interchangeably with ManagedRuleEnabledState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Disabled** + * **Disabled** \ + * **Enabled** */ export type ManagedRuleEnabledState = string; +/** Known values of {@link ActionType} that the service accepts. */ +export enum KnownActionType { + /** AnomalyScoring */ + AnomalyScoring = "AnomalyScoring", + /** Allow */ + Allow = "Allow", + /** Block */ + Block = "Block", + /** Log */ + Log = "Log" +} + +/** + * Defines values for ActionType. \ + * {@link KnownActionType} can be used interchangeably with ActionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AnomalyScoring** \ + * **Allow** \ + * **Block** \ + * **Log** + */ +export type ActionType = string; + /** Known values of {@link FirewallPolicyNatRuleCollectionActionType} that the service accepts. */ export enum KnownFirewallPolicyNatRuleCollectionActionType { /** Dnat */ @@ -13601,6 +15774,93 @@ export enum KnownNetworkOperationStatus { */ export type NetworkOperationStatus = string; +/** Known values of {@link SecurityConfigurationRuleProtocol} that the service accepts. */ +export enum KnownSecurityConfigurationRuleProtocol { + /** Tcp */ + Tcp = "Tcp", + /** Udp */ + Udp = "Udp", + /** Icmp */ + Icmp = "Icmp", + /** Esp */ + Esp = "Esp", + /** Any */ + Any = "Any", + /** Ah */ + Ah = "Ah" +} + +/** + * Defines values for SecurityConfigurationRuleProtocol. \ + * {@link KnownSecurityConfigurationRuleProtocol} can be used interchangeably with SecurityConfigurationRuleProtocol, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Tcp** \ + * **Udp** \ + * **Icmp** \ + * **Esp** \ + * **Any** \ + * **Ah** + */ +export type SecurityConfigurationRuleProtocol = string; + +/** Known values of {@link AddressPrefixType} that the service accepts. */ +export enum KnownAddressPrefixType { + /** IPPrefix */ + IPPrefix = "IPPrefix", + /** ServiceTag */ + ServiceTag = "ServiceTag" +} + +/** + * Defines values for AddressPrefixType. \ + * {@link KnownAddressPrefixType} can be used interchangeably with AddressPrefixType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **IPPrefix** \ + * **ServiceTag** + */ +export type AddressPrefixType = string; + +/** Known values of {@link SecurityConfigurationRuleAccess} that the service accepts. */ +export enum KnownSecurityConfigurationRuleAccess { + /** Allow */ + Allow = "Allow", + /** Deny */ + Deny = "Deny", + /** AlwaysAllow */ + AlwaysAllow = "AlwaysAllow" +} + +/** + * Defines values for SecurityConfigurationRuleAccess. \ + * {@link KnownSecurityConfigurationRuleAccess} can be used interchangeably with SecurityConfigurationRuleAccess, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Allow** \ + * **Deny** \ + * **AlwaysAllow** + */ +export type SecurityConfigurationRuleAccess = string; + +/** Known values of {@link SecurityConfigurationRuleDirection} that the service accepts. */ +export enum KnownSecurityConfigurationRuleDirection { + /** Inbound */ + Inbound = "Inbound", + /** Outbound */ + Outbound = "Outbound" +} + +/** + * Defines values for SecurityConfigurationRuleDirection. \ + * {@link KnownSecurityConfigurationRuleDirection} can be used interchangeably with SecurityConfigurationRuleDirection, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Inbound** \ + * **Outbound** + */ +export type SecurityConfigurationRuleDirection = string; + /** Known values of {@link TunnelConnectionStatus} that the service accepts. */ export enum KnownTunnelConnectionStatus { /** Unknown */ @@ -13654,6 +15914,16 @@ export type ResourceIdentityType = | "UserAssigned" | "SystemAssigned, UserAssigned" | "None"; +/** Defines values for SlotType. */ +export type SlotType = "Production" | "Staging"; +/** Defines values for FirewallPolicyIdpsSignatureMode. */ +export type FirewallPolicyIdpsSignatureMode = 0 | 1 | 2; +/** Defines values for FirewallPolicyIdpsSignatureSeverity. */ +export type FirewallPolicyIdpsSignatureSeverity = 1 | 2 | 3; +/** Defines values for FirewallPolicyIdpsSignatureDirection. */ +export type FirewallPolicyIdpsSignatureDirection = 0 | 1 | 2; +/** Defines values for PacketCaptureTargetType. */ +export type PacketCaptureTargetType = "AzureVM" | "AzureVMSS"; /** Optional parameters. */ export interface ApplicationGatewaysDeleteOptionalParams @@ -13802,49 +16072,429 @@ export interface ApplicationGatewaysListAvailableSslPredefinedPoliciesOptionalPa export type ApplicationGatewaysListAvailableSslPredefinedPoliciesResponse = ApplicationGatewayAvailableSslPredefinedPolicies; /** Optional parameters. */ -export interface ApplicationGatewaysGetSslPredefinedPolicyOptionalParams - extends coreClient.OperationOptions {} +export interface ApplicationGatewaysGetSslPredefinedPolicyOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getSslPredefinedPolicy operation. */ +export type ApplicationGatewaysGetSslPredefinedPolicyResponse = ApplicationGatewaySslPredefinedPolicy; + +/** Optional parameters. */ +export interface ApplicationGatewaysListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ApplicationGatewaysListNextResponse = ApplicationGatewayListResult; + +/** Optional parameters. */ +export interface ApplicationGatewaysListAllNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAllNext operation. */ +export type ApplicationGatewaysListAllNextResponse = ApplicationGatewayListResult; + +/** Optional parameters. */ +export interface ApplicationGatewaysListAvailableSslPredefinedPoliciesNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAvailableSslPredefinedPoliciesNext operation. */ +export type ApplicationGatewaysListAvailableSslPredefinedPoliciesNextResponse = ApplicationGatewayAvailableSslPredefinedPolicies; + +/** Optional parameters. */ +export interface ApplicationGatewayPrivateLinkResourcesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ApplicationGatewayPrivateLinkResourcesListResponse = ApplicationGatewayPrivateLinkResourceListResult; + +/** Optional parameters. */ +export interface ApplicationGatewayPrivateLinkResourcesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ApplicationGatewayPrivateLinkResourcesListNextResponse = ApplicationGatewayPrivateLinkResourceListResult; + +/** Optional parameters. */ +export interface ApplicationGatewayPrivateEndpointConnectionsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ApplicationGatewayPrivateEndpointConnectionsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type ApplicationGatewayPrivateEndpointConnectionsUpdateResponse = ApplicationGatewayPrivateEndpointConnection; + +/** Optional parameters. */ +export interface ApplicationGatewayPrivateEndpointConnectionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApplicationGatewayPrivateEndpointConnectionsGetResponse = ApplicationGatewayPrivateEndpointConnection; + +/** Optional parameters. */ +export interface ApplicationGatewayPrivateEndpointConnectionsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ApplicationGatewayPrivateEndpointConnectionsListResponse = ApplicationGatewayPrivateEndpointConnectionListResult; + +/** Optional parameters. */ +export interface ApplicationGatewayPrivateEndpointConnectionsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ApplicationGatewayPrivateEndpointConnectionsListNextResponse = ApplicationGatewayPrivateEndpointConnectionListResult; + +/** Optional parameters. */ +export interface ApplicationGatewayWafDynamicManifestsDefaultGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApplicationGatewayWafDynamicManifestsDefaultGetResponse = ApplicationGatewayWafDynamicManifestResult; + +/** Optional parameters. */ +export interface ApplicationGatewayWafDynamicManifestsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApplicationGatewayWafDynamicManifestsGetResponse = ApplicationGatewayWafDynamicManifestResultList; + +/** Optional parameters. */ +export interface ApplicationGatewayWafDynamicManifestsGetNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getNext operation. */ +export type ApplicationGatewayWafDynamicManifestsGetNextResponse = ApplicationGatewayWafDynamicManifestResultList; + +/** Optional parameters. */ +export interface ApplicationSecurityGroupsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ApplicationSecurityGroupsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApplicationSecurityGroupsGetResponse = ApplicationSecurityGroup; + +/** Optional parameters. */ +export interface ApplicationSecurityGroupsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApplicationSecurityGroupsCreateOrUpdateResponse = ApplicationSecurityGroup; + +/** Optional parameters. */ +export interface ApplicationSecurityGroupsUpdateTagsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the updateTags operation. */ +export type ApplicationSecurityGroupsUpdateTagsResponse = ApplicationSecurityGroup; + +/** Optional parameters. */ +export interface ApplicationSecurityGroupsListAllOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAll operation. */ +export type ApplicationSecurityGroupsListAllResponse = ApplicationSecurityGroupListResult; + +/** Optional parameters. */ +export interface ApplicationSecurityGroupsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ApplicationSecurityGroupsListResponse = ApplicationSecurityGroupListResult; + +/** Optional parameters. */ +export interface ApplicationSecurityGroupsListAllNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAllNext operation. */ +export type ApplicationSecurityGroupsListAllNextResponse = ApplicationSecurityGroupListResult; + +/** Optional parameters. */ +export interface ApplicationSecurityGroupsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ApplicationSecurityGroupsListNextResponse = ApplicationSecurityGroupListResult; + +/** Optional parameters. */ +export interface AvailableDelegationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type AvailableDelegationsListResponse = AvailableDelegationsResult; + +/** Optional parameters. */ +export interface AvailableDelegationsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type AvailableDelegationsListNextResponse = AvailableDelegationsResult; + +/** Optional parameters. */ +export interface AvailableResourceGroupDelegationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type AvailableResourceGroupDelegationsListResponse = AvailableDelegationsResult; + +/** Optional parameters. */ +export interface AvailableResourceGroupDelegationsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type AvailableResourceGroupDelegationsListNextResponse = AvailableDelegationsResult; + +/** Optional parameters. */ +export interface AvailableServiceAliasesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type AvailableServiceAliasesListResponse = AvailableServiceAliasesResult; + +/** Optional parameters. */ +export interface AvailableServiceAliasesListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type AvailableServiceAliasesListByResourceGroupResponse = AvailableServiceAliasesResult; + +/** Optional parameters. */ +export interface AvailableServiceAliasesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type AvailableServiceAliasesListNextResponse = AvailableServiceAliasesResult; + +/** Optional parameters. */ +export interface AvailableServiceAliasesListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type AvailableServiceAliasesListByResourceGroupNextResponse = AvailableServiceAliasesResult; + +/** Optional parameters. */ +export interface AzureFirewallsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface AzureFirewallsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AzureFirewallsGetResponse = AzureFirewall; + +/** Optional parameters. */ +export interface AzureFirewallsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AzureFirewallsCreateOrUpdateResponse = AzureFirewall; + +/** Optional parameters. */ +export interface AzureFirewallsUpdateTagsOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the updateTags operation. */ +export type AzureFirewallsUpdateTagsResponse = AzureFirewall; + +/** Optional parameters. */ +export interface AzureFirewallsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type AzureFirewallsListResponse = AzureFirewallListResult; + +/** Optional parameters. */ +export interface AzureFirewallsListAllOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAll operation. */ +export type AzureFirewallsListAllResponse = AzureFirewallListResult; + +/** Optional parameters. */ +export interface AzureFirewallsListLearnedPrefixesOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the listLearnedPrefixes operation. */ +export type AzureFirewallsListLearnedPrefixesResponse = IPPrefixesList; + +/** Optional parameters. */ +export interface AzureFirewallsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type AzureFirewallsListNextResponse = AzureFirewallListResult; + +/** Optional parameters. */ +export interface AzureFirewallsListAllNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAllNext operation. */ +export type AzureFirewallsListAllNextResponse = AzureFirewallListResult; + +/** Optional parameters. */ +export interface AzureFirewallFqdnTagsListAllOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAll operation. */ +export type AzureFirewallFqdnTagsListAllResponse = AzureFirewallFqdnTagListResult; + +/** Optional parameters. */ +export interface AzureFirewallFqdnTagsListAllNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAllNext operation. */ +export type AzureFirewallFqdnTagsListAllNextResponse = AzureFirewallFqdnTagListResult; + +/** Optional parameters. */ +export interface WebCategoriesGetOptionalParams + extends coreClient.OperationOptions { + /** Expands resourceIds back referenced by the azureWebCategory resource. */ + expand?: string; +} + +/** Contains response data for the get operation. */ +export type WebCategoriesGetResponse = AzureWebCategory; + +/** Optional parameters. */ +export interface WebCategoriesListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type WebCategoriesListBySubscriptionResponse = AzureWebCategoryListResult; + +/** Optional parameters. */ +export interface WebCategoriesListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type WebCategoriesListBySubscriptionNextResponse = AzureWebCategoryListResult; + +/** Optional parameters. */ +export interface BastionHostsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface BastionHostsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type BastionHostsGetResponse = BastionHost; + +/** Optional parameters. */ +export interface BastionHostsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type BastionHostsCreateOrUpdateResponse = BastionHost; + +/** Optional parameters. */ +export interface BastionHostsUpdateTagsOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the getSslPredefinedPolicy operation. */ -export type ApplicationGatewaysGetSslPredefinedPolicyResponse = ApplicationGatewaySslPredefinedPolicy; +/** Contains response data for the updateTags operation. */ +export type BastionHostsUpdateTagsResponse = BastionHost; /** Optional parameters. */ -export interface ApplicationGatewaysListNextOptionalParams +export interface BastionHostsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ApplicationGatewaysListNextResponse = ApplicationGatewayListResult; +/** Contains response data for the list operation. */ +export type BastionHostsListResponse = BastionHostListResult; /** Optional parameters. */ -export interface ApplicationGatewaysListAllNextOptionalParams +export interface BastionHostsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAllNext operation. */ -export type ApplicationGatewaysListAllNextResponse = ApplicationGatewayListResult; +/** Contains response data for the listByResourceGroup operation. */ +export type BastionHostsListByResourceGroupResponse = BastionHostListResult; /** Optional parameters. */ -export interface ApplicationGatewaysListAvailableSslPredefinedPoliciesNextOptionalParams +export interface BastionHostsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAvailableSslPredefinedPoliciesNext operation. */ -export type ApplicationGatewaysListAvailableSslPredefinedPoliciesNextResponse = ApplicationGatewayAvailableSslPredefinedPolicies; +/** Contains response data for the listNext operation. */ +export type BastionHostsListNextResponse = BastionHostListResult; /** Optional parameters. */ -export interface ApplicationGatewayPrivateLinkResourcesListOptionalParams +export interface BastionHostsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ApplicationGatewayPrivateLinkResourcesListResponse = ApplicationGatewayPrivateLinkResourceListResult; +/** Contains response data for the listByResourceGroupNext operation. */ +export type BastionHostsListByResourceGroupNextResponse = BastionHostListResult; /** Optional parameters. */ -export interface ApplicationGatewayPrivateLinkResourcesListNextOptionalParams - extends coreClient.OperationOptions {} +export interface PutBastionShareableLinkOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listNext operation. */ -export type ApplicationGatewayPrivateLinkResourcesListNextResponse = ApplicationGatewayPrivateLinkResourceListResult; +/** Contains response data for the putBastionShareableLink operation. */ +export type PutBastionShareableLinkResponse = BastionShareableLinkListResult; /** Optional parameters. */ -export interface ApplicationGatewayPrivateEndpointConnectionsDeleteOptionalParams +export interface DeleteBastionShareableLinkOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13853,7 +16503,14 @@ export interface ApplicationGatewayPrivateEndpointConnectionsDeleteOptionalParam } /** Optional parameters. */ -export interface ApplicationGatewayPrivateEndpointConnectionsUpdateOptionalParams +export interface GetBastionShareableLinkOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getBastionShareableLink operation. */ +export type GetBastionShareableLinkResponse = BastionShareableLinkListResult; + +/** Optional parameters. */ +export interface GetActiveSessionsOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13861,48 +16518,79 @@ export interface ApplicationGatewayPrivateEndpointConnectionsUpdateOptionalParam resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type ApplicationGatewayPrivateEndpointConnectionsUpdateResponse = ApplicationGatewayPrivateEndpointConnection; +/** Contains response data for the getActiveSessions operation. */ +export type GetActiveSessionsResponse = BastionActiveSessionListResult; /** Optional parameters. */ -export interface ApplicationGatewayPrivateEndpointConnectionsGetOptionalParams +export interface DisconnectActiveSessionsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ApplicationGatewayPrivateEndpointConnectionsGetResponse = ApplicationGatewayPrivateEndpointConnection; +/** Contains response data for the disconnectActiveSessions operation. */ +export type DisconnectActiveSessionsResponse = BastionSessionDeleteResult; /** Optional parameters. */ -export interface ApplicationGatewayPrivateEndpointConnectionsListOptionalParams +export interface CheckDnsNameAvailabilityOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ApplicationGatewayPrivateEndpointConnectionsListResponse = ApplicationGatewayPrivateEndpointConnectionListResult; +/** Contains response data for the checkDnsNameAvailability operation. */ +export type CheckDnsNameAvailabilityResponse = DnsNameAvailabilityResult; /** Optional parameters. */ -export interface ApplicationGatewayPrivateEndpointConnectionsListNextOptionalParams +export interface ExpressRouteProviderPortOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ApplicationGatewayPrivateEndpointConnectionsListNextResponse = ApplicationGatewayPrivateEndpointConnectionListResult; +/** Contains response data for the expressRouteProviderPort operation. */ +export type ExpressRouteProviderPortResponse = ExpressRouteProviderPort; /** Optional parameters. */ -export interface ApplicationSecurityGroupsDeleteOptionalParams +export interface ListActiveConnectivityConfigurationsOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ + top?: number; +} + +/** Contains response data for the listActiveConnectivityConfigurations operation. */ +export type ListActiveConnectivityConfigurationsResponse = ActiveConnectivityConfigurationsListResult; + +/** Optional parameters. */ +export interface ListActiveSecurityAdminRulesOptionalParams + extends coreClient.OperationOptions { + /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ + top?: number; } +/** Contains response data for the listActiveSecurityAdminRules operation. */ +export type ListActiveSecurityAdminRulesResponse = ActiveSecurityAdminRulesListResult; + /** Optional parameters. */ -export interface ApplicationSecurityGroupsGetOptionalParams +export interface ListNetworkManagerEffectiveConnectivityConfigurationsOptionalParams + extends coreClient.OperationOptions { + /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ + top?: number; +} + +/** Contains response data for the listNetworkManagerEffectiveConnectivityConfigurations operation. */ +export type ListNetworkManagerEffectiveConnectivityConfigurationsResponse = NetworkManagerEffectiveConnectivityConfigurationListResult; + +/** Optional parameters. */ +export interface ListNetworkManagerEffectiveSecurityAdminRulesOptionalParams + extends coreClient.OperationOptions { + /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ + top?: number; +} + +/** Contains response data for the listNetworkManagerEffectiveSecurityAdminRules operation. */ +export type ListNetworkManagerEffectiveSecurityAdminRulesResponse = NetworkManagerEffectiveSecurityAdminRulesListResult; + +/** Optional parameters. */ +export interface SupportedSecurityProvidersOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ApplicationSecurityGroupsGetResponse = ApplicationSecurityGroup; +/** Contains response data for the supportedSecurityProviders operation. */ +export type SupportedSecurityProvidersResponse = VirtualWanSecurityProviders; /** Optional parameters. */ -export interface ApplicationSecurityGroupsCreateOrUpdateOptionalParams +export interface GeneratevirtualwanvpnserverconfigurationvpnprofileOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -13910,102 +16598,127 @@ export interface ApplicationSecurityGroupsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ApplicationSecurityGroupsCreateOrUpdateResponse = ApplicationSecurityGroup; +/** Contains response data for the generatevirtualwanvpnserverconfigurationvpnprofile operation. */ +export type GeneratevirtualwanvpnserverconfigurationvpnprofileResponse = VpnProfileResponse; /** Optional parameters. */ -export interface ApplicationSecurityGroupsUpdateTagsOptionalParams +export interface PutBastionShareableLinkNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the updateTags operation. */ -export type ApplicationSecurityGroupsUpdateTagsResponse = ApplicationSecurityGroup; +/** Contains response data for the putBastionShareableLinkNext operation. */ +export type PutBastionShareableLinkNextResponse = BastionShareableLinkListResult; /** Optional parameters. */ -export interface ApplicationSecurityGroupsListAllOptionalParams +export interface GetBastionShareableLinkNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAll operation. */ -export type ApplicationSecurityGroupsListAllResponse = ApplicationSecurityGroupListResult; +/** Contains response data for the getBastionShareableLinkNext operation. */ +export type GetBastionShareableLinkNextResponse = BastionShareableLinkListResult; /** Optional parameters. */ -export interface ApplicationSecurityGroupsListOptionalParams +export interface GetActiveSessionsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ApplicationSecurityGroupsListResponse = ApplicationSecurityGroupListResult; +/** Contains response data for the getActiveSessionsNext operation. */ +export type GetActiveSessionsNextResponse = BastionActiveSessionListResult; /** Optional parameters. */ -export interface ApplicationSecurityGroupsListAllNextOptionalParams +export interface DisconnectActiveSessionsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAllNext operation. */ -export type ApplicationSecurityGroupsListAllNextResponse = ApplicationSecurityGroupListResult; +/** Contains response data for the disconnectActiveSessionsNext operation. */ +export type DisconnectActiveSessionsNextResponse = BastionSessionDeleteResult; /** Optional parameters. */ -export interface ApplicationSecurityGroupsListNextOptionalParams +export interface NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ApplicationSecurityGroupsListNextResponse = ApplicationSecurityGroupListResult; +/** Contains response data for the listCloudServiceRoleInstanceNetworkInterfaces operation. */ +export type NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesResponse = NetworkInterfaceListResult; /** Optional parameters. */ -export interface AvailableDelegationsListOptionalParams +export interface NetworkInterfacesListCloudServiceNetworkInterfacesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type AvailableDelegationsListResponse = AvailableDelegationsResult; +/** Contains response data for the listCloudServiceNetworkInterfaces operation. */ +export type NetworkInterfacesListCloudServiceNetworkInterfacesResponse = NetworkInterfaceListResult; /** Optional parameters. */ -export interface AvailableDelegationsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface NetworkInterfacesGetCloudServiceNetworkInterfaceOptionalParams + extends coreClient.OperationOptions { + /** Expands referenced resources. */ + expand?: string; +} -/** Contains response data for the listNext operation. */ -export type AvailableDelegationsListNextResponse = AvailableDelegationsResult; +/** Contains response data for the getCloudServiceNetworkInterface operation. */ +export type NetworkInterfacesGetCloudServiceNetworkInterfaceResponse = NetworkInterface; /** Optional parameters. */ -export interface AvailableResourceGroupDelegationsListOptionalParams - extends coreClient.OperationOptions {} +export interface NetworkInterfacesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the list operation. */ -export type AvailableResourceGroupDelegationsListResponse = AvailableDelegationsResult; +/** Optional parameters. */ +export interface NetworkInterfacesGetOptionalParams + extends coreClient.OperationOptions { + /** Expands referenced resources. */ + expand?: string; +} + +/** Contains response data for the get operation. */ +export type NetworkInterfacesGetResponse = NetworkInterface; /** Optional parameters. */ -export interface AvailableResourceGroupDelegationsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface NetworkInterfacesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listNext operation. */ -export type AvailableResourceGroupDelegationsListNextResponse = AvailableDelegationsResult; +/** Contains response data for the createOrUpdate operation. */ +export type NetworkInterfacesCreateOrUpdateResponse = NetworkInterface; /** Optional parameters. */ -export interface AvailableServiceAliasesListOptionalParams +export interface NetworkInterfacesUpdateTagsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type AvailableServiceAliasesListResponse = AvailableServiceAliasesResult; +/** Contains response data for the updateTags operation. */ +export type NetworkInterfacesUpdateTagsResponse = NetworkInterface; /** Optional parameters. */ -export interface AvailableServiceAliasesListByResourceGroupOptionalParams +export interface NetworkInterfacesListAllOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type AvailableServiceAliasesListByResourceGroupResponse = AvailableServiceAliasesResult; +/** Contains response data for the listAll operation. */ +export type NetworkInterfacesListAllResponse = NetworkInterfaceListResult; /** Optional parameters. */ -export interface AvailableServiceAliasesListNextOptionalParams +export interface NetworkInterfacesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type AvailableServiceAliasesListNextResponse = AvailableServiceAliasesResult; +/** Contains response data for the list operation. */ +export type NetworkInterfacesListResponse = NetworkInterfaceListResult; /** Optional parameters. */ -export interface AvailableServiceAliasesListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} +export interface NetworkInterfacesGetEffectiveRouteTableOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByResourceGroupNext operation. */ -export type AvailableServiceAliasesListByResourceGroupNextResponse = AvailableServiceAliasesResult; +/** Contains response data for the getEffectiveRouteTable operation. */ +export type NetworkInterfacesGetEffectiveRouteTableResponse = EffectiveRouteListResult; /** Optional parameters. */ -export interface AzureFirewallsDeleteOptionalParams +export interface NetworkInterfacesListEffectiveNetworkSecurityGroupsOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14013,121 +16726,128 @@ export interface AzureFirewallsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the listEffectiveNetworkSecurityGroups operation. */ +export type NetworkInterfacesListEffectiveNetworkSecurityGroupsResponse = EffectiveNetworkSecurityGroupListResult; + /** Optional parameters. */ -export interface AzureFirewallsGetOptionalParams +export interface NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type AzureFirewallsGetResponse = AzureFirewall; +/** Contains response data for the listVirtualMachineScaleSetVMNetworkInterfaces operation. */ +export type NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesResponse = NetworkInterfaceListResult; /** Optional parameters. */ -export interface AzureFirewallsCreateOrUpdateOptionalParams +export interface NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listVirtualMachineScaleSetNetworkInterfaces operation. */ +export type NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesResponse = NetworkInterfaceListResult; + +/** Optional parameters. */ +export interface NetworkInterfacesGetVirtualMachineScaleSetNetworkInterfaceOptionalParams + extends coreClient.OperationOptions { + /** Expands referenced resources. */ + expand?: string; +} + +/** Contains response data for the getVirtualMachineScaleSetNetworkInterface operation. */ +export type NetworkInterfacesGetVirtualMachineScaleSetNetworkInterfaceResponse = NetworkInterface; + +/** Optional parameters. */ +export interface NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Expands referenced resources. */ + expand?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type AzureFirewallsCreateOrUpdateResponse = AzureFirewall; +/** Contains response data for the listVirtualMachineScaleSetIpConfigurations operation. */ +export type NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsResponse = NetworkInterfaceIPConfigurationListResult; /** Optional parameters. */ -export interface AzureFirewallsUpdateTagsOptionalParams +export interface NetworkInterfacesGetVirtualMachineScaleSetIpConfigurationOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Expands referenced resources. */ + expand?: string; } -/** Contains response data for the updateTags operation. */ -export type AzureFirewallsUpdateTagsResponse = AzureFirewall; +/** Contains response data for the getVirtualMachineScaleSetIpConfiguration operation. */ +export type NetworkInterfacesGetVirtualMachineScaleSetIpConfigurationResponse = NetworkInterfaceIPConfiguration; /** Optional parameters. */ -export interface AzureFirewallsListOptionalParams +export interface NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type AzureFirewallsListResponse = AzureFirewallListResult; +/** Contains response data for the listCloudServiceRoleInstanceNetworkInterfacesNext operation. */ +export type NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesNextResponse = NetworkInterfaceListResult; /** Optional parameters. */ -export interface AzureFirewallsListAllOptionalParams +export interface NetworkInterfacesListCloudServiceNetworkInterfacesNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAll operation. */ -export type AzureFirewallsListAllResponse = AzureFirewallListResult; +/** Contains response data for the listCloudServiceNetworkInterfacesNext operation. */ +export type NetworkInterfacesListCloudServiceNetworkInterfacesNextResponse = NetworkInterfaceListResult; /** Optional parameters. */ -export interface AzureFirewallsListNextOptionalParams +export interface NetworkInterfacesListAllNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type AzureFirewallsListNextResponse = AzureFirewallListResult; +/** Contains response data for the listAllNext operation. */ +export type NetworkInterfacesListAllNextResponse = NetworkInterfaceListResult; /** Optional parameters. */ -export interface AzureFirewallsListAllNextOptionalParams +export interface NetworkInterfacesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAllNext operation. */ -export type AzureFirewallsListAllNextResponse = AzureFirewallListResult; +/** Contains response data for the listNext operation. */ +export type NetworkInterfacesListNextResponse = NetworkInterfaceListResult; /** Optional parameters. */ -export interface AzureFirewallFqdnTagsListAllOptionalParams +export interface NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAll operation. */ -export type AzureFirewallFqdnTagsListAllResponse = AzureFirewallFqdnTagListResult; +/** Contains response data for the listVirtualMachineScaleSetVMNetworkInterfacesNext operation. */ +export type NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesNextResponse = NetworkInterfaceListResult; /** Optional parameters. */ -export interface AzureFirewallFqdnTagsListAllNextOptionalParams +export interface NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAllNext operation. */ -export type AzureFirewallFqdnTagsListAllNextResponse = AzureFirewallFqdnTagListResult; +/** Contains response data for the listVirtualMachineScaleSetNetworkInterfacesNext operation. */ +export type NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesNextResponse = NetworkInterfaceListResult; /** Optional parameters. */ -export interface WebCategoriesGetOptionalParams - extends coreClient.OperationOptions { - /** Expands resourceIds back referenced by the azureWebCategory resource. */ - expand?: string; -} +export interface NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type WebCategoriesGetResponse = AzureWebCategory; +/** Contains response data for the listVirtualMachineScaleSetIpConfigurationsNext operation. */ +export type NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsNextResponse = NetworkInterfaceIPConfigurationListResult; /** Optional parameters. */ -export interface WebCategoriesListBySubscriptionOptionalParams +export interface PublicIPAddressesListCloudServicePublicIPAddressesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type WebCategoriesListBySubscriptionResponse = AzureWebCategoryListResult; +/** Contains response data for the listCloudServicePublicIPAddresses operation. */ +export type PublicIPAddressesListCloudServicePublicIPAddressesResponse = PublicIPAddressListResult; /** Optional parameters. */ -export interface WebCategoriesListBySubscriptionNextOptionalParams +export interface PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type WebCategoriesListBySubscriptionNextResponse = AzureWebCategoryListResult; +/** Contains response data for the listCloudServiceRoleInstancePublicIPAddresses operation. */ +export type PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesResponse = PublicIPAddressListResult; /** Optional parameters. */ -export interface BastionHostsDeleteOptionalParams +export interface PublicIPAddressesGetCloudServicePublicIPAddressOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Expands referenced resources. */ + expand?: string; } -/** Optional parameters. */ -export interface BastionHostsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type BastionHostsGetResponse = BastionHost; +/** Contains response data for the getCloudServicePublicIPAddress operation. */ +export type PublicIPAddressesGetCloudServicePublicIPAddressResponse = PublicIPAddress; /** Optional parameters. */ -export interface BastionHostsCreateOrUpdateOptionalParams +export interface PublicIPAddressesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14135,11 +16855,18 @@ export interface BastionHostsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type BastionHostsCreateOrUpdateResponse = BastionHost; +/** Optional parameters. */ +export interface PublicIPAddressesGetOptionalParams + extends coreClient.OperationOptions { + /** Expands referenced resources. */ + expand?: string; +} + +/** Contains response data for the get operation. */ +export type PublicIPAddressesGetResponse = PublicIPAddress; /** Optional parameters. */ -export interface BastionHostsUpdateTagsOptionalParams +export interface PublicIPAddressesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14147,39 +16874,32 @@ export interface BastionHostsUpdateTagsOptionalParams resumeFrom?: string; } -/** Contains response data for the updateTags operation. */ -export type BastionHostsUpdateTagsResponse = BastionHost; - -/** Optional parameters. */ -export interface BastionHostsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type BastionHostsListResponse = BastionHostListResult; +/** Contains response data for the createOrUpdate operation. */ +export type PublicIPAddressesCreateOrUpdateResponse = PublicIPAddress; /** Optional parameters. */ -export interface BastionHostsListByResourceGroupOptionalParams +export interface PublicIPAddressesUpdateTagsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type BastionHostsListByResourceGroupResponse = BastionHostListResult; +/** Contains response data for the updateTags operation. */ +export type PublicIPAddressesUpdateTagsResponse = PublicIPAddress; /** Optional parameters. */ -export interface BastionHostsListNextOptionalParams +export interface PublicIPAddressesListAllOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type BastionHostsListNextResponse = BastionHostListResult; +/** Contains response data for the listAll operation. */ +export type PublicIPAddressesListAllResponse = PublicIPAddressListResult; /** Optional parameters. */ -export interface BastionHostsListByResourceGroupNextOptionalParams +export interface PublicIPAddressesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type BastionHostsListByResourceGroupNextResponse = BastionHostListResult; +/** Contains response data for the list operation. */ +export type PublicIPAddressesListResponse = PublicIPAddressListResult; /** Optional parameters. */ -export interface PutBastionShareableLinkOptionalParams +export interface PublicIPAddressesDdosProtectionStatusOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14187,124 +16907,99 @@ export interface PutBastionShareableLinkOptionalParams resumeFrom?: string; } -/** Contains response data for the putBastionShareableLink operation. */ -export type PutBastionShareableLinkResponse = BastionShareableLinkListResult; +/** Contains response data for the ddosProtectionStatus operation. */ +export type PublicIPAddressesDdosProtectionStatusResponse = PublicIpDdosProtectionStatusResult; /** Optional parameters. */ -export interface DeleteBastionShareableLinkOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listVirtualMachineScaleSetPublicIPAddresses operation. */ +export type PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesResponse = PublicIPAddressListResult; /** Optional parameters. */ -export interface GetBastionShareableLinkOptionalParams +export interface PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getBastionShareableLink operation. */ -export type GetBastionShareableLinkResponse = BastionShareableLinkListResult; +/** Contains response data for the listVirtualMachineScaleSetVMPublicIPAddresses operation. */ +export type PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesResponse = PublicIPAddressListResult; /** Optional parameters. */ -export interface GetActiveSessionsOptionalParams +export interface PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Expands referenced resources. */ + expand?: string; } -/** Contains response data for the getActiveSessions operation. */ -export type GetActiveSessionsResponse = BastionActiveSessionListResult; +/** Contains response data for the getVirtualMachineScaleSetPublicIPAddress operation. */ +export type PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressResponse = PublicIPAddress; /** Optional parameters. */ -export interface DisconnectActiveSessionsOptionalParams +export interface PublicIPAddressesListCloudServicePublicIPAddressesNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the disconnectActiveSessions operation. */ -export type DisconnectActiveSessionsResponse = BastionSessionDeleteResult; +/** Contains response data for the listCloudServicePublicIPAddressesNext operation. */ +export type PublicIPAddressesListCloudServicePublicIPAddressesNextResponse = PublicIPAddressListResult; /** Optional parameters. */ -export interface CheckDnsNameAvailabilityOptionalParams +export interface PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkDnsNameAvailability operation. */ -export type CheckDnsNameAvailabilityResponse = DnsNameAvailabilityResult; +/** Contains response data for the listCloudServiceRoleInstancePublicIPAddressesNext operation. */ +export type PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesNextResponse = PublicIPAddressListResult; /** Optional parameters. */ -export interface SupportedSecurityProvidersOptionalParams +export interface PublicIPAddressesListAllNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the supportedSecurityProviders operation. */ -export type SupportedSecurityProvidersResponse = VirtualWanSecurityProviders; - -/** Optional parameters. */ -export interface GeneratevirtualwanvpnserverconfigurationvpnprofileOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the generatevirtualwanvpnserverconfigurationvpnprofile operation. */ -export type GeneratevirtualwanvpnserverconfigurationvpnprofileResponse = VpnProfileResponse; +/** Contains response data for the listAllNext operation. */ +export type PublicIPAddressesListAllNextResponse = PublicIPAddressListResult; /** Optional parameters. */ -export interface PutBastionShareableLinkNextOptionalParams +export interface PublicIPAddressesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the putBastionShareableLinkNext operation. */ -export type PutBastionShareableLinkNextResponse = BastionShareableLinkListResult; +/** Contains response data for the listNext operation. */ +export type PublicIPAddressesListNextResponse = PublicIPAddressListResult; /** Optional parameters. */ -export interface GetBastionShareableLinkNextOptionalParams +export interface PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getBastionShareableLinkNext operation. */ -export type GetBastionShareableLinkNextResponse = BastionShareableLinkListResult; +/** Contains response data for the listVirtualMachineScaleSetPublicIPAddressesNext operation. */ +export type PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesNextResponse = PublicIPAddressListResult; /** Optional parameters. */ -export interface GetActiveSessionsNextOptionalParams +export interface PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getActiveSessionsNext operation. */ -export type GetActiveSessionsNextResponse = BastionActiveSessionListResult; +/** Contains response data for the listVirtualMachineScaleSetVMPublicIPAddressesNext operation. */ +export type PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesNextResponse = PublicIPAddressListResult; /** Optional parameters. */ -export interface DisconnectActiveSessionsNextOptionalParams - extends coreClient.OperationOptions {} +export interface VipSwapGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the disconnectActiveSessionsNext operation. */ -export type DisconnectActiveSessionsNextResponse = BastionSessionDeleteResult; +/** Contains response data for the get operation. */ +export type VipSwapGetResponse = SwapResource; /** Optional parameters. */ -export interface NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listCloudServiceRoleInstanceNetworkInterfaces operation. */ -export type NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesResponse = NetworkInterfaceListResult; +export interface VipSwapCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface NetworkInterfacesListCloudServiceNetworkInterfacesOptionalParams +export interface VipSwapListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listCloudServiceNetworkInterfaces operation. */ -export type NetworkInterfacesListCloudServiceNetworkInterfacesResponse = NetworkInterfaceListResult; - -/** Optional parameters. */ -export interface NetworkInterfacesGetCloudServiceNetworkInterfaceOptionalParams - extends coreClient.OperationOptions { - /** Expands referenced resources. */ - expand?: string; -} - -/** Contains response data for the getCloudServiceNetworkInterface operation. */ -export type NetworkInterfacesGetCloudServiceNetworkInterfaceResponse = NetworkInterface; +/** Contains response data for the list operation. */ +export type VipSwapListResponse = SwapResourceListResult; /** Optional parameters. */ -export interface NetworkInterfacesDeleteOptionalParams +export interface CustomIPPrefixesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14313,17 +17008,17 @@ export interface NetworkInterfacesDeleteOptionalParams } /** Optional parameters. */ -export interface NetworkInterfacesGetOptionalParams +export interface CustomIPPrefixesGetOptionalParams extends coreClient.OperationOptions { /** Expands referenced resources. */ expand?: string; } /** Contains response data for the get operation. */ -export type NetworkInterfacesGetResponse = NetworkInterface; +export type CustomIPPrefixesGetResponse = CustomIpPrefix; /** Optional parameters. */ -export interface NetworkInterfacesCreateOrUpdateOptionalParams +export interface CustomIPPrefixesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14332,31 +17027,45 @@ export interface NetworkInterfacesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type NetworkInterfacesCreateOrUpdateResponse = NetworkInterface; +export type CustomIPPrefixesCreateOrUpdateResponse = CustomIpPrefix; /** Optional parameters. */ -export interface NetworkInterfacesUpdateTagsOptionalParams +export interface CustomIPPrefixesUpdateTagsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the updateTags operation. */ -export type NetworkInterfacesUpdateTagsResponse = NetworkInterface; +export type CustomIPPrefixesUpdateTagsResponse = CustomIpPrefix; /** Optional parameters. */ -export interface NetworkInterfacesListAllOptionalParams +export interface CustomIPPrefixesListAllOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAll operation. */ -export type NetworkInterfacesListAllResponse = NetworkInterfaceListResult; +export type CustomIPPrefixesListAllResponse = CustomIpPrefixListResult; /** Optional parameters. */ -export interface NetworkInterfacesListOptionalParams +export interface CustomIPPrefixesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type NetworkInterfacesListResponse = NetworkInterfaceListResult; +export type CustomIPPrefixesListResponse = CustomIpPrefixListResult; /** Optional parameters. */ -export interface NetworkInterfacesGetEffectiveRouteTableOptionalParams +export interface CustomIPPrefixesListAllNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAllNext operation. */ +export type CustomIPPrefixesListAllNextResponse = CustomIpPrefixListResult; + +/** Optional parameters. */ +export interface CustomIPPrefixesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type CustomIPPrefixesListNextResponse = CustomIpPrefixListResult; + +/** Optional parameters. */ +export interface DdosCustomPoliciesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14364,11 +17073,15 @@ export interface NetworkInterfacesGetEffectiveRouteTableOptionalParams resumeFrom?: string; } -/** Contains response data for the getEffectiveRouteTable operation. */ -export type NetworkInterfacesGetEffectiveRouteTableResponse = EffectiveRouteListResult; +/** Optional parameters. */ +export interface DdosCustomPoliciesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DdosCustomPoliciesGetResponse = DdosCustomPolicy; /** Optional parameters. */ -export interface NetworkInterfacesListEffectiveNetworkSecurityGroupsOptionalParams +export interface DdosCustomPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14376,128 +17089,93 @@ export interface NetworkInterfacesListEffectiveNetworkSecurityGroupsOptionalPara resumeFrom?: string; } -/** Contains response data for the listEffectiveNetworkSecurityGroups operation. */ -export type NetworkInterfacesListEffectiveNetworkSecurityGroupsResponse = EffectiveNetworkSecurityGroupListResult; - -/** Optional parameters. */ -export interface NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listVirtualMachineScaleSetVMNetworkInterfaces operation. */ -export type NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesResponse = NetworkInterfaceListResult; +/** Contains response data for the createOrUpdate operation. */ +export type DdosCustomPoliciesCreateOrUpdateResponse = DdosCustomPolicy; /** Optional parameters. */ -export interface NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesOptionalParams +export interface DdosCustomPoliciesUpdateTagsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listVirtualMachineScaleSetNetworkInterfaces operation. */ -export type NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesResponse = NetworkInterfaceListResult; +/** Contains response data for the updateTags operation. */ +export type DdosCustomPoliciesUpdateTagsResponse = DdosCustomPolicy; /** Optional parameters. */ -export interface NetworkInterfacesGetVirtualMachineScaleSetNetworkInterfaceOptionalParams +export interface DdosProtectionPlansDeleteOptionalParams extends coreClient.OperationOptions { - /** Expands referenced resources. */ - expand?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the getVirtualMachineScaleSetNetworkInterface operation. */ -export type NetworkInterfacesGetVirtualMachineScaleSetNetworkInterfaceResponse = NetworkInterface; - /** Optional parameters. */ -export interface NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsOptionalParams - extends coreClient.OperationOptions { - /** Expands referenced resources. */ - expand?: string; -} +export interface DdosProtectionPlansGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listVirtualMachineScaleSetIpConfigurations operation. */ -export type NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsResponse = NetworkInterfaceIPConfigurationListResult; +/** Contains response data for the get operation. */ +export type DdosProtectionPlansGetResponse = DdosProtectionPlan; /** Optional parameters. */ -export interface NetworkInterfacesGetVirtualMachineScaleSetIpConfigurationOptionalParams +export interface DdosProtectionPlansCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Expands referenced resources. */ - expand?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the getVirtualMachineScaleSetIpConfiguration operation. */ -export type NetworkInterfacesGetVirtualMachineScaleSetIpConfigurationResponse = NetworkInterfaceIPConfiguration; +/** Contains response data for the createOrUpdate operation. */ +export type DdosProtectionPlansCreateOrUpdateResponse = DdosProtectionPlan; /** Optional parameters. */ -export interface NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesNextOptionalParams +export interface DdosProtectionPlansUpdateTagsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listCloudServiceRoleInstanceNetworkInterfacesNext operation. */ -export type NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesNextResponse = NetworkInterfaceListResult; +/** Contains response data for the updateTags operation. */ +export type DdosProtectionPlansUpdateTagsResponse = DdosProtectionPlan; /** Optional parameters. */ -export interface NetworkInterfacesListCloudServiceNetworkInterfacesNextOptionalParams +export interface DdosProtectionPlansListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listCloudServiceNetworkInterfacesNext operation. */ -export type NetworkInterfacesListCloudServiceNetworkInterfacesNextResponse = NetworkInterfaceListResult; +/** Contains response data for the list operation. */ +export type DdosProtectionPlansListResponse = DdosProtectionPlanListResult; /** Optional parameters. */ -export interface NetworkInterfacesListAllNextOptionalParams +export interface DdosProtectionPlansListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAllNext operation. */ -export type NetworkInterfacesListAllNextResponse = NetworkInterfaceListResult; +/** Contains response data for the listByResourceGroup operation. */ +export type DdosProtectionPlansListByResourceGroupResponse = DdosProtectionPlanListResult; /** Optional parameters. */ -export interface NetworkInterfacesListNextOptionalParams +export interface DdosProtectionPlansListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type NetworkInterfacesListNextResponse = NetworkInterfaceListResult; - -/** Optional parameters. */ -export interface NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listVirtualMachineScaleSetVMNetworkInterfacesNext operation. */ -export type NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesNextResponse = NetworkInterfaceListResult; - -/** Optional parameters. */ -export interface NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listVirtualMachineScaleSetNetworkInterfacesNext operation. */ -export type NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesNextResponse = NetworkInterfaceListResult; - -/** Optional parameters. */ -export interface NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listVirtualMachineScaleSetIpConfigurationsNext operation. */ -export type NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsNextResponse = NetworkInterfaceIPConfigurationListResult; - -/** Optional parameters. */ -export interface PublicIPAddressesListCloudServicePublicIPAddressesOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listCloudServicePublicIPAddresses operation. */ -export type PublicIPAddressesListCloudServicePublicIPAddressesResponse = PublicIPAddressListResult; +export type DdosProtectionPlansListNextResponse = DdosProtectionPlanListResult; /** Optional parameters. */ -export interface PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesOptionalParams +export interface DdosProtectionPlansListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listCloudServiceRoleInstancePublicIPAddresses operation. */ -export type PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesResponse = PublicIPAddressListResult; +/** Contains response data for the listByResourceGroupNext operation. */ +export type DdosProtectionPlansListByResourceGroupNextResponse = DdosProtectionPlanListResult; /** Optional parameters. */ -export interface PublicIPAddressesGetCloudServicePublicIPAddressOptionalParams +export interface DscpConfigurationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Expands referenced resources. */ - expand?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the getCloudServicePublicIPAddress operation. */ -export type PublicIPAddressesGetCloudServicePublicIPAddressResponse = PublicIPAddress; +/** Contains response data for the createOrUpdate operation. */ +export type DscpConfigurationCreateOrUpdateResponse = DscpConfiguration; /** Optional parameters. */ -export interface PublicIPAddressesDeleteOptionalParams +export interface DscpConfigurationDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14506,116 +17184,140 @@ export interface PublicIPAddressesDeleteOptionalParams } /** Optional parameters. */ -export interface PublicIPAddressesGetOptionalParams - extends coreClient.OperationOptions { - /** Expands referenced resources. */ - expand?: string; -} +export interface DscpConfigurationGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PublicIPAddressesGetResponse = PublicIPAddress; +export type DscpConfigurationGetResponse = DscpConfiguration; /** Optional parameters. */ -export interface PublicIPAddressesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DscpConfigurationListOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type PublicIPAddressesCreateOrUpdateResponse = PublicIPAddress; +/** Contains response data for the list operation. */ +export type DscpConfigurationListResponse = DscpConfigurationListResult; /** Optional parameters. */ -export interface PublicIPAddressesUpdateTagsOptionalParams +export interface DscpConfigurationListAllOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the updateTags operation. */ -export type PublicIPAddressesUpdateTagsResponse = PublicIPAddress; +/** Contains response data for the listAll operation. */ +export type DscpConfigurationListAllResponse = DscpConfigurationListResult; /** Optional parameters. */ -export interface PublicIPAddressesListAllOptionalParams +export interface DscpConfigurationListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAll operation. */ -export type PublicIPAddressesListAllResponse = PublicIPAddressListResult; +/** Contains response data for the listNext operation. */ +export type DscpConfigurationListNextResponse = DscpConfigurationListResult; /** Optional parameters. */ -export interface PublicIPAddressesListOptionalParams +export interface DscpConfigurationListAllNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAllNext operation. */ +export type DscpConfigurationListAllNextResponse = DscpConfigurationListResult; + +/** Optional parameters. */ +export interface AvailableEndpointServicesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type PublicIPAddressesListResponse = PublicIPAddressListResult; +export type AvailableEndpointServicesListResponse = EndpointServicesListResult; /** Optional parameters. */ -export interface PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesOptionalParams +export interface AvailableEndpointServicesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listVirtualMachineScaleSetPublicIPAddresses operation. */ -export type PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesResponse = PublicIPAddressListResult; +/** Contains response data for the listNext operation. */ +export type AvailableEndpointServicesListNextResponse = EndpointServicesListResult; /** Optional parameters. */ -export interface PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesOptionalParams +export interface ExpressRouteCircuitAuthorizationsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ExpressRouteCircuitAuthorizationsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listVirtualMachineScaleSetVMPublicIPAddresses operation. */ -export type PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesResponse = PublicIPAddressListResult; +/** Contains response data for the get operation. */ +export type ExpressRouteCircuitAuthorizationsGetResponse = ExpressRouteCircuitAuthorization; /** Optional parameters. */ -export interface PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressOptionalParams +export interface ExpressRouteCircuitAuthorizationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Expands referenced resources. */ - expand?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the getVirtualMachineScaleSetPublicIPAddress operation. */ -export type PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressResponse = PublicIPAddress; +/** Contains response data for the createOrUpdate operation. */ +export type ExpressRouteCircuitAuthorizationsCreateOrUpdateResponse = ExpressRouteCircuitAuthorization; /** Optional parameters. */ -export interface PublicIPAddressesListCloudServicePublicIPAddressesNextOptionalParams +export interface ExpressRouteCircuitAuthorizationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listCloudServicePublicIPAddressesNext operation. */ -export type PublicIPAddressesListCloudServicePublicIPAddressesNextResponse = PublicIPAddressListResult; +/** Contains response data for the list operation. */ +export type ExpressRouteCircuitAuthorizationsListResponse = AuthorizationListResult; /** Optional parameters. */ -export interface PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesNextOptionalParams +export interface ExpressRouteCircuitAuthorizationsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listCloudServiceRoleInstancePublicIPAddressesNext operation. */ -export type PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesNextResponse = PublicIPAddressListResult; +/** Contains response data for the listNext operation. */ +export type ExpressRouteCircuitAuthorizationsListNextResponse = AuthorizationListResult; + +/** Optional parameters. */ +export interface ExpressRouteCircuitPeeringsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface PublicIPAddressesListAllNextOptionalParams +export interface ExpressRouteCircuitPeeringsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAllNext operation. */ -export type PublicIPAddressesListAllNextResponse = PublicIPAddressListResult; +/** Contains response data for the get operation. */ +export type ExpressRouteCircuitPeeringsGetResponse = ExpressRouteCircuitPeering; /** Optional parameters. */ -export interface PublicIPAddressesListNextOptionalParams - extends coreClient.OperationOptions {} +export interface ExpressRouteCircuitPeeringsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listNext operation. */ -export type PublicIPAddressesListNextResponse = PublicIPAddressListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ExpressRouteCircuitPeeringsCreateOrUpdateResponse = ExpressRouteCircuitPeering; /** Optional parameters. */ -export interface PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesNextOptionalParams +export interface ExpressRouteCircuitPeeringsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listVirtualMachineScaleSetPublicIPAddressesNext operation. */ -export type PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesNextResponse = PublicIPAddressListResult; +/** Contains response data for the list operation. */ +export type ExpressRouteCircuitPeeringsListResponse = ExpressRouteCircuitPeeringListResult; /** Optional parameters. */ -export interface PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesNextOptionalParams +export interface ExpressRouteCircuitPeeringsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listVirtualMachineScaleSetVMPublicIPAddressesNext operation. */ -export type PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesNextResponse = PublicIPAddressListResult; +/** Contains response data for the listNext operation. */ +export type ExpressRouteCircuitPeeringsListNextResponse = ExpressRouteCircuitPeeringListResult; /** Optional parameters. */ -export interface CustomIPPrefixesDeleteOptionalParams +export interface ExpressRouteCircuitConnectionsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14624,17 +17326,14 @@ export interface CustomIPPrefixesDeleteOptionalParams } /** Optional parameters. */ -export interface CustomIPPrefixesGetOptionalParams - extends coreClient.OperationOptions { - /** Expands referenced resources. */ - expand?: string; -} +export interface ExpressRouteCircuitConnectionsGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type CustomIPPrefixesGetResponse = CustomIpPrefix; +export type ExpressRouteCircuitConnectionsGetResponse = ExpressRouteCircuitConnection; /** Optional parameters. */ -export interface CustomIPPrefixesCreateOrUpdateOptionalParams +export interface ExpressRouteCircuitConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14643,45 +17342,45 @@ export interface CustomIPPrefixesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type CustomIPPrefixesCreateOrUpdateResponse = CustomIpPrefix; +export type ExpressRouteCircuitConnectionsCreateOrUpdateResponse = ExpressRouteCircuitConnection; /** Optional parameters. */ -export interface CustomIPPrefixesUpdateTagsOptionalParams +export interface ExpressRouteCircuitConnectionsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the updateTags operation. */ -export type CustomIPPrefixesUpdateTagsResponse = CustomIpPrefix; +/** Contains response data for the list operation. */ +export type ExpressRouteCircuitConnectionsListResponse = ExpressRouteCircuitConnectionListResult; /** Optional parameters. */ -export interface CustomIPPrefixesListAllOptionalParams +export interface ExpressRouteCircuitConnectionsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAll operation. */ -export type CustomIPPrefixesListAllResponse = CustomIpPrefixListResult; +/** Contains response data for the listNext operation. */ +export type ExpressRouteCircuitConnectionsListNextResponse = ExpressRouteCircuitConnectionListResult; /** Optional parameters. */ -export interface CustomIPPrefixesListOptionalParams +export interface PeerExpressRouteCircuitConnectionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type CustomIPPrefixesListResponse = CustomIpPrefixListResult; +/** Contains response data for the get operation. */ +export type PeerExpressRouteCircuitConnectionsGetResponse = PeerExpressRouteCircuitConnection; /** Optional parameters. */ -export interface CustomIPPrefixesListAllNextOptionalParams +export interface PeerExpressRouteCircuitConnectionsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAllNext operation. */ -export type CustomIPPrefixesListAllNextResponse = CustomIpPrefixListResult; +/** Contains response data for the list operation. */ +export type PeerExpressRouteCircuitConnectionsListResponse = PeerExpressRouteCircuitConnectionListResult; /** Optional parameters. */ -export interface CustomIPPrefixesListNextOptionalParams +export interface PeerExpressRouteCircuitConnectionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type CustomIPPrefixesListNextResponse = CustomIpPrefixListResult; +export type PeerExpressRouteCircuitConnectionsListNextResponse = PeerExpressRouteCircuitConnectionListResult; /** Optional parameters. */ -export interface DdosCustomPoliciesDeleteOptionalParams +export interface ExpressRouteCircuitsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14690,14 +17389,14 @@ export interface DdosCustomPoliciesDeleteOptionalParams } /** Optional parameters. */ -export interface DdosCustomPoliciesGetOptionalParams +export interface ExpressRouteCircuitsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DdosCustomPoliciesGetResponse = DdosCustomPolicy; +export type ExpressRouteCircuitsGetResponse = ExpressRouteCircuit; /** Optional parameters. */ -export interface DdosCustomPoliciesCreateOrUpdateOptionalParams +export interface ExpressRouteCircuitsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14706,17 +17405,17 @@ export interface DdosCustomPoliciesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type DdosCustomPoliciesCreateOrUpdateResponse = DdosCustomPolicy; +export type ExpressRouteCircuitsCreateOrUpdateResponse = ExpressRouteCircuit; /** Optional parameters. */ -export interface DdosCustomPoliciesUpdateTagsOptionalParams +export interface ExpressRouteCircuitsUpdateTagsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the updateTags operation. */ -export type DdosCustomPoliciesUpdateTagsResponse = DdosCustomPolicy; +export type ExpressRouteCircuitsUpdateTagsResponse = ExpressRouteCircuit; /** Optional parameters. */ -export interface DdosProtectionPlansDeleteOptionalParams +export interface ExpressRouteCircuitsListArpTableOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14724,15 +17423,23 @@ export interface DdosProtectionPlansDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the listArpTable operation. */ +export type ExpressRouteCircuitsListArpTableResponse = ExpressRouteCircuitsArpTableListResult; + /** Optional parameters. */ -export interface DdosProtectionPlansGetOptionalParams - extends coreClient.OperationOptions {} +export interface ExpressRouteCircuitsListRoutesTableOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the get operation. */ -export type DdosProtectionPlansGetResponse = DdosProtectionPlan; +/** Contains response data for the listRoutesTable operation. */ +export type ExpressRouteCircuitsListRoutesTableResponse = ExpressRouteCircuitsRoutesTableListResult; /** Optional parameters. */ -export interface DdosProtectionPlansCreateOrUpdateOptionalParams +export interface ExpressRouteCircuitsListRoutesTableSummaryOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14740,116 +17447,107 @@ export interface DdosProtectionPlansCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type DdosProtectionPlansCreateOrUpdateResponse = DdosProtectionPlan; +/** Contains response data for the listRoutesTableSummary operation. */ +export type ExpressRouteCircuitsListRoutesTableSummaryResponse = ExpressRouteCircuitsRoutesTableSummaryListResult; /** Optional parameters. */ -export interface DdosProtectionPlansUpdateTagsOptionalParams +export interface ExpressRouteCircuitsGetStatsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the updateTags operation. */ -export type DdosProtectionPlansUpdateTagsResponse = DdosProtectionPlan; +/** Contains response data for the getStats operation. */ +export type ExpressRouteCircuitsGetStatsResponse = ExpressRouteCircuitStats; /** Optional parameters. */ -export interface DdosProtectionPlansListOptionalParams +export interface ExpressRouteCircuitsGetPeeringStatsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type DdosProtectionPlansListResponse = DdosProtectionPlanListResult; +/** Contains response data for the getPeeringStats operation. */ +export type ExpressRouteCircuitsGetPeeringStatsResponse = ExpressRouteCircuitStats; /** Optional parameters. */ -export interface DdosProtectionPlansListByResourceGroupOptionalParams +export interface ExpressRouteCircuitsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type DdosProtectionPlansListByResourceGroupResponse = DdosProtectionPlanListResult; +/** Contains response data for the list operation. */ +export type ExpressRouteCircuitsListResponse = ExpressRouteCircuitListResult; /** Optional parameters. */ -export interface DdosProtectionPlansListNextOptionalParams +export interface ExpressRouteCircuitsListAllOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type DdosProtectionPlansListNextResponse = DdosProtectionPlanListResult; +/** Contains response data for the listAll operation. */ +export type ExpressRouteCircuitsListAllResponse = ExpressRouteCircuitListResult; /** Optional parameters. */ -export interface DdosProtectionPlansListByResourceGroupNextOptionalParams +export interface ExpressRouteCircuitsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type DdosProtectionPlansListByResourceGroupNextResponse = DdosProtectionPlanListResult; +/** Contains response data for the listNext operation. */ +export type ExpressRouteCircuitsListNextResponse = ExpressRouteCircuitListResult; /** Optional parameters. */ -export interface DscpConfigurationCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type DscpConfigurationCreateOrUpdateResponse = DscpConfiguration; +export interface ExpressRouteCircuitsListAllNextOptionalParams + extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface DscpConfigurationDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the listAllNext operation. */ +export type ExpressRouteCircuitsListAllNextResponse = ExpressRouteCircuitListResult; /** Optional parameters. */ -export interface DscpConfigurationGetOptionalParams +export interface ExpressRouteServiceProvidersListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DscpConfigurationGetResponse = DscpConfiguration; +/** Contains response data for the list operation. */ +export type ExpressRouteServiceProvidersListResponse = ExpressRouteServiceProviderListResult; /** Optional parameters. */ -export interface DscpConfigurationListOptionalParams +export interface ExpressRouteServiceProvidersListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type DscpConfigurationListResponse = DscpConfigurationListResult; +/** Contains response data for the listNext operation. */ +export type ExpressRouteServiceProvidersListNextResponse = ExpressRouteServiceProviderListResult; /** Optional parameters. */ -export interface DscpConfigurationListAllOptionalParams +export interface ExpressRouteCrossConnectionsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAll operation. */ -export type DscpConfigurationListAllResponse = DscpConfigurationListResult; +/** Contains response data for the list operation. */ +export type ExpressRouteCrossConnectionsListResponse = ExpressRouteCrossConnectionListResult; /** Optional parameters. */ -export interface DscpConfigurationListNextOptionalParams +export interface ExpressRouteCrossConnectionsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type DscpConfigurationListNextResponse = DscpConfigurationListResult; +/** Contains response data for the listByResourceGroup operation. */ +export type ExpressRouteCrossConnectionsListByResourceGroupResponse = ExpressRouteCrossConnectionListResult; /** Optional parameters. */ -export interface DscpConfigurationListAllNextOptionalParams +export interface ExpressRouteCrossConnectionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAllNext operation. */ -export type DscpConfigurationListAllNextResponse = DscpConfigurationListResult; +/** Contains response data for the get operation. */ +export type ExpressRouteCrossConnectionsGetResponse = ExpressRouteCrossConnection; /** Optional parameters. */ -export interface AvailableEndpointServicesListOptionalParams - extends coreClient.OperationOptions {} +export interface ExpressRouteCrossConnectionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the list operation. */ -export type AvailableEndpointServicesListResponse = EndpointServicesListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ExpressRouteCrossConnectionsCreateOrUpdateResponse = ExpressRouteCrossConnection; /** Optional parameters. */ -export interface AvailableEndpointServicesListNextOptionalParams +export interface ExpressRouteCrossConnectionsUpdateTagsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type AvailableEndpointServicesListNextResponse = EndpointServicesListResult; +/** Contains response data for the updateTags operation. */ +export type ExpressRouteCrossConnectionsUpdateTagsResponse = ExpressRouteCrossConnection; /** Optional parameters. */ -export interface ExpressRouteCircuitAuthorizationsDeleteOptionalParams +export interface ExpressRouteCrossConnectionsListArpTableOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14857,15 +17555,23 @@ export interface ExpressRouteCircuitAuthorizationsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the listArpTable operation. */ +export type ExpressRouteCrossConnectionsListArpTableResponse = ExpressRouteCircuitsArpTableListResult; + /** Optional parameters. */ -export interface ExpressRouteCircuitAuthorizationsGetOptionalParams - extends coreClient.OperationOptions {} +export interface ExpressRouteCrossConnectionsListRoutesTableSummaryOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the get operation. */ -export type ExpressRouteCircuitAuthorizationsGetResponse = ExpressRouteCircuitAuthorization; +/** Contains response data for the listRoutesTableSummary operation. */ +export type ExpressRouteCrossConnectionsListRoutesTableSummaryResponse = ExpressRouteCrossConnectionsRoutesTableSummaryListResult; /** Optional parameters. */ -export interface ExpressRouteCircuitAuthorizationsCreateOrUpdateOptionalParams +export interface ExpressRouteCrossConnectionsListRoutesTableOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14873,25 +17579,32 @@ export interface ExpressRouteCircuitAuthorizationsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ExpressRouteCircuitAuthorizationsCreateOrUpdateResponse = ExpressRouteCircuitAuthorization; +/** Contains response data for the listRoutesTable operation. */ +export type ExpressRouteCrossConnectionsListRoutesTableResponse = ExpressRouteCircuitsRoutesTableListResult; /** Optional parameters. */ -export interface ExpressRouteCircuitAuthorizationsListOptionalParams +export interface ExpressRouteCrossConnectionsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ExpressRouteCircuitAuthorizationsListResponse = AuthorizationListResult; +/** Contains response data for the listNext operation. */ +export type ExpressRouteCrossConnectionsListNextResponse = ExpressRouteCrossConnectionListResult; + +/** Optional parameters. */ +export interface ExpressRouteCrossConnectionsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type ExpressRouteCrossConnectionsListByResourceGroupNextResponse = ExpressRouteCrossConnectionListResult; /** Optional parameters. */ -export interface ExpressRouteCircuitAuthorizationsListNextOptionalParams +export interface ExpressRouteCrossConnectionPeeringsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ExpressRouteCircuitAuthorizationsListNextResponse = AuthorizationListResult; +/** Contains response data for the list operation. */ +export type ExpressRouteCrossConnectionPeeringsListResponse = ExpressRouteCrossConnectionPeeringList; /** Optional parameters. */ -export interface ExpressRouteCircuitPeeringsDeleteOptionalParams +export interface ExpressRouteCrossConnectionPeeringsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14900,14 +17613,14 @@ export interface ExpressRouteCircuitPeeringsDeleteOptionalParams } /** Optional parameters. */ -export interface ExpressRouteCircuitPeeringsGetOptionalParams +export interface ExpressRouteCrossConnectionPeeringsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ExpressRouteCircuitPeeringsGetResponse = ExpressRouteCircuitPeering; +export type ExpressRouteCrossConnectionPeeringsGetResponse = ExpressRouteCrossConnectionPeering; /** Optional parameters. */ -export interface ExpressRouteCircuitPeeringsCreateOrUpdateOptionalParams +export interface ExpressRouteCrossConnectionPeeringsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14916,24 +17629,38 @@ export interface ExpressRouteCircuitPeeringsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ExpressRouteCircuitPeeringsCreateOrUpdateResponse = ExpressRouteCircuitPeering; +export type ExpressRouteCrossConnectionPeeringsCreateOrUpdateResponse = ExpressRouteCrossConnectionPeering; /** Optional parameters. */ -export interface ExpressRouteCircuitPeeringsListOptionalParams +export interface ExpressRouteCrossConnectionPeeringsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ExpressRouteCrossConnectionPeeringsListNextResponse = ExpressRouteCrossConnectionPeeringList; + +/** Optional parameters. */ +export interface ExpressRoutePortsLocationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ExpressRouteCircuitPeeringsListResponse = ExpressRouteCircuitPeeringListResult; +export type ExpressRoutePortsLocationsListResponse = ExpressRoutePortsLocationListResult; /** Optional parameters. */ -export interface ExpressRouteCircuitPeeringsListNextOptionalParams +export interface ExpressRoutePortsLocationsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ExpressRoutePortsLocationsGetResponse = ExpressRoutePortsLocation; + +/** Optional parameters. */ +export interface ExpressRoutePortsLocationsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ExpressRouteCircuitPeeringsListNextResponse = ExpressRouteCircuitPeeringListResult; +export type ExpressRoutePortsLocationsListNextResponse = ExpressRoutePortsLocationListResult; /** Optional parameters. */ -export interface ExpressRouteCircuitConnectionsDeleteOptionalParams +export interface ExpressRoutePortsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14942,14 +17669,14 @@ export interface ExpressRouteCircuitConnectionsDeleteOptionalParams } /** Optional parameters. */ -export interface ExpressRouteCircuitConnectionsGetOptionalParams +export interface ExpressRoutePortsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ExpressRouteCircuitConnectionsGetResponse = ExpressRouteCircuitConnection; +export type ExpressRoutePortsGetResponse = ExpressRoutePort; /** Optional parameters. */ -export interface ExpressRouteCircuitConnectionsCreateOrUpdateOptionalParams +export interface ExpressRoutePortsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -14958,45 +17685,73 @@ export interface ExpressRouteCircuitConnectionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ExpressRouteCircuitConnectionsCreateOrUpdateResponse = ExpressRouteCircuitConnection; +export type ExpressRoutePortsCreateOrUpdateResponse = ExpressRoutePort; /** Optional parameters. */ -export interface ExpressRouteCircuitConnectionsListOptionalParams +export interface ExpressRoutePortsUpdateTagsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the updateTags operation. */ +export type ExpressRoutePortsUpdateTagsResponse = ExpressRoutePort; + +/** Optional parameters. */ +export interface ExpressRoutePortsListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type ExpressRoutePortsListByResourceGroupResponse = ExpressRoutePortListResult; + +/** Optional parameters. */ +export interface ExpressRoutePortsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ExpressRouteCircuitConnectionsListResponse = ExpressRouteCircuitConnectionListResult; +export type ExpressRoutePortsListResponse = ExpressRoutePortListResult; /** Optional parameters. */ -export interface ExpressRouteCircuitConnectionsListNextOptionalParams +export interface ExpressRoutePortsGenerateLOAOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the generateLOA operation. */ +export type ExpressRoutePortsGenerateLOAResponse = GenerateExpressRoutePortsLOAResult; + +/** Optional parameters. */ +export interface ExpressRoutePortsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type ExpressRoutePortsListByResourceGroupNextResponse = ExpressRoutePortListResult; + +/** Optional parameters. */ +export interface ExpressRoutePortsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ExpressRouteCircuitConnectionsListNextResponse = ExpressRouteCircuitConnectionListResult; +export type ExpressRoutePortsListNextResponse = ExpressRoutePortListResult; /** Optional parameters. */ -export interface PeerExpressRouteCircuitConnectionsGetOptionalParams +export interface ExpressRouteLinksGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PeerExpressRouteCircuitConnectionsGetResponse = PeerExpressRouteCircuitConnection; +export type ExpressRouteLinksGetResponse = ExpressRouteLink; /** Optional parameters. */ -export interface PeerExpressRouteCircuitConnectionsListOptionalParams +export interface ExpressRouteLinksListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type PeerExpressRouteCircuitConnectionsListResponse = PeerExpressRouteCircuitConnectionListResult; +export type ExpressRouteLinksListResponse = ExpressRouteLinkListResult; /** Optional parameters. */ -export interface PeerExpressRouteCircuitConnectionsListNextOptionalParams +export interface ExpressRouteLinksListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type PeerExpressRouteCircuitConnectionsListNextResponse = PeerExpressRouteCircuitConnectionListResult; +export type ExpressRouteLinksListNextResponse = ExpressRouteLinkListResult; /** Optional parameters. */ -export interface ExpressRouteCircuitsDeleteOptionalParams +export interface ExpressRoutePortAuthorizationsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15005,14 +17760,14 @@ export interface ExpressRouteCircuitsDeleteOptionalParams } /** Optional parameters. */ -export interface ExpressRouteCircuitsGetOptionalParams +export interface ExpressRoutePortAuthorizationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ExpressRouteCircuitsGetResponse = ExpressRouteCircuit; +export type ExpressRoutePortAuthorizationsGetResponse = ExpressRoutePortAuthorization; /** Optional parameters. */ -export interface ExpressRouteCircuitsCreateOrUpdateOptionalParams +export interface ExpressRoutePortAuthorizationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15021,29 +17776,34 @@ export interface ExpressRouteCircuitsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ExpressRouteCircuitsCreateOrUpdateResponse = ExpressRouteCircuit; +export type ExpressRoutePortAuthorizationsCreateOrUpdateResponse = ExpressRoutePortAuthorization; /** Optional parameters. */ -export interface ExpressRouteCircuitsUpdateTagsOptionalParams +export interface ExpressRoutePortAuthorizationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the updateTags operation. */ -export type ExpressRouteCircuitsUpdateTagsResponse = ExpressRouteCircuit; +/** Contains response data for the list operation. */ +export type ExpressRoutePortAuthorizationsListResponse = ExpressRoutePortAuthorizationListResult; /** Optional parameters. */ -export interface ExpressRouteCircuitsListArpTableOptionalParams +export interface ExpressRoutePortAuthorizationsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ExpressRoutePortAuthorizationsListNextResponse = ExpressRoutePortAuthorizationListResult; + +/** Optional parameters. */ +export interface ExpressRouteProviderPortsLocationListOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The filter to apply on the operation. For example, you can use $filter=location eq '{state}'. */ + filter?: string; } -/** Contains response data for the listArpTable operation. */ -export type ExpressRouteCircuitsListArpTableResponse = ExpressRouteCircuitsArpTableListResult; +/** Contains response data for the list operation. */ +export type ExpressRouteProviderPortsLocationListResponse = ExpressRouteProviderPortListResult; /** Optional parameters. */ -export interface ExpressRouteCircuitsListRoutesTableOptionalParams +export interface FirewallPoliciesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15051,11 +17811,18 @@ export interface ExpressRouteCircuitsListRoutesTableOptionalParams resumeFrom?: string; } -/** Contains response data for the listRoutesTable operation. */ -export type ExpressRouteCircuitsListRoutesTableResponse = ExpressRouteCircuitsRoutesTableListResult; +/** Optional parameters. */ +export interface FirewallPoliciesGetOptionalParams + extends coreClient.OperationOptions { + /** Expands referenced resources. */ + expand?: string; +} + +/** Contains response data for the get operation. */ +export type FirewallPoliciesGetResponse = FirewallPolicy; /** Optional parameters. */ -export interface ExpressRouteCircuitsListRoutesTableSummaryOptionalParams +export interface FirewallPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15063,88 +17830,62 @@ export interface ExpressRouteCircuitsListRoutesTableSummaryOptionalParams resumeFrom?: string; } -/** Contains response data for the listRoutesTableSummary operation. */ -export type ExpressRouteCircuitsListRoutesTableSummaryResponse = ExpressRouteCircuitsRoutesTableSummaryListResult; - -/** Optional parameters. */ -export interface ExpressRouteCircuitsGetStatsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getStats operation. */ -export type ExpressRouteCircuitsGetStatsResponse = ExpressRouteCircuitStats; +/** Contains response data for the createOrUpdate operation. */ +export type FirewallPoliciesCreateOrUpdateResponse = FirewallPolicy; /** Optional parameters. */ -export interface ExpressRouteCircuitsGetPeeringStatsOptionalParams +export interface FirewallPoliciesUpdateTagsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getPeeringStats operation. */ -export type ExpressRouteCircuitsGetPeeringStatsResponse = ExpressRouteCircuitStats; +/** Contains response data for the updateTags operation. */ +export type FirewallPoliciesUpdateTagsResponse = FirewallPolicy; /** Optional parameters. */ -export interface ExpressRouteCircuitsListOptionalParams +export interface FirewallPoliciesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ExpressRouteCircuitsListResponse = ExpressRouteCircuitListResult; +export type FirewallPoliciesListResponse = FirewallPolicyListResult; /** Optional parameters. */ -export interface ExpressRouteCircuitsListAllOptionalParams +export interface FirewallPoliciesListAllOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAll operation. */ -export type ExpressRouteCircuitsListAllResponse = ExpressRouteCircuitListResult; +export type FirewallPoliciesListAllResponse = FirewallPolicyListResult; /** Optional parameters. */ -export interface ExpressRouteCircuitsListNextOptionalParams +export interface FirewallPoliciesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ExpressRouteCircuitsListNextResponse = ExpressRouteCircuitListResult; +export type FirewallPoliciesListNextResponse = FirewallPolicyListResult; /** Optional parameters. */ -export interface ExpressRouteCircuitsListAllNextOptionalParams +export interface FirewallPoliciesListAllNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAllNext operation. */ -export type ExpressRouteCircuitsListAllNextResponse = ExpressRouteCircuitListResult; - -/** Optional parameters. */ -export interface ExpressRouteServiceProvidersListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type ExpressRouteServiceProvidersListResponse = ExpressRouteServiceProviderListResult; - -/** Optional parameters. */ -export interface ExpressRouteServiceProvidersListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ExpressRouteServiceProvidersListNextResponse = ExpressRouteServiceProviderListResult; - -/** Optional parameters. */ -export interface ExpressRouteCrossConnectionsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type ExpressRouteCrossConnectionsListResponse = ExpressRouteCrossConnectionListResult; +export type FirewallPoliciesListAllNextResponse = FirewallPolicyListResult; /** Optional parameters. */ -export interface ExpressRouteCrossConnectionsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type ExpressRouteCrossConnectionsListByResourceGroupResponse = ExpressRouteCrossConnectionListResult; +export interface FirewallPolicyRuleCollectionGroupsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface ExpressRouteCrossConnectionsGetOptionalParams +export interface FirewallPolicyRuleCollectionGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ExpressRouteCrossConnectionsGetResponse = ExpressRouteCrossConnection; +export type FirewallPolicyRuleCollectionGroupsGetResponse = FirewallPolicyRuleCollectionGroup; /** Optional parameters. */ -export interface ExpressRouteCrossConnectionsCreateOrUpdateOptionalParams +export interface FirewallPolicyRuleCollectionGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15153,74 +17894,66 @@ export interface ExpressRouteCrossConnectionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ExpressRouteCrossConnectionsCreateOrUpdateResponse = ExpressRouteCrossConnection; +export type FirewallPolicyRuleCollectionGroupsCreateOrUpdateResponse = FirewallPolicyRuleCollectionGroup; /** Optional parameters. */ -export interface ExpressRouteCrossConnectionsUpdateTagsOptionalParams +export interface FirewallPolicyRuleCollectionGroupsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the updateTags operation. */ -export type ExpressRouteCrossConnectionsUpdateTagsResponse = ExpressRouteCrossConnection; +/** Contains response data for the list operation. */ +export type FirewallPolicyRuleCollectionGroupsListResponse = FirewallPolicyRuleCollectionGroupListResult; /** Optional parameters. */ -export interface ExpressRouteCrossConnectionsListArpTableOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface FirewallPolicyRuleCollectionGroupsListNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listArpTable operation. */ -export type ExpressRouteCrossConnectionsListArpTableResponse = ExpressRouteCircuitsArpTableListResult; +/** Contains response data for the listNext operation. */ +export type FirewallPolicyRuleCollectionGroupsListNextResponse = FirewallPolicyRuleCollectionGroupListResult; /** Optional parameters. */ -export interface ExpressRouteCrossConnectionsListRoutesTableSummaryOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface FirewallPolicyIdpsSignaturesListOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listRoutesTableSummary operation. */ -export type ExpressRouteCrossConnectionsListRoutesTableSummaryResponse = ExpressRouteCrossConnectionsRoutesTableSummaryListResult; +/** Contains response data for the list operation. */ +export type FirewallPolicyIdpsSignaturesListResponse = QueryResults; /** Optional parameters. */ -export interface ExpressRouteCrossConnectionsListRoutesTableOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface FirewallPolicyIdpsSignaturesOverridesPatchOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listRoutesTable operation. */ -export type ExpressRouteCrossConnectionsListRoutesTableResponse = ExpressRouteCircuitsRoutesTableListResult; +/** Contains response data for the patch operation. */ +export type FirewallPolicyIdpsSignaturesOverridesPatchResponse = SignaturesOverrides; + +/** Optional parameters. */ +export interface FirewallPolicyIdpsSignaturesOverridesPutOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the put operation. */ +export type FirewallPolicyIdpsSignaturesOverridesPutResponse = SignaturesOverrides; /** Optional parameters. */ -export interface ExpressRouteCrossConnectionsListNextOptionalParams +export interface FirewallPolicyIdpsSignaturesOverridesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ExpressRouteCrossConnectionsListNextResponse = ExpressRouteCrossConnectionListResult; +/** Contains response data for the get operation. */ +export type FirewallPolicyIdpsSignaturesOverridesGetResponse = SignaturesOverrides; /** Optional parameters. */ -export interface ExpressRouteCrossConnectionsListByResourceGroupNextOptionalParams +export interface FirewallPolicyIdpsSignaturesOverridesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type ExpressRouteCrossConnectionsListByResourceGroupNextResponse = ExpressRouteCrossConnectionListResult; +/** Contains response data for the list operation. */ +export type FirewallPolicyIdpsSignaturesOverridesListResponse = SignaturesOverridesList; /** Optional parameters. */ -export interface ExpressRouteCrossConnectionPeeringsListOptionalParams +export interface FirewallPolicyIdpsSignaturesFilterValuesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ExpressRouteCrossConnectionPeeringsListResponse = ExpressRouteCrossConnectionPeeringList; +export type FirewallPolicyIdpsSignaturesFilterValuesListResponse = SignatureOverridesFilterValuesResponse; /** Optional parameters. */ -export interface ExpressRouteCrossConnectionPeeringsDeleteOptionalParams +export interface IpAllocationsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15229,14 +17962,17 @@ export interface ExpressRouteCrossConnectionPeeringsDeleteOptionalParams } /** Optional parameters. */ -export interface ExpressRouteCrossConnectionPeeringsGetOptionalParams - extends coreClient.OperationOptions {} +export interface IpAllocationsGetOptionalParams + extends coreClient.OperationOptions { + /** Expands referenced resources. */ + expand?: string; +} /** Contains response data for the get operation. */ -export type ExpressRouteCrossConnectionPeeringsGetResponse = ExpressRouteCrossConnectionPeering; +export type IpAllocationsGetResponse = IpAllocation; /** Optional parameters. */ -export interface ExpressRouteCrossConnectionPeeringsCreateOrUpdateOptionalParams +export interface IpAllocationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15245,54 +17981,54 @@ export interface ExpressRouteCrossConnectionPeeringsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ExpressRouteCrossConnectionPeeringsCreateOrUpdateResponse = ExpressRouteCrossConnectionPeering; +export type IpAllocationsCreateOrUpdateResponse = IpAllocation; /** Optional parameters. */ -export interface ExpressRouteCrossConnectionPeeringsListNextOptionalParams +export interface IpAllocationsUpdateTagsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ExpressRouteCrossConnectionPeeringsListNextResponse = ExpressRouteCrossConnectionPeeringList; +/** Contains response data for the updateTags operation. */ +export type IpAllocationsUpdateTagsResponse = IpAllocation; /** Optional parameters. */ -export interface ExpressRoutePortsLocationsListOptionalParams +export interface IpAllocationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ExpressRoutePortsLocationsListResponse = ExpressRoutePortsLocationListResult; +export type IpAllocationsListResponse = IpAllocationListResult; /** Optional parameters. */ -export interface ExpressRoutePortsLocationsGetOptionalParams +export interface IpAllocationsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ExpressRoutePortsLocationsGetResponse = ExpressRoutePortsLocation; +/** Contains response data for the listByResourceGroup operation. */ +export type IpAllocationsListByResourceGroupResponse = IpAllocationListResult; /** Optional parameters. */ -export interface ExpressRoutePortsLocationsListNextOptionalParams +export interface IpAllocationsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ExpressRoutePortsLocationsListNextResponse = ExpressRoutePortsLocationListResult; +export type IpAllocationsListNextResponse = IpAllocationListResult; /** Optional parameters. */ -export interface ExpressRoutePortsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface IpAllocationsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type IpAllocationsListByResourceGroupNextResponse = IpAllocationListResult; /** Optional parameters. */ -export interface ExpressRoutePortsGetOptionalParams - extends coreClient.OperationOptions {} +export interface IpGroupsGetOptionalParams extends coreClient.OperationOptions { + /** Expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups resource. */ + expand?: string; +} /** Contains response data for the get operation. */ -export type ExpressRoutePortsGetResponse = ExpressRoutePort; +export type IpGroupsGetResponse = IpGroup; /** Optional parameters. */ -export interface ExpressRoutePortsCreateOrUpdateOptionalParams +export interface IpGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15301,73 +18037,54 @@ export interface ExpressRoutePortsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type ExpressRoutePortsCreateOrUpdateResponse = ExpressRoutePort; +export type IpGroupsCreateOrUpdateResponse = IpGroup; /** Optional parameters. */ -export interface ExpressRoutePortsUpdateTagsOptionalParams +export interface IpGroupsUpdateGroupsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the updateTags operation. */ -export type ExpressRoutePortsUpdateTagsResponse = ExpressRoutePort; +/** Contains response data for the updateGroups operation. */ +export type IpGroupsUpdateGroupsResponse = IpGroup; /** Optional parameters. */ -export interface ExpressRoutePortsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type ExpressRoutePortsListByResourceGroupResponse = ExpressRoutePortListResult; +export interface IpGroupsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface ExpressRoutePortsListOptionalParams +export interface IpGroupsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ExpressRoutePortsListResponse = ExpressRoutePortListResult; +/** Contains response data for the listByResourceGroup operation. */ +export type IpGroupsListByResourceGroupResponse = IpGroupListResult; /** Optional parameters. */ -export interface ExpressRoutePortsGenerateLOAOptionalParams +export interface IpGroupsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateLOA operation. */ -export type ExpressRoutePortsGenerateLOAResponse = GenerateExpressRoutePortsLOAResult; +/** Contains response data for the list operation. */ +export type IpGroupsListResponse = IpGroupListResult; /** Optional parameters. */ -export interface ExpressRoutePortsListByResourceGroupNextOptionalParams +export interface IpGroupsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type ExpressRoutePortsListByResourceGroupNextResponse = ExpressRoutePortListResult; - -/** Optional parameters. */ -export interface ExpressRoutePortsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ExpressRoutePortsListNextResponse = ExpressRoutePortListResult; - -/** Optional parameters. */ -export interface ExpressRouteLinksGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ExpressRouteLinksGetResponse = ExpressRouteLink; - -/** Optional parameters. */ -export interface ExpressRouteLinksListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type ExpressRouteLinksListResponse = ExpressRouteLinkListResult; +export type IpGroupsListByResourceGroupNextResponse = IpGroupListResult; /** Optional parameters. */ -export interface ExpressRouteLinksListNextOptionalParams +export interface IpGroupsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ExpressRouteLinksListNextResponse = ExpressRouteLinkListResult; +export type IpGroupsListNextResponse = IpGroupListResult; /** Optional parameters. */ -export interface FirewallPoliciesDeleteOptionalParams +export interface LoadBalancersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15376,17 +18093,17 @@ export interface FirewallPoliciesDeleteOptionalParams } /** Optional parameters. */ -export interface FirewallPoliciesGetOptionalParams +export interface LoadBalancersGetOptionalParams extends coreClient.OperationOptions { /** Expands referenced resources. */ expand?: string; } /** Contains response data for the get operation. */ -export type FirewallPoliciesGetResponse = FirewallPolicy; +export type LoadBalancersGetResponse = LoadBalancer; /** Optional parameters. */ -export interface FirewallPoliciesCreateOrUpdateOptionalParams +export interface LoadBalancersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15395,38 +18112,31 @@ export interface FirewallPoliciesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type FirewallPoliciesCreateOrUpdateResponse = FirewallPolicy; +export type LoadBalancersCreateOrUpdateResponse = LoadBalancer; /** Optional parameters. */ -export interface FirewallPoliciesListOptionalParams +export interface LoadBalancersUpdateTagsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type FirewallPoliciesListResponse = FirewallPolicyListResult; +/** Contains response data for the updateTags operation. */ +export type LoadBalancersUpdateTagsResponse = LoadBalancer; /** Optional parameters. */ -export interface FirewallPoliciesListAllOptionalParams +export interface LoadBalancersListAllOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAll operation. */ -export type FirewallPoliciesListAllResponse = FirewallPolicyListResult; - -/** Optional parameters. */ -export interface FirewallPoliciesListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type FirewallPoliciesListNextResponse = FirewallPolicyListResult; +export type LoadBalancersListAllResponse = LoadBalancerListResult; /** Optional parameters. */ -export interface FirewallPoliciesListAllNextOptionalParams +export interface LoadBalancersListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAllNext operation. */ -export type FirewallPoliciesListAllNextResponse = FirewallPolicyListResult; +/** Contains response data for the list operation. */ +export type LoadBalancersListResponse = LoadBalancerListResult; /** Optional parameters. */ -export interface FirewallPolicyRuleCollectionGroupsDeleteOptionalParams +export interface LoadBalancersSwapPublicIpAddressesOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15435,14 +18145,7 @@ export interface FirewallPolicyRuleCollectionGroupsDeleteOptionalParams } /** Optional parameters. */ -export interface FirewallPolicyRuleCollectionGroupsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type FirewallPolicyRuleCollectionGroupsGetResponse = FirewallPolicyRuleCollectionGroup; - -/** Optional parameters. */ -export interface FirewallPolicyRuleCollectionGroupsCreateOrUpdateOptionalParams +export interface LoadBalancersListInboundNatRulePortMappingsOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15450,67 +18153,95 @@ export interface FirewallPolicyRuleCollectionGroupsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type FirewallPolicyRuleCollectionGroupsCreateOrUpdateResponse = FirewallPolicyRuleCollectionGroup; +/** Contains response data for the listInboundNatRulePortMappings operation. */ +export type LoadBalancersListInboundNatRulePortMappingsResponse = BackendAddressInboundNatRulePortMappings; /** Optional parameters. */ -export interface FirewallPolicyRuleCollectionGroupsListOptionalParams +export interface LoadBalancersListAllNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type FirewallPolicyRuleCollectionGroupsListResponse = FirewallPolicyRuleCollectionGroupListResult; +/** Contains response data for the listAllNext operation. */ +export type LoadBalancersListAllNextResponse = LoadBalancerListResult; /** Optional parameters. */ -export interface FirewallPolicyRuleCollectionGroupsListNextOptionalParams +export interface LoadBalancersListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type FirewallPolicyRuleCollectionGroupsListNextResponse = FirewallPolicyRuleCollectionGroupListResult; +export type LoadBalancersListNextResponse = LoadBalancerListResult; /** Optional parameters. */ -export interface FirewallPolicyIdpsSignaturesListOptionalParams +export interface LoadBalancerBackendAddressPoolsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type FirewallPolicyIdpsSignaturesListResponse = QueryResults; +export type LoadBalancerBackendAddressPoolsListResponse = LoadBalancerBackendAddressPoolListResult; /** Optional parameters. */ -export interface FirewallPolicyIdpsSignaturesOverridesPatchOptionalParams +export interface LoadBalancerBackendAddressPoolsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the patch operation. */ -export type FirewallPolicyIdpsSignaturesOverridesPatchResponse = SignaturesOverrides; +/** Contains response data for the get operation. */ +export type LoadBalancerBackendAddressPoolsGetResponse = BackendAddressPool; /** Optional parameters. */ -export interface FirewallPolicyIdpsSignaturesOverridesPutOptionalParams +export interface LoadBalancerBackendAddressPoolsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type LoadBalancerBackendAddressPoolsCreateOrUpdateResponse = BackendAddressPool; + +/** Optional parameters. */ +export interface LoadBalancerBackendAddressPoolsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface LoadBalancerBackendAddressPoolsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the put operation. */ -export type FirewallPolicyIdpsSignaturesOverridesPutResponse = SignaturesOverrides; +/** Contains response data for the listNext operation. */ +export type LoadBalancerBackendAddressPoolsListNextResponse = LoadBalancerBackendAddressPoolListResult; /** Optional parameters. */ -export interface FirewallPolicyIdpsSignaturesOverridesGetOptionalParams +export interface LoadBalancerFrontendIPConfigurationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type LoadBalancerFrontendIPConfigurationsListResponse = LoadBalancerFrontendIPConfigurationListResult; + +/** Optional parameters. */ +export interface LoadBalancerFrontendIPConfigurationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type FirewallPolicyIdpsSignaturesOverridesGetResponse = SignaturesOverrides; +export type LoadBalancerFrontendIPConfigurationsGetResponse = FrontendIPConfiguration; /** Optional parameters. */ -export interface FirewallPolicyIdpsSignaturesOverridesListOptionalParams +export interface LoadBalancerFrontendIPConfigurationsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type FirewallPolicyIdpsSignaturesOverridesListResponse = SignaturesOverridesList; +/** Contains response data for the listNext operation. */ +export type LoadBalancerFrontendIPConfigurationsListNextResponse = LoadBalancerFrontendIPConfigurationListResult; /** Optional parameters. */ -export interface FirewallPolicyIdpsSignaturesFilterValuesListOptionalParams +export interface InboundNatRulesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type FirewallPolicyIdpsSignaturesFilterValuesListResponse = SignatureOverridesFilterValuesResponse; +export type InboundNatRulesListResponse = InboundNatRuleListResult; /** Optional parameters. */ -export interface IpAllocationsDeleteOptionalParams +export interface InboundNatRulesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15519,17 +18250,17 @@ export interface IpAllocationsDeleteOptionalParams } /** Optional parameters. */ -export interface IpAllocationsGetOptionalParams +export interface InboundNatRulesGetOptionalParams extends coreClient.OperationOptions { /** Expands referenced resources. */ expand?: string; } /** Contains response data for the get operation. */ -export type IpAllocationsGetResponse = IpAllocation; +export type InboundNatRulesGetResponse = InboundNatRule; /** Optional parameters. */ -export interface IpAllocationsCreateOrUpdateOptionalParams +export interface InboundNatRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15538,110 +18269,94 @@ export interface IpAllocationsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type IpAllocationsCreateOrUpdateResponse = IpAllocation; +export type InboundNatRulesCreateOrUpdateResponse = InboundNatRule; /** Optional parameters. */ -export interface IpAllocationsUpdateTagsOptionalParams +export interface InboundNatRulesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the updateTags operation. */ -export type IpAllocationsUpdateTagsResponse = IpAllocation; +/** Contains response data for the listNext operation. */ +export type InboundNatRulesListNextResponse = InboundNatRuleListResult; /** Optional parameters. */ -export interface IpAllocationsListOptionalParams +export interface LoadBalancerLoadBalancingRulesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type IpAllocationsListResponse = IpAllocationListResult; +export type LoadBalancerLoadBalancingRulesListResponse = LoadBalancerLoadBalancingRuleListResult; /** Optional parameters. */ -export interface IpAllocationsListByResourceGroupOptionalParams +export interface LoadBalancerLoadBalancingRulesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type IpAllocationsListByResourceGroupResponse = IpAllocationListResult; +/** Contains response data for the get operation. */ +export type LoadBalancerLoadBalancingRulesGetResponse = LoadBalancingRule; /** Optional parameters. */ -export interface IpAllocationsListNextOptionalParams +export interface LoadBalancerLoadBalancingRulesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type IpAllocationsListNextResponse = IpAllocationListResult; +export type LoadBalancerLoadBalancingRulesListNextResponse = LoadBalancerLoadBalancingRuleListResult; /** Optional parameters. */ -export interface IpAllocationsListByResourceGroupNextOptionalParams +export interface LoadBalancerOutboundRulesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type IpAllocationsListByResourceGroupNextResponse = IpAllocationListResult; +/** Contains response data for the list operation. */ +export type LoadBalancerOutboundRulesListResponse = LoadBalancerOutboundRuleListResult; /** Optional parameters. */ -export interface IpGroupsGetOptionalParams extends coreClient.OperationOptions { - /** Expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups resource. */ - expand?: string; -} +export interface LoadBalancerOutboundRulesGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type IpGroupsGetResponse = IpGroup; +export type LoadBalancerOutboundRulesGetResponse = OutboundRule; /** Optional parameters. */ -export interface IpGroupsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface LoadBalancerOutboundRulesListNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type IpGroupsCreateOrUpdateResponse = IpGroup; +/** Contains response data for the listNext operation. */ +export type LoadBalancerOutboundRulesListNextResponse = LoadBalancerOutboundRuleListResult; /** Optional parameters. */ -export interface IpGroupsUpdateGroupsOptionalParams +export interface LoadBalancerNetworkInterfacesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the updateGroups operation. */ -export type IpGroupsUpdateGroupsResponse = IpGroup; - -/** Optional parameters. */ -export interface IpGroupsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the list operation. */ +export type LoadBalancerNetworkInterfacesListResponse = NetworkInterfaceListResult; /** Optional parameters. */ -export interface IpGroupsListByResourceGroupOptionalParams +export interface LoadBalancerNetworkInterfacesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type IpGroupsListByResourceGroupResponse = IpGroupListResult; +/** Contains response data for the listNext operation. */ +export type LoadBalancerNetworkInterfacesListNextResponse = NetworkInterfaceListResult; /** Optional parameters. */ -export interface IpGroupsListOptionalParams +export interface LoadBalancerProbesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type IpGroupsListResponse = IpGroupListResult; +export type LoadBalancerProbesListResponse = LoadBalancerProbeListResult; /** Optional parameters. */ -export interface IpGroupsListByResourceGroupNextOptionalParams +export interface LoadBalancerProbesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type IpGroupsListByResourceGroupNextResponse = IpGroupListResult; +/** Contains response data for the get operation. */ +export type LoadBalancerProbesGetResponse = Probe; /** Optional parameters. */ -export interface IpGroupsListNextOptionalParams +export interface LoadBalancerProbesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type IpGroupsListNextResponse = IpGroupListResult; +export type LoadBalancerProbesListNextResponse = LoadBalancerProbeListResult; /** Optional parameters. */ -export interface LoadBalancersDeleteOptionalParams +export interface NatGatewaysDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15650,17 +18365,17 @@ export interface LoadBalancersDeleteOptionalParams } /** Optional parameters. */ -export interface LoadBalancersGetOptionalParams +export interface NatGatewaysGetOptionalParams extends coreClient.OperationOptions { /** Expands referenced resources. */ expand?: string; } /** Contains response data for the get operation. */ -export type LoadBalancersGetResponse = LoadBalancer; +export type NatGatewaysGetResponse = NatGateway; /** Optional parameters. */ -export interface LoadBalancersCreateOrUpdateOptionalParams +export interface NatGatewaysCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15669,80 +18384,80 @@ export interface LoadBalancersCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type LoadBalancersCreateOrUpdateResponse = LoadBalancer; +export type NatGatewaysCreateOrUpdateResponse = NatGateway; /** Optional parameters. */ -export interface LoadBalancersUpdateTagsOptionalParams +export interface NatGatewaysUpdateTagsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the updateTags operation. */ -export type LoadBalancersUpdateTagsResponse = LoadBalancer; +export type NatGatewaysUpdateTagsResponse = NatGateway; /** Optional parameters. */ -export interface LoadBalancersListAllOptionalParams +export interface NatGatewaysListAllOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAll operation. */ -export type LoadBalancersListAllResponse = LoadBalancerListResult; +export type NatGatewaysListAllResponse = NatGatewayListResult; /** Optional parameters. */ -export interface LoadBalancersListOptionalParams +export interface NatGatewaysListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type LoadBalancersListResponse = LoadBalancerListResult; +export type NatGatewaysListResponse = NatGatewayListResult; /** Optional parameters. */ -export interface LoadBalancersSwapPublicIpAddressesOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface NatGatewaysListAllNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAllNext operation. */ +export type NatGatewaysListAllNextResponse = NatGatewayListResult; /** Optional parameters. */ -export interface LoadBalancersListInboundNatRulePortMappingsOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface NatGatewaysListNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listInboundNatRulePortMappings operation. */ -export type LoadBalancersListInboundNatRulePortMappingsResponse = BackendAddressInboundNatRulePortMappings; +/** Contains response data for the listNext operation. */ +export type NatGatewaysListNextResponse = NatGatewayListResult; /** Optional parameters. */ -export interface LoadBalancersListAllNextOptionalParams +export interface NetworkInterfaceIPConfigurationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAllNext operation. */ -export type LoadBalancersListAllNextResponse = LoadBalancerListResult; +/** Contains response data for the list operation. */ +export type NetworkInterfaceIPConfigurationsListResponse = NetworkInterfaceIPConfigurationListResult; /** Optional parameters. */ -export interface LoadBalancersListNextOptionalParams +export interface NetworkInterfaceIPConfigurationsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type NetworkInterfaceIPConfigurationsGetResponse = NetworkInterfaceIPConfiguration; + +/** Optional parameters. */ +export interface NetworkInterfaceIPConfigurationsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type LoadBalancersListNextResponse = LoadBalancerListResult; +export type NetworkInterfaceIPConfigurationsListNextResponse = NetworkInterfaceIPConfigurationListResult; /** Optional parameters. */ -export interface LoadBalancerBackendAddressPoolsListOptionalParams +export interface NetworkInterfaceLoadBalancersListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type LoadBalancerBackendAddressPoolsListResponse = LoadBalancerBackendAddressPoolListResult; +export type NetworkInterfaceLoadBalancersListResponse = NetworkInterfaceLoadBalancerListResult; /** Optional parameters. */ -export interface LoadBalancerBackendAddressPoolsGetOptionalParams +export interface NetworkInterfaceLoadBalancersListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type LoadBalancerBackendAddressPoolsGetResponse = BackendAddressPool; +/** Contains response data for the listNext operation. */ +export type NetworkInterfaceLoadBalancersListNextResponse = NetworkInterfaceLoadBalancerListResult; /** Optional parameters. */ -export interface LoadBalancerBackendAddressPoolsCreateOrUpdateOptionalParams +export interface NetworkInterfaceTapConfigurationsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15750,11 +18465,15 @@ export interface LoadBalancerBackendAddressPoolsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type LoadBalancerBackendAddressPoolsCreateOrUpdateResponse = BackendAddressPool; +/** Optional parameters. */ +export interface NetworkInterfaceTapConfigurationsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type NetworkInterfaceTapConfigurationsGetResponse = NetworkInterfaceTapConfiguration; /** Optional parameters. */ -export interface LoadBalancerBackendAddressPoolsDeleteOptionalParams +export interface NetworkInterfaceTapConfigurationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15762,44 +18481,42 @@ export interface LoadBalancerBackendAddressPoolsDeleteOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface LoadBalancerBackendAddressPoolsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type LoadBalancerBackendAddressPoolsListNextResponse = LoadBalancerBackendAddressPoolListResult; +/** Contains response data for the createOrUpdate operation. */ +export type NetworkInterfaceTapConfigurationsCreateOrUpdateResponse = NetworkInterfaceTapConfiguration; /** Optional parameters. */ -export interface LoadBalancerFrontendIPConfigurationsListOptionalParams +export interface NetworkInterfaceTapConfigurationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type LoadBalancerFrontendIPConfigurationsListResponse = LoadBalancerFrontendIPConfigurationListResult; +export type NetworkInterfaceTapConfigurationsListResponse = NetworkInterfaceTapConfigurationListResult; /** Optional parameters. */ -export interface LoadBalancerFrontendIPConfigurationsGetOptionalParams +export interface NetworkInterfaceTapConfigurationsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type LoadBalancerFrontendIPConfigurationsGetResponse = FrontendIPConfiguration; +/** Contains response data for the listNext operation. */ +export type NetworkInterfaceTapConfigurationsListNextResponse = NetworkInterfaceTapConfigurationListResult; /** Optional parameters. */ -export interface LoadBalancerFrontendIPConfigurationsListNextOptionalParams +export interface NetworkManagersGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type LoadBalancerFrontendIPConfigurationsListNextResponse = LoadBalancerFrontendIPConfigurationListResult; +/** Contains response data for the get operation. */ +export type NetworkManagersGetResponse = NetworkManager; /** Optional parameters. */ -export interface InboundNatRulesListOptionalParams +export interface NetworkManagersCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type InboundNatRulesListResponse = InboundNatRuleListResult; +/** Contains response data for the createOrUpdate operation. */ +export type NetworkManagersCreateOrUpdateResponse = NetworkManager; /** Optional parameters. */ -export interface InboundNatRulesDeleteOptionalParams +export interface NetworkManagersDeleteOptionalParams extends coreClient.OperationOptions { + /** Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. */ + force?: boolean; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -15807,17 +18524,52 @@ export interface InboundNatRulesDeleteOptionalParams } /** Optional parameters. */ -export interface InboundNatRulesGetOptionalParams +export interface NetworkManagersPatchOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the patch operation. */ +export type NetworkManagersPatchResponse = NetworkManager; + +/** Optional parameters. */ +export interface NetworkManagersListBySubscriptionOptionalParams extends coreClient.OperationOptions { - /** Expands referenced resources. */ - expand?: string; + /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ + top?: number; + /** 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. */ + skipToken?: string; } -/** Contains response data for the get operation. */ -export type InboundNatRulesGetResponse = InboundNatRule; +/** Contains response data for the listBySubscription operation. */ +export type NetworkManagersListBySubscriptionResponse = NetworkManagerListResult; /** Optional parameters. */ -export interface InboundNatRulesCreateOrUpdateOptionalParams +export interface NetworkManagersListOptionalParams + extends coreClient.OperationOptions { + /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ + top?: number; + /** 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. */ + skipToken?: string; +} + +/** Contains response data for the list operation. */ +export type NetworkManagersListResponse = NetworkManagerListResult; + +/** Optional parameters. */ +export interface NetworkManagersListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type NetworkManagersListBySubscriptionNextResponse = NetworkManagerListResult; + +/** Optional parameters. */ +export interface NetworkManagersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type NetworkManagersListNextResponse = NetworkManagerListResult; + +/** Optional parameters. */ +export interface NetworkManagerCommitsPostOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -15825,96 +18577,112 @@ export interface InboundNatRulesCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type InboundNatRulesCreateOrUpdateResponse = InboundNatRule; +/** Contains response data for the post operation. */ +export type NetworkManagerCommitsPostResponse = NetworkManagerCommit; /** Optional parameters. */ -export interface InboundNatRulesListNextOptionalParams - extends coreClient.OperationOptions {} +export interface NetworkManagerDeploymentStatusListOptionalParams + extends coreClient.OperationOptions { + /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ + top?: number; +} -/** Contains response data for the listNext operation. */ -export type InboundNatRulesListNextResponse = InboundNatRuleListResult; +/** Contains response data for the list operation. */ +export type NetworkManagerDeploymentStatusListResponse = NetworkManagerDeploymentStatusListResult; /** Optional parameters. */ -export interface LoadBalancerLoadBalancingRulesListOptionalParams +export interface SubscriptionNetworkManagerConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type LoadBalancerLoadBalancingRulesListResponse = LoadBalancerLoadBalancingRuleListResult; +/** Contains response data for the createOrUpdate operation. */ +export type SubscriptionNetworkManagerConnectionsCreateOrUpdateResponse = NetworkManagerConnection; /** Optional parameters. */ -export interface LoadBalancerLoadBalancingRulesGetOptionalParams +export interface SubscriptionNetworkManagerConnectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type LoadBalancerLoadBalancingRulesGetResponse = LoadBalancingRule; +export type SubscriptionNetworkManagerConnectionsGetResponse = NetworkManagerConnection; /** Optional parameters. */ -export interface LoadBalancerLoadBalancingRulesListNextOptionalParams +export interface SubscriptionNetworkManagerConnectionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface SubscriptionNetworkManagerConnectionsListOptionalParams + extends coreClient.OperationOptions { + /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ + top?: number; + /** 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. */ + skipToken?: string; +} + +/** Contains response data for the list operation. */ +export type SubscriptionNetworkManagerConnectionsListResponse = NetworkManagerConnectionListResult; + +/** Optional parameters. */ +export interface SubscriptionNetworkManagerConnectionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type LoadBalancerLoadBalancingRulesListNextResponse = LoadBalancerLoadBalancingRuleListResult; +export type SubscriptionNetworkManagerConnectionsListNextResponse = NetworkManagerConnectionListResult; /** Optional parameters. */ -export interface LoadBalancerOutboundRulesListOptionalParams +export interface ManagementGroupNetworkManagerConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type LoadBalancerOutboundRulesListResponse = LoadBalancerOutboundRuleListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ManagementGroupNetworkManagerConnectionsCreateOrUpdateResponse = NetworkManagerConnection; /** Optional parameters. */ -export interface LoadBalancerOutboundRulesGetOptionalParams +export interface ManagementGroupNetworkManagerConnectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type LoadBalancerOutboundRulesGetResponse = OutboundRule; +export type ManagementGroupNetworkManagerConnectionsGetResponse = NetworkManagerConnection; /** Optional parameters. */ -export interface LoadBalancerOutboundRulesListNextOptionalParams +export interface ManagementGroupNetworkManagerConnectionsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type LoadBalancerOutboundRulesListNextResponse = LoadBalancerOutboundRuleListResult; - /** Optional parameters. */ -export interface LoadBalancerNetworkInterfacesListOptionalParams - extends coreClient.OperationOptions {} +export interface ManagementGroupNetworkManagerConnectionsListOptionalParams + extends coreClient.OperationOptions { + /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ + top?: number; + /** 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. */ + skipToken?: string; +} /** Contains response data for the list operation. */ -export type LoadBalancerNetworkInterfacesListResponse = NetworkInterfaceListResult; +export type ManagementGroupNetworkManagerConnectionsListResponse = NetworkManagerConnectionListResult; /** Optional parameters. */ -export interface LoadBalancerNetworkInterfacesListNextOptionalParams +export interface ManagementGroupNetworkManagerConnectionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type LoadBalancerNetworkInterfacesListNextResponse = NetworkInterfaceListResult; - -/** Optional parameters. */ -export interface LoadBalancerProbesListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type LoadBalancerProbesListResponse = LoadBalancerProbeListResult; +export type ManagementGroupNetworkManagerConnectionsListNextResponse = NetworkManagerConnectionListResult; /** Optional parameters. */ -export interface LoadBalancerProbesGetOptionalParams +export interface ConnectivityConfigurationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type LoadBalancerProbesGetResponse = Probe; +export type ConnectivityConfigurationsGetResponse = ConnectivityConfiguration; /** Optional parameters. */ -export interface LoadBalancerProbesListNextOptionalParams +export interface ConnectivityConfigurationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type LoadBalancerProbesListNextResponse = LoadBalancerProbeListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ConnectivityConfigurationsCreateOrUpdateResponse = ConnectivityConfiguration; /** Optional parameters. */ -export interface NatGatewaysDeleteOptionalParams +export interface ConnectivityConfigurationsDeleteOptionalParams extends coreClient.OperationOptions { + /** Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. */ + force?: boolean; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -15922,100 +18690,177 @@ export interface NatGatewaysDeleteOptionalParams } /** Optional parameters. */ -export interface NatGatewaysGetOptionalParams +export interface ConnectivityConfigurationsListOptionalParams extends coreClient.OperationOptions { - /** Expands referenced resources. */ - expand?: string; + /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ + top?: number; + /** 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. */ + skipToken?: string; } +/** Contains response data for the list operation. */ +export type ConnectivityConfigurationsListResponse = ConnectivityConfigurationListResult; + +/** Optional parameters. */ +export interface ConnectivityConfigurationsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ConnectivityConfigurationsListNextResponse = ConnectivityConfigurationListResult; + +/** Optional parameters. */ +export interface NetworkGroupsGetOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the get operation. */ -export type NatGatewaysGetResponse = NatGateway; +export type NetworkGroupsGetResponse = NetworkGroup; /** Optional parameters. */ -export interface NatGatewaysCreateOrUpdateOptionalParams +export interface NetworkGroupsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type NetworkGroupsCreateOrUpdateResponse = NetworkGroupsCreateOrUpdateHeaders & + NetworkGroup; + +/** Optional parameters. */ +export interface NetworkGroupsDeleteOptionalParams extends coreClient.OperationOptions { + /** Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. */ + force?: boolean; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type NatGatewaysCreateOrUpdateResponse = NatGateway; +/** Optional parameters. */ +export interface NetworkGroupsListOptionalParams + extends coreClient.OperationOptions { + /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ + top?: number; + /** 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. */ + skipToken?: string; +} + +/** Contains response data for the list operation. */ +export type NetworkGroupsListResponse = NetworkGroupListResult; /** Optional parameters. */ -export interface NatGatewaysUpdateTagsOptionalParams +export interface NetworkGroupsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the updateTags operation. */ -export type NatGatewaysUpdateTagsResponse = NatGateway; +/** Contains response data for the listNext operation. */ +export type NetworkGroupsListNextResponse = NetworkGroupListResult; /** Optional parameters. */ -export interface NatGatewaysListAllOptionalParams +export interface StaticMembersGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAll operation. */ -export type NatGatewaysListAllResponse = NatGatewayListResult; +/** Contains response data for the get operation. */ +export type StaticMembersGetResponse = StaticMember; /** Optional parameters. */ -export interface NatGatewaysListOptionalParams +export interface StaticMembersCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type NatGatewaysListResponse = NatGatewayListResult; +/** Contains response data for the createOrUpdate operation. */ +export type StaticMembersCreateOrUpdateResponse = StaticMember; /** Optional parameters. */ -export interface NatGatewaysListAllNextOptionalParams +export interface StaticMembersDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAllNext operation. */ -export type NatGatewaysListAllNextResponse = NatGatewayListResult; +/** Optional parameters. */ +export interface StaticMembersListOptionalParams + extends coreClient.OperationOptions { + /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ + top?: number; + /** 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. */ + skipToken?: string; +} + +/** Contains response data for the list operation. */ +export type StaticMembersListResponse = StaticMemberListResult; /** Optional parameters. */ -export interface NatGatewaysListNextOptionalParams +export interface StaticMembersListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type NatGatewaysListNextResponse = NatGatewayListResult; +export type StaticMembersListNextResponse = StaticMemberListResult; /** Optional parameters. */ -export interface NetworkInterfaceIPConfigurationsListOptionalParams +export interface ScopeConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type NetworkInterfaceIPConfigurationsListResponse = NetworkInterfaceIPConfigurationListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ScopeConnectionsCreateOrUpdateResponse = ScopeConnection; /** Optional parameters. */ -export interface NetworkInterfaceIPConfigurationsGetOptionalParams +export interface ScopeConnectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type NetworkInterfaceIPConfigurationsGetResponse = NetworkInterfaceIPConfiguration; +export type ScopeConnectionsGetResponse = ScopeConnection; /** Optional parameters. */ -export interface NetworkInterfaceIPConfigurationsListNextOptionalParams +export interface ScopeConnectionsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type NetworkInterfaceIPConfigurationsListNextResponse = NetworkInterfaceIPConfigurationListResult; +/** Optional parameters. */ +export interface ScopeConnectionsListOptionalParams + extends coreClient.OperationOptions { + /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ + top?: number; + /** 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. */ + skipToken?: string; +} + +/** Contains response data for the list operation. */ +export type ScopeConnectionsListResponse = ScopeConnectionListResult; /** Optional parameters. */ -export interface NetworkInterfaceLoadBalancersListOptionalParams +export interface ScopeConnectionsListNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listNext operation. */ +export type ScopeConnectionsListNextResponse = ScopeConnectionListResult; + +/** Optional parameters. */ +export interface SecurityAdminConfigurationsListOptionalParams + extends coreClient.OperationOptions { + /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ + top?: number; + /** 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. */ + skipToken?: string; +} + /** Contains response data for the list operation. */ -export type NetworkInterfaceLoadBalancersListResponse = NetworkInterfaceLoadBalancerListResult; +export type SecurityAdminConfigurationsListResponse = SecurityAdminConfigurationListResult; /** Optional parameters. */ -export interface NetworkInterfaceLoadBalancersListNextOptionalParams +export interface SecurityAdminConfigurationsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type NetworkInterfaceLoadBalancersListNextResponse = NetworkInterfaceLoadBalancerListResult; +/** Contains response data for the get operation. */ +export type SecurityAdminConfigurationsGetResponse = SecurityAdminConfiguration; /** Optional parameters. */ -export interface NetworkInterfaceTapConfigurationsDeleteOptionalParams +export interface SecurityAdminConfigurationsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type SecurityAdminConfigurationsCreateOrUpdateResponse = SecurityAdminConfiguration; + +/** Optional parameters. */ +export interface SecurityAdminConfigurationsDeleteOptionalParams extends coreClient.OperationOptions { + /** Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. */ + force?: boolean; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -16023,37 +18868,99 @@ export interface NetworkInterfaceTapConfigurationsDeleteOptionalParams } /** Optional parameters. */ -export interface NetworkInterfaceTapConfigurationsGetOptionalParams +export interface SecurityAdminConfigurationsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type SecurityAdminConfigurationsListNextResponse = SecurityAdminConfigurationListResult; + +/** Optional parameters. */ +export interface AdminRuleCollectionsListOptionalParams + extends coreClient.OperationOptions { + /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ + top?: number; + /** 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. */ + skipToken?: string; +} + +/** Contains response data for the list operation. */ +export type AdminRuleCollectionsListResponse = AdminRuleCollectionListResult; + +/** Optional parameters. */ +export interface AdminRuleCollectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type NetworkInterfaceTapConfigurationsGetResponse = NetworkInterfaceTapConfiguration; +export type AdminRuleCollectionsGetResponse = AdminRuleCollection; /** Optional parameters. */ -export interface NetworkInterfaceTapConfigurationsCreateOrUpdateOptionalParams +export interface AdminRuleCollectionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type AdminRuleCollectionsCreateOrUpdateResponse = AdminRuleCollection; + +/** Optional parameters. */ +export interface AdminRuleCollectionsDeleteOptionalParams extends coreClient.OperationOptions { + /** Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. */ + force?: boolean; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type NetworkInterfaceTapConfigurationsCreateOrUpdateResponse = NetworkInterfaceTapConfiguration; - /** Optional parameters. */ -export interface NetworkInterfaceTapConfigurationsListOptionalParams +export interface AdminRuleCollectionsListNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listNext operation. */ +export type AdminRuleCollectionsListNextResponse = AdminRuleCollectionListResult; + +/** Optional parameters. */ +export interface AdminRulesListOptionalParams + extends coreClient.OperationOptions { + /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ + top?: number; + /** 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. */ + skipToken?: string; +} + /** Contains response data for the list operation. */ -export type NetworkInterfaceTapConfigurationsListResponse = NetworkInterfaceTapConfigurationListResult; +export type AdminRulesListResponse = AdminRuleListResult; /** Optional parameters. */ -export interface NetworkInterfaceTapConfigurationsListNextOptionalParams +export interface AdminRulesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AdminRulesGetResponse = BaseAdminRuleUnion; + +/** Optional parameters. */ +export interface AdminRulesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type AdminRulesCreateOrUpdateResponse = BaseAdminRuleUnion; + +/** Optional parameters. */ +export interface AdminRulesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Deletes the resource even if it is part of a deployed configuration. If the configuration has been deployed, the service will do a cleanup deployment in the background, prior to the delete. */ + force?: boolean; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface AdminRulesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type NetworkInterfaceTapConfigurationsListNextResponse = NetworkInterfaceTapConfigurationListResult; +export type AdminRulesListNextResponse = AdminRuleListResult; /** Optional parameters. */ export interface NetworkProfilesDeleteOptionalParams @@ -17612,6 +20519,22 @@ export interface VirtualNetworksListUsageOptionalParams /** Contains response data for the listUsage operation. */ export type VirtualNetworksListUsageResponse = VirtualNetworkListUsageResult; +/** Optional parameters. */ +export interface VirtualNetworksListDdosProtectionStatusOptionalParams + extends coreClient.OperationOptions { + /** The max number of ip addresses to return. */ + top?: number; + /** The skipToken that is given with nextLink. */ + skipToken?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the listDdosProtectionStatus operation. */ +export type VirtualNetworksListDdosProtectionStatusResponse = VirtualNetworkDdosProtectionStatusResult; + /** Optional parameters. */ export interface VirtualNetworksListAllNextOptionalParams extends coreClient.OperationOptions {} @@ -17633,6 +20556,13 @@ export interface VirtualNetworksListUsageNextOptionalParams /** Contains response data for the listUsageNext operation. */ export type VirtualNetworksListUsageNextResponse = VirtualNetworkListUsageResult; +/** Optional parameters. */ +export interface VirtualNetworksListDdosProtectionStatusNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listDdosProtectionStatusNext operation. */ +export type VirtualNetworksListDdosProtectionStatusNextResponse = VirtualNetworkDdosProtectionStatusResult; + /** Optional parameters. */ export interface SubnetsDeleteOptionalParams extends coreClient.OperationOptions { @@ -18639,6 +21569,48 @@ export interface VpnServerConfigurationsListNextOptionalParams /** Contains response data for the listNext operation. */ export type VpnServerConfigurationsListNextResponse = ListVpnServerConfigurationsResult; +/** Optional parameters. */ +export interface ConfigurationPolicyGroupsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ConfigurationPolicyGroupsCreateOrUpdateResponse = VpnServerConfigurationPolicyGroup; + +/** Optional parameters. */ +export interface ConfigurationPolicyGroupsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ConfigurationPolicyGroupsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ConfigurationPolicyGroupsGetResponse = VpnServerConfigurationPolicyGroup; + +/** Optional parameters. */ +export interface ConfigurationPolicyGroupsListByVpnServerConfigurationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByVpnServerConfiguration operation. */ +export type ConfigurationPolicyGroupsListByVpnServerConfigurationResponse = ListVpnServerConfigurationPolicyGroupsResult; + +/** Optional parameters. */ +export interface ConfigurationPolicyGroupsListByVpnServerConfigurationNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByVpnServerConfigurationNext operation. */ +export type ConfigurationPolicyGroupsListByVpnServerConfigurationNextResponse = ListVpnServerConfigurationPolicyGroupsResult; + /** Optional parameters. */ export interface VirtualHubsGetOptionalParams extends coreClient.OperationOptions {} @@ -18699,6 +21671,24 @@ export interface VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface VirtualHubsGetInboundRoutesOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface VirtualHubsGetOutboundRoutesOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + /** Optional parameters. */ export interface VirtualHubsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} @@ -18713,6 +21703,48 @@ export interface VirtualHubsListNextOptionalParams /** Contains response data for the listNext operation. */ export type VirtualHubsListNextResponse = ListVirtualHubsResult; +/** Optional parameters. */ +export interface RouteMapsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type RouteMapsGetResponse = RouteMap; + +/** Optional parameters. */ +export interface RouteMapsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type RouteMapsCreateOrUpdateResponse = RouteMap; + +/** Optional parameters. */ +export interface RouteMapsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface RouteMapsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type RouteMapsListResponse = ListRouteMapsResult; + +/** Optional parameters. */ +export interface RouteMapsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type RouteMapsListNextResponse = ListRouteMapsResult; + /** Optional parameters. */ export interface HubVirtualNetworkConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/models/mappers.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/models/mappers.ts index 0850c58d9d..2546b0a3d8 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/models/mappers.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/models/mappers.ts @@ -601,23 +601,17 @@ export const DdosSettings: coreClient.CompositeMapper = { name: "Composite", className: "DdosSettings", modelProperties: { - ddosCustomPolicy: { - serializedName: "ddosCustomPolicy", - type: { - name: "Composite", - className: "SubResource" - } - }, - protectionCoverage: { - serializedName: "protectionCoverage", + protectionMode: { + serializedName: "protectionMode", type: { name: "String" } }, - protectedIP: { - serializedName: "protectedIP", + ddosProtectionPlan: { + serializedName: "ddosProtectionPlan", type: { - name: "Boolean" + name: "Composite", + className: "SubResource" } } } @@ -750,6 +744,12 @@ export const LoadBalancerBackendAddress: coreClient.CompositeMapper = { } } } + }, + adminState: { + serializedName: "properties.adminState", + type: { + name: "String" + } } } } @@ -896,6 +896,12 @@ export const ApplicationGatewayClientAuthConfiguration: coreClient.CompositeMapp type: { name: "Boolean" } + }, + verifyClientRevocation: { + serializedName: "verifyClientRevocation", + type: { + name: "String" + } } } } @@ -1767,6 +1773,24 @@ export const ApplicationGatewayFirewallRule: coreClient.CompositeMapper = { name: "Number" } }, + ruleIdString: { + serializedName: "ruleIdString", + type: { + name: "String" + } + }, + state: { + serializedName: "state", + type: { + name: "String" + } + }, + action: { + serializedName: "action", + type: { + name: "String" + } + }, description: { serializedName: "description", type: { @@ -1804,6 +1828,139 @@ export const ApplicationGatewayAvailableSslPredefinedPolicies: coreClient.Compos } }; +export const ApplicationGatewayWafDynamicManifestResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGatewayWafDynamicManifestResult", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + availableRuleSets: { + serializedName: "properties.availableRuleSets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayFirewallManifestRuleSet" + } + } + } + }, + ruleSetType: { + serializedName: "properties.defaultRuleSet.ruleSetType", + type: { + name: "String" + } + }, + ruleSetVersion: { + serializedName: "properties.defaultRuleSet.ruleSetVersion", + type: { + name: "String" + } + } + } + } +}; + +export const ApplicationGatewayFirewallManifestRuleSet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGatewayFirewallManifestRuleSet", + modelProperties: { + ruleSetType: { + serializedName: "ruleSetType", + required: true, + type: { + name: "String" + } + }, + ruleSetVersion: { + serializedName: "ruleSetVersion", + required: true, + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + }, + tiers: { + serializedName: "tiers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + ruleGroups: { + serializedName: "ruleGroups", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayFirewallRuleGroup" + } + } + } + } + } + } +}; + +export const ApplicationGatewayWafDynamicManifestResultList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGatewayWafDynamicManifestResultList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayWafDynamicManifestResult" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const ApplicationSecurityGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2424,6 +2581,26 @@ export const AzureFirewallListResult: coreClient.CompositeMapper = { } }; +export const IPPrefixesList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IPPrefixesList", + modelProperties: { + ipPrefixes: { + serializedName: "ipPrefixes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const AzureFirewallFqdnTagListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2910,58 +3087,99 @@ export const PublicIPAddressListResult: coreClient.CompositeMapper = { } }; -export const CustomIpPrefixListResult: coreClient.CompositeMapper = { +export const SwapResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomIpPrefixListResult", + className: "SwapResource", modelProperties: { - value: { - serializedName: "value", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CustomIpPrefix" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "SwapResourceProperties" + } } } } }; -export const ProtocolCustomSettingsFormat: coreClient.CompositeMapper = { +export const SwapResourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProtocolCustomSettingsFormat", + className: "SwapResourceProperties", modelProperties: { - protocol: { - serializedName: "protocol", + slotType: { + serializedName: "slotType", type: { - name: "String" + name: "Enum", + allowedValues: ["Production", "Staging"] } - }, - triggerRateOverride: { - serializedName: "triggerRateOverride", + } + } + } +}; + +export const SwapResourceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SwapResourceListResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SwapResource" + } + } } - }, - sourceRateOverride: { - serializedName: "sourceRateOverride", + } + } + } +}; + +export const CustomIpPrefixListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomIpPrefixListResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CustomIpPrefix" + } + } } }, - triggerSensitivityOverride: { - serializedName: "triggerSensitivityOverride", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -3030,8 +3248,8 @@ export const DdosProtectionPlan: coreClient.CompositeMapper = { name: "String" } }, - virtualNetworks: { - serializedName: "properties.virtualNetworks", + publicIPAddresses: { + serializedName: "properties.publicIPAddresses", readOnly: true, type: { name: "Sequence", @@ -3042,10 +3260,23 @@ export const DdosProtectionPlan: coreClient.CompositeMapper = { } } } - } - } - } -}; + }, + virtualNetworks: { + serializedName: "properties.virtualNetworks", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + } + } + } +}; export const DdosProtectionPlanListResult: coreClient.CompositeMapper = { type: { @@ -4143,8 +4374,62 @@ export const GenerateExpressRoutePortsLOAResult: coreClient.CompositeMapper = { } }; +export const ExpressRoutePortAuthorizationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExpressRoutePortAuthorizationListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRoutePortAuthorization" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ExpressRouteProviderPortListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExpressRouteProviderPortListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteProviderPort" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const FirewallPolicyThreatIntelWhitelist: coreClient.CompositeMapper = { - serializedName: "FirewallPolicyThreatIntelWhitelist", type: { name: "Composite", className: "FirewallPolicyThreatIntelWhitelist", @@ -4176,7 +4461,6 @@ export const FirewallPolicyThreatIntelWhitelist: coreClient.CompositeMapper = { }; export const FirewallPolicyInsights: coreClient.CompositeMapper = { - serializedName: "FirewallPolicyInsights", type: { name: "Composite", className: "FirewallPolicyInsights", @@ -4205,7 +4489,6 @@ export const FirewallPolicyInsights: coreClient.CompositeMapper = { }; export const FirewallPolicyLogAnalyticsResources: coreClient.CompositeMapper = { - serializedName: "FirewallPolicyLogAnalyticsResources", type: { name: "Composite", className: "FirewallPolicyLogAnalyticsResources", @@ -4234,7 +4517,6 @@ export const FirewallPolicyLogAnalyticsResources: coreClient.CompositeMapper = { }; export const FirewallPolicyLogAnalyticsWorkspace: coreClient.CompositeMapper = { - serializedName: "FirewallPolicyLogAnalyticsWorkspace", type: { name: "Composite", className: "FirewallPolicyLogAnalyticsWorkspace", @@ -4257,7 +4539,6 @@ export const FirewallPolicyLogAnalyticsWorkspace: coreClient.CompositeMapper = { }; export const FirewallPolicySnat: coreClient.CompositeMapper = { - serializedName: "FirewallPolicySNAT", type: { name: "Composite", className: "FirewallPolicySnat", @@ -4272,13 +4553,18 @@ export const FirewallPolicySnat: coreClient.CompositeMapper = { } } } + }, + autoLearnPrivateRanges: { + serializedName: "autoLearnPrivateRanges", + type: { + name: "String" + } } } } }; export const FirewallPolicySQL: coreClient.CompositeMapper = { - serializedName: "FirewallPolicySQL", type: { name: "Composite", className: "FirewallPolicySQL", @@ -4294,7 +4580,6 @@ export const FirewallPolicySQL: coreClient.CompositeMapper = { }; export const DnsSettings: coreClient.CompositeMapper = { - serializedName: "DnsSettings", type: { name: "Composite", className: "DnsSettings", @@ -4327,11 +4612,10 @@ export const DnsSettings: coreClient.CompositeMapper = { } }; -export const ExplicitProxySettings: coreClient.CompositeMapper = { - serializedName: "ExplicitProxySettings", +export const ExplicitProxy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExplicitProxySettings", + className: "ExplicitProxy", modelProperties: { enableExplicitProxy: { serializedName: "enableExplicitProxy", @@ -4360,6 +4644,13 @@ export const ExplicitProxySettings: coreClient.CompositeMapper = { name: "Number" } }, + enablePacFile: { + serializedName: "enablePacFile", + nullable: true, + type: { + name: "Boolean" + } + }, pacFilePort: { constraints: { InclusiveMaximum: 64000, @@ -4432,6 +4723,17 @@ export const FirewallPolicyIntrusionDetectionConfiguration: coreClient.Composite } } } + }, + privateRanges: { + serializedName: "privateRanges", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } @@ -4821,19 +5123,22 @@ export const SingleQueryResult: coreClient.CompositeMapper = { mode: { serializedName: "mode", type: { - name: "Number" + name: "Enum", + allowedValues: [0, 1, 2] } }, severity: { serializedName: "severity", type: { - name: "Number" + name: "Enum", + allowedValues: [1, 2, 3] } }, direction: { serializedName: "direction", type: { - name: "Number" + name: "Enum", + allowedValues: [0, 1, 2] } }, group: { @@ -5820,61 +6125,189 @@ export const NetworkInterfaceTapConfigurationListResult: coreClient.CompositeMap } }; -export const ContainerNetworkInterfaceIpConfiguration: coreClient.CompositeMapper = { +export const NetworkManagerPropertiesNetworkManagerScopes: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContainerNetworkInterfaceIpConfiguration", + className: "NetworkManagerPropertiesNetworkManagerScopes", modelProperties: { - name: { - serializedName: "name", + managementGroups: { + serializedName: "managementGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - type: { - serializedName: "type", + subscriptions: { + serializedName: "subscriptions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + crossTenantScopes: { + serializedName: "crossTenantScopes", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CrossTenantScopes" + } + } + } + } + } + } +}; + +export const CrossTenantScopes: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CrossTenantScopes", + modelProperties: { + tenantId: { + serializedName: "tenantId", readOnly: true, type: { name: "String" } }, - etag: { - serializedName: "etag", + managementGroups: { + serializedName: "managementGroups", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - provisioningState: { - serializedName: "properties.provisioningState", + subscriptions: { + serializedName: "subscriptions", readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const SystemData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { name: "String" } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } } } } }; -export const NetworkProfileListResult: coreClient.CompositeMapper = { +export const PatchObject: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkProfileListResult", + className: "PatchObject", modelProperties: { - value: { - serializedName: "value", + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const NetworkManagerCommit: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkManagerCommit", + modelProperties: { + commitId: { + serializedName: "commitId", + readOnly: true, + type: { + name: "String" + } + }, + targetLocations: { + serializedName: "targetLocations", + required: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "NetworkProfile" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", + configurationIds: { + serializedName: "configurationIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + commitType: { + serializedName: "commitType", + required: true, type: { name: "String" } @@ -5883,25 +6316,35 @@ export const NetworkProfileListResult: coreClient.CompositeMapper = { } }; -export const NetworkSecurityGroupListResult: coreClient.CompositeMapper = { +export const NetworkManagerDeploymentStatusParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkSecurityGroupListResult", + className: "NetworkManagerDeploymentStatusParameter", modelProperties: { - value: { - serializedName: "value", + regions: { + serializedName: "regions", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "NetworkSecurityGroup" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", + deploymentTypes: { + serializedName: "deploymentTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + skipToken: { + serializedName: "skipToken", type: { name: "String" } @@ -5910,10 +6353,10 @@ export const NetworkSecurityGroupListResult: coreClient.CompositeMapper = { } }; -export const SecurityRuleListResult: coreClient.CompositeMapper = { +export const NetworkManagerDeploymentStatusListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityRuleListResult", + className: "NetworkManagerDeploymentStatusListResult", modelProperties: { value: { serializedName: "value", @@ -5922,13 +6365,13 @@ export const SecurityRuleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SecurityRule" + className: "NetworkManagerDeploymentStatus" } } } }, - nextLink: { - serializedName: "nextLink", + skipToken: { + serializedName: "skipToken", type: { name: "String" } @@ -5937,55 +6380,48 @@ export const SecurityRuleListResult: coreClient.CompositeMapper = { } }; -export const VirtualApplianceSkuProperties: coreClient.CompositeMapper = { +export const NetworkManagerDeploymentStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualApplianceSkuProperties", + className: "NetworkManagerDeploymentStatus", modelProperties: { - vendor: { - serializedName: "vendor", + commitTime: { + serializedName: "commitTime", type: { - name: "String" + name: "DateTime" } }, - bundledScaleUnit: { - serializedName: "bundledScaleUnit", + region: { + serializedName: "region", type: { name: "String" } }, - marketPlaceVersion: { - serializedName: "marketPlaceVersion", + deploymentStatus: { + serializedName: "deploymentStatus", type: { name: "String" } - } - } - } -}; - -export const VirtualApplianceNicProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualApplianceNicProperties", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, + }, + configurationIds: { + serializedName: "configurationIds", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - publicIpAddress: { - serializedName: "publicIpAddress", - readOnly: true, + deploymentType: { + serializedName: "deploymentType", type: { name: "String" } }, - privateIpAddress: { - serializedName: "privateIpAddress", - readOnly: true, + errorMessage: { + serializedName: "errorMessage", type: { name: "String" } @@ -5994,10 +6430,10 @@ export const VirtualApplianceNicProperties: coreClient.CompositeMapper = { } }; -export const NetworkVirtualApplianceListResult: coreClient.CompositeMapper = { +export const NetworkManagerListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkVirtualApplianceListResult", + className: "NetworkManagerListResult", modelProperties: { value: { serializedName: "value", @@ -6006,7 +6442,7 @@ export const NetworkVirtualApplianceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NetworkVirtualAppliance" + className: "NetworkManager" } } } @@ -6021,53 +6457,36 @@ export const NetworkVirtualApplianceListResult: coreClient.CompositeMapper = { } }; -export const Office365PolicyProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Office365PolicyProperties", - modelProperties: { - breakOutCategories: { - serializedName: "breakOutCategories", - type: { - name: "Composite", - className: "BreakOutCategoryPolicies" - } - } - } - } -}; - -export const BreakOutCategoryPolicies: coreClient.CompositeMapper = { +export const ActiveConfigurationParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BreakOutCategoryPolicies", + className: "ActiveConfigurationParameter", modelProperties: { - allow: { - serializedName: "allow", - type: { - name: "Boolean" - } - }, - optimize: { - serializedName: "optimize", + regions: { + serializedName: "regions", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - default: { - serializedName: "default", + skipToken: { + serializedName: "skipToken", type: { - name: "Boolean" + name: "String" } } } } }; -export const NetworkVirtualApplianceSiteListResult: coreClient.CompositeMapper = { +export const ActiveConnectivityConfigurationsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkVirtualApplianceSiteListResult", + className: "ActiveConnectivityConfigurationsListResult", modelProperties: { value: { serializedName: "value", @@ -6076,13 +6495,13 @@ export const NetworkVirtualApplianceSiteListResult: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "VirtualApplianceSite" + className: "ActiveConnectivityConfiguration" } } } }, - nextLink: { - serializedName: "nextLink", + skipToken: { + serializedName: "skipToken", type: { name: "String" } @@ -6091,25 +6510,80 @@ export const NetworkVirtualApplianceSiteListResult: coreClient.CompositeMapper = } }; -export const NetworkVirtualApplianceSkuListResult: coreClient.CompositeMapper = { +export const EffectiveConnectivityConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkVirtualApplianceSkuListResult", + className: "EffectiveConnectivityConfiguration", modelProperties: { - value: { - serializedName: "value", + id: { + serializedName: "id", + type: { + name: "String" + } + }, + configurationGroups: { + serializedName: "configurationGroups", type: { name: "Sequence", element: { type: { name: "Composite", - className: "NetworkVirtualApplianceSku" + className: "ConfigurationGroup" } } } }, - nextLink: { - serializedName: "nextLink", + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + connectivityTopology: { + serializedName: "properties.connectivityTopology", + type: { + name: "String" + } + }, + hubs: { + serializedName: "properties.hubs", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Hub" + } + } + } + }, + isGlobal: { + serializedName: "properties.isGlobal", + type: { + name: "String" + } + }, + appliesToGroups: { + serializedName: "properties.appliesToGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectivityGroupItem" + } + } + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + deleteExistingPeering: { + serializedName: "properties.deleteExistingPeering", type: { name: "String" } @@ -6118,80 +6592,94 @@ export const NetworkVirtualApplianceSkuListResult: coreClient.CompositeMapper = } }; -export const NetworkVirtualApplianceSkuInstances: coreClient.CompositeMapper = { +export const Hub: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkVirtualApplianceSkuInstances", + className: "Hub", modelProperties: { - scaleUnit: { - serializedName: "scaleUnit", - readOnly: true, + resourceId: { + serializedName: "resourceId", type: { name: "String" } }, - instanceCount: { - serializedName: "instanceCount", - readOnly: true, + resourceType: { + serializedName: "resourceType", type: { - name: "Number" + name: "String" } } } } }; -export const InboundSecurityRules: coreClient.CompositeMapper = { +export const ConnectivityGroupItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InboundSecurityRules", + className: "ConnectivityGroupItem", modelProperties: { - protocol: { - serializedName: "protocol", + networkGroupId: { + serializedName: "networkGroupId", + required: true, type: { name: "String" } }, - sourceAddressPrefix: { - serializedName: "sourceAddressPrefix", + useHubGateway: { + serializedName: "useHubGateway", type: { name: "String" } }, - destinationPortRange: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 0 - }, - serializedName: "destinationPortRange", + isGlobal: { + serializedName: "isGlobal", type: { - name: "Number" + name: "String" + } + }, + groupConnectivity: { + serializedName: "groupConnectivity", + required: true, + type: { + name: "String" } } } } }; -export const ErrorResponse: coreClient.CompositeMapper = { +export const ConfigurationGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorResponse", + className: "ConfigurationGroup", modelProperties: { - error: { - serializedName: "error", + id: { + serializedName: "id", type: { - name: "Composite", - className: "ErrorDetails" + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" } } } } }; -export const NetworkWatcherListResult: coreClient.CompositeMapper = { +export const ActiveSecurityAdminRulesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkWatcherListResult", + className: "ActiveSecurityAdminRulesListResult", modelProperties: { value: { serializedName: "value", @@ -6200,144 +6688,141 @@ export const NetworkWatcherListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NetworkWatcher" + className: "ActiveBaseSecurityAdminRule" } } } + }, + skipToken: { + serializedName: "skipToken", + type: { + name: "String" + } } } } }; -export const TopologyParameters: coreClient.CompositeMapper = { +export const ActiveBaseSecurityAdminRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopologyParameters", + className: "ActiveBaseSecurityAdminRule", + uberParent: "ActiveBaseSecurityAdminRule", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, modelProperties: { - targetResourceGroupName: { - serializedName: "targetResourceGroupName", + id: { + serializedName: "id", type: { name: "String" } }, - targetVirtualNetwork: { - serializedName: "targetVirtualNetwork", + commitTime: { + serializedName: "commitTime", type: { - name: "Composite", - className: "SubResource" + name: "DateTime" } }, - targetSubnet: { - serializedName: "targetSubnet", + region: { + serializedName: "region", type: { - name: "Composite", - className: "SubResource" + name: "String" } - } - } - } -}; - -export const Topology: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Topology", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, + }, + configurationDescription: { + serializedName: "configurationDescription", type: { name: "String" } }, - createdDateTime: { - serializedName: "createdDateTime", - readOnly: true, + ruleCollectionDescription: { + serializedName: "ruleCollectionDescription", type: { - name: "DateTime" + name: "String" } }, - lastModified: { - serializedName: "lastModified", - readOnly: true, + ruleCollectionAppliesToGroups: { + serializedName: "ruleCollectionAppliesToGroups", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkManagerSecurityGroupItem" + } + } } }, - resources: { - serializedName: "resources", + ruleGroups: { + serializedName: "ruleGroups", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TopologyResource" + className: "ConfigurationGroup" } } } + }, + kind: { + serializedName: "kind", + required: true, + type: { + name: "String" + } } } } }; -export const TopologyResource: coreClient.CompositeMapper = { +export const NetworkManagerSecurityGroupItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopologyResource", + className: "NetworkManagerSecurityGroupItem", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - id: { - serializedName: "id", - type: { - name: "String" - } - }, - location: { - serializedName: "location", + networkGroupId: { + serializedName: "networkGroupId", + required: true, type: { name: "String" } - }, - associations: { - serializedName: "associations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TopologyAssociation" - } - } - } } } } }; -export const TopologyAssociation: coreClient.CompositeMapper = { +export const ChildResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopologyAssociation", + className: "ChildResource", modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, name: { serializedName: "name", + readOnly: true, type: { name: "String" } }, - resourceId: { - serializedName: "resourceId", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - associationType: { - serializedName: "associationType", + etag: { + serializedName: "etag", + readOnly: true, type: { name: "String" } @@ -6346,62 +6831,25 @@ export const TopologyAssociation: coreClient.CompositeMapper = { } }; -export const VerificationIPFlowParameters: coreClient.CompositeMapper = { +export const NetworkManagerConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VerificationIPFlowParameters", + className: "NetworkManagerConnectionListResult", modelProperties: { - targetResourceId: { - serializedName: "targetResourceId", - required: true, - type: { - name: "String" - } - }, - direction: { - serializedName: "direction", - required: true, - type: { - name: "String" - } - }, - protocol: { - serializedName: "protocol", - required: true, - type: { - name: "String" - } - }, - localPort: { - serializedName: "localPort", - required: true, - type: { - name: "String" - } - }, - remotePort: { - serializedName: "remotePort", - required: true, - type: { - name: "String" - } - }, - localIPAddress: { - serializedName: "localIPAddress", - required: true, - type: { - name: "String" - } - }, - remoteIPAddress: { - serializedName: "remoteIPAddress", - required: true, + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkManagerConnection" + } + } } }, - targetNicResourceId: { - serializedName: "targetNicResourceId", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -6410,19 +6858,25 @@ export const VerificationIPFlowParameters: coreClient.CompositeMapper = { } }; -export const VerificationIPFlowResult: coreClient.CompositeMapper = { +export const ConnectivityConfigurationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VerificationIPFlowResult", + className: "ConnectivityConfigurationListResult", modelProperties: { - access: { - serializedName: "access", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectivityConfiguration" + } + } } }, - ruleName: { - serializedName: "ruleName", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -6431,34 +6885,13 @@ export const VerificationIPFlowResult: coreClient.CompositeMapper = { } }; -export const NextHopParameters: coreClient.CompositeMapper = { +export const QueryRequestOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NextHopParameters", + className: "QueryRequestOptions", modelProperties: { - targetResourceId: { - serializedName: "targetResourceId", - required: true, - type: { - name: "String" - } - }, - sourceIPAddress: { - serializedName: "sourceIPAddress", - required: true, - type: { - name: "String" - } - }, - destinationIPAddress: { - serializedName: "destinationIPAddress", - required: true, - type: { - name: "String" - } - }, - targetNicResourceId: { - serializedName: "targetNicResourceId", + skipToken: { + serializedName: "skipToken", type: { name: "String" } @@ -6467,41 +6900,25 @@ export const NextHopParameters: coreClient.CompositeMapper = { } }; -export const NextHopResult: coreClient.CompositeMapper = { +export const NetworkManagerEffectiveConnectivityConfigurationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NextHopResult", + className: "NetworkManagerEffectiveConnectivityConfigurationListResult", modelProperties: { - nextHopType: { - serializedName: "nextHopType", - type: { - name: "String" - } - }, - nextHopIpAddress: { - serializedName: "nextHopIpAddress", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EffectiveConnectivityConfiguration" + } + } } }, - routeTableId: { - serializedName: "routeTableId", - type: { - name: "String" - } - } - } - } -}; - -export const SecurityGroupViewParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecurityGroupViewParameters", - modelProperties: { - targetResourceId: { - serializedName: "targetResourceId", - required: true, + skipToken: { + serializedName: "skipToken", type: { name: "String" } @@ -6510,31 +6927,42 @@ export const SecurityGroupViewParameters: coreClient.CompositeMapper = { } }; -export const SecurityGroupViewResult: coreClient.CompositeMapper = { +export const NetworkManagerEffectiveSecurityAdminRulesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityGroupViewResult", + className: "NetworkManagerEffectiveSecurityAdminRulesListResult", modelProperties: { - networkInterfaces: { - serializedName: "networkInterfaces", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SecurityGroupNetworkInterface" + className: "EffectiveBaseSecurityAdminRule" } } } + }, + skipToken: { + serializedName: "skipToken", + type: { + name: "String" + } } } } }; -export const SecurityGroupNetworkInterface: coreClient.CompositeMapper = { +export const EffectiveBaseSecurityAdminRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityGroupNetworkInterface", + className: "EffectiveBaseSecurityAdminRule", + uberParent: "EffectiveBaseSecurityAdminRule", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, modelProperties: { id: { serializedName: "id", @@ -6542,275 +6970,180 @@ export const SecurityGroupNetworkInterface: coreClient.CompositeMapper = { name: "String" } }, - securityRuleAssociations: { - serializedName: "securityRuleAssociations", - type: { - name: "Composite", - className: "SecurityRuleAssociations" - } - } - } - } -}; - -export const SecurityRuleAssociations: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecurityRuleAssociations", - modelProperties: { - networkInterfaceAssociation: { - serializedName: "networkInterfaceAssociation", + configurationDescription: { + serializedName: "configurationDescription", type: { - name: "Composite", - className: "NetworkInterfaceAssociation" + name: "String" } }, - subnetAssociation: { - serializedName: "subnetAssociation", + ruleCollectionDescription: { + serializedName: "ruleCollectionDescription", type: { - name: "Composite", - className: "SubnetAssociation" + name: "String" } }, - defaultSecurityRules: { - serializedName: "defaultSecurityRules", + ruleCollectionAppliesToGroups: { + serializedName: "ruleCollectionAppliesToGroups", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SecurityRule" + className: "NetworkManagerSecurityGroupItem" } } } }, - effectiveSecurityRules: { - serializedName: "effectiveSecurityRules", + ruleGroups: { + serializedName: "ruleGroups", type: { name: "Sequence", element: { type: { name: "Composite", - className: "EffectiveNetworkSecurityRule" + className: "ConfigurationGroup" } } } + }, + kind: { + serializedName: "kind", + required: true, + type: { + name: "String" + } } } } }; -export const NetworkInterfaceAssociation: coreClient.CompositeMapper = { +export const NetworkGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkInterfaceAssociation", + className: "NetworkGroupListResult", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - securityRules: { - serializedName: "securityRules", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SecurityRule" + className: "NetworkGroup" } } } - } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } } } }; -export const SubnetAssociation: coreClient.CompositeMapper = { +export const StaticMemberListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SubnetAssociation", + className: "StaticMemberListResult", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - securityRules: { - serializedName: "securityRules", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SecurityRule" + className: "StaticMember" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const PacketCapture: coreClient.CompositeMapper = { +export const ScopeConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PacketCapture", + className: "ScopeConnectionListResult", modelProperties: { - target: { - serializedName: "properties.target", - required: true, - type: { - name: "String" - } - }, - bytesToCapturePerPacket: { - defaultValue: 0, - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 - }, - serializedName: "properties.bytesToCapturePerPacket", - type: { - name: "Number" - } - }, - totalBytesPerSession: { - defaultValue: 1073741824, - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 - }, - serializedName: "properties.totalBytesPerSession", - type: { - name: "Number" - } - }, - timeLimitInSeconds: { - defaultValue: 18000, - constraints: { - InclusiveMaximum: 18000, - InclusiveMinimum: 0 - }, - serializedName: "properties.timeLimitInSeconds", - type: { - name: "Number" - } - }, - storageLocation: { - serializedName: "properties.storageLocation", - type: { - name: "Composite", - className: "PacketCaptureStorageLocation" - } - }, - filters: { - serializedName: "properties.filters", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PacketCaptureFilter" + className: "ScopeConnection" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const PacketCaptureParameters: coreClient.CompositeMapper = { +export const SecurityAdminConfigurationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PacketCaptureParameters", + className: "SecurityAdminConfigurationListResult", modelProperties: { - target: { - serializedName: "target", - required: true, - type: { - name: "String" - } - }, - bytesToCapturePerPacket: { - defaultValue: 0, - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 - }, - serializedName: "bytesToCapturePerPacket", - type: { - name: "Number" - } - }, - totalBytesPerSession: { - defaultValue: 1073741824, - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 - }, - serializedName: "totalBytesPerSession", - type: { - name: "Number" - } - }, - timeLimitInSeconds: { - defaultValue: 18000, - constraints: { - InclusiveMaximum: 18000, - InclusiveMinimum: 0 - }, - serializedName: "timeLimitInSeconds", - type: { - name: "Number" - } - }, - storageLocation: { - serializedName: "storageLocation", - type: { - name: "Composite", - className: "PacketCaptureStorageLocation" - } - }, - filters: { - serializedName: "filters", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PacketCaptureFilter" + className: "SecurityAdminConfiguration" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const PacketCaptureStorageLocation: coreClient.CompositeMapper = { +export const AdminRuleCollectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PacketCaptureStorageLocation", + className: "AdminRuleCollectionListResult", modelProperties: { - storageId: { - serializedName: "storageId", - type: { - name: "String" - } - }, - storagePath: { - serializedName: "storagePath", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdminRuleCollection" + } + } } }, - filePath: { - serializedName: "filePath", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -6819,38 +7152,25 @@ export const PacketCaptureStorageLocation: coreClient.CompositeMapper = { } }; -export const PacketCaptureFilter: coreClient.CompositeMapper = { +export const AdminRuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PacketCaptureFilter", + className: "AdminRuleListResult", modelProperties: { - protocol: { - defaultValue: "Any", - serializedName: "protocol", - type: { - name: "String" - } - }, - localIPAddress: { - serializedName: "localIPAddress", - type: { - name: "String" - } - }, - remoteIPAddress: { - serializedName: "remoteIPAddress", - type: { - name: "String" - } - }, - localPort: { - serializedName: "localPort", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BaseAdminRule" + } + } } }, - remotePort: { - serializedName: "remotePort", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -6859,20 +7179,19 @@ export const PacketCaptureFilter: coreClient.CompositeMapper = { } }; -export const PacketCaptureResult: coreClient.CompositeMapper = { +export const ContainerNetworkInterfaceIpConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PacketCaptureResult", + className: "ContainerNetworkInterfaceIpConfiguration", modelProperties: { name: { serializedName: "name", - readOnly: true, type: { name: "String" } }, - id: { - serializedName: "id", + type: { + serializedName: "type", readOnly: true, type: { name: "String" @@ -6885,67 +7204,36 @@ export const PacketCaptureResult: coreClient.CompositeMapper = { name: "String" } }, - target: { - serializedName: "properties.target", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } - }, - bytesToCapturePerPacket: { - defaultValue: 0, - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 - }, - serializedName: "properties.bytesToCapturePerPacket", + } + } + } +}; + +export const NetworkProfileListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkProfileListResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkProfile" + } + } } }, - totalBytesPerSession: { - defaultValue: 1073741824, - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 - }, - serializedName: "properties.totalBytesPerSession", - type: { - name: "Number" - } - }, - timeLimitInSeconds: { - defaultValue: 18000, - constraints: { - InclusiveMaximum: 18000, - InclusiveMinimum: 0 - }, - serializedName: "properties.timeLimitInSeconds", - type: { - name: "Number" - } - }, - storageLocation: { - serializedName: "properties.storageLocation", - type: { - name: "Composite", - className: "PacketCaptureStorageLocation" - } - }, - filters: { - serializedName: "properties.filters", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PacketCaptureFilter" - } - } - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -6954,60 +7242,37 @@ export const PacketCaptureResult: coreClient.CompositeMapper = { } }; -export const PacketCaptureQueryStatusResult: coreClient.CompositeMapper = { +export const NetworkSecurityGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PacketCaptureQueryStatusResult", + className: "NetworkSecurityGroupListResult", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - id: { - serializedName: "id", - type: { - name: "String" - } - }, - captureStartTime: { - serializedName: "captureStartTime", - type: { - name: "DateTime" - } - }, - packetCaptureStatus: { - serializedName: "packetCaptureStatus", - type: { - name: "String" - } - }, - stopReason: { - serializedName: "stopReason", - type: { - name: "String" - } - }, - packetCaptureError: { - serializedName: "packetCaptureError", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "NetworkSecurityGroup" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const PacketCaptureListResult: coreClient.CompositeMapper = { +export const SecurityRuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PacketCaptureListResult", + className: "SecurityRuleListResult", modelProperties: { value: { serializedName: "value", @@ -7016,37 +7281,40 @@ export const PacketCaptureListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PacketCaptureResult" + className: "SecurityRule" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const TroubleshootingParameters: coreClient.CompositeMapper = { +export const VirtualApplianceSkuProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TroubleshootingParameters", + className: "VirtualApplianceSkuProperties", modelProperties: { - targetResourceId: { - serializedName: "targetResourceId", - required: true, + vendor: { + serializedName: "vendor", type: { name: "String" } }, - storageId: { - serializedName: "properties.storageId", - required: true, + bundledScaleUnit: { + serializedName: "bundledScaleUnit", type: { name: "String" } }, - storagePath: { - serializedName: "properties.storagePath", - required: true, + marketPlaceVersion: { + serializedName: "marketPlaceVersion", type: { name: "String" } @@ -7055,115 +7323,107 @@ export const TroubleshootingParameters: coreClient.CompositeMapper = { } }; -export const TroubleshootingResult: coreClient.CompositeMapper = { +export const VirtualApplianceNicProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TroubleshootingResult", + className: "VirtualApplianceNicProperties", modelProperties: { - startTime: { - serializedName: "startTime", - type: { - name: "DateTime" - } - }, - endTime: { - serializedName: "endTime", + name: { + serializedName: "name", + readOnly: true, type: { - name: "DateTime" + name: "String" } }, - code: { - serializedName: "code", + publicIpAddress: { + serializedName: "publicIpAddress", + readOnly: true, type: { name: "String" } }, - results: { - serializedName: "results", + privateIpAddress: { + serializedName: "privateIpAddress", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TroubleshootingDetails" - } - } + name: "String" } } } } }; -export const TroubleshootingDetails: coreClient.CompositeMapper = { +export const DelegationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TroubleshootingDetails", + className: "DelegationProperties", modelProperties: { - id: { - serializedName: "id", + serviceName: { + serializedName: "serviceName", type: { name: "String" } }, - reasonType: { - serializedName: "reasonType", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } - }, - summary: { - serializedName: "summary", + } + } + } +}; + +export const PartnerManagedResourceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartnerManagedResourceProperties", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - detail: { - serializedName: "detail", + internalLoadBalancerId: { + serializedName: "internalLoadBalancerId", + readOnly: true, type: { name: "String" } }, - recommendedActions: { - serializedName: "recommendedActions", + standardLoadBalancerId: { + serializedName: "standardLoadBalancerId", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TroubleshootingRecommendedActions" - } - } + name: "String" } } } } }; -export const TroubleshootingRecommendedActions: coreClient.CompositeMapper = { +export const NetworkVirtualApplianceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TroubleshootingRecommendedActions", + className: "NetworkVirtualApplianceListResult", modelProperties: { - actionId: { - serializedName: "actionId", - type: { - name: "String" - } - }, - actionText: { - serializedName: "actionText", - type: { - name: "String" - } - }, - actionUri: { - serializedName: "actionUri", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkVirtualAppliance" + } + } } }, - actionUriText: { - serializedName: "actionUriText", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -7172,81 +7432,68 @@ export const TroubleshootingRecommendedActions: coreClient.CompositeMapper = { } }; -export const QueryTroubleshootingParameters: coreClient.CompositeMapper = { +export const Office365PolicyProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryTroubleshootingParameters", + className: "Office365PolicyProperties", modelProperties: { - targetResourceId: { - serializedName: "targetResourceId", - required: true, + breakOutCategories: { + serializedName: "breakOutCategories", type: { - name: "String" + name: "Composite", + className: "BreakOutCategoryPolicies" } } } } }; -export const FlowLogInformation: coreClient.CompositeMapper = { +export const BreakOutCategoryPolicies: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FlowLogInformation", + className: "BreakOutCategoryPolicies", modelProperties: { - targetResourceId: { - serializedName: "targetResourceId", - required: true, + allow: { + serializedName: "allow", type: { - name: "String" + name: "Boolean" } }, - flowAnalyticsConfiguration: { - serializedName: "flowAnalyticsConfiguration", + optimize: { + serializedName: "optimize", type: { - name: "Composite", - className: "TrafficAnalyticsProperties" + name: "Boolean" } }, - storageId: { - serializedName: "properties.storageId", - required: true, - type: { - name: "String" - } - }, - enabled: { - serializedName: "properties.enabled", - required: true, + default: { + serializedName: "default", type: { name: "Boolean" } - }, - retentionPolicy: { - serializedName: "properties.retentionPolicy", - type: { - name: "Composite", - className: "RetentionPolicyParameters" - } - }, - format: { - serializedName: "properties.format", - type: { - name: "Composite", - className: "FlowLogFormatParameters" - } } } } }; -export const FlowLogStatusParameters: coreClient.CompositeMapper = { +export const NetworkVirtualApplianceSiteListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FlowLogStatusParameters", + className: "NetworkVirtualApplianceSiteListResult", modelProperties: { - targetResourceId: { - serializedName: "targetResourceId", - required: true, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualApplianceSite" + } + } + } + }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -7255,40 +7502,25 @@ export const FlowLogStatusParameters: coreClient.CompositeMapper = { } }; -export const ConnectivityParameters: coreClient.CompositeMapper = { +export const NetworkVirtualApplianceSkuListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectivityParameters", + className: "NetworkVirtualApplianceSkuListResult", modelProperties: { - source: { - serializedName: "source", - type: { - name: "Composite", - className: "ConnectivitySource" - } - }, - destination: { - serializedName: "destination", - type: { - name: "Composite", - className: "ConnectivityDestination" - } - }, - protocol: { - serializedName: "protocol", - type: { - name: "String" - } - }, - protocolConfiguration: { - serializedName: "protocolConfiguration", + value: { + serializedName: "value", type: { - name: "Composite", - className: "ProtocolConfiguration" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkVirtualApplianceSku" + } + } } }, - preferredIPVersion: { - serializedName: "preferredIPVersion", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -7297,24 +7529,21 @@ export const ConnectivityParameters: coreClient.CompositeMapper = { } }; -export const ConnectivitySource: coreClient.CompositeMapper = { +export const NetworkVirtualApplianceSkuInstances: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectivitySource", + className: "NetworkVirtualApplianceSkuInstances", modelProperties: { - resourceId: { - serializedName: "resourceId", - required: true, + scaleUnit: { + serializedName: "scaleUnit", + readOnly: true, type: { name: "String" } }, - port: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 0 - }, - serializedName: "port", + instanceCount: { + serializedName: "instanceCount", + readOnly: true, type: { name: "Number" } @@ -7323,29 +7552,29 @@ export const ConnectivitySource: coreClient.CompositeMapper = { } }; -export const ConnectivityDestination: coreClient.CompositeMapper = { +export const InboundSecurityRules: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectivityDestination", + className: "InboundSecurityRules", modelProperties: { - resourceId: { - serializedName: "resourceId", + protocol: { + serializedName: "protocol", type: { name: "String" } }, - address: { - serializedName: "address", + sourceAddressPrefix: { + serializedName: "sourceAddressPrefix", type: { name: "String" } }, - port: { + destinationPortRange: { constraints: { InclusiveMaximum: 65535, InclusiveMinimum: 0 }, - serializedName: "port", + serializedName: "destinationPortRange", type: { name: "Number" } @@ -7354,52 +7583,35 @@ export const ConnectivityDestination: coreClient.CompositeMapper = { } }; -export const ProtocolConfiguration: coreClient.CompositeMapper = { +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProtocolConfiguration", + className: "ErrorResponse", modelProperties: { - httpConfiguration: { - serializedName: "HTTPConfiguration", + error: { + serializedName: "error", type: { name: "Composite", - className: "HttpConfiguration" + className: "ErrorDetails" } } } } }; -export const HttpConfiguration: coreClient.CompositeMapper = { +export const NetworkWatcherListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HttpConfiguration", + className: "NetworkWatcherListResult", modelProperties: { - method: { - serializedName: "method", - type: { - name: "String" - } - }, - headers: { - serializedName: "headers", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "HttpHeader" - } - } - } - }, - validStatusCodes: { - serializedName: "validStatusCodes", - type: { - name: "Sequence", - element: { - type: { - name: "Number" + className: "NetworkWatcher" } } } @@ -7408,390 +7620,283 @@ export const HttpConfiguration: coreClient.CompositeMapper = { } }; -export const HttpHeader: coreClient.CompositeMapper = { +export const TopologyParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HttpHeader", + className: "TopologyParameters", modelProperties: { - name: { - serializedName: "name", + targetResourceGroupName: { + serializedName: "targetResourceGroupName", type: { name: "String" } }, - value: { - serializedName: "value", + targetVirtualNetwork: { + serializedName: "targetVirtualNetwork", type: { - name: "String" + name: "Composite", + className: "SubResource" + } + }, + targetSubnet: { + serializedName: "targetSubnet", + type: { + name: "Composite", + className: "SubResource" } } } } }; -export const ConnectivityInformation: coreClient.CompositeMapper = { +export const Topology: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectivityInformation", + className: "Topology", modelProperties: { - hops: { - serializedName: "hops", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectivityHop" - } - } - } - }, - connectionStatus: { - serializedName: "connectionStatus", + id: { + serializedName: "id", readOnly: true, type: { name: "String" } }, - avgLatencyInMs: { - serializedName: "avgLatencyInMs", - readOnly: true, - type: { - name: "Number" - } - }, - minLatencyInMs: { - serializedName: "minLatencyInMs", - readOnly: true, - type: { - name: "Number" - } - }, - maxLatencyInMs: { - serializedName: "maxLatencyInMs", + createdDateTime: { + serializedName: "createdDateTime", readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - probesSent: { - serializedName: "probesSent", + lastModified: { + serializedName: "lastModified", readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - probesFailed: { - serializedName: "probesFailed", - readOnly: true, + resources: { + serializedName: "resources", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TopologyResource" + } + } } } } } }; -export const ConnectivityHop: coreClient.CompositeMapper = { +export const TopologyResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectivityHop", + className: "TopologyResource", modelProperties: { - type: { - serializedName: "type", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, id: { serializedName: "id", - readOnly: true, type: { name: "String" } }, - address: { - serializedName: "address", - readOnly: true, + location: { + serializedName: "location", type: { name: "String" } }, - resourceId: { - serializedName: "resourceId", - readOnly: true, - type: { - name: "String" - } - }, - nextHopIds: { - serializedName: "nextHopIds", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - previousHopIds: { - serializedName: "previousHopIds", - readOnly: true, + associations: { + serializedName: "associations", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "TopologyAssociation" } } } - }, - links: { - serializedName: "links", - readOnly: true, + } + } + } +}; + +export const TopologyAssociation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TopologyAssociation", + modelProperties: { + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HopLink" - } - } + name: "String" } }, - previousLinks: { - serializedName: "previousLinks", - readOnly: true, + resourceId: { + serializedName: "resourceId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HopLink" - } - } + name: "String" } }, - issues: { - serializedName: "issues", - readOnly: true, + associationType: { + serializedName: "associationType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectivityIssue" - } - } + name: "String" } } } } }; -export const HopLink: coreClient.CompositeMapper = { +export const VerificationIPFlowParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HopLink", + className: "VerificationIPFlowParameters", modelProperties: { - nextHopId: { - serializedName: "nextHopId", - readOnly: true, + targetResourceId: { + serializedName: "targetResourceId", + required: true, type: { name: "String" } }, - linkType: { - serializedName: "linkType", - readOnly: true, + direction: { + serializedName: "direction", + required: true, type: { name: "String" } }, - issues: { - serializedName: "issues", - readOnly: true, + protocol: { + serializedName: "protocol", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectivityIssue" - } - } + name: "String" } }, - context: { - serializedName: "context", - readOnly: true, + localPort: { + serializedName: "localPort", + required: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - resourceId: { - serializedName: "resourceId", - readOnly: true, + remotePort: { + serializedName: "remotePort", + required: true, type: { name: "String" } }, - roundTripTimeMin: { - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 - }, - serializedName: "properties.roundTripTimeMin", - readOnly: true, + localIPAddress: { + serializedName: "localIPAddress", + required: true, type: { - name: "Number" + name: "String" } }, - roundTripTimeAvg: { - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 - }, - serializedName: "properties.roundTripTimeAvg", - readOnly: true, + remoteIPAddress: { + serializedName: "remoteIPAddress", + required: true, type: { - name: "Number" + name: "String" } }, - roundTripTimeMax: { - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 - }, - serializedName: "properties.roundTripTimeMax", - readOnly: true, + targetNicResourceId: { + serializedName: "targetNicResourceId", type: { - name: "Number" + name: "String" } } } } }; -export const ConnectivityIssue: coreClient.CompositeMapper = { +export const VerificationIPFlowResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectivityIssue", + className: "VerificationIPFlowResult", modelProperties: { - origin: { - serializedName: "origin", - readOnly: true, - type: { - name: "String" - } - }, - severity: { - serializedName: "severity", - readOnly: true, + access: { + serializedName: "access", type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + ruleName: { + serializedName: "ruleName", type: { name: "String" } - }, - context: { - serializedName: "context", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } } } } }; -export const AzureReachabilityReportParameters: coreClient.CompositeMapper = { +export const NextHopParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureReachabilityReportParameters", + className: "NextHopParameters", modelProperties: { - providerLocation: { - serializedName: "providerLocation", - type: { - name: "Composite", - className: "AzureReachabilityReportLocation" - } - }, - providers: { - serializedName: "providers", + targetResourceId: { + serializedName: "targetResourceId", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - azureLocations: { - serializedName: "azureLocations", + sourceIPAddress: { + serializedName: "sourceIPAddress", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - startTime: { - serializedName: "startTime", + destinationIPAddress: { + serializedName: "destinationIPAddress", required: true, type: { - name: "DateTime" + name: "String" } }, - endTime: { - serializedName: "endTime", - required: true, + targetNicResourceId: { + serializedName: "targetNicResourceId", type: { - name: "DateTime" + name: "String" } } } } }; -export const AzureReachabilityReportLocation: coreClient.CompositeMapper = { +export const NextHopResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureReachabilityReportLocation", + className: "NextHopResult", modelProperties: { - country: { - serializedName: "country", - required: true, + nextHopType: { + serializedName: "nextHopType", type: { name: "String" } }, - state: { - serializedName: "state", + nextHopIpAddress: { + serializedName: "nextHopIpAddress", type: { name: "String" } }, - city: { - serializedName: "city", + routeTableId: { + serializedName: "routeTableId", type: { name: "String" } @@ -7800,67 +7905,35 @@ export const AzureReachabilityReportLocation: coreClient.CompositeMapper = { } }; -export const AzureReachabilityReport: coreClient.CompositeMapper = { +export const SecurityGroupViewParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureReachabilityReport", + className: "SecurityGroupViewParameters", modelProperties: { - aggregationLevel: { - serializedName: "aggregationLevel", + targetResourceId: { + serializedName: "targetResourceId", required: true, type: { name: "String" } - }, - providerLocation: { - serializedName: "providerLocation", - type: { - name: "Composite", - className: "AzureReachabilityReportLocation" - } - }, - reachabilityReport: { - serializedName: "reachabilityReport", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureReachabilityReportItem" - } - } - } } } } }; -export const AzureReachabilityReportItem: coreClient.CompositeMapper = { +export const SecurityGroupViewResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureReachabilityReportItem", + className: "SecurityGroupViewResult", modelProperties: { - provider: { - serializedName: "provider", - type: { - name: "String" - } - }, - azureLocation: { - serializedName: "azureLocation", - type: { - name: "String" - } - }, - latencies: { - serializedName: "latencies", + networkInterfaces: { + serializedName: "networkInterfaces", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AzureReachabilityReportLatencyInfo" + className: "SecurityGroupNetworkInterface" } } } @@ -7869,83 +7942,67 @@ export const AzureReachabilityReportItem: coreClient.CompositeMapper = { } }; -export const AzureReachabilityReportLatencyInfo: coreClient.CompositeMapper = { +export const SecurityGroupNetworkInterface: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureReachabilityReportLatencyInfo", + className: "SecurityGroupNetworkInterface", modelProperties: { - timeStamp: { - serializedName: "timeStamp", + id: { + serializedName: "id", type: { - name: "DateTime" + name: "String" } }, - score: { - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 1 - }, - serializedName: "score", + securityRuleAssociations: { + serializedName: "securityRuleAssociations", type: { - name: "Number" + name: "Composite", + className: "SecurityRuleAssociations" } } } } }; -export const AvailableProvidersListParameters: coreClient.CompositeMapper = { +export const SecurityRuleAssociations: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailableProvidersListParameters", + className: "SecurityRuleAssociations", modelProperties: { - azureLocations: { - serializedName: "azureLocations", + networkInterfaceAssociation: { + serializedName: "networkInterfaceAssociation", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "NetworkInterfaceAssociation" } }, - country: { - serializedName: "country", + subnetAssociation: { + serializedName: "subnetAssociation", type: { - name: "String" + name: "Composite", + className: "SubnetAssociation" } }, - state: { - serializedName: "state", + defaultSecurityRules: { + serializedName: "defaultSecurityRules", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecurityRule" + } + } } }, - city: { - serializedName: "city", - type: { - name: "String" - } - } - } - } -}; - -export const AvailableProvidersList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AvailableProvidersList", - modelProperties: { - countries: { - serializedName: "countries", - required: true, + effectiveSecurityRules: { + serializedName: "effectiveSecurityRules", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AvailableProvidersListCountry" + className: "EffectiveNetworkSecurityRule" } } } @@ -7954,36 +8011,26 @@ export const AvailableProvidersList: coreClient.CompositeMapper = { } }; -export const AvailableProvidersListCountry: coreClient.CompositeMapper = { +export const NetworkInterfaceAssociation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailableProvidersListCountry", + className: "NetworkInterfaceAssociation", modelProperties: { - countryName: { - serializedName: "countryName", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - providers: { - serializedName: "providers", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - states: { - serializedName: "states", + securityRules: { + serializedName: "securityRules", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AvailableProvidersListState" + className: "SecurityRule" } } } @@ -7992,36 +8039,26 @@ export const AvailableProvidersListCountry: coreClient.CompositeMapper = { } }; -export const AvailableProvidersListState: coreClient.CompositeMapper = { +export const SubnetAssociation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailableProvidersListState", + className: "SubnetAssociation", modelProperties: { - stateName: { - serializedName: "stateName", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - providers: { - serializedName: "providers", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - cities: { - serializedName: "cities", + securityRules: { + serializedName: "securityRules", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AvailableProvidersListCity" + className: "SecurityRule" } } } @@ -8030,24 +8067,80 @@ export const AvailableProvidersListState: coreClient.CompositeMapper = { } }; -export const AvailableProvidersListCity: coreClient.CompositeMapper = { +export const PacketCapture: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailableProvidersListCity", + className: "PacketCapture", modelProperties: { - cityName: { - serializedName: "cityName", + target: { + serializedName: "properties.target", + required: true, type: { name: "String" } }, - providers: { - serializedName: "providers", + scope: { + serializedName: "properties.scope", + type: { + name: "Composite", + className: "PacketCaptureMachineScope" + } + }, + targetType: { + serializedName: "properties.targetType", + type: { + name: "Enum", + allowedValues: ["AzureVM", "AzureVMSS"] + } + }, + bytesToCapturePerPacket: { + defaultValue: 0, + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 0 + }, + serializedName: "properties.bytesToCapturePerPacket", + type: { + name: "Number" + } + }, + totalBytesPerSession: { + defaultValue: 1073741824, + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 0 + }, + serializedName: "properties.totalBytesPerSession", + type: { + name: "Number" + } + }, + timeLimitInSeconds: { + defaultValue: 18000, + constraints: { + InclusiveMaximum: 18000, + InclusiveMinimum: 0 + }, + serializedName: "properties.timeLimitInSeconds", + type: { + name: "Number" + } + }, + storageLocation: { + serializedName: "properties.storageLocation", + type: { + name: "Composite", + className: "PacketCaptureStorageLocation" + } + }, + filters: { + serializedName: "properties.filters", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "PacketCaptureFilter" } } } @@ -8056,99 +8149,80 @@ export const AvailableProvidersListCity: coreClient.CompositeMapper = { } }; -export const NetworkConfigurationDiagnosticParameters: coreClient.CompositeMapper = { +export const PacketCaptureParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkConfigurationDiagnosticParameters", + className: "PacketCaptureParameters", modelProperties: { - targetResourceId: { - serializedName: "targetResourceId", + target: { + serializedName: "target", required: true, type: { name: "String" } }, - verbosityLevel: { - serializedName: "verbosityLevel", + scope: { + serializedName: "scope", type: { - name: "String" + name: "Composite", + className: "PacketCaptureMachineScope" } }, - profiles: { - serializedName: "profiles", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkConfigurationDiagnosticProfile" - } - } - } - } - } - } -}; - -export const NetworkConfigurationDiagnosticProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkConfigurationDiagnosticProfile", - modelProperties: { - direction: { - serializedName: "direction", - required: true, + targetType: { + serializedName: "targetType", type: { - name: "String" + name: "Enum", + allowedValues: ["AzureVM", "AzureVMSS"] } }, - protocol: { - serializedName: "protocol", - required: true, + bytesToCapturePerPacket: { + defaultValue: 0, + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 0 + }, + serializedName: "bytesToCapturePerPacket", type: { - name: "String" + name: "Number" } }, - source: { - serializedName: "source", - required: true, + totalBytesPerSession: { + defaultValue: 1073741824, + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 0 + }, + serializedName: "totalBytesPerSession", type: { - name: "String" + name: "Number" } }, - destination: { - serializedName: "destination", - required: true, + timeLimitInSeconds: { + defaultValue: 18000, + constraints: { + InclusiveMaximum: 18000, + InclusiveMinimum: 0 + }, + serializedName: "timeLimitInSeconds", type: { - name: "String" + name: "Number" } }, - destinationPort: { - serializedName: "destinationPort", - required: true, + storageLocation: { + serializedName: "storageLocation", type: { - name: "String" + name: "Composite", + className: "PacketCaptureStorageLocation" } - } - } - } -}; - -export const NetworkConfigurationDiagnosticResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkConfigurationDiagnosticResponse", - modelProperties: { - results: { - serializedName: "results", - readOnly: true, + }, + filters: { + serializedName: "filters", type: { name: "Sequence", element: { type: { name: "Composite", - className: "NetworkConfigurationDiagnosticResult" + className: "PacketCaptureFilter" } } } @@ -8157,111 +8231,96 @@ export const NetworkConfigurationDiagnosticResponse: coreClient.CompositeMapper } }; -export const NetworkConfigurationDiagnosticResult: coreClient.CompositeMapper = { +export const PacketCaptureMachineScope: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkConfigurationDiagnosticResult", + className: "PacketCaptureMachineScope", modelProperties: { - profile: { - serializedName: "profile", + include: { + serializedName: "include", type: { - name: "Composite", - className: "NetworkConfigurationDiagnosticProfile" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - networkSecurityGroupResult: { - serializedName: "networkSecurityGroupResult", + exclude: { + serializedName: "exclude", type: { - name: "Composite", - className: "NetworkSecurityGroupResult" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const NetworkSecurityGroupResult: coreClient.CompositeMapper = { +export const PacketCaptureStorageLocation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkSecurityGroupResult", + className: "PacketCaptureStorageLocation", modelProperties: { - securityRuleAccessResult: { - serializedName: "securityRuleAccessResult", + storageId: { + serializedName: "storageId", type: { name: "String" } }, - evaluatedNetworkSecurityGroups: { - serializedName: "evaluatedNetworkSecurityGroups", - readOnly: true, + storagePath: { + serializedName: "storagePath", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EvaluatedNetworkSecurityGroup" - } - } + name: "String" + } + }, + filePath: { + serializedName: "filePath", + type: { + name: "String" } } } } }; -export const EvaluatedNetworkSecurityGroup: coreClient.CompositeMapper = { +export const PacketCaptureFilter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EvaluatedNetworkSecurityGroup", + className: "PacketCaptureFilter", modelProperties: { - networkSecurityGroupId: { - serializedName: "networkSecurityGroupId", + protocol: { + defaultValue: "Any", + serializedName: "protocol", type: { name: "String" } }, - appliedTo: { - serializedName: "appliedTo", + localIPAddress: { + serializedName: "localIPAddress", type: { name: "String" } }, - matchedRule: { - serializedName: "matchedRule", + remoteIPAddress: { + serializedName: "remoteIPAddress", type: { - name: "Composite", - className: "MatchedRule" + name: "String" } }, - rulesEvaluationResult: { - serializedName: "rulesEvaluationResult", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkSecurityRulesEvaluationResult" - } - } - } - } - } - } -}; - -export const MatchedRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MatchedRule", - modelProperties: { - ruleName: { - serializedName: "ruleName", + localPort: { + serializedName: "localPort", type: { name: "String" } }, - action: { - serializedName: "action", + remotePort: { + serializedName: "remotePort", type: { name: "String" } @@ -8270,151 +8329,107 @@ export const MatchedRule: coreClient.CompositeMapper = { } }; -export const NetworkSecurityRulesEvaluationResult: coreClient.CompositeMapper = { +export const PacketCaptureResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkSecurityRulesEvaluationResult", + className: "PacketCaptureResult", modelProperties: { name: { serializedName: "name", + readOnly: true, type: { name: "String" } }, - protocolMatched: { - serializedName: "protocolMatched", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - sourceMatched: { - serializedName: "sourceMatched", + etag: { + serializedName: "etag", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - sourcePortMatched: { - serializedName: "sourcePortMatched", + target: { + serializedName: "properties.target", type: { - name: "Boolean" + name: "String" } }, - destinationMatched: { - serializedName: "destinationMatched", + scope: { + serializedName: "properties.scope", type: { - name: "Boolean" + name: "Composite", + className: "PacketCaptureMachineScope" } }, - destinationPortMatched: { - serializedName: "destinationPortMatched", + targetType: { + serializedName: "properties.targetType", type: { - name: "Boolean" - } - } - } - } -}; - -export const ConnectionMonitor: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConnectionMonitor", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" + name: "Enum", + allowedValues: ["AzureVM", "AzureVMSS"] } }, - tags: { - serializedName: "tags", + bytesToCapturePerPacket: { + defaultValue: 0, + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 0 + }, + serializedName: "properties.bytesToCapturePerPacket", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Number" } }, - source: { - serializedName: "properties.source", - type: { - name: "Composite", - className: "ConnectionMonitorSource" - } - }, - destination: { - serializedName: "properties.destination", - type: { - name: "Composite", - className: "ConnectionMonitorDestination" - } - }, - autoStart: { - defaultValue: true, - serializedName: "properties.autoStart", - type: { - name: "Boolean" - } - }, - monitoringIntervalInSeconds: { - defaultValue: 60, + totalBytesPerSession: { + defaultValue: 1073741824, constraints: { - InclusiveMaximum: 1800, - InclusiveMinimum: 30 + InclusiveMaximum: 4294967295, + InclusiveMinimum: 0 }, - serializedName: "properties.monitoringIntervalInSeconds", + serializedName: "properties.totalBytesPerSession", type: { name: "Number" } }, - endpoints: { - serializedName: "properties.endpoints", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectionMonitorEndpoint" - } - } - } - }, - testConfigurations: { - serializedName: "properties.testConfigurations", + timeLimitInSeconds: { + defaultValue: 18000, + constraints: { + InclusiveMaximum: 18000, + InclusiveMinimum: 0 + }, + serializedName: "properties.timeLimitInSeconds", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectionMonitorTestConfiguration" - } - } + name: "Number" } }, - testGroups: { - serializedName: "properties.testGroups", + storageLocation: { + serializedName: "properties.storageLocation", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectionMonitorTestGroup" - } - } + name: "Composite", + className: "PacketCaptureStorageLocation" } }, - outputs: { - serializedName: "properties.outputs", + filters: { + serializedName: "properties.filters", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ConnectionMonitorOutput" + className: "PacketCaptureFilter" } } } }, - notes: { - serializedName: "properties.notes", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } @@ -8423,231 +8438,183 @@ export const ConnectionMonitor: coreClient.CompositeMapper = { } }; -export const ConnectionMonitorParameters: coreClient.CompositeMapper = { +export const PacketCaptureQueryStatusResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectionMonitorParameters", + className: "PacketCaptureQueryStatusResult", modelProperties: { - source: { - serializedName: "source", - type: { - name: "Composite", - className: "ConnectionMonitorSource" - } - }, - destination: { - serializedName: "destination", + name: { + serializedName: "name", type: { - name: "Composite", - className: "ConnectionMonitorDestination" + name: "String" } }, - autoStart: { - defaultValue: true, - serializedName: "autoStart", + id: { + serializedName: "id", type: { - name: "Boolean" + name: "String" } }, - monitoringIntervalInSeconds: { - defaultValue: 60, - constraints: { - InclusiveMaximum: 1800, - InclusiveMinimum: 30 - }, - serializedName: "monitoringIntervalInSeconds", + captureStartTime: { + serializedName: "captureStartTime", type: { - name: "Number" + name: "DateTime" } }, - endpoints: { - serializedName: "endpoints", + packetCaptureStatus: { + serializedName: "packetCaptureStatus", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectionMonitorEndpoint" - } - } + name: "String" } }, - testConfigurations: { - serializedName: "testConfigurations", + stopReason: { + serializedName: "stopReason", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectionMonitorTestConfiguration" - } - } + name: "String" } }, - testGroups: { - serializedName: "testGroups", + packetCaptureError: { + serializedName: "packetCaptureError", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ConnectionMonitorTestGroup" + name: "String" } } } - }, - outputs: { - serializedName: "outputs", + } + } + } +}; + +export const PacketCaptureListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PacketCaptureListResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ConnectionMonitorOutput" + className: "PacketCaptureResult" } } } - }, - notes: { - serializedName: "notes", - type: { - name: "String" - } } } } }; -export const ConnectionMonitorSource: coreClient.CompositeMapper = { +export const TroubleshootingParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectionMonitorSource", + className: "TroubleshootingParameters", modelProperties: { - resourceId: { - serializedName: "resourceId", + targetResourceId: { + serializedName: "targetResourceId", required: true, type: { name: "String" } }, - port: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 0 - }, - serializedName: "port", + storageId: { + serializedName: "properties.storageId", + required: true, type: { - name: "Number" + name: "String" + } + }, + storagePath: { + serializedName: "properties.storagePath", + required: true, + type: { + name: "String" } } } } }; -export const ConnectionMonitorDestination: coreClient.CompositeMapper = { +export const TroubleshootingResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectionMonitorDestination", + className: "TroubleshootingResult", modelProperties: { - resourceId: { - serializedName: "resourceId", + startTime: { + serializedName: "startTime", type: { - name: "String" + name: "DateTime" } }, - address: { - serializedName: "address", + endTime: { + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + code: { + serializedName: "code", type: { name: "String" } }, - port: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 0 - }, - serializedName: "port", + results: { + serializedName: "results", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TroubleshootingDetails" + } + } } } } } }; -export const ConnectionMonitorEndpoint: coreClient.CompositeMapper = { +export const TroubleshootingDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectionMonitorEndpoint", + className: "TroubleshootingDetails", modelProperties: { - name: { - serializedName: "name", - required: true, + id: { + serializedName: "id", type: { name: "String" } }, - type: { - serializedName: "type", + reasonType: { + serializedName: "reasonType", type: { name: "String" } }, - resourceId: { - serializedName: "resourceId", + summary: { + serializedName: "summary", type: { name: "String" } }, - address: { - serializedName: "address", + detail: { + serializedName: "detail", type: { name: "String" } }, - filter: { - serializedName: "filter", - type: { - name: "Composite", - className: "ConnectionMonitorEndpointFilter" - } - }, - scope: { - serializedName: "scope", - type: { - name: "Composite", - className: "ConnectionMonitorEndpointScope" - } - }, - coverageLevel: { - serializedName: "coverageLevel", - type: { - name: "String" - } - } - } - } -}; - -export const ConnectionMonitorEndpointFilter: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConnectionMonitorEndpointFilter", - modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, - items: { - serializedName: "items", + recommendedActions: { + serializedName: "recommendedActions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ConnectionMonitorEndpointFilterItem" + className: "TroubleshootingRecommendedActions" } } } @@ -8656,67 +8623,47 @@ export const ConnectionMonitorEndpointFilter: coreClient.CompositeMapper = { } }; -export const ConnectionMonitorEndpointFilterItem: coreClient.CompositeMapper = { +export const TroubleshootingRecommendedActions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectionMonitorEndpointFilterItem", + className: "TroubleshootingRecommendedActions", modelProperties: { - type: { - serializedName: "type", + actionId: { + serializedName: "actionId", type: { name: "String" } }, - address: { - serializedName: "address", + actionText: { + serializedName: "actionText", type: { name: "String" } - } - } - } -}; - -export const ConnectionMonitorEndpointScope: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConnectionMonitorEndpointScope", - modelProperties: { - include: { - serializedName: "include", + }, + actionUri: { + serializedName: "actionUri", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectionMonitorEndpointScopeItem" - } - } + name: "String" } }, - exclude: { - serializedName: "exclude", + actionUriText: { + serializedName: "actionUriText", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectionMonitorEndpointScopeItem" - } - } + name: "String" } } } } }; -export const ConnectionMonitorEndpointScopeItem: coreClient.CompositeMapper = { +export const QueryTroubleshootingParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectionMonitorEndpointScopeItem", + className: "QueryTroubleshootingParameters", modelProperties: { - address: { - serializedName: "address", + targetResourceId: { + serializedName: "targetResourceId", + required: true, type: { name: "String" } @@ -8725,134 +8672,127 @@ export const ConnectionMonitorEndpointScopeItem: coreClient.CompositeMapper = { } }; -export const ConnectionMonitorTestConfiguration: coreClient.CompositeMapper = { +export const FlowLogInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectionMonitorTestConfiguration", + className: "FlowLogInformation", modelProperties: { - name: { - serializedName: "name", + targetResourceId: { + serializedName: "targetResourceId", required: true, type: { name: "String" } }, - testFrequencySec: { - serializedName: "testFrequencySec", + flowAnalyticsConfiguration: { + serializedName: "flowAnalyticsConfiguration", type: { - name: "Number" + name: "Composite", + className: "TrafficAnalyticsProperties" } }, - protocol: { - serializedName: "protocol", + storageId: { + serializedName: "properties.storageId", required: true, type: { name: "String" } }, - preferredIPVersion: { - serializedName: "preferredIPVersion", - type: { - name: "String" - } - }, - httpConfiguration: { - serializedName: "httpConfiguration", + enabled: { + serializedName: "properties.enabled", + required: true, type: { - name: "Composite", - className: "ConnectionMonitorHttpConfiguration" + name: "Boolean" } }, - tcpConfiguration: { - serializedName: "tcpConfiguration", + retentionPolicy: { + serializedName: "properties.retentionPolicy", type: { name: "Composite", - className: "ConnectionMonitorTcpConfiguration" + className: "RetentionPolicyParameters" } }, - icmpConfiguration: { - serializedName: "icmpConfiguration", + format: { + serializedName: "properties.format", type: { name: "Composite", - className: "ConnectionMonitorIcmpConfiguration" + className: "FlowLogFormatParameters" } - }, - successThreshold: { - serializedName: "successThreshold", + } + } + } +}; + +export const FlowLogStatusParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FlowLogStatusParameters", + modelProperties: { + targetResourceId: { + serializedName: "targetResourceId", + required: true, type: { - name: "Composite", - className: "ConnectionMonitorSuccessThreshold" + name: "String" } } } } }; -export const ConnectionMonitorHttpConfiguration: coreClient.CompositeMapper = { +export const ConnectivityParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectionMonitorHttpConfiguration", + className: "ConnectivityParameters", modelProperties: { - port: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 0 - }, - serializedName: "port", + source: { + serializedName: "source", type: { - name: "Number" + name: "Composite", + className: "ConnectivitySource" } }, - method: { - serializedName: "method", + destination: { + serializedName: "destination", type: { - name: "String" + name: "Composite", + className: "ConnectivityDestination" } }, - path: { - serializedName: "path", + protocol: { + serializedName: "protocol", type: { name: "String" } }, - requestHeaders: { - serializedName: "requestHeaders", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HttpHeader" - } - } - } - }, - validStatusCodeRanges: { - serializedName: "validStatusCodeRanges", + protocolConfiguration: { + serializedName: "protocolConfiguration", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "ProtocolConfiguration" } }, - preferHttps: { - serializedName: "preferHTTPS", + preferredIPVersion: { + serializedName: "preferredIPVersion", type: { - name: "Boolean" + name: "String" } } } } }; -export const ConnectionMonitorTcpConfiguration: coreClient.CompositeMapper = { +export const ConnectivitySource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectionMonitorTcpConfiguration", + className: "ConnectivitySource", modelProperties: { + resourceId: { + serializedName: "resourceId", + required: true, + type: { + name: "String" + } + }, port: { constraints: { InclusiveMaximum: 65535, @@ -8862,51 +8802,34 @@ export const ConnectionMonitorTcpConfiguration: coreClient.CompositeMapper = { type: { name: "Number" } - }, - disableTraceRoute: { - serializedName: "disableTraceRoute", - type: { - name: "Boolean" - } - }, - destinationPortBehavior: { - serializedName: "destinationPortBehavior", - type: { - name: "String" - } } } } }; -export const ConnectionMonitorIcmpConfiguration: coreClient.CompositeMapper = { +export const ConnectivityDestination: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectionMonitorIcmpConfiguration", + className: "ConnectivityDestination", modelProperties: { - disableTraceRoute: { - serializedName: "disableTraceRoute", + resourceId: { + serializedName: "resourceId", type: { - name: "Boolean" + name: "String" } - } - } - } -}; - -export const ConnectionMonitorSuccessThreshold: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConnectionMonitorSuccessThreshold", - modelProperties: { - checksFailedPercent: { - serializedName: "checksFailedPercent", + }, + address: { + serializedName: "address", type: { - name: "Number" + name: "String" } }, - roundTripTimeMs: { - serializedName: "roundTripTimeMs", + port: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 0 + }, + serializedName: "port", type: { name: "Number" } @@ -8915,56 +8838,52 @@ export const ConnectionMonitorSuccessThreshold: coreClient.CompositeMapper = { } }; -export const ConnectionMonitorTestGroup: coreClient.CompositeMapper = { +export const ProtocolConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectionMonitorTestGroup", + className: "ProtocolConfiguration", modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - disable: { - serializedName: "disable", + httpConfiguration: { + serializedName: "HTTPConfiguration", type: { - name: "Boolean" + name: "Composite", + className: "HttpConfiguration" } - }, - testConfigurations: { - serializedName: "testConfigurations", - required: true, + } + } + } +}; + +export const HttpConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HttpConfiguration", + modelProperties: { + method: { + serializedName: "method", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - sources: { - serializedName: "sources", - required: true, + headers: { + serializedName: "headers", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "HttpHeader" } } } }, - destinations: { - serializedName: "destinations", - required: true, + validStatusCodes: { + serializedName: "validStatusCodes", type: { name: "Sequence", element: { type: { - name: "String" + name: "Number" } } } @@ -8973,322 +8892,310 @@ export const ConnectionMonitorTestGroup: coreClient.CompositeMapper = { } }; -export const ConnectionMonitorOutput: coreClient.CompositeMapper = { +export const HttpHeader: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectionMonitorOutput", + className: "HttpHeader", modelProperties: { - type: { - serializedName: "type", + name: { + serializedName: "name", type: { name: "String" } }, - workspaceSettings: { - serializedName: "workspaceSettings", + value: { + serializedName: "value", type: { - name: "Composite", - className: "ConnectionMonitorWorkspaceSettings" + name: "String" } } } } }; -export const ConnectionMonitorWorkspaceSettings: coreClient.CompositeMapper = { +export const ConnectivityInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectionMonitorWorkspaceSettings", + className: "ConnectivityInformation", modelProperties: { - workspaceResourceId: { - serializedName: "workspaceResourceId", + hops: { + serializedName: "hops", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectivityHop" + } + } } - } - } - } -}; - -export const ConnectionMonitorResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConnectionMonitorResult", - modelProperties: { - name: { - serializedName: "name", + }, + connectionStatus: { + serializedName: "connectionStatus", readOnly: true, type: { name: "String" } }, - id: { - serializedName: "id", + avgLatencyInMs: { + serializedName: "avgLatencyInMs", readOnly: true, type: { - name: "String" + name: "Number" } }, - etag: { - serializedName: "etag", + minLatencyInMs: { + serializedName: "minLatencyInMs", readOnly: true, type: { - name: "String" + name: "Number" } }, - type: { - serializedName: "type", + maxLatencyInMs: { + serializedName: "maxLatencyInMs", readOnly: true, type: { - name: "String" + name: "Number" } }, - location: { - serializedName: "location", + probesSent: { + serializedName: "probesSent", + readOnly: true, type: { - name: "String" + name: "Number" } }, - tags: { - serializedName: "tags", + probesFailed: { + serializedName: "probesFailed", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Number" + } + } + } + } +}; + +export const ConnectivityHop: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConnectivityHop", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" } }, - source: { - serializedName: "properties.source", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Composite", - className: "ConnectionMonitorSource" + name: "String" } }, - destination: { - serializedName: "properties.destination", + address: { + serializedName: "address", + readOnly: true, type: { - name: "Composite", - className: "ConnectionMonitorDestination" + name: "String" } }, - autoStart: { - defaultValue: true, - serializedName: "properties.autoStart", + resourceId: { + serializedName: "resourceId", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - monitoringIntervalInSeconds: { - defaultValue: 60, - constraints: { - InclusiveMaximum: 1800, - InclusiveMinimum: 30 - }, - serializedName: "properties.monitoringIntervalInSeconds", + nextHopIds: { + serializedName: "nextHopIds", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - endpoints: { - serializedName: "properties.endpoints", + previousHopIds: { + serializedName: "previousHopIds", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ConnectionMonitorEndpoint" + name: "String" } } } }, - testConfigurations: { - serializedName: "properties.testConfigurations", + links: { + serializedName: "links", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ConnectionMonitorTestConfiguration" + className: "HopLink" } } } }, - testGroups: { - serializedName: "properties.testGroups", + previousLinks: { + serializedName: "previousLinks", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ConnectionMonitorTestGroup" + className: "HopLink" } } } }, - outputs: { - serializedName: "properties.outputs", + issues: { + serializedName: "issues", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ConnectionMonitorOutput" + className: "ConnectivityIssue" } } } - }, - notes: { - serializedName: "properties.notes", + } + } + } +}; + +export const HopLink: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HopLink", + modelProperties: { + nextHopId: { + serializedName: "nextHopId", + readOnly: true, type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - monitoringStatus: { - serializedName: "properties.monitoringStatus", + linkType: { + serializedName: "linkType", readOnly: true, type: { name: "String" } }, - connectionMonitorType: { - serializedName: "properties.connectionMonitorType", + issues: { + serializedName: "issues", readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ConnectionMonitorQueryResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConnectionMonitorQueryResult", - modelProperties: { - sourceStatus: { - serializedName: "sourceStatus", - type: { - name: "String" - } - }, - states: { - serializedName: "states", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ConnectionStateSnapshot" + className: "ConnectivityIssue" } } } - } - } - } -}; - -export const ConnectionStateSnapshot: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConnectionStateSnapshot", - modelProperties: { - connectionState: { - serializedName: "connectionState", - type: { - name: "String" - } - }, - startTime: { - serializedName: "startTime", - type: { - name: "DateTime" - } }, - endTime: { - serializedName: "endTime", + context: { + serializedName: "context", + readOnly: true, type: { - name: "DateTime" + name: "Dictionary", + value: { type: { name: "String" } } } }, - evaluationState: { - serializedName: "evaluationState", + resourceId: { + serializedName: "resourceId", + readOnly: true, type: { name: "String" } }, - avgLatencyInMs: { + roundTripTimeMin: { constraints: { InclusiveMaximum: 4294967295, InclusiveMinimum: 0 }, - serializedName: "avgLatencyInMs", + serializedName: "properties.roundTripTimeMin", + readOnly: true, type: { name: "Number" } }, - minLatencyInMs: { + roundTripTimeAvg: { constraints: { InclusiveMaximum: 4294967295, InclusiveMinimum: 0 }, - serializedName: "minLatencyInMs", + serializedName: "properties.roundTripTimeAvg", + readOnly: true, type: { name: "Number" } }, - maxLatencyInMs: { + roundTripTimeMax: { constraints: { InclusiveMaximum: 4294967295, InclusiveMinimum: 0 }, - serializedName: "maxLatencyInMs", + serializedName: "properties.roundTripTimeMax", + readOnly: true, type: { name: "Number" } + } + } + } +}; + +export const ConnectivityIssue: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConnectivityIssue", + modelProperties: { + origin: { + serializedName: "origin", + readOnly: true, + type: { + name: "String" + } }, - probesSent: { - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 - }, - serializedName: "probesSent", + severity: { + serializedName: "severity", + readOnly: true, type: { - name: "Number" + name: "String" } }, - probesFailed: { - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 - }, - serializedName: "probesFailed", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Number" + name: "String" } }, - hops: { - serializedName: "hops", + context: { + serializedName: "context", readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ConnectivityHop" + name: "Dictionary", + value: { type: { name: "String" } } } } } @@ -9297,74 +9204,78 @@ export const ConnectionStateSnapshot: coreClient.CompositeMapper = { } }; -export const ConnectionMonitorListResult: coreClient.CompositeMapper = { +export const AzureReachabilityReportParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectionMonitorListResult", + className: "AzureReachabilityReportParameters", modelProperties: { - value: { - serializedName: "value", + providerLocation: { + serializedName: "providerLocation", + type: { + name: "Composite", + className: "AzureReachabilityReportLocation" + } + }, + providers: { + serializedName: "providers", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ConnectionMonitorResult" + name: "String" } } } - } - } - } -}; - -export const FlowLogListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FlowLogListResult", - modelProperties: { - value: { - serializedName: "value", + }, + azureLocations: { + serializedName: "azureLocations", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "FlowLog" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + startTime: { + serializedName: "startTime", + required: true, type: { - name: "String" + name: "DateTime" + } + }, + endTime: { + serializedName: "endTime", + required: true, + type: { + name: "DateTime" } } } } }; -export const OperationListResult: coreClient.CompositeMapper = { +export const AzureReachabilityReportLocation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationListResult", + className: "AzureReachabilityReportLocation", modelProperties: { - value: { - serializedName: "value", + country: { + serializedName: "country", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + state: { + serializedName: "state", + type: { + name: "String" + } + }, + city: { + serializedName: "city", type: { name: "String" } @@ -9373,45 +9284,46 @@ export const OperationListResult: coreClient.CompositeMapper = { } }; -export const Operation: coreClient.CompositeMapper = { +export const AzureReachabilityReport: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Operation", + className: "AzureReachabilityReport", modelProperties: { - name: { - serializedName: "name", + aggregationLevel: { + serializedName: "aggregationLevel", + required: true, type: { name: "String" } }, - display: { - serializedName: "display", + providerLocation: { + serializedName: "providerLocation", type: { name: "Composite", - className: "OperationDisplay" - } - }, - origin: { - serializedName: "origin", - type: { - name: "String" + className: "AzureReachabilityReportLocation" } }, - serviceSpecification: { - serializedName: "properties.serviceSpecification", + reachabilityReport: { + serializedName: "reachabilityReport", + required: true, type: { - name: "Composite", - className: "OperationPropertiesFormatServiceSpecification" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureReachabilityReportItem" + } + } } } } } }; -export const OperationDisplay: coreClient.CompositeMapper = { +export const AzureReachabilityReportItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDisplay", + className: "AzureReachabilityReportItem", modelProperties: { provider: { serializedName: "provider", @@ -9419,267 +9331,286 @@ export const OperationDisplay: coreClient.CompositeMapper = { name: "String" } }, - resource: { - serializedName: "resource", - type: { - name: "String" - } - }, - operation: { - serializedName: "operation", + azureLocation: { + serializedName: "azureLocation", type: { name: "String" } }, - description: { - serializedName: "description", + latencies: { + serializedName: "latencies", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureReachabilityReportLatencyInfo" + } + } } } } } }; -export const OperationPropertiesFormatServiceSpecification: coreClient.CompositeMapper = { +export const AzureReachabilityReportLatencyInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationPropertiesFormatServiceSpecification", + className: "AzureReachabilityReportLatencyInfo", modelProperties: { - metricSpecifications: { - serializedName: "metricSpecifications", + timeStamp: { + serializedName: "timeStamp", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricSpecification" - } - } + name: "DateTime" } }, - logSpecifications: { - serializedName: "logSpecifications", + score: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 1 + }, + serializedName: "score", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LogSpecification" - } - } + name: "Number" } } } } }; -export const MetricSpecification: coreClient.CompositeMapper = { +export const AvailableProvidersListParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricSpecification", + className: "AvailableProvidersListParameters", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", + azureLocations: { + serializedName: "azureLocations", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - displayDescription: { - serializedName: "displayDescription", + country: { + serializedName: "country", type: { name: "String" } }, - unit: { - serializedName: "unit", + state: { + serializedName: "state", type: { name: "String" } }, - aggregationType: { - serializedName: "aggregationType", + city: { + serializedName: "city", type: { name: "String" } - }, - availabilities: { - serializedName: "availabilities", + } + } + } +}; + +export const AvailableProvidersList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AvailableProvidersList", + modelProperties: { + countries: { + serializedName: "countries", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Availability" + className: "AvailableProvidersListCountry" } } } - }, - enableRegionalMdmAccount: { - serializedName: "enableRegionalMdmAccount", - type: { - name: "Boolean" - } - }, - fillGapWithZero: { - serializedName: "fillGapWithZero", - type: { - name: "Boolean" - } - }, - metricFilterPattern: { - serializedName: "metricFilterPattern", + } + } + } +}; + +export const AvailableProvidersListCountry: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AvailableProvidersListCountry", + modelProperties: { + countryName: { + serializedName: "countryName", type: { name: "String" } }, - dimensions: { - serializedName: "dimensions", + providers: { + serializedName: "providers", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "Dimension" + name: "String" } } } }, - isInternal: { - serializedName: "isInternal", - type: { - name: "Boolean" - } - }, - sourceMdmAccount: { - serializedName: "sourceMdmAccount", - type: { - name: "String" - } - }, - sourceMdmNamespace: { - serializedName: "sourceMdmNamespace", - type: { - name: "String" - } - }, - resourceIdDimensionNameOverride: { - serializedName: "resourceIdDimensionNameOverride", + states: { + serializedName: "states", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AvailableProvidersListState" + } + } } } } } }; -export const Availability: coreClient.CompositeMapper = { +export const AvailableProvidersListState: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Availability", + className: "AvailableProvidersListState", modelProperties: { - timeGrain: { - serializedName: "timeGrain", + stateName: { + serializedName: "stateName", type: { name: "String" } }, - retention: { - serializedName: "retention", + providers: { + serializedName: "providers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - blobDuration: { - serializedName: "blobDuration", + cities: { + serializedName: "cities", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AvailableProvidersListCity" + } + } } } } } }; -export const Dimension: coreClient.CompositeMapper = { +export const AvailableProvidersListCity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Dimension", + className: "AvailableProvidersListCity", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", + cityName: { + serializedName: "cityName", type: { name: "String" } }, - internalName: { - serializedName: "internalName", + providers: { + serializedName: "providers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const LogSpecification: coreClient.CompositeMapper = { +export const NetworkConfigurationDiagnosticParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogSpecification", + className: "NetworkConfigurationDiagnosticParameters", modelProperties: { - name: { - serializedName: "name", + targetResourceId: { + serializedName: "targetResourceId", + required: true, type: { name: "String" } }, - displayName: { - serializedName: "displayName", + verbosityLevel: { + serializedName: "verbosityLevel", type: { name: "String" } }, - blobDuration: { - serializedName: "blobDuration", + profiles: { + serializedName: "profiles", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkConfigurationDiagnosticProfile" + } + } } } } } }; -export const PrivateEndpointListResult: coreClient.CompositeMapper = { +export const NetworkConfigurationDiagnosticProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointListResult", + className: "NetworkConfigurationDiagnosticProfile", modelProperties: { - value: { - serializedName: "value", + direction: { + serializedName: "direction", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpoint" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + protocol: { + serializedName: "protocol", + required: true, + type: { + name: "String" + } + }, + source: { + serializedName: "source", + required: true, + type: { + name: "String" + } + }, + destination: { + serializedName: "destination", + required: true, + type: { + name: "String" + } + }, + destinationPort: { + serializedName: "destinationPort", + required: true, type: { name: "String" } @@ -9688,99 +9619,71 @@ export const PrivateEndpointListResult: coreClient.CompositeMapper = { } }; -export const AvailablePrivateEndpointTypesResult: coreClient.CompositeMapper = { +export const NetworkConfigurationDiagnosticResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailablePrivateEndpointTypesResult", + className: "NetworkConfigurationDiagnosticResponse", modelProperties: { - value: { - serializedName: "value", + results: { + serializedName: "results", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AvailablePrivateEndpointType" + className: "NetworkConfigurationDiagnosticResult" } } } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } } } } }; -export const AvailablePrivateEndpointType: coreClient.CompositeMapper = { +export const NetworkConfigurationDiagnosticResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailablePrivateEndpointType", + className: "NetworkConfigurationDiagnosticResult", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - id: { - serializedName: "id", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "String" - } - }, - resourceName: { - serializedName: "resourceName", + profile: { + serializedName: "profile", type: { - name: "String" + name: "Composite", + className: "NetworkConfigurationDiagnosticProfile" } }, - displayName: { - serializedName: "displayName", + networkSecurityGroupResult: { + serializedName: "networkSecurityGroupResult", type: { - name: "String" + name: "Composite", + className: "NetworkSecurityGroupResult" } } } } }; -export const PrivateDnsZoneConfig: coreClient.CompositeMapper = { +export const NetworkSecurityGroupResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateDnsZoneConfig", + className: "NetworkSecurityGroupResult", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - privateDnsZoneId: { - serializedName: "properties.privateDnsZoneId", + securityRuleAccessResult: { + serializedName: "securityRuleAccessResult", type: { name: "String" } }, - recordSets: { - serializedName: "properties.recordSets", + evaluatedNetworkSecurityGroups: { + serializedName: "evaluatedNetworkSecurityGroups", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "RecordSet" + className: "EvaluatedNetworkSecurityGroup" } } } @@ -9789,49 +9692,39 @@ export const PrivateDnsZoneConfig: coreClient.CompositeMapper = { } }; -export const RecordSet: coreClient.CompositeMapper = { +export const EvaluatedNetworkSecurityGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecordSet", + className: "EvaluatedNetworkSecurityGroup", modelProperties: { - recordType: { - serializedName: "recordType", + networkSecurityGroupId: { + serializedName: "networkSecurityGroupId", type: { name: "String" } }, - recordSetName: { - serializedName: "recordSetName", + appliedTo: { + serializedName: "appliedTo", type: { name: "String" } }, - fqdn: { - serializedName: "fqdn", + matchedRule: { + serializedName: "matchedRule", type: { - name: "String" + name: "Composite", + className: "MatchedRule" } }, - provisioningState: { - serializedName: "provisioningState", + rulesEvaluationResult: { + serializedName: "rulesEvaluationResult", readOnly: true, - type: { - name: "String" - } - }, - ttl: { - serializedName: "ttl", - type: { - name: "Number" - } - }, - ipAddresses: { - serializedName: "ipAddresses", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "NetworkSecurityRulesEvaluationResult" } } } @@ -9840,26 +9733,19 @@ export const RecordSet: coreClient.CompositeMapper = { } }; -export const PrivateDnsZoneGroupListResult: coreClient.CompositeMapper = { +export const MatchedRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateDnsZoneGroupListResult", + className: "MatchedRule", modelProperties: { - value: { - serializedName: "value", + ruleName: { + serializedName: "ruleName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateDnsZoneGroup" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + action: { + serializedName: "action", type: { name: "String" } @@ -9868,217 +9754,151 @@ export const PrivateDnsZoneGroupListResult: coreClient.CompositeMapper = { } }; -export const PrivateLinkServiceListResult: coreClient.CompositeMapper = { +export const NetworkSecurityRulesEvaluationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkServiceListResult", + className: "NetworkSecurityRulesEvaluationResult", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateLinkService" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + protocolMatched: { + serializedName: "protocolMatched", type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionListResult", - modelProperties: { - value: { - serializedName: "value", + }, + sourceMatched: { + serializedName: "sourceMatched", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } + name: "Boolean" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + sourcePortMatched: { + serializedName: "sourcePortMatched", type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const CheckPrivateLinkServiceVisibilityRequest: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CheckPrivateLinkServiceVisibilityRequest", - modelProperties: { - privateLinkServiceAlias: { - serializedName: "privateLinkServiceAlias", + }, + destinationMatched: { + serializedName: "destinationMatched", type: { - name: "String" + name: "Boolean" + } + }, + destinationPortMatched: { + serializedName: "destinationPortMatched", + type: { + name: "Boolean" } } } } }; -export const PrivateLinkServiceVisibility: coreClient.CompositeMapper = { +export const ConnectionMonitor: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkServiceVisibility", + className: "ConnectionMonitor", modelProperties: { - visible: { - serializedName: "visible", + location: { + serializedName: "location", type: { - name: "Boolean" + name: "String" } - } - } - } -}; - -export const AutoApprovedPrivateLinkServicesResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutoApprovedPrivateLinkServicesResult", - modelProperties: { - value: { - serializedName: "value", + }, + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutoApprovedPrivateLinkService" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + source: { + serializedName: "properties.source", type: { - name: "String" + name: "Composite", + className: "ConnectionMonitorSource" } - } - } - } -}; - -export const AutoApprovedPrivateLinkService: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutoApprovedPrivateLinkService", - modelProperties: { - privateLinkService: { - serializedName: "privateLinkService", + }, + destination: { + serializedName: "properties.destination", type: { - name: "String" + name: "Composite", + className: "ConnectionMonitorDestination" } - } - } - } -}; - -export const PublicIPPrefixSku: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PublicIPPrefixSku", - modelProperties: { - name: { - serializedName: "name", + }, + autoStart: { + defaultValue: true, + serializedName: "properties.autoStart", type: { - name: "String" + name: "Boolean" } }, - tier: { - serializedName: "tier", + monitoringIntervalInSeconds: { + defaultValue: 60, + constraints: { + InclusiveMaximum: 1800, + InclusiveMinimum: 30 + }, + serializedName: "properties.monitoringIntervalInSeconds", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const ReferencedPublicIpAddress: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ReferencedPublicIpAddress", - modelProperties: { - id: { - serializedName: "id", + }, + endpoints: { + serializedName: "properties.endpoints", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectionMonitorEndpoint" + } + } } - } - } - } -}; - -export const PublicIPPrefixListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PublicIPPrefixListResult", - modelProperties: { - value: { - serializedName: "value", + }, + testConfigurations: { + serializedName: "properties.testConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PublicIPPrefix" + className: "ConnectionMonitorTestConfiguration" } } } }, - nextLink: { - serializedName: "nextLink", + testGroups: { + serializedName: "properties.testGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectionMonitorTestGroup" + } + } } - } - } - } -}; - -export const RouteFilterListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RouteFilterListResult", - modelProperties: { - value: { - serializedName: "value", + }, + outputs: { + serializedName: "properties.outputs", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RouteFilter" + className: "ConnectionMonitorOutput" } } } }, - nextLink: { - serializedName: "nextLink", + notes: { + serializedName: "properties.notes", type: { name: "String" } @@ -10087,79 +9907,93 @@ export const RouteFilterListResult: coreClient.CompositeMapper = { } }; -export const RouteFilterRuleListResult: coreClient.CompositeMapper = { +export const ConnectionMonitorParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RouteFilterRuleListResult", + className: "ConnectionMonitorParameters", modelProperties: { - value: { - serializedName: "value", + source: { + serializedName: "source", + type: { + name: "Composite", + className: "ConnectionMonitorSource" + } + }, + destination: { + serializedName: "destination", + type: { + name: "Composite", + className: "ConnectionMonitorDestination" + } + }, + autoStart: { + defaultValue: true, + serializedName: "autoStart", + type: { + name: "Boolean" + } + }, + monitoringIntervalInSeconds: { + defaultValue: 60, + constraints: { + InclusiveMaximum: 1800, + InclusiveMinimum: 30 + }, + serializedName: "monitoringIntervalInSeconds", + type: { + name: "Number" + } + }, + endpoints: { + serializedName: "endpoints", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RouteFilterRule" + className: "ConnectionMonitorEndpoint" } } } }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const RouteTableListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RouteTableListResult", - modelProperties: { - value: { - serializedName: "value", + testConfigurations: { + serializedName: "testConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RouteTable" + className: "ConnectionMonitorTestConfiguration" } } } }, - nextLink: { - serializedName: "nextLink", + testGroups: { + serializedName: "testGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectionMonitorTestGroup" + } + } } - } - } - } -}; - -export const RouteListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RouteListResult", - modelProperties: { - value: { - serializedName: "value", + }, + outputs: { + serializedName: "outputs", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Route" + className: "ConnectionMonitorOutput" } } } }, - nextLink: { - serializedName: "nextLink", + notes: { + serializedName: "notes", type: { name: "String" } @@ -10168,102 +10002,109 @@ export const RouteListResult: coreClient.CompositeMapper = { } }; -export const SecurityPartnerProviderListResult: coreClient.CompositeMapper = { +export const ConnectionMonitorSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityPartnerProviderListResult", + className: "ConnectionMonitorSource", modelProperties: { - value: { - serializedName: "value", + resourceId: { + serializedName: "resourceId", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecurityPartnerProvider" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + port: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 0 + }, + serializedName: "port", type: { - name: "String" + name: "Number" } } } } }; -export const BgpServiceCommunityListResult: coreClient.CompositeMapper = { +export const ConnectionMonitorDestination: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BgpServiceCommunityListResult", + className: "ConnectionMonitorDestination", modelProperties: { - value: { - serializedName: "value", + resourceId: { + serializedName: "resourceId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BgpServiceCommunity" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + address: { + serializedName: "address", type: { name: "String" } + }, + port: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 0 + }, + serializedName: "port", + type: { + name: "Number" + } } } } }; -export const BGPCommunity: coreClient.CompositeMapper = { +export const ConnectionMonitorEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BGPCommunity", + className: "ConnectionMonitorEndpoint", modelProperties: { - serviceSupportedRegion: { - serializedName: "serviceSupportedRegion", + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - communityName: { - serializedName: "communityName", + type: { + serializedName: "type", type: { name: "String" } }, - communityValue: { - serializedName: "communityValue", + resourceId: { + serializedName: "resourceId", type: { name: "String" } }, - communityPrefixes: { - serializedName: "communityPrefixes", + address: { + serializedName: "address", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - isAuthorizedToUse: { - serializedName: "isAuthorizedToUse", + filter: { + serializedName: "filter", type: { - name: "Boolean" + name: "Composite", + className: "ConnectionMonitorEndpointFilter" } }, - serviceGroup: { - serializedName: "serviceGroup", + scope: { + serializedName: "scope", + type: { + name: "Composite", + className: "ConnectionMonitorEndpointScope" + } + }, + coverageLevel: { + serializedName: "coverageLevel", type: { name: "String" } @@ -10272,26 +10113,46 @@ export const BGPCommunity: coreClient.CompositeMapper = { } }; -export const ServiceEndpointPolicyListResult: coreClient.CompositeMapper = { +export const ConnectionMonitorEndpointFilter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceEndpointPolicyListResult", + className: "ConnectionMonitorEndpointFilter", modelProperties: { - value: { - serializedName: "value", + type: { + serializedName: "type", + type: { + name: "String" + } + }, + items: { + serializedName: "items", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServiceEndpointPolicy" + className: "ConnectionMonitorEndpointFilterItem" } } } + } + } + } +}; + +export const ConnectionMonitorEndpointFilterItem: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConnectionMonitorEndpointFilterItem", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + address: { + serializedName: "address", type: { name: "String" } @@ -10300,25 +10161,46 @@ export const ServiceEndpointPolicyListResult: coreClient.CompositeMapper = { } }; -export const ServiceEndpointPolicyDefinitionListResult: coreClient.CompositeMapper = { +export const ConnectionMonitorEndpointScope: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceEndpointPolicyDefinitionListResult", + className: "ConnectionMonitorEndpointScope", modelProperties: { - value: { - serializedName: "value", + include: { + serializedName: "include", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServiceEndpointPolicyDefinition" + className: "ConnectionMonitorEndpointScopeItem" } } } }, - nextLink: { - serializedName: "nextLink", + exclude: { + serializedName: "exclude", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectionMonitorEndpointScopeItem" + } + } + } + } + } + } +}; + +export const ConnectionMonitorEndpointScopeItem: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConnectionMonitorEndpointScopeItem", + modelProperties: { + address: { + serializedName: "address", type: { name: "String" } @@ -10327,136 +10209,110 @@ export const ServiceEndpointPolicyDefinitionListResult: coreClient.CompositeMapp } }; -export const ServiceTagsListResult: coreClient.CompositeMapper = { +export const ConnectionMonitorTestConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceTagsListResult", + className: "ConnectionMonitorTestConfiguration", modelProperties: { name: { serializedName: "name", - readOnly: true, + required: true, type: { name: "String" } }, - id: { - serializedName: "id", - readOnly: true, + testFrequencySec: { + serializedName: "testFrequencySec", type: { - name: "String" + name: "Number" } }, - type: { - serializedName: "type", - readOnly: true, + protocol: { + serializedName: "protocol", + required: true, type: { name: "String" } }, - changeNumber: { - serializedName: "changeNumber", - readOnly: true, + preferredIPVersion: { + serializedName: "preferredIPVersion", type: { name: "String" } }, - cloud: { - serializedName: "cloud", - readOnly: true, + httpConfiguration: { + serializedName: "httpConfiguration", type: { - name: "String" + name: "Composite", + className: "ConnectionMonitorHttpConfiguration" } }, - values: { - serializedName: "values", - readOnly: true, + tcpConfiguration: { + serializedName: "tcpConfiguration", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServiceTagInformation" - } - } + name: "Composite", + className: "ConnectionMonitorTcpConfiguration" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + icmpConfiguration: { + serializedName: "icmpConfiguration", type: { - name: "String" + name: "Composite", + className: "ConnectionMonitorIcmpConfiguration" + } + }, + successThreshold: { + serializedName: "successThreshold", + type: { + name: "Composite", + className: "ConnectionMonitorSuccessThreshold" } } } } }; -export const ServiceTagInformation: coreClient.CompositeMapper = { +export const ConnectionMonitorHttpConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceTagInformation", + className: "ConnectionMonitorHttpConfiguration", modelProperties: { - properties: { - serializedName: "properties", + port: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 0 + }, + serializedName: "port", type: { - name: "Composite", - className: "ServiceTagInformationPropertiesFormat" + name: "Number" } }, - name: { - serializedName: "name", - readOnly: true, + method: { + serializedName: "method", type: { name: "String" } }, - id: { - serializedName: "id", - readOnly: true, + path: { + serializedName: "path", type: { name: "String" } }, - serviceTagChangeNumber: { - serializedName: "serviceTagChangeNumber", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ServiceTagInformationPropertiesFormat: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServiceTagInformationPropertiesFormat", - modelProperties: { - changeNumber: { - serializedName: "changeNumber", - readOnly: true, - type: { - name: "String" - } - }, - region: { - serializedName: "region", - readOnly: true, - type: { - name: "String" - } - }, - systemService: { - serializedName: "systemService", - readOnly: true, + requestHeaders: { + serializedName: "requestHeaders", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HttpHeader" + } + } } }, - addressPrefixes: { - serializedName: "addressPrefixes", - readOnly: true, + validStatusCodeRanges: { + serializedName: "validStatusCodeRanges", type: { name: "Sequence", element: { @@ -10466,37 +10322,39 @@ export const ServiceTagInformationPropertiesFormat: coreClient.CompositeMapper = } } }, - state: { - serializedName: "state", - readOnly: true, + preferHttps: { + serializedName: "preferHTTPS", type: { - name: "String" + name: "Boolean" } } } } }; -export const ServiceTagInformationListResult: coreClient.CompositeMapper = { +export const ConnectionMonitorTcpConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceTagInformationListResult", + className: "ConnectionMonitorTcpConfiguration", modelProperties: { - value: { - serializedName: "value", + port: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 0 + }, + serializedName: "port", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServiceTagInformation" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + disableTraceRoute: { + serializedName: "disableTraceRoute", + type: { + name: "Boolean" + } + }, + destinationPortBehavior: { + serializedName: "destinationPortBehavior", type: { name: "String" } @@ -10505,105 +10363,63 @@ export const ServiceTagInformationListResult: coreClient.CompositeMapper = { } }; -export const UsagesListResult: coreClient.CompositeMapper = { +export const ConnectionMonitorIcmpConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsagesListResult", + className: "ConnectionMonitorIcmpConfiguration", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Usage" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + disableTraceRoute: { + serializedName: "disableTraceRoute", type: { - name: "String" + name: "Boolean" } } } } }; -export const Usage: coreClient.CompositeMapper = { +export const ConnectionMonitorSuccessThreshold: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Usage", + className: "ConnectionMonitorSuccessThreshold", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - unit: { - serializedName: "unit", - required: true, - type: { - name: "String" - } - }, - currentValue: { - serializedName: "currentValue", - required: true, + checksFailedPercent: { + serializedName: "checksFailedPercent", type: { name: "Number" } }, - limit: { - serializedName: "limit", - required: true, + roundTripTimeMs: { + serializedName: "roundTripTimeMs", type: { name: "Number" } - }, - name: { - serializedName: "name", - type: { - name: "Composite", - className: "UsageName" - } } } } }; -export const UsageName: coreClient.CompositeMapper = { +export const ConnectionMonitorTestGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsageName", + className: "ConnectionMonitorTestGroup", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - localizedValue: { - serializedName: "localizedValue", + disable: { + serializedName: "disable", type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const AddressSpace: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AddressSpace", - modelProperties: { - addressPrefixes: { - serializedName: "addressPrefixes", + }, + testConfigurations: { + serializedName: "testConfigurations", + required: true, type: { name: "Sequence", element: { @@ -10612,18 +10428,22 @@ export const AddressSpace: coreClient.CompositeMapper = { } } } - } - } - } -}; - -export const DhcpOptions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DhcpOptions", - modelProperties: { - dnsServers: { - serializedName: "dnsServers", + }, + sources: { + serializedName: "sources", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + destinations: { + serializedName: "destinations", + required: true, type: { name: "Sequence", element: { @@ -10637,43 +10457,35 @@ export const DhcpOptions: coreClient.CompositeMapper = { } }; -export const VirtualNetworkBgpCommunities: coreClient.CompositeMapper = { +export const ConnectionMonitorOutput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkBgpCommunities", + className: "ConnectionMonitorOutput", modelProperties: { - virtualNetworkCommunity: { - serializedName: "virtualNetworkCommunity", - required: true, + type: { + serializedName: "type", type: { name: "String" } }, - regionalCommunity: { - serializedName: "regionalCommunity", - readOnly: true, + workspaceSettings: { + serializedName: "workspaceSettings", type: { - name: "String" + name: "Composite", + className: "ConnectionMonitorWorkspaceSettings" } } } } }; -export const VirtualNetworkEncryption: coreClient.CompositeMapper = { +export const ConnectionMonitorWorkspaceSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkEncryption", + className: "ConnectionMonitorWorkspaceSettings", modelProperties: { - enabled: { - serializedName: "enabled", - required: true, - type: { - name: "Boolean" - } - }, - enforcement: { - serializedName: "enforcement", + workspaceResourceId: { + serializedName: "workspaceResourceId", type: { name: "String" } @@ -10682,677 +10494,648 @@ export const VirtualNetworkEncryption: coreClient.CompositeMapper = { } }; -export const VirtualNetworkListResult: coreClient.CompositeMapper = { +export const ConnectionMonitorResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkListResult", + className: "ConnectionMonitorResult", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualNetwork" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const PrepareNetworkPoliciesRequest: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrepareNetworkPoliciesRequest", - modelProperties: { - serviceName: { - serializedName: "serviceName", + }, + etag: { + serializedName: "etag", + readOnly: true, type: { name: "String" } }, - networkIntentPolicyConfigurations: { - serializedName: "networkIntentPolicyConfigurations", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkIntentPolicyConfiguration" - } - } + name: "String" } - } - } - } -}; - -export const NetworkIntentPolicyConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkIntentPolicyConfiguration", - modelProperties: { - networkIntentPolicyName: { - serializedName: "networkIntentPolicyName", + }, + location: { + serializedName: "location", type: { name: "String" } }, - sourceNetworkIntentPolicy: { - serializedName: "sourceNetworkIntentPolicy", + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + source: { + serializedName: "properties.source", type: { name: "Composite", - className: "NetworkIntentPolicy" + className: "ConnectionMonitorSource" } - } - } - } -}; - -export const UnprepareNetworkPoliciesRequest: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UnprepareNetworkPoliciesRequest", - modelProperties: { - serviceName: { - serializedName: "serviceName", + }, + destination: { + serializedName: "properties.destination", type: { - name: "String" + name: "Composite", + className: "ConnectionMonitorDestination" } - } - } - } -}; - -export const ResourceNavigationLinksListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceNavigationLinksListResult", - modelProperties: { - value: { - serializedName: "value", + }, + autoStart: { + defaultValue: true, + serializedName: "properties.autoStart", + type: { + name: "Boolean" + } + }, + monitoringIntervalInSeconds: { + defaultValue: 60, + constraints: { + InclusiveMaximum: 1800, + InclusiveMinimum: 30 + }, + serializedName: "properties.monitoringIntervalInSeconds", + type: { + name: "Number" + } + }, + endpoints: { + serializedName: "properties.endpoints", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ResourceNavigationLink" + className: "ConnectionMonitorEndpoint" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ServiceAssociationLinksListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServiceAssociationLinksListResult", - modelProperties: { - value: { - serializedName: "value", + testConfigurations: { + serializedName: "properties.testConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServiceAssociationLink" + className: "ConnectionMonitorTestConfiguration" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const SubnetListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SubnetListResult", - modelProperties: { - value: { - serializedName: "value", + testGroups: { + serializedName: "properties.testGroups", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Subnet" + className: "ConnectionMonitorTestGroup" } } } }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualNetworkPeeringListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualNetworkPeeringListResult", - modelProperties: { - value: { - serializedName: "value", + outputs: { + serializedName: "properties.outputs", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualNetworkPeering" + className: "ConnectionMonitorOutput" } } } }, - nextLink: { - serializedName: "nextLink", + notes: { + serializedName: "properties.notes", type: { name: "String" } - } - } - } -}; - -export const IPAddressAvailabilityResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IPAddressAvailabilityResult", - modelProperties: { - available: { - serializedName: "available", + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - availableIPAddresses: { - serializedName: "availableIPAddresses", + startTime: { + serializedName: "properties.startTime", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "DateTime" } }, - isPlatformReserved: { - serializedName: "isPlatformReserved", + monitoringStatus: { + serializedName: "properties.monitoringStatus", + readOnly: true, type: { - name: "Boolean" + name: "String" + } + }, + connectionMonitorType: { + serializedName: "properties.connectionMonitorType", + readOnly: true, + type: { + name: "String" } } } } }; -export const VirtualNetworkListUsageResult: coreClient.CompositeMapper = { +export const ConnectionMonitorQueryResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkListUsageResult", + className: "ConnectionMonitorQueryResult", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + sourceStatus: { + serializedName: "sourceStatus", + type: { + name: "String" + } + }, + states: { + serializedName: "states", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualNetworkUsage" + className: "ConnectionStateSnapshot" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const VirtualNetworkUsage: coreClient.CompositeMapper = { +export const ConnectionStateSnapshot: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkUsage", + className: "ConnectionStateSnapshot", modelProperties: { - currentValue: { - serializedName: "currentValue", - readOnly: true, + connectionState: { + serializedName: "connectionState", type: { - name: "Number" + name: "String" } }, - id: { - serializedName: "id", - readOnly: true, + startTime: { + serializedName: "startTime", type: { - name: "String" + name: "DateTime" } }, - limit: { - serializedName: "limit", - readOnly: true, + endTime: { + serializedName: "endTime", type: { - name: "Number" + name: "DateTime" } }, - name: { - serializedName: "name", + evaluationState: { + serializedName: "evaluationState", type: { - name: "Composite", - className: "VirtualNetworkUsageName" + name: "String" } }, - unit: { - serializedName: "unit", - readOnly: true, + avgLatencyInMs: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 0 + }, + serializedName: "avgLatencyInMs", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const VirtualNetworkUsageName: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualNetworkUsageName", - modelProperties: { - localizedValue: { - serializedName: "localizedValue", - readOnly: true, + }, + minLatencyInMs: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 0 + }, + serializedName: "minLatencyInMs", type: { - name: "String" + name: "Number" } }, - value: { - serializedName: "value", - readOnly: true, + maxLatencyInMs: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 0 + }, + serializedName: "maxLatencyInMs", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const VirtualNetworkGatewaySku: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualNetworkGatewaySku", - modelProperties: { - name: { - serializedName: "name", + }, + probesSent: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 0 + }, + serializedName: "probesSent", type: { - name: "String" + name: "Number" } }, - tier: { - serializedName: "tier", + probesFailed: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 0 + }, + serializedName: "probesFailed", type: { - name: "String" + name: "Number" } }, - capacity: { - serializedName: "capacity", + hops: { + serializedName: "hops", readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectivityHop" + } + } } } } } }; -export const VpnClientConfiguration: coreClient.CompositeMapper = { +export const ConnectionMonitorListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnClientConfiguration", + className: "ConnectionMonitorListResult", modelProperties: { - vpnClientAddressPool: { - serializedName: "vpnClientAddressPool", - type: { - name: "Composite", - className: "AddressSpace" - } - }, - vpnClientRootCertificates: { - serializedName: "vpnClientRootCertificates", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VpnClientRootCertificate" + className: "ConnectionMonitorResult" } } } - }, - vpnClientRevokedCertificates: { - serializedName: "vpnClientRevokedCertificates", + } + } + } +}; + +export const FlowLogListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FlowLogListResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VpnClientRevokedCertificate" - } - } - } - }, - vpnClientProtocols: { - serializedName: "vpnClientProtocols", - type: { - name: "Sequence", - element: { - type: { - name: "String" + className: "FlowLog" } } } }, - vpnAuthenticationTypes: { - serializedName: "vpnAuthenticationTypes", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - }, - vpnClientIpsecPolicies: { - serializedName: "vpnClientIpsecPolicies", + } + } + } +}; + +export const OperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IpsecPolicy" + className: "Operation" } } } }, - radiusServerAddress: { - serializedName: "radiusServerAddress", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - radiusServerSecret: { - serializedName: "radiusServerSecret", + } + } + } +}; + +export const Operation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - radiusServers: { - serializedName: "radiusServers", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RadiusServer" - } - } - } - }, - aadTenant: { - serializedName: "aadTenant", + display: { + serializedName: "display", type: { - name: "String" + name: "Composite", + className: "OperationDisplay" } }, - aadAudience: { - serializedName: "aadAudience", + origin: { + serializedName: "origin", type: { name: "String" } }, - aadIssuer: { - serializedName: "aadIssuer", + serviceSpecification: { + serializedName: "properties.serviceSpecification", type: { - name: "String" + name: "Composite", + className: "OperationPropertiesFormatServiceSpecification" } } } } }; -export const IpsecPolicy: coreClient.CompositeMapper = { +export const OperationDisplay: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpsecPolicy", + className: "OperationDisplay", modelProperties: { - saLifeTimeSeconds: { - serializedName: "saLifeTimeSeconds", - required: true, + provider: { + serializedName: "provider", type: { - name: "Number" + name: "String" } }, - saDataSizeKilobytes: { - serializedName: "saDataSizeKilobytes", - required: true, + resource: { + serializedName: "resource", type: { - name: "Number" + name: "String" } }, - ipsecEncryption: { - serializedName: "ipsecEncryption", - required: true, + operation: { + serializedName: "operation", type: { name: "String" } }, - ipsecIntegrity: { - serializedName: "ipsecIntegrity", - required: true, - type: { - name: "String" - } - }, - ikeEncryption: { - serializedName: "ikeEncryption", - required: true, - type: { - name: "String" - } - }, - ikeIntegrity: { - serializedName: "ikeIntegrity", - required: true, + description: { + serializedName: "description", type: { name: "String" } - }, - dhGroup: { - serializedName: "dhGroup", - required: true, + } + } + } +}; + +export const OperationPropertiesFormatServiceSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationPropertiesFormatServiceSpecification", + modelProperties: { + metricSpecifications: { + serializedName: "metricSpecifications", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricSpecification" + } + } } }, - pfsGroup: { - serializedName: "pfsGroup", - required: true, + logSpecifications: { + serializedName: "logSpecifications", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogSpecification" + } + } } } } } }; -export const RadiusServer: coreClient.CompositeMapper = { +export const MetricSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RadiusServer", + className: "MetricSpecification", modelProperties: { - radiusServerAddress: { - serializedName: "radiusServerAddress", - required: true, + name: { + serializedName: "name", type: { name: "String" } }, - radiusServerScore: { - serializedName: "radiusServerScore", + displayName: { + serializedName: "displayName", type: { - name: "Number" + name: "String" } }, - radiusServerSecret: { - serializedName: "radiusServerSecret", + displayDescription: { + serializedName: "displayDescription", type: { name: "String" } - } - } - } -}; - -export const BgpSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BgpSettings", - modelProperties: { - asn: { - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 - }, - serializedName: "asn", + }, + unit: { + serializedName: "unit", type: { - name: "Number" + name: "String" } }, - bgpPeeringAddress: { - serializedName: "bgpPeeringAddress", + aggregationType: { + serializedName: "aggregationType", type: { name: "String" } }, - peerWeight: { - serializedName: "peerWeight", + availabilities: { + serializedName: "availabilities", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Availability" + } + } } }, - bgpPeeringAddresses: { - serializedName: "bgpPeeringAddresses", + enableRegionalMdmAccount: { + serializedName: "enableRegionalMdmAccount", + type: { + name: "Boolean" + } + }, + fillGapWithZero: { + serializedName: "fillGapWithZero", + type: { + name: "Boolean" + } + }, + metricFilterPattern: { + serializedName: "metricFilterPattern", + type: { + name: "String" + } + }, + dimensions: { + serializedName: "dimensions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IPConfigurationBgpPeeringAddress" + className: "Dimension" } } } + }, + isInternal: { + serializedName: "isInternal", + type: { + name: "Boolean" + } + }, + sourceMdmAccount: { + serializedName: "sourceMdmAccount", + type: { + name: "String" + } + }, + sourceMdmNamespace: { + serializedName: "sourceMdmNamespace", + type: { + name: "String" + } + }, + resourceIdDimensionNameOverride: { + serializedName: "resourceIdDimensionNameOverride", + type: { + name: "String" + } } } } }; -export const IPConfigurationBgpPeeringAddress: coreClient.CompositeMapper = { +export const Availability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IPConfigurationBgpPeeringAddress", + className: "Availability", modelProperties: { - ipconfigurationId: { - serializedName: "ipconfigurationId", + timeGrain: { + serializedName: "timeGrain", type: { name: "String" } }, - defaultBgpIpAddresses: { - serializedName: "defaultBgpIpAddresses", - readOnly: true, + retention: { + serializedName: "retention", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - customBgpIpAddresses: { - serializedName: "customBgpIpAddresses", + blobDuration: { + serializedName: "blobDuration", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" + } + } + } + } +}; + +export const Dimension: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Dimension", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" } }, - tunnelIpAddresses: { - serializedName: "tunnelIpAddresses", - readOnly: true, + displayName: { + serializedName: "displayName", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" + } + }, + internalName: { + serializedName: "internalName", + type: { + name: "String" } } } } }; -export const VpnNatRuleMapping: coreClient.CompositeMapper = { +export const LogSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnNatRuleMapping", + className: "LogSpecification", modelProperties: { - addressSpace: { - serializedName: "addressSpace", + name: { + serializedName: "name", type: { name: "String" } }, - portRange: { - serializedName: "portRange", + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + blobDuration: { + serializedName: "blobDuration", type: { name: "String" } @@ -11361,10 +11144,10 @@ export const VpnNatRuleMapping: coreClient.CompositeMapper = { } }; -export const VirtualNetworkGatewayListResult: coreClient.CompositeMapper = { +export const PrivateEndpointListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkGatewayListResult", + className: "PrivateEndpointListResult", modelProperties: { value: { serializedName: "value", @@ -11373,7 +11156,7 @@ export const VirtualNetworkGatewayListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualNetworkGateway" + className: "PrivateEndpoint" } } } @@ -11389,10 +11172,10 @@ export const VirtualNetworkGatewayListResult: coreClient.CompositeMapper = { } }; -export const VirtualNetworkGatewayListConnectionsResult: coreClient.CompositeMapper = { +export const AvailablePrivateEndpointTypesResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkGatewayListConnectionsResult", + className: "AvailablePrivateEndpointTypesResult", modelProperties: { value: { serializedName: "value", @@ -11401,7 +11184,7 @@ export const VirtualNetworkGatewayListConnectionsResult: coreClient.CompositeMap element: { type: { name: "Composite", - className: "VirtualNetworkGatewayConnectionListEntity" + className: "AvailablePrivateEndpointType" } } } @@ -11417,58 +11200,37 @@ export const VirtualNetworkGatewayListConnectionsResult: coreClient.CompositeMap } }; -export const VirtualNetworkConnectionGatewayReference: coreClient.CompositeMapper = { +export const AvailablePrivateEndpointType: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkConnectionGatewayReference", + className: "AvailablePrivateEndpointType", modelProperties: { - id: { - serializedName: "id", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const TunnelConnectionHealth: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TunnelConnectionHealth", - modelProperties: { - tunnel: { - serializedName: "tunnel", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - connectionStatus: { - serializedName: "connectionStatus", - readOnly: true, + id: { + serializedName: "id", type: { name: "String" } }, - ingressBytesTransferred: { - serializedName: "ingressBytesTransferred", - readOnly: true, + type: { + serializedName: "type", type: { - name: "Number" + name: "String" } }, - egressBytesTransferred: { - serializedName: "egressBytesTransferred", - readOnly: true, + resourceName: { + serializedName: "resourceName", type: { - name: "Number" + name: "String" } }, - lastConnectionEstablishedUtcTime: { - serializedName: "lastConnectionEstablishedUtcTime", - readOnly: true, + displayName: { + serializedName: "displayName", type: { name: "String" } @@ -11477,31 +11239,32 @@ export const TunnelConnectionHealth: coreClient.CompositeMapper = { } }; -export const TrafficSelectorPolicy: coreClient.CompositeMapper = { +export const PrivateDnsZoneConfig: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrafficSelectorPolicy", + className: "PrivateDnsZoneConfig", modelProperties: { - localAddressRanges: { - serializedName: "localAddressRanges", - required: true, + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - remoteAddressRanges: { - serializedName: "remoteAddressRanges", - required: true, + privateDnsZoneId: { + serializedName: "properties.privateDnsZoneId", + type: { + name: "String" + } + }, + recordSets: { + serializedName: "properties.recordSets", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "RecordSet" } } } @@ -11510,31 +11273,44 @@ export const TrafficSelectorPolicy: coreClient.CompositeMapper = { } }; -export const VpnClientParameters: coreClient.CompositeMapper = { +export const RecordSet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnClientParameters", + className: "RecordSet", modelProperties: { - processorArchitecture: { - serializedName: "processorArchitecture", + recordType: { + serializedName: "recordType", type: { name: "String" } }, - authenticationMethod: { - serializedName: "authenticationMethod", + recordSetName: { + serializedName: "recordSetName", type: { name: "String" } }, - radiusServerAuthCertificate: { - serializedName: "radiusServerAuthCertificate", + fqdn: { + serializedName: "fqdn", type: { name: "String" } }, - clientRootCertificates: { - serializedName: "clientRootCertificates", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + ttl: { + serializedName: "ttl", + type: { + name: "Number" + } + }, + ipAddresses: { + serializedName: "ipAddresses", type: { name: "Sequence", element: { @@ -11548,10 +11324,10 @@ export const VpnClientParameters: coreClient.CompositeMapper = { } }; -export const BgpPeerStatusListResult: coreClient.CompositeMapper = { +export const PrivateDnsZoneGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BgpPeerStatusListResult", + className: "PrivateDnsZoneGroupListResult", modelProperties: { value: { serializedName: "value", @@ -11560,88 +11336,112 @@ export const BgpPeerStatusListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BgpPeerStatus" + className: "PrivateDnsZoneGroup" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const BgpPeerStatus: coreClient.CompositeMapper = { +export const PrivateLinkServiceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BgpPeerStatus", + className: "PrivateLinkServiceListResult", modelProperties: { - localAddress: { - serializedName: "localAddress", - readOnly: true, + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkService" + } + } } }, - neighbor: { - serializedName: "neighbor", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - asn: { - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 - }, - serializedName: "asn", - readOnly: true, + } + } + } +}; + +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } } }, - state: { - serializedName: "state", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" } - }, - connectedDuration: { - serializedName: "connectedDuration", - readOnly: true, + } + } + } +}; + +export const CheckPrivateLinkServiceVisibilityRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CheckPrivateLinkServiceVisibilityRequest", + modelProperties: { + privateLinkServiceAlias: { + serializedName: "privateLinkServiceAlias", type: { name: "String" } - }, - routesReceived: { - serializedName: "routesReceived", - readOnly: true, - type: { - name: "Number" - } - }, - messagesSent: { - serializedName: "messagesSent", - readOnly: true, - type: { - name: "Number" - } - }, - messagesReceived: { - serializedName: "messagesReceived", - readOnly: true, + } + } + } +}; + +export const PrivateLinkServiceVisibility: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkServiceVisibility", + modelProperties: { + visible: { + serializedName: "visible", type: { - name: "Number" + name: "Boolean" } } } } }; -export const GatewayRouteListResult: coreClient.CompositeMapper = { +export const AutoApprovedPrivateLinkServicesResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayRouteListResult", + className: "AutoApprovedPrivateLinkServicesResult", modelProperties: { value: { serializedName: "value", @@ -11650,130 +11450,83 @@ export const GatewayRouteListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GatewayRoute" + className: "AutoApprovedPrivateLinkService" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const GatewayRoute: coreClient.CompositeMapper = { +export const AutoApprovedPrivateLinkService: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayRoute", + className: "AutoApprovedPrivateLinkService", modelProperties: { - localAddress: { - serializedName: "localAddress", - readOnly: true, + privateLinkService: { + serializedName: "privateLinkService", type: { name: "String" } - }, - network: { - serializedName: "network", - readOnly: true, + } + } + } +}; + +export const PublicIpDdosProtectionStatusResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PublicIpDdosProtectionStatusResult", + modelProperties: { + publicIpAddressId: { + serializedName: "publicIpAddressId", type: { name: "String" } }, - nextHop: { - serializedName: "nextHop", - readOnly: true, - type: { - name: "String" - } - }, - sourcePeer: { - serializedName: "sourcePeer", - readOnly: true, + publicIpAddress: { + serializedName: "publicIpAddress", type: { name: "String" } }, - origin: { - serializedName: "origin", - readOnly: true, + isWorkloadProtected: { + serializedName: "isWorkloadProtected", type: { name: "String" } }, - asPath: { - serializedName: "asPath", - readOnly: true, + ddosProtectionPlanId: { + serializedName: "ddosProtectionPlanId", type: { name: "String" } - }, - weight: { - serializedName: "weight", - readOnly: true, - type: { - name: "Number" - } } } } }; -export const VpnClientIPsecParameters: coreClient.CompositeMapper = { +export const PublicIPPrefixSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnClientIPsecParameters", + className: "PublicIPPrefixSku", modelProperties: { - saLifeTimeSeconds: { - serializedName: "saLifeTimeSeconds", - required: true, - type: { - name: "Number" - } - }, - saDataSizeKilobytes: { - serializedName: "saDataSizeKilobytes", - required: true, - type: { - name: "Number" - } - }, - ipsecEncryption: { - serializedName: "ipsecEncryption", - required: true, - type: { - name: "String" - } - }, - ipsecIntegrity: { - serializedName: "ipsecIntegrity", - required: true, - type: { - name: "String" - } - }, - ikeEncryption: { - serializedName: "ikeEncryption", - required: true, - type: { - name: "String" - } - }, - ikeIntegrity: { - serializedName: "ikeIntegrity", - required: true, - type: { - name: "String" - } - }, - dhGroup: { - serializedName: "dhGroup", - required: true, + name: { + serializedName: "name", type: { name: "String" } }, - pfsGroup: { - serializedName: "pfsGroup", - required: true, + tier: { + serializedName: "tier", type: { name: "String" } @@ -11782,25 +11535,40 @@ export const VpnClientIPsecParameters: coreClient.CompositeMapper = { } }; -export const VpnDeviceScriptParameters: coreClient.CompositeMapper = { +export const ReferencedPublicIpAddress: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnDeviceScriptParameters", + className: "ReferencedPublicIpAddress", modelProperties: { - vendor: { - serializedName: "vendor", + id: { + serializedName: "id", type: { name: "String" } - }, - deviceFamily: { - serializedName: "deviceFamily", + } + } + } +}; + +export const PublicIPPrefixListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PublicIPPrefixListResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PublicIPPrefix" + } + } } }, - firmwareVersion: { - serializedName: "firmwareVersion", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -11809,13 +11577,25 @@ export const VpnDeviceScriptParameters: coreClient.CompositeMapper = { } }; -export const VpnPacketCaptureStartParameters: coreClient.CompositeMapper = { +export const RouteFilterListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnPacketCaptureStartParameters", + className: "RouteFilterListResult", modelProperties: { - filterData: { - serializedName: "filterData", + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RouteFilter" + } + } + } + }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -11824,13 +11604,25 @@ export const VpnPacketCaptureStartParameters: coreClient.CompositeMapper = { } }; -export const VpnPacketCaptureStopParameters: coreClient.CompositeMapper = { +export const RouteFilterRuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnPacketCaptureStopParameters", + className: "RouteFilterRuleListResult", modelProperties: { - sasUrl: { - serializedName: "sasUrl", + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RouteFilterRule" + } + } + } + }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -11839,10 +11631,10 @@ export const VpnPacketCaptureStopParameters: coreClient.CompositeMapper = { } }; -export const VirtualNetworkGatewayConnectionListResult: coreClient.CompositeMapper = { +export const RouteTableListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkGatewayConnectionListResult", + className: "RouteTableListResult", modelProperties: { value: { serializedName: "value", @@ -11851,14 +11643,13 @@ export const VirtualNetworkGatewayConnectionListResult: coreClient.CompositeMapp element: { type: { name: "Composite", - className: "VirtualNetworkGatewayConnection" + className: "RouteTable" } } } }, nextLink: { serializedName: "nextLink", - readOnly: true, type: { name: "String" } @@ -11867,30 +11658,37 @@ export const VirtualNetworkGatewayConnectionListResult: coreClient.CompositeMapp } }; -export const ConnectionResetSharedKey: coreClient.CompositeMapper = { +export const RouteListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectionResetSharedKey", + className: "RouteListResult", modelProperties: { - keyLength: { - constraints: { - InclusiveMaximum: 128, - InclusiveMinimum: 1 - }, - serializedName: "keyLength", - required: true, + value: { + serializedName: "value", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Route" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" } } } } }; -export const LocalNetworkGatewayListResult: coreClient.CompositeMapper = { +export const SecurityPartnerProviderListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LocalNetworkGatewayListResult", + className: "SecurityPartnerProviderListResult", modelProperties: { value: { serializedName: "value", @@ -11899,14 +11697,13 @@ export const LocalNetworkGatewayListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LocalNetworkGateway" + className: "SecurityPartnerProvider" } } } }, nextLink: { serializedName: "nextLink", - readOnly: true, type: { name: "String" } @@ -11915,10 +11712,10 @@ export const LocalNetworkGatewayListResult: coreClient.CompositeMapper = { } }; -export const VpnClientConnectionHealthDetailListResult: coreClient.CompositeMapper = { +export const BgpServiceCommunityListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnClientConnectionHealthDetailListResult", + className: "BgpServiceCommunityListResult", modelProperties: { value: { serializedName: "value", @@ -11927,132 +11724,103 @@ export const VpnClientConnectionHealthDetailListResult: coreClient.CompositeMapp element: { type: { name: "Composite", - className: "VpnClientConnectionHealthDetail" + className: "BgpServiceCommunity" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const VpnClientConnectionHealthDetail: coreClient.CompositeMapper = { +export const BGPCommunity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnClientConnectionHealthDetail", + className: "BGPCommunity", modelProperties: { - vpnConnectionId: { - serializedName: "vpnConnectionId", - readOnly: true, + serviceSupportedRegion: { + serializedName: "serviceSupportedRegion", type: { name: "String" } }, - vpnConnectionDuration: { - serializedName: "vpnConnectionDuration", - readOnly: true, + communityName: { + serializedName: "communityName", type: { - name: "Number" + name: "String" } }, - vpnConnectionTime: { - serializedName: "vpnConnectionTime", - readOnly: true, + communityValue: { + serializedName: "communityValue", type: { name: "String" } }, - publicIpAddress: { - serializedName: "publicIpAddress", - readOnly: true, + communityPrefixes: { + serializedName: "communityPrefixes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - privateIpAddress: { - serializedName: "privateIpAddress", - readOnly: true, + isAuthorizedToUse: { + serializedName: "isAuthorizedToUse", type: { - name: "String" + name: "Boolean" } }, - vpnUserName: { - serializedName: "vpnUserName", - readOnly: true, + serviceGroup: { + serializedName: "serviceGroup", type: { name: "String" } - }, - maxBandwidth: { - serializedName: "maxBandwidth", - readOnly: true, - type: { - name: "Number" - } - }, - egressPacketsTransferred: { - serializedName: "egressPacketsTransferred", - readOnly: true, - type: { - name: "Number" - } - }, - egressBytesTransferred: { - serializedName: "egressBytesTransferred", - readOnly: true, - type: { - name: "Number" - } - }, - ingressPacketsTransferred: { - serializedName: "ingressPacketsTransferred", - readOnly: true, - type: { - name: "Number" - } - }, - ingressBytesTransferred: { - serializedName: "ingressBytesTransferred", - readOnly: true, - type: { - name: "Number" - } - }, - maxPacketsPerSecond: { - serializedName: "maxPacketsPerSecond", - readOnly: true, - type: { - name: "Number" - } } } } }; -export const P2SVpnConnectionRequest: coreClient.CompositeMapper = { +export const ServiceEndpointPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "P2SVpnConnectionRequest", + className: "ServiceEndpointPolicyListResult", modelProperties: { - vpnConnectionIds: { - serializedName: "vpnConnectionIds", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ServiceEndpointPolicy" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const ListVirtualNetworkGatewayNatRulesResult: coreClient.CompositeMapper = { +export const ServiceEndpointPolicyDefinitionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListVirtualNetworkGatewayNatRulesResult", + className: "ServiceEndpointPolicyDefinitionListResult", modelProperties: { value: { serializedName: "value", @@ -12061,7 +11829,7 @@ export const ListVirtualNetworkGatewayNatRulesResult: coreClient.CompositeMapper element: { type: { name: "Composite", - className: "VirtualNetworkGatewayNatRule" + className: "ServiceEndpointPolicyDefinition" } } } @@ -12076,25 +11844,62 @@ export const ListVirtualNetworkGatewayNatRulesResult: coreClient.CompositeMapper } }; -export const VirtualNetworkTapListResult: coreClient.CompositeMapper = { +export const ServiceTagsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkTapListResult", + className: "ServiceTagsListResult", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + changeNumber: { + serializedName: "changeNumber", + readOnly: true, + type: { + name: "String" + } + }, + cloud: { + serializedName: "cloud", + readOnly: true, + type: { + name: "String" + } + }, + values: { + serializedName: "values", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualNetworkTap" + className: "ServiceTagInformation" } } } }, nextLink: { serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -12103,25 +11908,84 @@ export const VirtualNetworkTapListResult: coreClient.CompositeMapper = { } }; -export const VirtualRouterListResult: coreClient.CompositeMapper = { +export const ServiceTagInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualRouterListResult", + className: "ServiceTagInformation", modelProperties: { - value: { - serializedName: "value", + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ServiceTagInformationPropertiesFormat" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + serviceTagChangeNumber: { + serializedName: "serviceTagChangeNumber", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServiceTagInformationPropertiesFormat: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceTagInformationPropertiesFormat", + modelProperties: { + changeNumber: { + serializedName: "changeNumber", + readOnly: true, + type: { + name: "String" + } + }, + region: { + serializedName: "region", + readOnly: true, + type: { + name: "String" + } + }, + systemService: { + serializedName: "systemService", + readOnly: true, + type: { + name: "String" + } + }, + addressPrefixes: { + serializedName: "addressPrefixes", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "VirtualRouter" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", + state: { + serializedName: "state", + readOnly: true, type: { name: "String" } @@ -12130,10 +11994,10 @@ export const VirtualRouterListResult: coreClient.CompositeMapper = { } }; -export const VirtualRouterPeeringListResult: coreClient.CompositeMapper = { +export const ServiceTagInformationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualRouterPeeringListResult", + className: "ServiceTagInformationListResult", modelProperties: { value: { serializedName: "value", @@ -12142,13 +12006,14 @@ export const VirtualRouterPeeringListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualRouterPeering" + className: "ServiceTagInformation" } } } }, nextLink: { serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -12157,10 +12022,10 @@ export const VirtualRouterPeeringListResult: coreClient.CompositeMapper = { } }; -export const ListVirtualWANsResult: coreClient.CompositeMapper = { +export const UsagesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListVirtualWANsResult", + className: "UsagesListResult", modelProperties: { value: { serializedName: "value", @@ -12169,7 +12034,7 @@ export const ListVirtualWANsResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualWAN" + className: "Usage" } } } @@ -12184,137 +12049,148 @@ export const ListVirtualWANsResult: coreClient.CompositeMapper = { } }; -export const DeviceProperties: coreClient.CompositeMapper = { +export const Usage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeviceProperties", + className: "Usage", modelProperties: { - deviceVendor: { - serializedName: "deviceVendor", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - deviceModel: { - serializedName: "deviceModel", + unit: { + serializedName: "unit", + required: true, type: { name: "String" } }, - linkSpeedInMbps: { - serializedName: "linkSpeedInMbps", + currentValue: { + serializedName: "currentValue", + required: true, + type: { + name: "Number" + } + }, + limit: { + serializedName: "limit", + required: true, type: { name: "Number" } + }, + name: { + serializedName: "name", + type: { + name: "Composite", + className: "UsageName" + } } } } }; -export const VpnLinkProviderProperties: coreClient.CompositeMapper = { +export const UsageName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnLinkProviderProperties", + className: "UsageName", modelProperties: { - linkProviderName: { - serializedName: "linkProviderName", + value: { + serializedName: "value", type: { name: "String" } }, - linkSpeedInMbps: { - serializedName: "linkSpeedInMbps", + localizedValue: { + serializedName: "localizedValue", type: { - name: "Number" + name: "String" } } } } }; -export const VpnLinkBgpSettings: coreClient.CompositeMapper = { +export const AddressSpace: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnLinkBgpSettings", + className: "AddressSpace", modelProperties: { - asn: { - serializedName: "asn", + addressPrefixes: { + serializedName: "addressPrefixes", type: { - name: "Number" - } - }, - bgpPeeringAddress: { - serializedName: "bgpPeeringAddress", - type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const O365PolicyProperties: coreClient.CompositeMapper = { +export const DhcpOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "O365PolicyProperties", + className: "DhcpOptions", modelProperties: { - breakOutCategories: { - serializedName: "breakOutCategories", + dnsServers: { + serializedName: "dnsServers", type: { - name: "Composite", - className: "O365BreakOutCategoryPolicies" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const O365BreakOutCategoryPolicies: coreClient.CompositeMapper = { +export const VirtualNetworkBgpCommunities: coreClient.CompositeMapper = { type: { name: "Composite", - className: "O365BreakOutCategoryPolicies", + className: "VirtualNetworkBgpCommunities", modelProperties: { - allow: { - serializedName: "allow", - type: { - name: "Boolean" - } - }, - optimize: { - serializedName: "optimize", + virtualNetworkCommunity: { + serializedName: "virtualNetworkCommunity", + required: true, type: { - name: "Boolean" + name: "String" } }, - default: { - serializedName: "default", + regionalCommunity: { + serializedName: "regionalCommunity", + readOnly: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const ListVpnSitesResult: coreClient.CompositeMapper = { +export const VirtualNetworkEncryption: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListVpnSitesResult", + className: "VirtualNetworkEncryption", modelProperties: { - value: { - serializedName: "value", + enabled: { + serializedName: "enabled", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VpnSite" - } - } + name: "Boolean" } }, - nextLink: { - serializedName: "nextLink", + enforcement: { + serializedName: "enforcement", type: { name: "String" } @@ -12323,10 +12199,10 @@ export const ListVpnSitesResult: coreClient.CompositeMapper = { } }; -export const ListVpnSiteLinksResult: coreClient.CompositeMapper = { +export const VirtualNetworkListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListVpnSiteLinksResult", + className: "VirtualNetworkListResult", modelProperties: { value: { serializedName: "value", @@ -12335,7 +12211,7 @@ export const ListVpnSiteLinksResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VpnSiteLink" + className: "VirtualNetwork" } } } @@ -12350,46 +12226,25 @@ export const ListVpnSiteLinksResult: coreClient.CompositeMapper = { } }; -export const GetVpnSitesConfigurationRequest: coreClient.CompositeMapper = { +export const PrepareNetworkPoliciesRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GetVpnSitesConfigurationRequest", + className: "PrepareNetworkPoliciesRequest", modelProperties: { - vpnSites: { - serializedName: "vpnSites", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - outputBlobSasUrl: { - serializedName: "outputBlobSasUrl", - required: true, + serviceName: { + serializedName: "serviceName", type: { name: "String" } - } - } - } -}; - -export const VirtualWanSecurityProviders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualWanSecurityProviders", - modelProperties: { - supportedProviders: { - serializedName: "supportedProviders", + }, + networkIntentPolicyConfigurations: { + serializedName: "networkIntentPolicyConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualWanSecurityProvider" + className: "NetworkIntentPolicyConfiguration" } } } @@ -12398,26 +12253,35 @@ export const VirtualWanSecurityProviders: coreClient.CompositeMapper = { } }; -export const VirtualWanSecurityProvider: coreClient.CompositeMapper = { +export const NetworkIntentPolicyConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualWanSecurityProvider", + className: "NetworkIntentPolicyConfiguration", modelProperties: { - name: { - serializedName: "name", + networkIntentPolicyName: { + serializedName: "networkIntentPolicyName", type: { name: "String" } }, - url: { - serializedName: "url", + sourceNetworkIntentPolicy: { + serializedName: "sourceNetworkIntentPolicy", type: { - name: "String" + name: "Composite", + className: "NetworkIntentPolicy" } - }, - type: { - serializedName: "type", - readOnly: true, + } + } + } +}; + +export const UnprepareNetworkPoliciesRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UnprepareNetworkPoliciesRequest", + modelProperties: { + serviceName: { + serializedName: "serviceName", type: { name: "String" } @@ -12426,19 +12290,26 @@ export const VirtualWanSecurityProvider: coreClient.CompositeMapper = { } }; -export const VpnServerConfigVpnClientRootCertificate: coreClient.CompositeMapper = { +export const ResourceNavigationLinksListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnServerConfigVpnClientRootCertificate", + className: "ResourceNavigationLinksListResult", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceNavigationLink" + } + } } }, - publicCertData: { - serializedName: "publicCertData", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -12447,19 +12318,26 @@ export const VpnServerConfigVpnClientRootCertificate: coreClient.CompositeMapper } }; -export const VpnServerConfigVpnClientRevokedCertificate: coreClient.CompositeMapper = { +export const ServiceAssociationLinksListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnServerConfigVpnClientRevokedCertificate", + className: "ServiceAssociationLinksListResult", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceAssociationLink" + } + } } }, - thumbprint: { - serializedName: "thumbprint", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -12468,19 +12346,25 @@ export const VpnServerConfigVpnClientRevokedCertificate: coreClient.CompositeMap } }; -export const VpnServerConfigRadiusServerRootCertificate: coreClient.CompositeMapper = { +export const SubnetListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnServerConfigRadiusServerRootCertificate", + className: "SubnetListResult", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Subnet" + } + } } }, - publicCertData: { - serializedName: "publicCertData", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -12489,19 +12373,25 @@ export const VpnServerConfigRadiusServerRootCertificate: coreClient.CompositeMap } }; -export const VpnServerConfigRadiusClientRootCertificate: coreClient.CompositeMapper = { +export const VirtualNetworkPeeringListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnServerConfigRadiusClientRootCertificate", + className: "VirtualNetworkPeeringListResult", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualNetworkPeering" + } + } } }, - thumbprint: { - serializedName: "thumbprint", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -12510,153 +12400,102 @@ export const VpnServerConfigRadiusClientRootCertificate: coreClient.CompositeMap } }; -export const AadAuthenticationParameters: coreClient.CompositeMapper = { +export const IPAddressAvailabilityResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AadAuthenticationParameters", + className: "IPAddressAvailabilityResult", modelProperties: { - aadTenant: { - serializedName: "aadTenant", + available: { + serializedName: "available", type: { - name: "String" + name: "Boolean" } }, - aadAudience: { - serializedName: "aadAudience", + availableIPAddresses: { + serializedName: "availableIPAddresses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - aadIssuer: { - serializedName: "aadIssuer", + isPlatformReserved: { + serializedName: "isPlatformReserved", type: { - name: "String" + name: "Boolean" } } } } }; -export const RoutingConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoutingConfiguration", - modelProperties: { - associatedRouteTable: { - serializedName: "associatedRouteTable", - type: { - name: "Composite", - className: "SubResource" - } - }, - propagatedRouteTables: { - serializedName: "propagatedRouteTables", - type: { - name: "Composite", - className: "PropagatedRouteTable" - } - }, - vnetRoutes: { - serializedName: "vnetRoutes", - type: { - name: "Composite", - className: "VnetRoute" - } - } - } - } -}; - -export const PropagatedRouteTable: coreClient.CompositeMapper = { +export const VirtualNetworkListUsageResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PropagatedRouteTable", + className: "VirtualNetworkListUsageResult", modelProperties: { - labels: { - serializedName: "labels", + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "VirtualNetworkUsage" } } } }, - ids: { - serializedName: "ids", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "String" } } } } }; -export const VnetRoute: coreClient.CompositeMapper = { +export const VirtualNetworkUsage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VnetRoute", + className: "VirtualNetworkUsage", modelProperties: { - staticRoutes: { - serializedName: "staticRoutes", + currentValue: { + serializedName: "currentValue", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "StaticRoute" - } - } + name: "Number" } }, - bgpConnections: { - serializedName: "bgpConnections", + id: { + serializedName: "id", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "String" } - } - } - } -}; - -export const StaticRoute: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StaticRoute", - modelProperties: { - name: { - serializedName: "name", + }, + limit: { + serializedName: "limit", + readOnly: true, type: { - name: "String" + name: "Number" } }, - addressPrefixes: { - serializedName: "addressPrefixes", + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "VirtualNetworkUsageName" } }, - nextHopIpAddress: { - serializedName: "nextHopIpAddress", + unit: { + serializedName: "unit", + readOnly: true, type: { name: "String" } @@ -12665,50 +12504,33 @@ export const StaticRoute: coreClient.CompositeMapper = { } }; -export const VpnClientConnectionHealth: coreClient.CompositeMapper = { +export const VirtualNetworkUsageName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnClientConnectionHealth", + className: "VirtualNetworkUsageName", modelProperties: { - totalIngressBytesTransferred: { - serializedName: "totalIngressBytesTransferred", + localizedValue: { + serializedName: "localizedValue", readOnly: true, type: { - name: "Number" + name: "String" } }, - totalEgressBytesTransferred: { - serializedName: "totalEgressBytesTransferred", + value: { + serializedName: "value", readOnly: true, type: { - name: "Number" - } - }, - vpnClientConnectionsCount: { - serializedName: "vpnClientConnectionsCount", - type: { - name: "Number" - } - }, - allocatedIpAddresses: { - serializedName: "allocatedIpAddresses", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const ListVpnServerConfigurationsResult: coreClient.CompositeMapper = { +export const VirtualNetworkDdosProtectionStatusResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListVpnServerConfigurationsResult", + className: "VirtualNetworkDdosProtectionStatusResult", modelProperties: { value: { serializedName: "value", @@ -12717,7 +12539,7 @@ export const ListVpnServerConfigurationsResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VpnServerConfiguration" + className: "PublicIpDdosProtectionStatusResult" } } } @@ -12732,83 +12554,72 @@ export const ListVpnServerConfigurationsResult: coreClient.CompositeMapper = { } }; -export const VirtualHubRouteTable: coreClient.CompositeMapper = { +export const VirtualNetworkGatewaySku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualHubRouteTable", + className: "VirtualNetworkGatewaySku", modelProperties: { - routes: { - serializedName: "routes", + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualHubRoute" - } - } + name: "String" } - } - } - } -}; - -export const VirtualHubRoute: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualHubRoute", - modelProperties: { - addressPrefixes: { - serializedName: "addressPrefixes", + }, + tier: { + serializedName: "tier", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - nextHopIpAddress: { - serializedName: "nextHopIpAddress", + capacity: { + serializedName: "capacity", + readOnly: true, type: { - name: "String" + name: "Number" } } } } }; -export const VirtualHubRouteV2: coreClient.CompositeMapper = { +export const VpnClientConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualHubRouteV2", + className: "VpnClientConfiguration", modelProperties: { - destinationType: { - serializedName: "destinationType", + vpnClientAddressPool: { + serializedName: "vpnClientAddressPool", type: { - name: "String" + name: "Composite", + className: "AddressSpace" } }, - destinations: { - serializedName: "destinations", + vpnClientRootCertificates: { + serializedName: "vpnClientRootCertificates", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "VpnClientRootCertificate" } } } }, - nextHopType: { - serializedName: "nextHopType", + vpnClientRevokedCertificates: { + serializedName: "vpnClientRevokedCertificates", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VpnClientRevokedCertificate" + } + } } }, - nextHops: { - serializedName: "nextHops", + vpnClientProtocols: { + serializedName: "vpnClientProtocols", type: { name: "Sequence", element: { @@ -12817,84 +12628,145 @@ export const VirtualHubRouteV2: coreClient.CompositeMapper = { } } } - } - } - } -}; - -export const ListVirtualHubsResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ListVirtualHubsResult", - modelProperties: { - value: { - serializedName: "value", + }, + vpnAuthenticationTypes: { + serializedName: "vpnAuthenticationTypes", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "VirtualHub" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", + vpnClientIpsecPolicies: { + serializedName: "vpnClientIpsecPolicies", type: { - name: "String" - } - } - } - } -}; - -export const ListHubVirtualNetworkConnectionsResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ListHubVirtualNetworkConnectionsResult", - modelProperties: { - value: { - serializedName: "value", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpsecPolicy" + } + } + } + }, + radiusServerAddress: { + serializedName: "radiusServerAddress", + type: { + name: "String" + } + }, + radiusServerSecret: { + serializedName: "radiusServerSecret", + type: { + name: "String" + } + }, + radiusServers: { + serializedName: "radiusServers", type: { name: "Sequence", element: { type: { name: "Composite", - className: "HubVirtualNetworkConnection" + className: "RadiusServer" } } } }, - nextLink: { - serializedName: "nextLink", + aadTenant: { + serializedName: "aadTenant", + type: { + name: "String" + } + }, + aadAudience: { + serializedName: "aadAudience", + type: { + name: "String" + } + }, + aadIssuer: { + serializedName: "aadIssuer", type: { name: "String" } + }, + vngClientConnectionConfigurations: { + serializedName: "vngClientConnectionConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VngClientConnectionConfiguration" + } + } + } } } } }; -export const VpnGatewayIpConfiguration: coreClient.CompositeMapper = { +export const IpsecPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnGatewayIpConfiguration", + className: "IpsecPolicy", modelProperties: { - id: { - serializedName: "id", + saLifeTimeSeconds: { + serializedName: "saLifeTimeSeconds", + required: true, + type: { + name: "Number" + } + }, + saDataSizeKilobytes: { + serializedName: "saDataSizeKilobytes", + required: true, + type: { + name: "Number" + } + }, + ipsecEncryption: { + serializedName: "ipsecEncryption", + required: true, type: { name: "String" } }, - publicIpAddress: { - serializedName: "publicIpAddress", + ipsecIntegrity: { + serializedName: "ipsecIntegrity", + required: true, type: { name: "String" } }, - privateIpAddress: { - serializedName: "privateIpAddress", + ikeEncryption: { + serializedName: "ikeEncryption", + required: true, + type: { + name: "String" + } + }, + ikeIntegrity: { + serializedName: "ikeIntegrity", + required: true, + type: { + name: "String" + } + }, + dhGroup: { + serializedName: "dhGroup", + required: true, + type: { + name: "String" + } + }, + pfsGroup: { + serializedName: "pfsGroup", + required: true, type: { name: "String" } @@ -12903,13 +12775,26 @@ export const VpnGatewayIpConfiguration: coreClient.CompositeMapper = { } }; -export const VpnGatewayPacketCaptureStartParameters: coreClient.CompositeMapper = { +export const RadiusServer: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnGatewayPacketCaptureStartParameters", + className: "RadiusServer", modelProperties: { - filterData: { - serializedName: "filterData", + radiusServerAddress: { + serializedName: "radiusServerAddress", + required: true, + type: { + name: "String" + } + }, + radiusServerScore: { + serializedName: "radiusServerScore", + type: { + name: "Number" + } + }, + radiusServerSecret: { + serializedName: "radiusServerSecret", type: { name: "String" } @@ -12918,13 +12803,25 @@ export const VpnGatewayPacketCaptureStartParameters: coreClient.CompositeMapper } }; -export const VpnGatewayPacketCaptureStopParameters: coreClient.CompositeMapper = { +export const VirtualNetworkGatewayPolicyGroupMember: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnGatewayPacketCaptureStopParameters", + className: "VirtualNetworkGatewayPolicyGroupMember", modelProperties: { - sasUrl: { - serializedName: "sasUrl", + name: { + serializedName: "name", + type: { + name: "String" + } + }, + attributeType: { + serializedName: "attributeType", + type: { + name: "String" + } + }, + attributeValue: { + serializedName: "attributeValue", type: { name: "String" } @@ -12933,46 +12830,63 @@ export const VpnGatewayPacketCaptureStopParameters: coreClient.CompositeMapper = } }; -export const ListVpnGatewaysResult: coreClient.CompositeMapper = { +export const BgpSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListVpnGatewaysResult", + className: "BgpSettings", modelProperties: { - value: { - serializedName: "value", + asn: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 0 + }, + serializedName: "asn", + type: { + name: "Number" + } + }, + bgpPeeringAddress: { + serializedName: "bgpPeeringAddress", + type: { + name: "String" + } + }, + peerWeight: { + serializedName: "peerWeight", + type: { + name: "Number" + } + }, + bgpPeeringAddresses: { + serializedName: "bgpPeeringAddresses", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VpnGateway" + className: "IPConfigurationBgpPeeringAddress" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const VpnConnectionPacketCaptureStartParameters: coreClient.CompositeMapper = { +export const IPConfigurationBgpPeeringAddress: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnConnectionPacketCaptureStartParameters", + className: "IPConfigurationBgpPeeringAddress", modelProperties: { - filterData: { - serializedName: "filterData", + ipconfigurationId: { + serializedName: "ipconfigurationId", type: { name: "String" } }, - linkConnectionNames: { - serializedName: "linkConnectionNames", + defaultBgpIpAddresses: { + serializedName: "defaultBgpIpAddresses", + readOnly: true, type: { name: "Sequence", element: { @@ -12981,24 +12895,21 @@ export const VpnConnectionPacketCaptureStartParameters: coreClient.CompositeMapp } } } - } - } - } -}; - -export const VpnConnectionPacketCaptureStopParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VpnConnectionPacketCaptureStopParameters", - modelProperties: { - sasUrl: { - serializedName: "sasUrl", + }, + customBgpIpAddresses: { + serializedName: "customBgpIpAddresses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - linkConnectionNames: { - serializedName: "linkConnectionNames", + tunnelIpAddresses: { + serializedName: "tunnelIpAddresses", + readOnly: true, type: { name: "Sequence", element: { @@ -13012,25 +12923,19 @@ export const VpnConnectionPacketCaptureStopParameters: coreClient.CompositeMappe } }; -export const ListVpnConnectionsResult: coreClient.CompositeMapper = { +export const VpnNatRuleMapping: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListVpnConnectionsResult", + className: "VpnNatRuleMapping", modelProperties: { - value: { - serializedName: "value", + addressSpace: { + serializedName: "addressSpace", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VpnConnection" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + portRange: { + serializedName: "portRange", type: { name: "String" } @@ -13039,10 +12944,10 @@ export const ListVpnConnectionsResult: coreClient.CompositeMapper = { } }; -export const ListVpnSiteLinkConnectionsResult: coreClient.CompositeMapper = { +export const VirtualNetworkGatewayListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListVpnSiteLinkConnectionsResult", + className: "VirtualNetworkGatewayListResult", modelProperties: { value: { serializedName: "value", @@ -13051,13 +12956,14 @@ export const ListVpnSiteLinkConnectionsResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VpnSiteLinkConnection" + className: "VirtualNetworkGateway" } } } }, nextLink: { serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -13066,10 +12972,10 @@ export const ListVpnSiteLinkConnectionsResult: coreClient.CompositeMapper = { } }; -export const ListVpnGatewayNatRulesResult: coreClient.CompositeMapper = { +export const VirtualNetworkGatewayListConnectionsResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListVpnGatewayNatRulesResult", + className: "VirtualNetworkGatewayListConnectionsResult", modelProperties: { value: { serializedName: "value", @@ -13078,13 +12984,14 @@ export const ListVpnGatewayNatRulesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VpnGatewayNatRule" + className: "VirtualNetworkGatewayConnectionListEntity" } } } }, nextLink: { serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -13093,25 +13000,14 @@ export const ListVpnGatewayNatRulesResult: coreClient.CompositeMapper = { } }; -export const ListP2SVpnGatewaysResult: coreClient.CompositeMapper = { +export const VirtualNetworkConnectionGatewayReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListP2SVpnGatewaysResult", + className: "VirtualNetworkConnectionGatewayReference", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "P2SVpnGateway" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + id: { + serializedName: "id", + required: true, type: { name: "String" } @@ -13120,54 +13016,42 @@ export const ListP2SVpnGatewaysResult: coreClient.CompositeMapper = { } }; -export const P2SVpnProfileParameters: coreClient.CompositeMapper = { +export const TunnelConnectionHealth: coreClient.CompositeMapper = { type: { name: "Composite", - className: "P2SVpnProfileParameters", + className: "TunnelConnectionHealth", modelProperties: { - authenticationMethod: { - serializedName: "authenticationMethod", + tunnel: { + serializedName: "tunnel", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const VpnProfileResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VpnProfileResponse", - modelProperties: { - profileUrl: { - serializedName: "profileUrl", + }, + connectionStatus: { + serializedName: "connectionStatus", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const P2SVpnConnectionHealthRequest: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "P2SVpnConnectionHealthRequest", - modelProperties: { - vpnUserNamesFilter: { - serializedName: "vpnUserNamesFilter", + }, + ingressBytesTransferred: { + serializedName: "ingressBytesTransferred", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - outputBlobSasUrl: { - serializedName: "outputBlobSasUrl", + egressBytesTransferred: { + serializedName: "egressBytesTransferred", + readOnly: true, + type: { + name: "Number" + } + }, + lastConnectionEstablishedUtcTime: { + serializedName: "lastConnectionEstablishedUtcTime", + readOnly: true, type: { name: "String" } @@ -13176,13 +13060,21 @@ export const P2SVpnConnectionHealthRequest: coreClient.CompositeMapper = { } }; -export const P2SVpnConnectionHealth: coreClient.CompositeMapper = { +export const GatewayCustomBgpIpAddressIpConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "P2SVpnConnectionHealth", + className: "GatewayCustomBgpIpAddressIpConfiguration", modelProperties: { - sasUrl: { - serializedName: "sasUrl", + ipConfigurationId: { + serializedName: "ipConfigurationId", + required: true, + type: { + name: "String" + } + }, + customBgpIpAddress: { + serializedName: "customBgpIpAddress", + required: true, type: { name: "String" } @@ -13191,13 +13083,26 @@ export const P2SVpnConnectionHealth: coreClient.CompositeMapper = { } }; -export const VpnServerConfigurationsResponse: coreClient.CompositeMapper = { +export const TrafficSelectorPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnServerConfigurationsResponse", + className: "TrafficSelectorPolicy", modelProperties: { - vpnServerConfigurationResourceIds: { - serializedName: "vpnServerConfigurationResourceIds", + localAddressRanges: { + serializedName: "localAddressRanges", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + remoteAddressRanges: { + serializedName: "remoteAddressRanges", + required: true, type: { name: "Sequence", element: { @@ -13211,13 +13116,13 @@ export const VpnServerConfigurationsResponse: coreClient.CompositeMapper = { } }; -export const VirtualWanVpnProfileParameters: coreClient.CompositeMapper = { +export const VpnClientParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualWanVpnProfileParameters", + className: "VpnClientParameters", modelProperties: { - vpnServerConfigurationResourceId: { - serializedName: "vpnServerConfigurationResourceId", + processorArchitecture: { + serializedName: "processorArchitecture", type: { name: "String" } @@ -13227,42 +13132,32 @@ export const VirtualWanVpnProfileParameters: coreClient.CompositeMapper = { type: { name: "String" } - } - } - } -}; - -export const ListVirtualHubRouteTableV2SResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ListVirtualHubRouteTableV2SResult", - modelProperties: { - value: { - serializedName: "value", + }, + radiusServerAuthCertificate: { + serializedName: "radiusServerAuthCertificate", + type: { + name: "String" + } + }, + clientRootCertificates: { + serializedName: "clientRootCertificates", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "VirtualHubRouteTableV2" + name: "String" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const ExpressRouteGatewayList: coreClient.CompositeMapper = { +export const BgpPeerStatusListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExpressRouteGatewayList", + className: "BgpPeerStatusListResult", modelProperties: { value: { serializedName: "value", @@ -13271,7 +13166,7 @@ export const ExpressRouteGatewayList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ExpressRouteGateway" + className: "BgpPeerStatus" } } } @@ -13280,35 +13175,67 @@ export const ExpressRouteGatewayList: coreClient.CompositeMapper = { } }; -export const ExpressRouteGatewayPropertiesAutoScaleConfiguration: coreClient.CompositeMapper = { +export const BgpPeerStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExpressRouteGatewayPropertiesAutoScaleConfiguration", + className: "BgpPeerStatus", modelProperties: { - bounds: { - serializedName: "bounds", + localAddress: { + serializedName: "localAddress", + readOnly: true, type: { - name: "Composite", - className: "ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds" + name: "String" } - } - } - } -}; - -export const ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds", - modelProperties: { - min: { - serializedName: "min", + }, + neighbor: { + serializedName: "neighbor", + readOnly: true, + type: { + name: "String" + } + }, + asn: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 0 + }, + serializedName: "asn", + readOnly: true, type: { name: "Number" } }, - max: { - serializedName: "max", + state: { + serializedName: "state", + readOnly: true, + type: { + name: "String" + } + }, + connectedDuration: { + serializedName: "connectedDuration", + readOnly: true, + type: { + name: "String" + } + }, + routesReceived: { + serializedName: "routesReceived", + readOnly: true, + type: { + name: "Number" + } + }, + messagesSent: { + serializedName: "messagesSent", + readOnly: true, + type: { + name: "Number" + } + }, + messagesReceived: { + serializedName: "messagesReceived", + readOnly: true, type: { name: "Number" } @@ -13317,109 +13244,31 @@ export const ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds: coreClie } }; -export const ExpressRouteCircuitPeeringId: coreClient.CompositeMapper = { +export const GatewayRouteListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExpressRouteCircuitPeeringId", + className: "GatewayRouteListResult", modelProperties: { - id: { - serializedName: "id", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayRoute" + } + } } } } } }; -export const VirtualHubId: coreClient.CompositeMapper = { +export const GatewayRoute: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualHubId", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; - -export const ExpressRouteConnectionList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExpressRouteConnectionList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExpressRouteConnection" - } - } - } - } - } - } -}; - -export const ListVirtualHubBgpConnectionResults: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ListVirtualHubBgpConnectionResults", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BgpConnection" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const PeerRouteList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PeerRouteList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PeerRoute" - } - } - } - } - } - } -}; - -export const PeerRoute: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PeerRoute", + className: "GatewayRoute", modelProperties: { localAddress: { serializedName: "localAddress", @@ -13474,73 +13323,62 @@ export const PeerRoute: coreClient.CompositeMapper = { } }; -export const ListVirtualHubIpConfigurationResults: coreClient.CompositeMapper = { +export const VpnClientIPsecParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListVirtualHubIpConfigurationResults", + className: "VpnClientIPsecParameters", modelProperties: { - value: { - serializedName: "value", + saLifeTimeSeconds: { + serializedName: "saLifeTimeSeconds", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HubIpConfiguration" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + saDataSizeKilobytes: { + serializedName: "saDataSizeKilobytes", + required: true, + type: { + name: "Number" + } + }, + ipsecEncryption: { + serializedName: "ipsecEncryption", + required: true, type: { name: "String" } - } - } - } -}; - -export const HubRoute: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "HubRoute", - modelProperties: { - name: { - serializedName: "name", + }, + ipsecIntegrity: { + serializedName: "ipsecIntegrity", required: true, type: { name: "String" } }, - destinationType: { - serializedName: "destinationType", + ikeEncryption: { + serializedName: "ikeEncryption", required: true, type: { name: "String" } }, - destinations: { - serializedName: "destinations", + ikeIntegrity: { + serializedName: "ikeIntegrity", required: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - nextHopType: { - serializedName: "nextHopType", + dhGroup: { + serializedName: "dhGroup", required: true, type: { name: "String" } }, - nextHop: { - serializedName: "nextHop", + pfsGroup: { + serializedName: "pfsGroup", required: true, type: { name: "String" @@ -13550,25 +13388,25 @@ export const HubRoute: coreClient.CompositeMapper = { } }; -export const ListHubRouteTablesResult: coreClient.CompositeMapper = { +export const VpnDeviceScriptParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListHubRouteTablesResult", + className: "VpnDeviceScriptParameters", modelProperties: { - value: { - serializedName: "value", + vendor: { + serializedName: "vendor", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HubRouteTable" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + deviceFamily: { + serializedName: "deviceFamily", + type: { + name: "String" + } + }, + firmwareVersion: { + serializedName: "firmwareVersion", type: { name: "String" } @@ -13577,19 +13415,13 @@ export const ListHubRouteTablesResult: coreClient.CompositeMapper = { } }; -export const EffectiveRoutesParameters: coreClient.CompositeMapper = { +export const VpnPacketCaptureStartParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EffectiveRoutesParameters", + className: "VpnPacketCaptureStartParameters", modelProperties: { - resourceId: { - serializedName: "resourceId", - type: { - name: "String" - } - }, - virtualWanResourceType: { - serializedName: "virtualWanResourceType", + filterData: { + serializedName: "filterData", type: { name: "String" } @@ -13598,33 +13430,13 @@ export const EffectiveRoutesParameters: coreClient.CompositeMapper = { } }; -export const RoutingPolicy: coreClient.CompositeMapper = { +export const VpnPacketCaptureStopParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoutingPolicy", + className: "VpnPacketCaptureStopParameters", modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - destinations: { - serializedName: "destinations", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - nextHop: { - serializedName: "nextHop", - required: true, + sasUrl: { + serializedName: "sasUrl", type: { name: "String" } @@ -13633,10 +13445,10 @@ export const RoutingPolicy: coreClient.CompositeMapper = { } }; -export const ListRoutingIntentResult: coreClient.CompositeMapper = { +export const VirtualNetworkGatewayConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListRoutingIntentResult", + className: "VirtualNetworkGatewayConnectionListResult", modelProperties: { value: { serializedName: "value", @@ -13645,13 +13457,14 @@ export const ListRoutingIntentResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RoutingIntent" + className: "VirtualNetworkGatewayConnection" } } } }, nextLink: { serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -13660,20 +13473,39 @@ export const ListRoutingIntentResult: coreClient.CompositeMapper = { } }; -export const WebApplicationFirewallPolicyListResult: coreClient.CompositeMapper = { +export const ConnectionResetSharedKey: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WebApplicationFirewallPolicyListResult", + className: "ConnectionResetSharedKey", + modelProperties: { + keyLength: { + constraints: { + InclusiveMaximum: 128, + InclusiveMinimum: 1 + }, + serializedName: "keyLength", + required: true, + type: { + name: "Number" + } + } + } + } +}; + +export const LocalNetworkGatewayListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LocalNetworkGatewayListResult", modelProperties: { value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "WebApplicationFirewallPolicy" + className: "LocalNetworkGateway" } } } @@ -13689,182 +13521,213 @@ export const WebApplicationFirewallPolicyListResult: coreClient.CompositeMapper } }; -export const PolicySettings: coreClient.CompositeMapper = { +export const VpnClientConnectionHealthDetailListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PolicySettings", + className: "VpnClientConnectionHealthDetailListResult", modelProperties: { - state: { - serializedName: "state", + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VpnClientConnectionHealthDetail" + } + } + } + } + } + } +}; + +export const VpnClientConnectionHealthDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VpnClientConnectionHealthDetail", + modelProperties: { + vpnConnectionId: { + serializedName: "vpnConnectionId", + readOnly: true, type: { name: "String" } }, - mode: { - serializedName: "mode", + vpnConnectionDuration: { + serializedName: "vpnConnectionDuration", + readOnly: true, + type: { + name: "Number" + } + }, + vpnConnectionTime: { + serializedName: "vpnConnectionTime", + readOnly: true, type: { name: "String" } }, - requestBodyCheck: { - serializedName: "requestBodyCheck", + publicIpAddress: { + serializedName: "publicIpAddress", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - maxRequestBodySizeInKb: { - constraints: { - InclusiveMinimum: 8 - }, - serializedName: "maxRequestBodySizeInKb", + privateIpAddress: { + serializedName: "privateIpAddress", + readOnly: true, type: { - name: "Number" + name: "String" } }, - fileUploadLimitInMb: { - constraints: { - InclusiveMinimum: 0 - }, - serializedName: "fileUploadLimitInMb", + vpnUserName: { + serializedName: "vpnUserName", + readOnly: true, + type: { + name: "String" + } + }, + maxBandwidth: { + serializedName: "maxBandwidth", + readOnly: true, type: { name: "Number" } - } - } - } -}; - -export const WebApplicationFirewallCustomRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WebApplicationFirewallCustomRule", - modelProperties: { - name: { - constraints: { - MaxLength: 128 - }, - serializedName: "name", + }, + egressPacketsTransferred: { + serializedName: "egressPacketsTransferred", + readOnly: true, type: { - name: "String" + name: "Number" } }, - etag: { - serializedName: "etag", + egressBytesTransferred: { + serializedName: "egressBytesTransferred", readOnly: true, type: { - name: "String" + name: "Number" } }, - priority: { - serializedName: "priority", - required: true, + ingressPacketsTransferred: { + serializedName: "ingressPacketsTransferred", + readOnly: true, type: { name: "Number" } }, - ruleType: { - serializedName: "ruleType", - required: true, + ingressBytesTransferred: { + serializedName: "ingressBytesTransferred", + readOnly: true, type: { - name: "String" + name: "Number" } }, - matchConditions: { - serializedName: "matchConditions", - required: true, + maxPacketsPerSecond: { + serializedName: "maxPacketsPerSecond", + readOnly: true, + type: { + name: "Number" + } + } + } + } +}; + +export const P2SVpnConnectionRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "P2SVpnConnectionRequest", + modelProperties: { + vpnConnectionIds: { + serializedName: "vpnConnectionIds", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "MatchCondition" + name: "String" } } } - }, - action: { - serializedName: "action", - required: true, - type: { - name: "String" - } } } } }; -export const MatchCondition: coreClient.CompositeMapper = { +export const ListVirtualNetworkGatewayNatRulesResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MatchCondition", + className: "ListVirtualNetworkGatewayNatRulesResult", modelProperties: { - matchVariables: { - serializedName: "matchVariables", - required: true, + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "MatchVariable" + className: "VirtualNetworkGatewayNatRule" } } } }, - operator: { - serializedName: "operator", - required: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - negationConditon: { - serializedName: "negationConditon", - type: { - name: "Boolean" - } - }, - matchValues: { - serializedName: "matchValues", - required: true, + } + } + } +}; + +export const VirtualNetworkTapListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualNetworkTapListResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "VirtualNetworkTap" } } } }, - transforms: { - serializedName: "transforms", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const MatchVariable: coreClient.CompositeMapper = { +export const VirtualRouterListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MatchVariable", + className: "VirtualRouterListResult", modelProperties: { - variableName: { - serializedName: "variableName", - required: true, + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualRouter" + } + } } }, - selector: { - serializedName: "selector", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -13873,238 +13736,245 @@ export const MatchVariable: coreClient.CompositeMapper = { } }; -export const ManagedRulesDefinition: coreClient.CompositeMapper = { +export const VirtualRouterPeeringListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedRulesDefinition", + className: "VirtualRouterPeeringListResult", modelProperties: { - exclusions: { - serializedName: "exclusions", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "OwaspCrsExclusionEntry" + className: "VirtualRouterPeering" } } } }, - managedRuleSets: { - serializedName: "managedRuleSets", - required: true, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ListVirtualWANsResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListVirtualWANsResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedRuleSet" + className: "VirtualWAN" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const OwaspCrsExclusionEntry: coreClient.CompositeMapper = { +export const DeviceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OwaspCrsExclusionEntry", + className: "DeviceProperties", modelProperties: { - matchVariable: { - serializedName: "matchVariable", - required: true, - type: { - name: "String" - } - }, - selectorMatchOperator: { - serializedName: "selectorMatchOperator", - required: true, + deviceVendor: { + serializedName: "deviceVendor", type: { name: "String" } }, - selector: { - serializedName: "selector", - required: true, + deviceModel: { + serializedName: "deviceModel", type: { name: "String" } }, - exclusionManagedRuleSets: { - serializedName: "exclusionManagedRuleSets", + linkSpeedInMbps: { + serializedName: "linkSpeedInMbps", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExclusionManagedRuleSet" - } - } + name: "Number" } } } } }; -export const ExclusionManagedRuleSet: coreClient.CompositeMapper = { +export const VpnLinkProviderProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExclusionManagedRuleSet", + className: "VpnLinkProviderProperties", modelProperties: { - ruleSetType: { - serializedName: "ruleSetType", - required: true, - type: { - name: "String" - } - }, - ruleSetVersion: { - serializedName: "ruleSetVersion", - required: true, + linkProviderName: { + serializedName: "linkProviderName", type: { name: "String" } }, - ruleGroups: { - serializedName: "ruleGroups", + linkSpeedInMbps: { + serializedName: "linkSpeedInMbps", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExclusionManagedRuleGroup" - } - } + name: "Number" } } } } }; -export const ExclusionManagedRuleGroup: coreClient.CompositeMapper = { +export const VpnLinkBgpSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExclusionManagedRuleGroup", + className: "VpnLinkBgpSettings", modelProperties: { - ruleGroupName: { - serializedName: "ruleGroupName", - required: true, + asn: { + serializedName: "asn", type: { - name: "String" + name: "Number" } }, - rules: { - serializedName: "rules", + bgpPeeringAddress: { + serializedName: "bgpPeeringAddress", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExclusionManagedRule" - } - } + name: "String" } } } } }; -export const ExclusionManagedRule: coreClient.CompositeMapper = { +export const O365PolicyProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExclusionManagedRule", + className: "O365PolicyProperties", modelProperties: { - ruleId: { - serializedName: "ruleId", - required: true, + breakOutCategories: { + serializedName: "breakOutCategories", type: { - name: "String" + name: "Composite", + className: "O365BreakOutCategoryPolicies" } } } } }; -export const ManagedRuleSet: coreClient.CompositeMapper = { +export const O365BreakOutCategoryPolicies: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedRuleSet", + className: "O365BreakOutCategoryPolicies", modelProperties: { - ruleSetType: { - serializedName: "ruleSetType", - required: true, + allow: { + serializedName: "allow", type: { - name: "String" + name: "Boolean" } }, - ruleSetVersion: { - serializedName: "ruleSetVersion", - required: true, + optimize: { + serializedName: "optimize", type: { - name: "String" + name: "Boolean" } }, - ruleGroupOverrides: { - serializedName: "ruleGroupOverrides", + default: { + serializedName: "default", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ListVpnSitesResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListVpnSitesResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedRuleGroupOverride" + className: "VpnSite" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const ManagedRuleGroupOverride: coreClient.CompositeMapper = { +export const ListVpnSiteLinksResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedRuleGroupOverride", + className: "ListVpnSiteLinksResult", modelProperties: { - ruleGroupName: { - serializedName: "ruleGroupName", - required: true, - type: { - name: "String" - } - }, - rules: { - serializedName: "rules", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedRuleOverride" + className: "VpnSiteLink" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const ManagedRuleOverride: coreClient.CompositeMapper = { +export const GetVpnSitesConfigurationRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedRuleOverride", + className: "GetVpnSitesConfigurationRequest", modelProperties: { - ruleId: { - serializedName: "ruleId", - required: true, + vpnSites: { + serializedName: "vpnSites", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - state: { - serializedName: "state", + outputBlobSasUrl: { + serializedName: "outputBlobSasUrl", + required: true, type: { name: "String" } @@ -14113,30 +13983,31 @@ export const ManagedRuleOverride: coreClient.CompositeMapper = { } }; -export const FirewallPolicyNatRuleCollectionAction: coreClient.CompositeMapper = { +export const VirtualWanSecurityProviders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FirewallPolicyNatRuleCollectionAction", + className: "VirtualWanSecurityProviders", modelProperties: { - type: { - serializedName: "type", + supportedProviders: { + serializedName: "supportedProviders", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualWanSecurityProvider" + } + } } } } } }; -export const FirewallPolicyRule: coreClient.CompositeMapper = { +export const VirtualWanSecurityProvider: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FirewallPolicyRule", - uberParent: "FirewallPolicyRule", - polymorphicDiscriminator: { - serializedName: "ruleType", - clientName: "ruleType" - }, + className: "VirtualWanSecurityProvider", modelProperties: { name: { serializedName: "name", @@ -14144,15 +14015,15 @@ export const FirewallPolicyRule: coreClient.CompositeMapper = { name: "String" } }, - description: { - serializedName: "description", + url: { + serializedName: "url", type: { name: "String" } }, - ruleType: { - serializedName: "ruleType", - required: true, + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } @@ -14161,13 +14032,19 @@ export const FirewallPolicyRule: coreClient.CompositeMapper = { } }; -export const FirewallPolicyFilterRuleCollectionAction: coreClient.CompositeMapper = { +export const VpnServerConfigVpnClientRootCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FirewallPolicyFilterRuleCollectionAction", + className: "VpnServerConfigVpnClientRootCertificate", modelProperties: { - type: { - serializedName: "type", + name: { + serializedName: "name", + type: { + name: "String" + } + }, + publicCertData: { + serializedName: "publicCertData", type: { name: "String" } @@ -14176,61 +14053,61 @@ export const FirewallPolicyFilterRuleCollectionAction: coreClient.CompositeMappe } }; -export const FirewallPolicyRuleApplicationProtocol: coreClient.CompositeMapper = { +export const VpnServerConfigVpnClientRevokedCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FirewallPolicyRuleApplicationProtocol", + className: "VpnServerConfigVpnClientRevokedCertificate", modelProperties: { - protocolType: { - serializedName: "protocolType", + name: { + serializedName: "name", type: { name: "String" } }, - port: { - constraints: { - InclusiveMaximum: 64000, - InclusiveMinimum: 0 - }, - serializedName: "port", + thumbprint: { + serializedName: "thumbprint", type: { - name: "Number" + name: "String" } } } } }; -export const AzureAsyncOperationResult: coreClient.CompositeMapper = { +export const VpnServerConfigRadiusServerRootCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureAsyncOperationResult", + className: "VpnServerConfigRadiusServerRootCertificate", modelProperties: { - status: { - serializedName: "status", + name: { + serializedName: "name", type: { name: "String" } }, - error: { - serializedName: "error", + publicCertData: { + serializedName: "publicCertData", type: { - name: "Composite", - className: "ErrorModel" + name: "String" } } } } }; -export const VpnSiteId: coreClient.CompositeMapper = { +export const VpnServerConfigRadiusClientRootCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnSiteId", + className: "VpnServerConfigRadiusClientRootCertificate", modelProperties: { - vpnSite: { - serializedName: "vpnSite", - readOnly: true, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + thumbprint: { + serializedName: "thumbprint", type: { name: "String" } @@ -14239,155 +14116,164 @@ export const VpnSiteId: coreClient.CompositeMapper = { } }; -export const VirtualHubEffectiveRouteList: coreClient.CompositeMapper = { +export const AadAuthenticationParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualHubEffectiveRouteList", + className: "AadAuthenticationParameters", modelProperties: { - value: { - serializedName: "value", + aadTenant: { + serializedName: "aadTenant", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualHubEffectiveRoute" - } - } + name: "String" + } + }, + aadAudience: { + serializedName: "aadAudience", + type: { + name: "String" + } + }, + aadIssuer: { + serializedName: "aadIssuer", + type: { + name: "String" } } } } }; -export const VirtualHubEffectiveRoute: coreClient.CompositeMapper = { +export const RoutingConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualHubEffectiveRoute", + className: "RoutingConfiguration", modelProperties: { - addressPrefixes: { - serializedName: "addressPrefixes", + associatedRouteTable: { + serializedName: "associatedRouteTable", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "SubResource" } }, - nextHops: { - serializedName: "nextHops", + propagatedRouteTables: { + serializedName: "propagatedRouteTables", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "PropagatedRouteTable" } }, - nextHopType: { - serializedName: "nextHopType", + vnetRoutes: { + serializedName: "vnetRoutes", type: { - name: "String" + name: "Composite", + className: "VnetRoute" } }, - asPath: { - serializedName: "asPath", + inboundRouteMap: { + serializedName: "inboundRouteMap", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - routeOrigin: { - serializedName: "routeOrigin", + outboundRouteMap: { + serializedName: "outboundRouteMap", type: { - name: "String" + name: "Composite", + className: "SubResource" } } } } }; -export const ApplicationGatewayIPConfiguration: coreClient.CompositeMapper = { +export const PropagatedRouteTable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGatewayIPConfiguration", + className: "PropagatedRouteTable", modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", + labels: { + serializedName: "labels", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - etag: { - serializedName: "etag", - readOnly: true, + ids: { + serializedName: "ids", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } - }, - type: { - serializedName: "type", - readOnly: true, + } + } + } +}; + +export const VnetRoute: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VnetRoute", + modelProperties: { + staticRoutesConfig: { + serializedName: "staticRoutesConfig", type: { - name: "String" + name: "Composite", + className: "StaticRoutesConfig" } }, - subnet: { - serializedName: "properties.subnet", + staticRoutes: { + serializedName: "staticRoutes", type: { - name: "Composite", - className: "SubResource" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StaticRoute" + } + } } }, - provisioningState: { - serializedName: "properties.provisioningState", + bgpConnections: { + serializedName: "bgpConnections", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } } } } }; -export const ApplicationGatewayAuthenticationCertificate: coreClient.CompositeMapper = { +export const StaticRoutesConfig: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGatewayAuthenticationCertificate", + className: "StaticRoutesConfig", modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - etag: { - serializedName: "etag", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", + propagateStaticRoutes: { + serializedName: "propagateStaticRoutes", readOnly: true, type: { - name: "String" - } - }, - data: { - serializedName: "properties.data", - type: { - name: "String" + name: "Boolean" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + vnetLocalRouteOverrideCriteria: { + serializedName: "vnetLocalRouteOverrideCriteria", type: { name: "String" } @@ -14396,47 +14282,57 @@ export const ApplicationGatewayAuthenticationCertificate: coreClient.CompositeMa } }; -export const ApplicationGatewayTrustedRootCertificate: coreClient.CompositeMapper = { +export const StaticRoute: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGatewayTrustedRootCertificate", + className: "StaticRoute", modelProperties: { - ...SubResource.type.modelProperties, name: { serializedName: "name", type: { name: "String" } }, - etag: { - serializedName: "etag", - readOnly: true, + addressPrefixes: { + serializedName: "addressPrefixes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - type: { - serializedName: "type", - readOnly: true, + nextHopIpAddress: { + serializedName: "nextHopIpAddress", type: { name: "String" } - }, - data: { - serializedName: "properties.data", + } + } + } +}; + +export const VpnServerConfigurationPolicyGroupMember: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VpnServerConfigurationPolicyGroupMember", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - keyVaultSecretId: { - serializedName: "properties.keyVaultSecretId", + attributeType: { + serializedName: "attributeType", type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + attributeValue: { + serializedName: "attributeValue", type: { name: "String" } @@ -14445,55 +14341,65 @@ export const ApplicationGatewayTrustedRootCertificate: coreClient.CompositeMappe } }; -export const ApplicationGatewayTrustedClientCertificate: coreClient.CompositeMapper = { +export const VpnClientConnectionHealth: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGatewayTrustedClientCertificate", + className: "VpnClientConnectionHealth", modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", + totalIngressBytesTransferred: { + serializedName: "totalIngressBytesTransferred", + readOnly: true, type: { - name: "String" + name: "Number" } }, - etag: { - serializedName: "etag", + totalEgressBytesTransferred: { + serializedName: "totalEgressBytesTransferred", readOnly: true, type: { - name: "String" + name: "Number" } }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - data: { - serializedName: "properties.data", + vpnClientConnectionsCount: { + serializedName: "vpnClientConnectionsCount", type: { - name: "String" + name: "Number" } }, - validatedCertData: { - serializedName: "properties.validatedCertData", - readOnly: true, + allocatedIpAddresses: { + serializedName: "allocatedIpAddresses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - clientCertIssuerDN: { - serializedName: "properties.clientCertIssuerDN", - readOnly: true, + } + } + } +}; + +export const ListVpnServerConfigurationsResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListVpnServerConfigurationsResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VpnServerConfiguration" + } + } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -14502,130 +14408,205 @@ export const ApplicationGatewayTrustedClientCertificate: coreClient.CompositeMap } }; -export const ApplicationGatewaySslCertificate: coreClient.CompositeMapper = { +export const ListVpnServerConfigurationPolicyGroupsResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGatewaySslCertificate", + className: "ListVpnServerConfigurationPolicyGroupsResult", modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VpnServerConfigurationPolicyGroup" + } + } } }, - etag: { - serializedName: "etag", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - type: { - serializedName: "type", - readOnly: true, + } + } + } +}; + +export const VirtualHubRouteTable: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualHubRouteTable", + modelProperties: { + routes: { + serializedName: "routes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualHubRoute" + } + } + } + } + } + } +}; + +export const VirtualHubRoute: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualHubRoute", + modelProperties: { + addressPrefixes: { + serializedName: "addressPrefixes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - data: { - serializedName: "properties.data", + nextHopIpAddress: { + serializedName: "nextHopIpAddress", type: { name: "String" } - }, - password: { - serializedName: "properties.password", + } + } + } +}; + +export const VirtualHubRouteV2: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualHubRouteV2", + modelProperties: { + destinationType: { + serializedName: "destinationType", type: { name: "String" } }, - publicCertData: { - serializedName: "properties.publicCertData", - readOnly: true, + destinations: { + serializedName: "destinations", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - keyVaultSecretId: { - serializedName: "properties.keyVaultSecretId", + nextHopType: { + serializedName: "nextHopType", type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + nextHops: { + serializedName: "nextHops", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ApplicationGatewayFrontendIPConfiguration: coreClient.CompositeMapper = { +export const VirtualRouterAutoScaleConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGatewayFrontendIPConfiguration", + className: "VirtualRouterAutoScaleConfiguration", modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - etag: { - serializedName: "etag", - readOnly: true, + minCapacity: { + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "minCapacity", type: { - name: "String" + name: "Number" } - }, - type: { - serializedName: "type", - readOnly: true, + } + } + } +}; + +export const ListVirtualHubsResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListVirtualHubsResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualHub" + } + } } }, - privateIPAddress: { - serializedName: "properties.privateIPAddress", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - privateIPAllocationMethod: { - serializedName: "properties.privateIPAllocationMethod", + } + } + } +}; + +export const RouteMapRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RouteMapRule", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - subnet: { - serializedName: "properties.subnet", - type: { - name: "Composite", - className: "SubResource" - } - }, - publicIPAddress: { - serializedName: "properties.publicIPAddress", + matchCriteria: { + serializedName: "matchCriteria", type: { - name: "Composite", - className: "SubResource" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Criterion" + } + } } }, - privateLinkConfiguration: { - serializedName: "properties.privateLinkConfiguration", + actions: { + serializedName: "actions", type: { - name: "Composite", - className: "SubResource" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Action" + } + } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + nextStepIfMatched: { + serializedName: "nextStepIfMatched", type: { name: "String" } @@ -14634,41 +14615,46 @@ export const ApplicationGatewayFrontendIPConfiguration: coreClient.CompositeMapp } }; -export const ApplicationGatewayFrontendPort: coreClient.CompositeMapper = { +export const Criterion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGatewayFrontendPort", + className: "Criterion", modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - etag: { - serializedName: "etag", - readOnly: true, + routePrefix: { + serializedName: "routePrefix", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - type: { - serializedName: "type", - readOnly: true, + community: { + serializedName: "community", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - port: { - serializedName: "properties.port", + asPath: { + serializedName: "asPath", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + matchCondition: { + serializedName: "matchCondition", type: { name: "String" } @@ -14677,144 +14663,178 @@ export const ApplicationGatewayFrontendPort: coreClient.CompositeMapper = { } }; -export const ApplicationGatewayProbe: coreClient.CompositeMapper = { +export const Action: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGatewayProbe", + className: "Action", modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - etag: { - serializedName: "etag", - readOnly: true, - type: { - name: "String" - } - }, type: { serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - protocol: { - serializedName: "properties.protocol", type: { name: "String" } }, - host: { - serializedName: "properties.host", - type: { - name: "String" - } - }, - path: { - serializedName: "properties.path", + parameters: { + serializedName: "parameters", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Parameter" + } + } } - }, - interval: { - serializedName: "properties.interval", + } + } + } +}; + +export const Parameter: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Parameter", + modelProperties: { + routePrefix: { + serializedName: "routePrefix", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - timeout: { - serializedName: "properties.timeout", + community: { + serializedName: "community", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - unhealthyThreshold: { - serializedName: "properties.unhealthyThreshold", + asPath: { + serializedName: "asPath", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - pickHostNameFromBackendHttpSettings: { - serializedName: "properties.pickHostNameFromBackendHttpSettings", + } + } + } +}; + +export const ListRouteMapsResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListRouteMapsResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RouteMap" + } + } } }, - minServers: { - serializedName: "properties.minServers", + nextLink: { + serializedName: "nextLink", type: { - name: "Number" + name: "String" } - }, - match: { - serializedName: "properties.match", + } + } + } +}; + +export const ListHubVirtualNetworkConnectionsResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListHubVirtualNetworkConnectionsResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "Composite", - className: "ApplicationGatewayProbeHealthResponseMatch" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HubVirtualNetworkConnection" + } + } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - port: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "properties.port", - type: { - name: "Number" - } } } } }; -export const NetworkInterfaceTapConfiguration: coreClient.CompositeMapper = { +export const VpnGatewayIpConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkInterfaceTapConfiguration", + className: "VpnGatewayIpConfiguration", modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", + id: { + serializedName: "id", type: { name: "String" } }, - etag: { - serializedName: "etag", - readOnly: true, + publicIpAddress: { + serializedName: "publicIpAddress", type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + privateIpAddress: { + serializedName: "privateIpAddress", type: { name: "String" } - }, - virtualNetworkTap: { - serializedName: "properties.virtualNetworkTap", + } + } + } +}; + +export const VpnGatewayPacketCaptureStartParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VpnGatewayPacketCaptureStartParameters", + modelProperties: { + filterData: { + serializedName: "filterData", type: { - name: "Composite", - className: "VirtualNetworkTap" + name: "String" } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + } + } + } +}; + +export const VpnGatewayPacketCaptureStopParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VpnGatewayPacketCaptureStopParameters", + modelProperties: { + sasUrl: { + serializedName: "sasUrl", type: { name: "String" } @@ -14823,63 +14843,72 @@ export const NetworkInterfaceTapConfiguration: coreClient.CompositeMapper = { } }; -export const SecurityRule: coreClient.CompositeMapper = { +export const ListVpnGatewaysResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityRule", + className: "ListVpnGatewaysResult", modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VpnGateway" + } + } } }, - etag: { - serializedName: "etag", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "String" - } - }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - }, - protocol: { - serializedName: "properties.protocol", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - sourcePortRange: { - serializedName: "properties.sourcePortRange", + } + } + } +}; + +export const VpnConnectionPacketCaptureStartParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VpnConnectionPacketCaptureStartParameters", + modelProperties: { + filterData: { + serializedName: "filterData", type: { name: "String" } }, - destinationPortRange: { - serializedName: "properties.destinationPortRange", + linkConnectionNames: { + serializedName: "linkConnectionNames", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - sourceAddressPrefix: { - serializedName: "properties.sourceAddressPrefix", + } + } + } +}; + +export const VpnConnectionPacketCaptureStopParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VpnConnectionPacketCaptureStopParameters", + modelProperties: { + sasUrl: { + serializedName: "sasUrl", type: { name: "String" } }, - sourceAddressPrefixes: { - serializedName: "properties.sourceAddressPrefixes", + linkConnectionNames: { + serializedName: "linkConnectionNames", type: { name: "Sequence", element: { @@ -14888,91 +14917,111 @@ export const SecurityRule: coreClient.CompositeMapper = { } } } - }, - sourceApplicationSecurityGroups: { - serializedName: "properties.sourceApplicationSecurityGroups", + } + } + } +}; + +export const ListVpnConnectionsResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListVpnConnectionsResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationSecurityGroup" + className: "VpnConnection" } } } }, - destinationAddressPrefix: { - serializedName: "properties.destinationAddressPrefix", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - destinationAddressPrefixes: { - serializedName: "properties.destinationAddressPrefixes", + } + } + } +}; + +export const ListVpnSiteLinkConnectionsResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListVpnSiteLinkConnectionsResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "VpnSiteLinkConnection" } } } }, - destinationApplicationSecurityGroups: { - serializedName: "properties.destinationApplicationSecurityGroups", + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ListVpnGatewayNatRulesResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListVpnGatewayNatRulesResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationSecurityGroup" + className: "VpnGatewayNatRule" } } } }, - sourcePortRanges: { - serializedName: "properties.sourcePortRanges", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - }, - destinationPortRanges: { - serializedName: "properties.destinationPortRanges", + } + } + } +}; + +export const ListP2SVpnGatewaysResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListP2SVpnGatewaysResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "P2SVpnGateway" } } } }, - access: { - serializedName: "properties.access", - type: { - name: "String" - } - }, - priority: { - serializedName: "properties.priority", - type: { - name: "Number" - } - }, - direction: { - serializedName: "properties.direction", - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -14981,47 +15030,43 @@ export const SecurityRule: coreClient.CompositeMapper = { } }; -export const PrivateLinkServiceConnection: coreClient.CompositeMapper = { +export const P2SVpnProfileParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkServiceConnection", + className: "P2SVpnProfileParameters", modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - etag: { - serializedName: "etag", - readOnly: true, - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + authenticationMethod: { + serializedName: "authenticationMethod", type: { name: "String" } - }, - privateLinkServiceId: { - serializedName: "properties.privateLinkServiceId", + } + } + } +}; + +export const VpnProfileResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VpnProfileResponse", + modelProperties: { + profileUrl: { + serializedName: "profileUrl", type: { name: "String" } - }, - groupIds: { - serializedName: "properties.groupIds", + } + } + } +}; + +export const P2SVpnConnectionHealthRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "P2SVpnConnectionHealthRequest", + modelProperties: { + vpnUserNamesFilter: { + serializedName: "vpnUserNamesFilter", type: { name: "Sequence", element: { @@ -15031,31 +15076,2758 @@ export const PrivateLinkServiceConnection: coreClient.CompositeMapper = { } } }, - requestMessage: { - serializedName: "properties.requestMessage", + outputBlobSasUrl: { + serializedName: "outputBlobSasUrl", type: { name: "String" } - }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" - } } } } }; -export const PrivateLinkServiceIpConfiguration: coreClient.CompositeMapper = { +export const P2SVpnConnectionHealth: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkServiceIpConfiguration", + className: "P2SVpnConnectionHealth", modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", + sasUrl: { + serializedName: "sasUrl", + type: { + name: "String" + } + } + } + } +}; + +export const VpnServerConfigurationsResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VpnServerConfigurationsResponse", + modelProperties: { + vpnServerConfigurationResourceIds: { + serializedName: "vpnServerConfigurationResourceIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const VirtualWanVpnProfileParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualWanVpnProfileParameters", + modelProperties: { + vpnServerConfigurationResourceId: { + serializedName: "vpnServerConfigurationResourceId", + type: { + name: "String" + } + }, + authenticationMethod: { + serializedName: "authenticationMethod", + type: { + name: "String" + } + } + } + } +}; + +export const ListVirtualHubRouteTableV2SResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListVirtualHubRouteTableV2SResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualHubRouteTableV2" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ExpressRouteGatewayList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExpressRouteGatewayList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteGateway" + } + } + } + } + } + } +}; + +export const ExpressRouteGatewayPropertiesAutoScaleConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExpressRouteGatewayPropertiesAutoScaleConfiguration", + modelProperties: { + bounds: { + serializedName: "bounds", + type: { + name: "Composite", + className: "ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds" + } + } + } + } +}; + +export const ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds", + modelProperties: { + min: { + serializedName: "min", + type: { + name: "Number" + } + }, + max: { + serializedName: "max", + type: { + name: "Number" + } + } + } + } +}; + +export const ExpressRouteCircuitPeeringId: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExpressRouteCircuitPeeringId", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualHubId: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualHubId", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const ExpressRouteConnectionList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExpressRouteConnectionList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteConnection" + } + } + } + } + } + } +}; + +export const ListVirtualHubBgpConnectionResults: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListVirtualHubBgpConnectionResults", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BgpConnection" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PeerRouteList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PeerRouteList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PeerRoute" + } + } + } + } + } + } +}; + +export const PeerRoute: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PeerRoute", + modelProperties: { + localAddress: { + serializedName: "localAddress", + readOnly: true, + type: { + name: "String" + } + }, + network: { + serializedName: "network", + readOnly: true, + type: { + name: "String" + } + }, + nextHop: { + serializedName: "nextHop", + readOnly: true, + type: { + name: "String" + } + }, + sourcePeer: { + serializedName: "sourcePeer", + readOnly: true, + type: { + name: "String" + } + }, + origin: { + serializedName: "origin", + readOnly: true, + type: { + name: "String" + } + }, + asPath: { + serializedName: "asPath", + readOnly: true, + type: { + name: "String" + } + }, + weight: { + serializedName: "weight", + readOnly: true, + type: { + name: "Number" + } + } + } + } +}; + +export const ListVirtualHubIpConfigurationResults: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListVirtualHubIpConfigurationResults", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HubIpConfiguration" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const HubRoute: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HubRoute", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + destinationType: { + serializedName: "destinationType", + required: true, + type: { + name: "String" + } + }, + destinations: { + serializedName: "destinations", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + nextHopType: { + serializedName: "nextHopType", + required: true, + type: { + name: "String" + } + }, + nextHop: { + serializedName: "nextHop", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ListHubRouteTablesResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListHubRouteTablesResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HubRouteTable" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const EffectiveRoutesParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EffectiveRoutesParameters", + modelProperties: { + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + virtualWanResourceType: { + serializedName: "virtualWanResourceType", + type: { + name: "String" + } + } + } + } +}; + +export const GetInboundRoutesParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GetInboundRoutesParameters", + modelProperties: { + resourceUri: { + serializedName: "resourceUri", + type: { + name: "String" + } + }, + connectionType: { + serializedName: "connectionType", + type: { + name: "String" + } + } + } + } +}; + +export const GetOutboundRoutesParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GetOutboundRoutesParameters", + modelProperties: { + resourceUri: { + serializedName: "resourceUri", + type: { + name: "String" + } + }, + connectionType: { + serializedName: "connectionType", + type: { + name: "String" + } + } + } + } +}; + +export const RoutingPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RoutingPolicy", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + destinations: { + serializedName: "destinations", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + nextHop: { + serializedName: "nextHop", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ListRoutingIntentResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListRoutingIntentResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RoutingIntent" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const WebApplicationFirewallPolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WebApplicationFirewallPolicyListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WebApplicationFirewallPolicy" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PolicySettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PolicySettings", + modelProperties: { + state: { + serializedName: "state", + type: { + name: "String" + } + }, + mode: { + serializedName: "mode", + type: { + name: "String" + } + }, + requestBodyCheck: { + serializedName: "requestBodyCheck", + type: { + name: "Boolean" + } + }, + maxRequestBodySizeInKb: { + constraints: { + InclusiveMinimum: 8 + }, + serializedName: "maxRequestBodySizeInKb", + type: { + name: "Number" + } + }, + fileUploadLimitInMb: { + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "fileUploadLimitInMb", + type: { + name: "Number" + } + }, + customBlockResponseStatusCode: { + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "customBlockResponseStatusCode", + type: { + name: "Number" + } + }, + customBlockResponseBody: { + constraints: { + Pattern: new RegExp( + "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$" + ), + MaxLength: 32768 + }, + serializedName: "customBlockResponseBody", + type: { + name: "String" + } + } + } + } +}; + +export const WebApplicationFirewallCustomRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WebApplicationFirewallCustomRule", + modelProperties: { + name: { + constraints: { + MaxLength: 128 + }, + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + priority: { + serializedName: "priority", + required: true, + type: { + name: "Number" + } + }, + ruleType: { + serializedName: "ruleType", + required: true, + type: { + name: "String" + } + }, + matchConditions: { + serializedName: "matchConditions", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MatchCondition" + } + } + } + }, + action: { + serializedName: "action", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const MatchCondition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MatchCondition", + modelProperties: { + matchVariables: { + serializedName: "matchVariables", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MatchVariable" + } + } + } + }, + operator: { + serializedName: "operator", + required: true, + type: { + name: "String" + } + }, + negationConditon: { + serializedName: "negationConditon", + type: { + name: "Boolean" + } + }, + matchValues: { + serializedName: "matchValues", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + transforms: { + serializedName: "transforms", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const MatchVariable: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MatchVariable", + modelProperties: { + variableName: { + serializedName: "variableName", + required: true, + type: { + name: "String" + } + }, + selector: { + serializedName: "selector", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedRulesDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedRulesDefinition", + modelProperties: { + exclusions: { + serializedName: "exclusions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OwaspCrsExclusionEntry" + } + } + } + }, + managedRuleSets: { + serializedName: "managedRuleSets", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedRuleSet" + } + } + } + } + } + } +}; + +export const OwaspCrsExclusionEntry: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OwaspCrsExclusionEntry", + modelProperties: { + matchVariable: { + serializedName: "matchVariable", + required: true, + type: { + name: "String" + } + }, + selectorMatchOperator: { + serializedName: "selectorMatchOperator", + required: true, + type: { + name: "String" + } + }, + selector: { + serializedName: "selector", + required: true, + type: { + name: "String" + } + }, + exclusionManagedRuleSets: { + serializedName: "exclusionManagedRuleSets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExclusionManagedRuleSet" + } + } + } + } + } + } +}; + +export const ExclusionManagedRuleSet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExclusionManagedRuleSet", + modelProperties: { + ruleSetType: { + serializedName: "ruleSetType", + required: true, + type: { + name: "String" + } + }, + ruleSetVersion: { + serializedName: "ruleSetVersion", + required: true, + type: { + name: "String" + } + }, + ruleGroups: { + serializedName: "ruleGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExclusionManagedRuleGroup" + } + } + } + } + } + } +}; + +export const ExclusionManagedRuleGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExclusionManagedRuleGroup", + modelProperties: { + ruleGroupName: { + serializedName: "ruleGroupName", + required: true, + type: { + name: "String" + } + }, + rules: { + serializedName: "rules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExclusionManagedRule" + } + } + } + } + } + } +}; + +export const ExclusionManagedRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExclusionManagedRule", + modelProperties: { + ruleId: { + serializedName: "ruleId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ManagedRuleSet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedRuleSet", + modelProperties: { + ruleSetType: { + serializedName: "ruleSetType", + required: true, + type: { + name: "String" + } + }, + ruleSetVersion: { + serializedName: "ruleSetVersion", + required: true, + type: { + name: "String" + } + }, + ruleGroupOverrides: { + serializedName: "ruleGroupOverrides", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedRuleGroupOverride" + } + } + } + } + } + } +}; + +export const ManagedRuleGroupOverride: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedRuleGroupOverride", + modelProperties: { + ruleGroupName: { + serializedName: "ruleGroupName", + required: true, + type: { + name: "String" + } + }, + rules: { + serializedName: "rules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedRuleOverride" + } + } + } + } + } + } +}; + +export const ManagedRuleOverride: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedRuleOverride", + modelProperties: { + ruleId: { + serializedName: "ruleId", + required: true, + type: { + name: "String" + } + }, + state: { + serializedName: "state", + type: { + name: "String" + } + }, + action: { + serializedName: "action", + type: { + name: "String" + } + } + } + } +}; + +export const FirewallPolicyNatRuleCollectionAction: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FirewallPolicyNatRuleCollectionAction", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const FirewallPolicyRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FirewallPolicyRule", + uberParent: "FirewallPolicyRule", + polymorphicDiscriminator: { + serializedName: "ruleType", + clientName: "ruleType" + }, + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + ruleType: { + serializedName: "ruleType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const FirewallPolicyFilterRuleCollectionAction: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FirewallPolicyFilterRuleCollectionAction", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const FirewallPolicyRuleApplicationProtocol: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FirewallPolicyRuleApplicationProtocol", + modelProperties: { + protocolType: { + serializedName: "protocolType", + type: { + name: "String" + } + }, + port: { + constraints: { + InclusiveMaximum: 64000, + InclusiveMinimum: 0 + }, + serializedName: "port", + type: { + name: "Number" + } + } + } + } +}; + +export const AzureAsyncOperationResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureAsyncOperationResult", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String" + } + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorModel" + } + } + } + } +}; + +export const AddressPrefixItem: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AddressPrefixItem", + modelProperties: { + addressPrefix: { + serializedName: "addressPrefix", + type: { + name: "String" + } + }, + addressPrefixType: { + serializedName: "addressPrefixType", + type: { + name: "String" + } + } + } + } +}; + +export const VpnSiteId: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VpnSiteId", + modelProperties: { + vpnSite: { + serializedName: "vpnSite", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const VirtualHubEffectiveRouteList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualHubEffectiveRouteList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualHubEffectiveRoute" + } + } + } + } + } + } +}; + +export const VirtualHubEffectiveRoute: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualHubEffectiveRoute", + modelProperties: { + addressPrefixes: { + serializedName: "addressPrefixes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + nextHops: { + serializedName: "nextHops", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + nextHopType: { + serializedName: "nextHopType", + type: { + name: "String" + } + }, + asPath: { + serializedName: "asPath", + type: { + name: "String" + } + }, + routeOrigin: { + serializedName: "routeOrigin", + type: { + name: "String" + } + } + } + } +}; + +export const EffectiveRouteMapRoute: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EffectiveRouteMapRoute", + modelProperties: { + prefix: { + serializedName: "prefix", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + bgpCommunities: { + serializedName: "bgpCommunities", + type: { + name: "String" + } + }, + asPath: { + serializedName: "asPath", + type: { + name: "String" + } + } + } + } +}; + +export const ApplicationGatewayIPConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGatewayIPConfiguration", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "SubResource" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApplicationGatewayAuthenticationCertificate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGatewayAuthenticationCertificate", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + data: { + serializedName: "properties.data", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApplicationGatewayTrustedRootCertificate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGatewayTrustedRootCertificate", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + data: { + serializedName: "properties.data", + type: { + name: "String" + } + }, + keyVaultSecretId: { + serializedName: "properties.keyVaultSecretId", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApplicationGatewayTrustedClientCertificate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGatewayTrustedClientCertificate", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + data: { + serializedName: "properties.data", + type: { + name: "String" + } + }, + validatedCertData: { + serializedName: "properties.validatedCertData", + readOnly: true, + type: { + name: "String" + } + }, + clientCertIssuerDN: { + serializedName: "properties.clientCertIssuerDN", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApplicationGatewaySslCertificate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGatewaySslCertificate", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + data: { + serializedName: "properties.data", + type: { + name: "String" + } + }, + password: { + serializedName: "properties.password", + type: { + name: "String" + } + }, + publicCertData: { + serializedName: "properties.publicCertData", + readOnly: true, + type: { + name: "String" + } + }, + keyVaultSecretId: { + serializedName: "properties.keyVaultSecretId", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApplicationGatewayFrontendIPConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGatewayFrontendIPConfiguration", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + privateIPAddress: { + serializedName: "properties.privateIPAddress", + type: { + name: "String" + } + }, + privateIPAllocationMethod: { + serializedName: "properties.privateIPAllocationMethod", + type: { + name: "String" + } + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "SubResource" + } + }, + publicIPAddress: { + serializedName: "properties.publicIPAddress", + type: { + name: "Composite", + className: "SubResource" + } + }, + privateLinkConfiguration: { + serializedName: "properties.privateLinkConfiguration", + type: { + name: "Composite", + className: "SubResource" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApplicationGatewayFrontendPort: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGatewayFrontendPort", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + port: { + serializedName: "properties.port", + type: { + name: "Number" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApplicationGatewayProbe: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGatewayProbe", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + protocol: { + serializedName: "properties.protocol", + type: { + name: "String" + } + }, + host: { + serializedName: "properties.host", + type: { + name: "String" + } + }, + path: { + serializedName: "properties.path", + type: { + name: "String" + } + }, + interval: { + serializedName: "properties.interval", + type: { + name: "Number" + } + }, + timeout: { + serializedName: "properties.timeout", + type: { + name: "Number" + } + }, + unhealthyThreshold: { + serializedName: "properties.unhealthyThreshold", + type: { + name: "Number" + } + }, + pickHostNameFromBackendHttpSettings: { + serializedName: "properties.pickHostNameFromBackendHttpSettings", + type: { + name: "Boolean" + } + }, + pickHostNameFromBackendSettings: { + serializedName: "properties.pickHostNameFromBackendSettings", + type: { + name: "Boolean" + } + }, + minServers: { + serializedName: "properties.minServers", + type: { + name: "Number" + } + }, + match: { + serializedName: "properties.match", + type: { + name: "Composite", + className: "ApplicationGatewayProbeHealthResponseMatch" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + port: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 1 + }, + serializedName: "properties.port", + type: { + name: "Number" + } + } + } + } +}; + +export const NetworkInterfaceTapConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkInterfaceTapConfiguration", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + virtualNetworkTap: { + serializedName: "properties.virtualNetworkTap", + type: { + name: "Composite", + className: "VirtualNetworkTap" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const SecurityRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityRule", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + protocol: { + serializedName: "properties.protocol", + type: { + name: "String" + } + }, + sourcePortRange: { + serializedName: "properties.sourcePortRange", + type: { + name: "String" + } + }, + destinationPortRange: { + serializedName: "properties.destinationPortRange", + type: { + name: "String" + } + }, + sourceAddressPrefix: { + serializedName: "properties.sourceAddressPrefix", + type: { + name: "String" + } + }, + sourceAddressPrefixes: { + serializedName: "properties.sourceAddressPrefixes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + sourceApplicationSecurityGroups: { + serializedName: "properties.sourceApplicationSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationSecurityGroup" + } + } + } + }, + destinationAddressPrefix: { + serializedName: "properties.destinationAddressPrefix", + type: { + name: "String" + } + }, + destinationAddressPrefixes: { + serializedName: "properties.destinationAddressPrefixes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + destinationApplicationSecurityGroups: { + serializedName: "properties.destinationApplicationSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationSecurityGroup" + } + } + } + }, + sourcePortRanges: { + serializedName: "properties.sourcePortRanges", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + destinationPortRanges: { + serializedName: "properties.destinationPortRanges", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + access: { + serializedName: "properties.access", + type: { + name: "String" + } + }, + priority: { + serializedName: "properties.priority", + type: { + name: "Number" + } + }, + direction: { + serializedName: "properties.direction", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkServiceConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkServiceConnection", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + privateLinkServiceId: { + serializedName: "properties.privateLinkServiceId", + type: { + name: "String" + } + }, + groupIds: { + serializedName: "properties.groupIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requestMessage: { + serializedName: "properties.requestMessage", + type: { + name: "String" + } + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState" + } + } + } + } +}; + +export const PrivateLinkServiceIpConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkServiceIpConfiguration", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + privateIPAddress: { + serializedName: "properties.privateIPAddress", + type: { + name: "String" + } + }, + privateIPAllocationMethod: { + serializedName: "properties.privateIPAllocationMethod", + type: { + name: "String" + } + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "Subnet" + } + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + privateIPAddressVersion: { + serializedName: "properties.privateIPAddressVersion", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint" + } + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + linkIdentifier: { + serializedName: "properties.linkIdentifier", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const Route: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Route", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + addressPrefix: { + serializedName: "properties.addressPrefix", + type: { + name: "String" + } + }, + nextHopType: { + serializedName: "properties.nextHopType", + type: { + name: "String" + } + }, + nextHopIpAddress: { + serializedName: "properties.nextHopIpAddress", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + hasBgpOverride: { + serializedName: "properties.hasBgpOverride", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ServiceEndpointPolicyDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceEndpointPolicyDefinition", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + service: { + serializedName: "properties.service", + type: { + name: "String" + } + }, + serviceResources: { + serializedName: "properties.serviceResources", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const IPConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IPConfiguration", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + privateIPAddress: { + serializedName: "properties.privateIPAddress", + type: { + name: "String" + } + }, + privateIPAllocationMethod: { + serializedName: "properties.privateIPAllocationMethod", + type: { + name: "String" + } + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "Subnet" + } + }, + publicIPAddress: { + serializedName: "properties.publicIPAddress", + type: { + name: "Composite", + className: "PublicIPAddress" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const IPConfigurationProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IPConfigurationProfile", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "Subnet" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ResourceNavigationLink: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceNavigationLink", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + linkedResourceType: { + serializedName: "properties.linkedResourceType", + type: { + name: "String" + } + }, + link: { + serializedName: "properties.link", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServiceAssociationLink: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceAssociationLink", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + linkedResourceType: { + serializedName: "properties.linkedResourceType", + type: { + name: "String" + } + }, + link: { + serializedName: "properties.link", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + allowDelete: { + serializedName: "properties.allowDelete", + type: { + name: "Boolean" + } + }, + locations: { + serializedName: "properties.locations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const Delegation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Delegation", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + serviceName: { + serializedName: "properties.serviceName", + type: { + name: "String" + } + }, + actions: { + serializedName: "properties.actions", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const Subnet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Subnet", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + addressPrefix: { + serializedName: "properties.addressPrefix", + type: { + name: "String" + } + }, + addressPrefixes: { + serializedName: "properties.addressPrefixes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", + type: { + name: "Composite", + className: "NetworkSecurityGroup" + } + }, + routeTable: { + serializedName: "properties.routeTable", + type: { + name: "Composite", + className: "RouteTable" + } + }, + natGateway: { + serializedName: "properties.natGateway", + type: { + name: "Composite", + className: "SubResource" + } + }, + serviceEndpoints: { + serializedName: "properties.serviceEndpoints", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceEndpointPropertiesFormat" + } + } + } + }, + serviceEndpointPolicies: { + serializedName: "properties.serviceEndpointPolicies", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceEndpointPolicy" + } + } + } + }, + privateEndpoints: { + serializedName: "properties.privateEndpoints", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpoint" + } + } + } + }, + ipConfigurations: { + serializedName: "properties.ipConfigurations", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IPConfiguration" + } + } + } + }, + ipConfigurationProfiles: { + serializedName: "properties.ipConfigurationProfiles", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IPConfigurationProfile" + } + } + } + }, + ipAllocations: { + serializedName: "properties.ipAllocations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + resourceNavigationLinks: { + serializedName: "properties.resourceNavigationLinks", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceNavigationLink" + } + } + } + }, + serviceAssociationLinks: { + serializedName: "properties.serviceAssociationLinks", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceAssociationLink" + } + } + } + }, + delegations: { + serializedName: "properties.delegations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Delegation" + } + } + } + }, + purpose: { + serializedName: "properties.purpose", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + privateEndpointNetworkPolicies: { + defaultValue: "Disabled", + serializedName: "properties.privateEndpointNetworkPolicies", + type: { + name: "String" + } + }, + privateLinkServiceNetworkPolicies: { + defaultValue: "Enabled", + serializedName: "properties.privateLinkServiceNetworkPolicies", + type: { + name: "String" + } + }, + applicationGatewayIpConfigurations: { + serializedName: "properties.applicationGatewayIpConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayIPConfiguration" + } + } + } + } + } + } +}; + +export const FrontendIPConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FrontendIPConfiguration", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", type: { name: "String" } @@ -15074,6 +17846,69 @@ export const PrivateLinkServiceIpConfiguration: coreClient.CompositeMapper = { name: "String" } }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + inboundNatRules: { + serializedName: "properties.inboundNatRules", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + inboundNatPools: { + serializedName: "properties.inboundNatPools", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + outboundRules: { + serializedName: "properties.outboundRules", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + loadBalancingRules: { + serializedName: "properties.loadBalancingRules", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, privateIPAddress: { serializedName: "properties.privateIPAddress", type: { @@ -15086,17 +17921,164 @@ export const PrivateLinkServiceIpConfiguration: coreClient.CompositeMapper = { name: "String" } }, + privateIPAddressVersion: { + serializedName: "properties.privateIPAddressVersion", + type: { + name: "String" + } + }, subnet: { serializedName: "properties.subnet", type: { - name: "Composite", - className: "Subnet" + name: "Composite", + className: "Subnet" + } + }, + publicIPAddress: { + serializedName: "properties.publicIPAddress", + type: { + name: "Composite", + className: "PublicIPAddress" + } + }, + publicIPPrefix: { + serializedName: "properties.publicIPPrefix", + type: { + name: "Composite", + className: "SubResource" + } + }, + gatewayLoadBalancer: { + serializedName: "properties.gatewayLoadBalancer", + type: { + name: "Composite", + className: "SubResource" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const BackendAddressPool: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BackendAddressPool", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + location: { + serializedName: "properties.location", + type: { + name: "String" + } + }, + tunnelInterfaces: { + serializedName: "properties.tunnelInterfaces", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayLoadBalancerTunnelInterface" + } + } + } + }, + loadBalancerBackendAddresses: { + serializedName: "properties.loadBalancerBackendAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LoadBalancerBackendAddress" + } + } + } + }, + backendIPConfigurations: { + serializedName: "properties.backendIPConfigurations", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterfaceIPConfiguration" + } + } + } + }, + loadBalancingRules: { + serializedName: "properties.loadBalancingRules", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + outboundRule: { + serializedName: "properties.outboundRule", + type: { + name: "Composite", + className: "SubResource" + } + }, + outboundRules: { + serializedName: "properties.outboundRules", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } }, - primary: { - serializedName: "properties.primary", + inboundNatRules: { + serializedName: "properties.inboundNatRules", + readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } }, provisioningState: { @@ -15106,20 +18088,27 @@ export const PrivateLinkServiceIpConfiguration: coreClient.CompositeMapper = { name: "String" } }, - privateIPAddressVersion: { - serializedName: "properties.privateIPAddressVersion", + drainPeriodInSeconds: { + serializedName: "properties.drainPeriodInSeconds", type: { - name: "String" + name: "Number" + } + }, + virtualNetwork: { + serializedName: "properties.virtualNetwork", + type: { + name: "Composite", + className: "SubResource" } } } } }; -export const PrivateEndpointConnection: coreClient.CompositeMapper = { +export const InboundNatRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "InboundNatRule", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -15128,43 +18117,91 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { name: "String" } }, - type: { - serializedName: "type", + etag: { + serializedName: "etag", readOnly: true, type: { name: "String" } }, - etag: { - serializedName: "etag", + type: { + serializedName: "type", readOnly: true, type: { name: "String" } }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + frontendIPConfiguration: { + serializedName: "properties.frontendIPConfiguration", type: { name: "Composite", - className: "PrivateEndpoint" + className: "SubResource" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + backendIPConfiguration: { + serializedName: "properties.backendIPConfiguration", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" + className: "NetworkInterfaceIPConfiguration" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + protocol: { + serializedName: "properties.protocol", type: { name: "String" } }, - linkIdentifier: { - serializedName: "properties.linkIdentifier", + frontendPort: { + serializedName: "properties.frontendPort", + type: { + name: "Number" + } + }, + backendPort: { + serializedName: "properties.backendPort", + type: { + name: "Number" + } + }, + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number" + } + }, + enableFloatingIP: { + serializedName: "properties.enableFloatingIP", + type: { + name: "Boolean" + } + }, + enableTcpReset: { + serializedName: "properties.enableTcpReset", + type: { + name: "Boolean" + } + }, + frontendPortRangeStart: { + serializedName: "properties.frontendPortRangeStart", + type: { + name: "Number" + } + }, + frontendPortRangeEnd: { + serializedName: "properties.frontendPortRangeEnd", + type: { + name: "Number" + } + }, + backendAddressPool: { + serializedName: "properties.backendAddressPool", + type: { + name: "Composite", + className: "SubResource" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" @@ -15174,10 +18211,10 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { } }; -export const Route: coreClient.CompositeMapper = { +export const NetworkInterfaceIPConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Route", + className: "NetworkInterfaceIPConfiguration", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -15199,24 +18236,111 @@ export const Route: coreClient.CompositeMapper = { name: "String" } }, - addressPrefix: { - serializedName: "properties.addressPrefix", + gatewayLoadBalancer: { + serializedName: "properties.gatewayLoadBalancer", + type: { + name: "Composite", + className: "SubResource" + } + }, + virtualNetworkTaps: { + serializedName: "properties.virtualNetworkTaps", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualNetworkTap" + } + } + } + }, + applicationGatewayBackendAddressPools: { + serializedName: "properties.applicationGatewayBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayBackendAddressPool" + } + } + } + }, + loadBalancerBackendAddressPools: { + serializedName: "properties.loadBalancerBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BackendAddressPool" + } + } + } + }, + loadBalancerInboundNatRules: { + serializedName: "properties.loadBalancerInboundNatRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InboundNatRule" + } + } + } + }, + privateIPAddress: { + serializedName: "properties.privateIPAddress", type: { name: "String" } }, - nextHopType: { - serializedName: "properties.nextHopType", + privateIPAllocationMethod: { + serializedName: "properties.privateIPAllocationMethod", type: { name: "String" } }, - nextHopIpAddress: { - serializedName: "properties.nextHopIpAddress", + privateIPAddressVersion: { + serializedName: "properties.privateIPAddressVersion", type: { name: "String" } }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "Subnet" + } + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean" + } + }, + publicIPAddress: { + serializedName: "properties.publicIPAddress", + type: { + name: "Composite", + className: "PublicIPAddress" + } + }, + applicationSecurityGroups: { + serializedName: "properties.applicationSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationSecurityGroup" + } + } + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -15224,20 +18348,22 @@ export const Route: coreClient.CompositeMapper = { name: "String" } }, - hasBgpOverride: { - serializedName: "properties.hasBgpOverride", + privateLinkConnectionProperties: { + serializedName: "properties.privateLinkConnectionProperties", type: { - name: "Boolean" + name: "Composite", + className: + "NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties" } } } } }; -export const ServiceEndpointPolicyDefinition: coreClient.CompositeMapper = { +export const ApplicationGatewayBackendAddressPool: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceEndpointPolicyDefinition", + className: "ApplicationGatewayBackendAddressPool", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -15255,29 +18381,32 @@ export const ServiceEndpointPolicyDefinition: coreClient.CompositeMapper = { }, type: { serializedName: "type", + readOnly: true, type: { name: "String" } }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - }, - service: { - serializedName: "properties.service", + backendIPConfigurations: { + serializedName: "properties.backendIPConfigurations", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterfaceIPConfiguration" + } + } } }, - serviceResources: { - serializedName: "properties.serviceResources", + backendAddresses: { + serializedName: "properties.backendAddresses", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ApplicationGatewayBackendAddress" } } } @@ -15293,10 +18422,10 @@ export const ServiceEndpointPolicyDefinition: coreClient.CompositeMapper = { } }; -export const IPConfiguration: coreClient.CompositeMapper = { +export const ApplicationGatewayBackendHttpSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IPConfiguration", + className: "ApplicationGatewayBackendHttpSettings", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -15312,74 +18441,103 @@ export const IPConfiguration: coreClient.CompositeMapper = { name: "String" } }, - privateIPAddress: { - serializedName: "properties.privateIPAddress", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - privateIPAllocationMethod: { - serializedName: "properties.privateIPAllocationMethod", + port: { + serializedName: "properties.port", + type: { + name: "Number" + } + }, + protocol: { + serializedName: "properties.protocol", type: { name: "String" } }, - subnet: { - serializedName: "properties.subnet", + cookieBasedAffinity: { + serializedName: "properties.cookieBasedAffinity", + type: { + name: "String" + } + }, + requestTimeout: { + serializedName: "properties.requestTimeout", + type: { + name: "Number" + } + }, + probe: { + serializedName: "properties.probe", type: { name: "Composite", - className: "Subnet" + className: "SubResource" } }, - publicIPAddress: { - serializedName: "properties.publicIPAddress", + authenticationCertificates: { + serializedName: "properties.authenticationCertificates", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + trustedRootCertificates: { + serializedName: "properties.trustedRootCertificates", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + connectionDraining: { + serializedName: "properties.connectionDraining", type: { name: "Composite", - className: "PublicIPAddress" + className: "ApplicationGatewayConnectionDraining" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + hostName: { + serializedName: "properties.hostName", type: { name: "String" } - } - } - } -}; - -export const IPConfigurationProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IPConfigurationProfile", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", + }, + pickHostNameFromBackendAddress: { + serializedName: "properties.pickHostNameFromBackendAddress", type: { - name: "String" + name: "Boolean" } }, - type: { - serializedName: "type", - readOnly: true, + affinityCookieName: { + serializedName: "properties.affinityCookieName", type: { name: "String" } }, - etag: { - serializedName: "etag", - readOnly: true, + probeEnabled: { + serializedName: "properties.probeEnabled", type: { - name: "String" + name: "Boolean" } }, - subnet: { - serializedName: "properties.subnet", + path: { + serializedName: "properties.path", type: { - name: "Composite", - className: "Subnet" + name: "String" } }, provisioningState: { @@ -15393,10 +18551,10 @@ export const IPConfigurationProfile: coreClient.CompositeMapper = { } }; -export const ResourceNavigationLink: coreClient.CompositeMapper = { +export const ApplicationGatewayBackendSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceNavigationLink", + className: "ApplicationGatewayBackendSettings", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -15419,18 +18577,55 @@ export const ResourceNavigationLink: coreClient.CompositeMapper = { name: "String" } }, - linkedResourceType: { - serializedName: "properties.linkedResourceType", + port: { + serializedName: "properties.port", + type: { + name: "Number" + } + }, + protocol: { + serializedName: "properties.protocol", type: { name: "String" } }, - link: { - serializedName: "properties.link", + timeout: { + serializedName: "properties.timeout", + type: { + name: "Number" + } + }, + probe: { + serializedName: "properties.probe", + type: { + name: "Composite", + className: "SubResource" + } + }, + trustedRootCertificates: { + serializedName: "properties.trustedRootCertificates", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + hostName: { + serializedName: "properties.hostName", type: { name: "String" } }, + pickHostNameFromBackendAddress: { + serializedName: "properties.pickHostNameFromBackendAddress", + type: { + name: "Boolean" + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -15442,10 +18637,10 @@ export const ResourceNavigationLink: coreClient.CompositeMapper = { } }; -export const ServiceAssociationLink: coreClient.CompositeMapper = { +export const ApplicationGatewayHttpListener: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceAssociationLink", + className: "ApplicationGatewayHttpListener", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -15468,80 +18663,80 @@ export const ServiceAssociationLink: coreClient.CompositeMapper = { name: "String" } }, - linkedResourceType: { - serializedName: "properties.linkedResourceType", + frontendIPConfiguration: { + serializedName: "properties.frontendIPConfiguration", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - link: { - serializedName: "properties.link", + frontendPort: { + serializedName: "properties.frontendPort", + type: { + name: "Composite", + className: "SubResource" + } + }, + protocol: { + serializedName: "properties.protocol", type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + hostName: { + serializedName: "properties.hostName", type: { name: "String" } }, - allowDelete: { - serializedName: "properties.allowDelete", + sslCertificate: { + serializedName: "properties.sslCertificate", type: { - name: "Boolean" + name: "Composite", + className: "SubResource" } }, - locations: { - serializedName: "properties.locations", + sslProfile: { + serializedName: "properties.sslProfile", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "SubResource" } - } - } - } -}; - -export const Delegation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Delegation", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", + }, + requireServerNameIndication: { + serializedName: "properties.requireServerNameIndication", type: { - name: "String" + name: "Boolean" } }, - etag: { - serializedName: "etag", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - type: { - serializedName: "type", + customErrorConfigurations: { + serializedName: "properties.customErrorConfigurations", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayCustomError" + } + } } }, - serviceName: { - serializedName: "properties.serviceName", + firewallPolicy: { + serializedName: "properties.firewallPolicy", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - actions: { - serializedName: "properties.actions", - readOnly: true, + hostNames: { + serializedName: "properties.hostNames", type: { name: "Sequence", element: { @@ -15550,22 +18745,15 @@ export const Delegation: coreClient.CompositeMapper = { } } } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } } } } }; -export const Subnet: coreClient.CompositeMapper = { +export const ApplicationGatewayListener: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Subnet", + className: "ApplicationGatewayListener", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -15583,166 +18771,106 @@ export const Subnet: coreClient.CompositeMapper = { }, type: { serializedName: "type", + readOnly: true, type: { name: "String" } }, - addressPrefix: { - serializedName: "properties.addressPrefix", - type: { - name: "String" - } - }, - addressPrefixes: { - serializedName: "properties.addressPrefixes", + frontendIPConfiguration: { + serializedName: "properties.frontendIPConfiguration", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "SubResource" } }, - networkSecurityGroup: { - serializedName: "properties.networkSecurityGroup", + frontendPort: { + serializedName: "properties.frontendPort", type: { name: "Composite", - className: "NetworkSecurityGroup" + className: "SubResource" } }, - routeTable: { - serializedName: "properties.routeTable", + protocol: { + serializedName: "properties.protocol", type: { - name: "Composite", - className: "RouteTable" + name: "String" } }, - natGateway: { - serializedName: "properties.natGateway", + sslCertificate: { + serializedName: "properties.sslCertificate", type: { name: "Composite", className: "SubResource" } }, - serviceEndpoints: { - serializedName: "properties.serviceEndpoints", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServiceEndpointPropertiesFormat" - } - } - } - }, - serviceEndpointPolicies: { - serializedName: "properties.serviceEndpointPolicies", + sslProfile: { + serializedName: "properties.sslProfile", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServiceEndpointPolicy" - } - } + name: "Composite", + className: "SubResource" } }, - privateEndpoints: { - serializedName: "properties.privateEndpoints", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpoint" - } - } + name: "String" } - }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", - readOnly: true, + } + } + } +}; + +export const ApplicationGatewaySslProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGatewaySslProfile", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IPConfiguration" - } - } + name: "String" } }, - ipConfigurationProfiles: { - serializedName: "properties.ipConfigurationProfiles", + etag: { + serializedName: "etag", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IPConfigurationProfile" - } - } - } - }, - ipAllocations: { - serializedName: "properties.ipAllocations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "String" } }, - resourceNavigationLinks: { - serializedName: "properties.resourceNavigationLinks", + type: { + serializedName: "type", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceNavigationLink" - } - } + name: "String" } }, - serviceAssociationLinks: { - serializedName: "properties.serviceAssociationLinks", - readOnly: true, + trustedClientCertificates: { + serializedName: "properties.trustedClientCertificates", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServiceAssociationLink" + className: "SubResource" } } } }, - delegations: { - serializedName: "properties.delegations", + sslPolicy: { + serializedName: "properties.sslPolicy", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Delegation" - } - } + name: "Composite", + className: "ApplicationGatewaySslPolicy" } }, - purpose: { - serializedName: "properties.purpose", - readOnly: true, + clientAuthConfiguration: { + serializedName: "properties.clientAuthConfiguration", type: { - name: "String" + name: "Composite", + className: "ApplicationGatewayClientAuthConfiguration" } }, provisioningState: { @@ -15751,41 +18879,15 @@ export const Subnet: coreClient.CompositeMapper = { type: { name: "String" } - }, - privateEndpointNetworkPolicies: { - defaultValue: "Enabled", - serializedName: "properties.privateEndpointNetworkPolicies", - type: { - name: "String" - } - }, - privateLinkServiceNetworkPolicies: { - defaultValue: "Enabled", - serializedName: "properties.privateLinkServiceNetworkPolicies", - type: { - name: "String" - } - }, - applicationGatewayIpConfigurations: { - serializedName: "properties.applicationGatewayIpConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGatewayIPConfiguration" - } - } - } } } } }; -export const FrontendIPConfiguration: coreClient.CompositeMapper = { +export const ApplicationGatewayPathRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FrontendIPConfiguration", + className: "ApplicationGatewayPathRule", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -15808,8 +18910,8 @@ export const FrontendIPConfiguration: coreClient.CompositeMapper = { name: "String" } }, - zones: { - serializedName: "zones", + paths: { + serializedName: "properties.paths", type: { name: "Sequence", element: { @@ -15819,104 +18921,132 @@ export const FrontendIPConfiguration: coreClient.CompositeMapper = { } } }, - inboundNatRules: { - serializedName: "properties.inboundNatRules", - readOnly: true, + backendAddressPool: { + serializedName: "properties.backendAddressPool", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "Composite", + className: "SubResource" } }, - inboundNatPools: { - serializedName: "properties.inboundNatPools", - readOnly: true, + backendHttpSettings: { + serializedName: "properties.backendHttpSettings", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "Composite", + className: "SubResource" } }, - outboundRules: { - serializedName: "properties.outboundRules", - readOnly: true, + redirectConfiguration: { + serializedName: "properties.redirectConfiguration", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "Composite", + className: "SubResource" } }, - loadBalancingRules: { - serializedName: "properties.loadBalancingRules", + rewriteRuleSet: { + serializedName: "properties.rewriteRuleSet", + type: { + name: "Composite", + className: "SubResource" + } + }, + loadDistributionPolicy: { + serializedName: "properties.loadDistributionPolicy", + type: { + name: "Composite", + className: "SubResource" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "String" } }, - privateIPAddress: { - serializedName: "properties.privateIPAddress", + firewallPolicy: { + serializedName: "properties.firewallPolicy", + type: { + name: "Composite", + className: "SubResource" + } + } + } + } +}; + +export const ApplicationGatewayUrlPathMap: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGatewayUrlPathMap", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", type: { name: "String" } }, - privateIPAllocationMethod: { - serializedName: "properties.privateIPAllocationMethod", + etag: { + serializedName: "etag", + readOnly: true, type: { name: "String" } }, - privateIPAddressVersion: { - serializedName: "properties.privateIPAddressVersion", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - subnet: { - serializedName: "properties.subnet", + defaultBackendAddressPool: { + serializedName: "properties.defaultBackendAddressPool", type: { name: "Composite", - className: "Subnet" + className: "SubResource" } }, - publicIPAddress: { - serializedName: "properties.publicIPAddress", + defaultBackendHttpSettings: { + serializedName: "properties.defaultBackendHttpSettings", type: { name: "Composite", - className: "PublicIPAddress" + className: "SubResource" } }, - publicIPPrefix: { - serializedName: "properties.publicIPPrefix", + defaultRewriteRuleSet: { + serializedName: "properties.defaultRewriteRuleSet", type: { name: "Composite", className: "SubResource" } }, - gatewayLoadBalancer: { - serializedName: "properties.gatewayLoadBalancer", + defaultRedirectConfiguration: { + serializedName: "properties.defaultRedirectConfiguration", + type: { + name: "Composite", + className: "SubResource" + } + }, + defaultLoadDistributionPolicy: { + serializedName: "properties.defaultLoadDistributionPolicy", type: { name: "Composite", className: "SubResource" } }, + pathRules: { + serializedName: "properties.pathRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayPathRule" + } + } + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -15928,10 +19058,10 @@ export const FrontendIPConfiguration: coreClient.CompositeMapper = { } }; -export const BackendAddressPool: coreClient.CompositeMapper = { +export const ApplicationGatewayRequestRoutingRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BackendAddressPool", + className: "ApplicationGatewayRequestRoutingRule", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -15954,93 +19084,69 @@ export const BackendAddressPool: coreClient.CompositeMapper = { name: "String" } }, - location: { - serializedName: "properties.location", + ruleType: { + serializedName: "properties.ruleType", type: { name: "String" } }, - tunnelInterfaces: { - serializedName: "properties.tunnelInterfaces", + priority: { + constraints: { + InclusiveMaximum: 20000, + InclusiveMinimum: 1 + }, + serializedName: "properties.priority", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GatewayLoadBalancerTunnelInterface" - } - } + name: "Number" } }, - loadBalancerBackendAddresses: { - serializedName: "properties.loadBalancerBackendAddresses", + backendAddressPool: { + serializedName: "properties.backendAddressPool", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LoadBalancerBackendAddress" - } - } + name: "Composite", + className: "SubResource" } }, - backendIPConfigurations: { - serializedName: "properties.backendIPConfigurations", - readOnly: true, + backendHttpSettings: { + serializedName: "properties.backendHttpSettings", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkInterfaceIPConfiguration" - } - } + name: "Composite", + className: "SubResource" } }, - loadBalancingRules: { - serializedName: "properties.loadBalancingRules", - readOnly: true, + httpListener: { + serializedName: "properties.httpListener", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "Composite", + className: "SubResource" } }, - outboundRule: { - serializedName: "properties.outboundRule", + urlPathMap: { + serializedName: "properties.urlPathMap", type: { name: "Composite", className: "SubResource" } }, - outboundRules: { - serializedName: "properties.outboundRules", - readOnly: true, + rewriteRuleSet: { + serializedName: "properties.rewriteRuleSet", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "Composite", + className: "SubResource" } }, - inboundNatRules: { - serializedName: "properties.inboundNatRules", - readOnly: true, + redirectConfiguration: { + serializedName: "properties.redirectConfiguration", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "Composite", + className: "SubResource" + } + }, + loadDistributionPolicy: { + serializedName: "properties.loadDistributionPolicy", + type: { + name: "Composite", + className: "SubResource" } }, provisioningState: { @@ -16054,10 +19160,10 @@ export const BackendAddressPool: coreClient.CompositeMapper = { } }; -export const InboundNatRule: coreClient.CompositeMapper = { +export const ApplicationGatewayRoutingRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InboundNatRule", + className: "ApplicationGatewayRoutingRule", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -16080,73 +19186,83 @@ export const InboundNatRule: coreClient.CompositeMapper = { name: "String" } }, - frontendIPConfiguration: { - serializedName: "properties.frontendIPConfiguration", - type: { - name: "Composite", - className: "SubResource" - } - }, - backendIPConfiguration: { - serializedName: "properties.backendIPConfiguration", - type: { - name: "Composite", - className: "NetworkInterfaceIPConfiguration" - } - }, - protocol: { - serializedName: "properties.protocol", + ruleType: { + serializedName: "properties.ruleType", type: { name: "String" } }, - frontendPort: { - serializedName: "properties.frontendPort", + priority: { + constraints: { + InclusiveMaximum: 20000, + InclusiveMinimum: 1 + }, + serializedName: "properties.priority", type: { name: "Number" } }, - backendPort: { - serializedName: "properties.backendPort", + backendAddressPool: { + serializedName: "properties.backendAddressPool", type: { - name: "Number" + name: "Composite", + className: "SubResource" } }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", + backendSettings: { + serializedName: "properties.backendSettings", type: { - name: "Number" + name: "Composite", + className: "SubResource" } }, - enableFloatingIP: { - serializedName: "properties.enableFloatingIP", + listener: { + serializedName: "properties.listener", type: { - name: "Boolean" + name: "Composite", + className: "SubResource" } }, - enableTcpReset: { - serializedName: "properties.enableTcpReset", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Boolean" + name: "String" } - }, - frontendPortRangeStart: { - serializedName: "properties.frontendPortRangeStart", + } + } + } +}; + +export const ApplicationGatewayRewriteRuleSet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGatewayRewriteRuleSet", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", type: { - name: "Number" + name: "String" } }, - frontendPortRangeEnd: { - serializedName: "properties.frontendPortRangeEnd", + etag: { + serializedName: "etag", + readOnly: true, type: { - name: "Number" + name: "String" } }, - backendAddressPool: { - serializedName: "properties.backendAddressPool", + rewriteRules: { + serializedName: "properties.rewriteRules", type: { - name: "Composite", - className: "SubResource" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayRewriteRule" + } + } } }, provisioningState: { @@ -16160,10 +19276,10 @@ export const InboundNatRule: coreClient.CompositeMapper = { } }; -export const NetworkInterfaceIPConfiguration: coreClient.CompositeMapper = { +export const ApplicationGatewayRedirectConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkInterfaceIPConfiguration", + className: "ApplicationGatewayRedirectConfiguration", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -16181,113 +19297,131 @@ export const NetworkInterfaceIPConfiguration: coreClient.CompositeMapper = { }, type: { serializedName: "type", + readOnly: true, type: { name: "String" } }, - gatewayLoadBalancer: { - serializedName: "properties.gatewayLoadBalancer", + redirectType: { + serializedName: "properties.redirectType", + type: { + name: "String" + } + }, + targetListener: { + serializedName: "properties.targetListener", type: { name: "Composite", className: "SubResource" } }, - virtualNetworkTaps: { - serializedName: "properties.virtualNetworkTaps", + targetUrl: { + serializedName: "properties.targetUrl", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualNetworkTap" - } - } + name: "String" } }, - applicationGatewayBackendAddressPools: { - serializedName: "properties.applicationGatewayBackendAddressPools", + includePath: { + serializedName: "properties.includePath", + type: { + name: "Boolean" + } + }, + includeQueryString: { + serializedName: "properties.includeQueryString", + type: { + name: "Boolean" + } + }, + requestRoutingRules: { + serializedName: "properties.requestRoutingRules", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationGatewayBackendAddressPool" + className: "SubResource" } } } }, - loadBalancerBackendAddressPools: { - serializedName: "properties.loadBalancerBackendAddressPools", + urlPathMaps: { + serializedName: "properties.urlPathMaps", type: { name: "Sequence", element: { type: { name: "Composite", - className: "BackendAddressPool" + className: "SubResource" } } } }, - loadBalancerInboundNatRules: { - serializedName: "properties.loadBalancerInboundNatRules", + pathRules: { + serializedName: "properties.pathRules", type: { name: "Sequence", element: { type: { name: "Composite", - className: "InboundNatRule" + className: "SubResource" } } } - }, - privateIPAddress: { - serializedName: "properties.privateIPAddress", + } + } + } +}; + +export const ApplicationGatewayPrivateLinkIpConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGatewayPrivateLinkIpConfiguration", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", type: { name: "String" } }, - privateIPAllocationMethod: { - serializedName: "properties.privateIPAllocationMethod", + etag: { + serializedName: "etag", + readOnly: true, type: { name: "String" } }, - privateIPAddressVersion: { - serializedName: "properties.privateIPAddressVersion", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - subnet: { - serializedName: "properties.subnet", + privateIPAddress: { + serializedName: "properties.privateIPAddress", type: { - name: "Composite", - className: "Subnet" + name: "String" } }, - primary: { - serializedName: "properties.primary", + privateIPAllocationMethod: { + serializedName: "properties.privateIPAllocationMethod", type: { - name: "Boolean" + name: "String" } }, - publicIPAddress: { - serializedName: "properties.publicIPAddress", + subnet: { + serializedName: "properties.subnet", type: { name: "Composite", - className: "PublicIPAddress" + className: "SubResource" } }, - applicationSecurityGroups: { - serializedName: "properties.applicationSecurityGroups", + primary: { + serializedName: "properties.primary", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationSecurityGroup" - } - } + name: "Boolean" } }, provisioningState: { @@ -16296,23 +19430,15 @@ export const NetworkInterfaceIPConfiguration: coreClient.CompositeMapper = { type: { name: "String" } - }, - privateLinkConnectionProperties: { - serializedName: "properties.privateLinkConnectionProperties", - type: { - name: "Composite", - className: - "NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties" - } } } } }; -export const ApplicationGatewayBackendAddressPool: coreClient.CompositeMapper = { +export const ApplicationGatewayPrivateLinkConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGatewayBackendAddressPool", + className: "ApplicationGatewayPrivateLinkConfiguration", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -16335,27 +19461,14 @@ export const ApplicationGatewayBackendAddressPool: coreClient.CompositeMapper = name: "String" } }, - backendIPConfigurations: { - serializedName: "properties.backendIPConfigurations", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkInterfaceIPConfiguration" - } - } - } - }, - backendAddresses: { - serializedName: "properties.backendAddresses", + ipConfigurations: { + serializedName: "properties.ipConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationGatewayBackendAddress" + className: "ApplicationGatewayPrivateLinkIpConfiguration" } } } @@ -16371,10 +19484,10 @@ export const ApplicationGatewayBackendAddressPool: coreClient.CompositeMapper = } }; -export const ApplicationGatewayBackendHttpSettings: coreClient.CompositeMapper = { +export const ApplicationGatewayPrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGatewayBackendHttpSettings", + className: "ApplicationGatewayPrivateEndpointConnection", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -16397,94 +19510,125 @@ export const ApplicationGatewayBackendHttpSettings: coreClient.CompositeMapper = name: "String" } }, - port: { - serializedName: "properties.port", + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { - name: "Number" + name: "Composite", + className: "PrivateEndpoint" } }, - protocol: { - serializedName: "properties.protocol", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { - name: "String" + name: "Composite", + className: "PrivateLinkServiceConnectionState" } }, - cookieBasedAffinity: { - serializedName: "properties.cookieBasedAffinity", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - requestTimeout: { - serializedName: "properties.requestTimeout", + linkIdentifier: { + serializedName: "properties.linkIdentifier", + readOnly: true, type: { - name: "Number" + name: "String" + } + } + } + } +}; + +export const ApplicationGatewayLoadDistributionTarget: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGatewayLoadDistributionTarget", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" } }, - probe: { - serializedName: "properties.probe", + etag: { + serializedName: "etag", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - authenticationCertificates: { - serializedName: "properties.authenticationCertificates", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "String" } }, - trustedRootCertificates: { - serializedName: "properties.trustedRootCertificates", + weightPerServer: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 1 + }, + serializedName: "properties.weightPerServer", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "Number" } }, - connectionDraining: { - serializedName: "properties.connectionDraining", + backendAddressPool: { + serializedName: "properties.backendAddressPool", type: { name: "Composite", - className: "ApplicationGatewayConnectionDraining" + className: "SubResource" } - }, - hostName: { - serializedName: "properties.hostName", + } + } + } +}; + +export const ApplicationGatewayLoadDistributionPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGatewayLoadDistributionPolicy", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", type: { name: "String" } }, - pickHostNameFromBackendAddress: { - serializedName: "properties.pickHostNameFromBackendAddress", + etag: { + serializedName: "etag", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - affinityCookieName: { - serializedName: "properties.affinityCookieName", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - probeEnabled: { - serializedName: "properties.probeEnabled", + loadDistributionTargets: { + serializedName: "properties.loadDistributionTargets", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayLoadDistributionTarget" + } + } } }, - path: { - serializedName: "properties.path", + loadDistributionAlgorithm: { + serializedName: "properties.loadDistributionAlgorithm", type: { name: "String" } @@ -16500,10 +19644,10 @@ export const ApplicationGatewayBackendHttpSettings: coreClient.CompositeMapper = } }; -export const ApplicationGatewayHttpListener: coreClient.CompositeMapper = { +export const ApplicationGatewayPrivateLinkResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGatewayHttpListener", + className: "ApplicationGatewayPrivateLinkResource", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -16526,97 +19670,136 @@ export const ApplicationGatewayHttpListener: coreClient.CompositeMapper = { name: "String" } }, - frontendIPConfiguration: { - serializedName: "properties.frontendIPConfiguration", + groupId: { + serializedName: "properties.groupId", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - frontendPort: { - serializedName: "properties.frontendPort", + requiredMembers: { + serializedName: "properties.requiredMembers", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - protocol: { - serializedName: "properties.protocol", + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - hostName: { - serializedName: "properties.hostName", + } + } + } +}; + +export const ApplicationGatewaySslPredefinedPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGatewaySslPredefinedPolicy", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", type: { name: "String" } }, - sslCertificate: { - serializedName: "properties.sslCertificate", + cipherSuites: { + serializedName: "properties.cipherSuites", type: { - name: "Composite", - className: "SubResource" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - sslProfile: { - serializedName: "properties.sslProfile", + minProtocolVersion: { + serializedName: "properties.minProtocolVersion", type: { - name: "Composite", - className: "SubResource" + name: "String" } - }, - requireServerNameIndication: { - serializedName: "properties.requireServerNameIndication", + } + } + } +}; + +export const AzureFirewallApplicationRuleCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureFirewallApplicationRuleCollection", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", type: { - name: "Boolean" + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + etag: { + serializedName: "etag", readOnly: true, type: { name: "String" } }, - customErrorConfigurations: { - serializedName: "properties.customErrorConfigurations", + priority: { + constraints: { + InclusiveMaximum: 65000, + InclusiveMinimum: 100 + }, + serializedName: "properties.priority", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGatewayCustomError" - } - } + name: "Number" } }, - firewallPolicy: { - serializedName: "properties.firewallPolicy", + action: { + serializedName: "properties.action", type: { name: "Composite", - className: "SubResource" + className: "AzureFirewallRCAction" } }, - hostNames: { - serializedName: "properties.hostNames", + rules: { + serializedName: "properties.rules", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "AzureFirewallApplicationRule" } } } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } } } } }; -export const ApplicationGatewaySslProfile: coreClient.CompositeMapper = { +export const AzureFirewallNatRuleCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGatewaySslProfile", + className: "AzureFirewallNatRuleCollection", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -16632,37 +19815,92 @@ export const ApplicationGatewaySslProfile: coreClient.CompositeMapper = { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + priority: { + constraints: { + InclusiveMaximum: 65000, + InclusiveMinimum: 100 + }, + serializedName: "properties.priority", type: { - name: "String" + name: "Number" } }, - trustedClientCertificates: { - serializedName: "properties.trustedClientCertificates", + action: { + serializedName: "properties.action", + type: { + name: "Composite", + className: "AzureFirewallNatRCAction" + } + }, + rules: { + serializedName: "properties.rules", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubResource" + className: "AzureFirewallNatRule" } } } }, - sslPolicy: { - serializedName: "properties.sslPolicy", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Composite", - className: "ApplicationGatewaySslPolicy" + name: "String" + } + } + } + } +}; + +export const AzureFirewallNetworkRuleCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureFirewallNetworkRuleCollection", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" } }, - clientAuthConfiguration: { - serializedName: "properties.clientAuthConfiguration", + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + priority: { + constraints: { + InclusiveMaximum: 65000, + InclusiveMinimum: 100 + }, + serializedName: "properties.priority", + type: { + name: "Number" + } + }, + action: { + serializedName: "properties.action", type: { name: "Composite", - className: "ApplicationGatewayClientAuthConfiguration" + className: "AzureFirewallRCAction" + } + }, + rules: { + serializedName: "properties.rules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureFirewallNetworkRule" + } + } } }, provisioningState: { @@ -16676,10 +19914,10 @@ export const ApplicationGatewaySslProfile: coreClient.CompositeMapper = { } }; -export const ApplicationGatewayPathRule: coreClient.CompositeMapper = { +export const AzureFirewallIPConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGatewayPathRule", + className: "AzureFirewallIPConfiguration", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -16702,47 +19940,22 @@ export const ApplicationGatewayPathRule: coreClient.CompositeMapper = { name: "String" } }, - paths: { - serializedName: "properties.paths", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - backendAddressPool: { - serializedName: "properties.backendAddressPool", - type: { - name: "Composite", - className: "SubResource" - } - }, - backendHttpSettings: { - serializedName: "properties.backendHttpSettings", - type: { - name: "Composite", - className: "SubResource" - } - }, - redirectConfiguration: { - serializedName: "properties.redirectConfiguration", + privateIPAddress: { + serializedName: "properties.privateIPAddress", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - rewriteRuleSet: { - serializedName: "properties.rewriteRuleSet", + subnet: { + serializedName: "properties.subnet", type: { name: "Composite", className: "SubResource" } }, - loadDistributionPolicy: { - serializedName: "properties.loadDistributionPolicy", + publicIPAddress: { + serializedName: "properties.publicIPAddress", type: { name: "Composite", className: "SubResource" @@ -16754,22 +19967,15 @@ export const ApplicationGatewayPathRule: coreClient.CompositeMapper = { type: { name: "String" } - }, - firewallPolicy: { - serializedName: "properties.firewallPolicy", - type: { - name: "Composite", - className: "SubResource" - } } } } }; -export const ApplicationGatewayUrlPathMap: coreClient.CompositeMapper = { +export const BastionHostIPConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGatewayUrlPathMap", + className: "BastionHostIPConfiguration", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -16792,55 +19998,52 @@ export const ApplicationGatewayUrlPathMap: coreClient.CompositeMapper = { name: "String" } }, - defaultBackendAddressPool: { - serializedName: "properties.defaultBackendAddressPool", - type: { - name: "Composite", - className: "SubResource" - } - }, - defaultBackendHttpSettings: { - serializedName: "properties.defaultBackendHttpSettings", + subnet: { + serializedName: "properties.subnet", type: { name: "Composite", className: "SubResource" } }, - defaultRewriteRuleSet: { - serializedName: "properties.defaultRewriteRuleSet", + publicIPAddress: { + serializedName: "properties.publicIPAddress", type: { name: "Composite", className: "SubResource" } }, - defaultRedirectConfiguration: { - serializedName: "properties.defaultRedirectConfiguration", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - defaultLoadDistributionPolicy: { - serializedName: "properties.defaultLoadDistributionPolicy", + privateIPAllocationMethod: { + serializedName: "properties.privateIPAllocationMethod", type: { - name: "Composite", - className: "SubResource" + name: "String" } - }, - pathRules: { - serializedName: "properties.pathRules", + } + } + } +}; + +export const EndpointServiceResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointServiceResult", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGatewayPathRule" - } - } + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + type: { + serializedName: "type", readOnly: true, type: { name: "String" @@ -16850,10 +20053,10 @@ export const ApplicationGatewayUrlPathMap: coreClient.CompositeMapper = { } }; -export const ApplicationGatewayRequestRoutingRule: coreClient.CompositeMapper = { +export const ExpressRouteCircuitAuthorization: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGatewayRequestRoutingRule", + className: "ExpressRouteCircuitAuthorization", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -16876,69 +20079,93 @@ export const ApplicationGatewayRequestRoutingRule: coreClient.CompositeMapper = name: "String" } }, - ruleType: { - serializedName: "properties.ruleType", + authorizationKey: { + serializedName: "properties.authorizationKey", type: { name: "String" } }, - priority: { - constraints: { - InclusiveMaximum: 20000, - InclusiveMinimum: 1 - }, - serializedName: "properties.priority", + authorizationUseStatus: { + serializedName: "properties.authorizationUseStatus", type: { - name: "Number" + name: "String" } }, - backendAddressPool: { - serializedName: "properties.backendAddressPool", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "String" + } + } + } + } +}; + +export const ExpressRouteCircuitConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExpressRouteCircuitConnection", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" } }, - backendHttpSettings: { - serializedName: "properties.backendHttpSettings", + etag: { + serializedName: "etag", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - httpListener: { - serializedName: "properties.httpListener", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - urlPathMap: { - serializedName: "properties.urlPathMap", + expressRouteCircuitPeering: { + serializedName: "properties.expressRouteCircuitPeering", type: { name: "Composite", className: "SubResource" } }, - rewriteRuleSet: { - serializedName: "properties.rewriteRuleSet", + peerExpressRouteCircuitPeering: { + serializedName: "properties.peerExpressRouteCircuitPeering", type: { name: "Composite", className: "SubResource" } }, - redirectConfiguration: { - serializedName: "properties.redirectConfiguration", + addressPrefix: { + serializedName: "properties.addressPrefix", type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - loadDistributionPolicy: { - serializedName: "properties.loadDistributionPolicy", + authorizationKey: { + serializedName: "properties.authorizationKey", + type: { + name: "String" + } + }, + ipv6CircuitConnectionConfig: { + serializedName: "properties.ipv6CircuitConnectionConfig", type: { name: "Composite", - className: "SubResource" + className: "Ipv6CircuitConnectionConfig" + } + }, + circuitConnectionStatus: { + serializedName: "properties.circuitConnectionStatus", + readOnly: true, + type: { + name: "String" } }, provisioningState: { @@ -16952,10 +20179,10 @@ export const ApplicationGatewayRequestRoutingRule: coreClient.CompositeMapper = } }; -export const ApplicationGatewayRewriteRuleSet: coreClient.CompositeMapper = { +export const PeerExpressRouteCircuitConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGatewayRewriteRuleSet", + className: "PeerExpressRouteCircuitConnection", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -16971,16 +20198,50 @@ export const ApplicationGatewayRewriteRuleSet: coreClient.CompositeMapper = { name: "String" } }, - rewriteRules: { - serializedName: "properties.rewriteRules", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGatewayRewriteRule" - } - } + name: "String" + } + }, + expressRouteCircuitPeering: { + serializedName: "properties.expressRouteCircuitPeering", + type: { + name: "Composite", + className: "SubResource" + } + }, + peerExpressRouteCircuitPeering: { + serializedName: "properties.peerExpressRouteCircuitPeering", + type: { + name: "Composite", + className: "SubResource" + } + }, + addressPrefix: { + serializedName: "properties.addressPrefix", + type: { + name: "String" + } + }, + circuitConnectionStatus: { + serializedName: "properties.circuitConnectionStatus", + readOnly: true, + type: { + name: "String" + } + }, + connectionName: { + serializedName: "properties.connectionName", + type: { + name: "String" + } + }, + authResourceGuid: { + serializedName: "properties.authResourceGuid", + type: { + name: "String" } }, provisioningState: { @@ -16994,10 +20255,10 @@ export const ApplicationGatewayRewriteRuleSet: coreClient.CompositeMapper = { } }; -export const ApplicationGatewayRedirectConfiguration: coreClient.CompositeMapper = { +export const ExpressRouteCircuitPeering: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGatewayRedirectConfiguration", + className: "ExpressRouteCircuitPeering", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -17020,143 +20281,158 @@ export const ApplicationGatewayRedirectConfiguration: coreClient.CompositeMapper name: "String" } }, - redirectType: { - serializedName: "properties.redirectType", + peeringType: { + serializedName: "properties.peeringType", type: { name: "String" } }, - targetListener: { - serializedName: "properties.targetListener", + state: { + serializedName: "properties.state", type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - targetUrl: { - serializedName: "properties.targetUrl", + azureASN: { + serializedName: "properties.azureASN", type: { - name: "String" + name: "Number" } }, - includePath: { - serializedName: "properties.includePath", + peerASN: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 1 + }, + serializedName: "properties.peerASN", type: { - name: "Boolean" + name: "Number" } }, - includeQueryString: { - serializedName: "properties.includeQueryString", + primaryPeerAddressPrefix: { + serializedName: "properties.primaryPeerAddressPrefix", type: { - name: "Boolean" + name: "String" } }, - requestRoutingRules: { - serializedName: "properties.requestRoutingRules", + secondaryPeerAddressPrefix: { + serializedName: "properties.secondaryPeerAddressPrefix", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "String" } }, - urlPathMaps: { - serializedName: "properties.urlPathMaps", + primaryAzurePort: { + serializedName: "properties.primaryAzurePort", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "String" } }, - pathRules: { - serializedName: "properties.pathRules", + secondaryAzurePort: { + serializedName: "properties.secondaryAzurePort", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "String" } - } - } - } -}; - -export const ApplicationGatewayPrivateLinkIpConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationGatewayPrivateLinkIpConfiguration", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", + }, + sharedKey: { + serializedName: "properties.sharedKey", type: { name: "String" } }, - etag: { - serializedName: "etag", - readOnly: true, + vlanId: { + serializedName: "properties.vlanId", type: { - name: "String" + name: "Number" } }, - type: { - serializedName: "type", + microsoftPeeringConfig: { + serializedName: "properties.microsoftPeeringConfig", + type: { + name: "Composite", + className: "ExpressRouteCircuitPeeringConfig" + } + }, + stats: { + serializedName: "properties.stats", + type: { + name: "Composite", + className: "ExpressRouteCircuitStats" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - privateIPAddress: { - serializedName: "properties.privateIPAddress", + gatewayManagerEtag: { + serializedName: "properties.gatewayManagerEtag", type: { name: "String" } }, - privateIPAllocationMethod: { - serializedName: "properties.privateIPAllocationMethod", + lastModifiedBy: { + serializedName: "properties.lastModifiedBy", + readOnly: true, type: { name: "String" } }, - subnet: { - serializedName: "properties.subnet", + routeFilter: { + serializedName: "properties.routeFilter", type: { name: "Composite", className: "SubResource" } }, - primary: { - serializedName: "properties.primary", + ipv6PeeringConfig: { + serializedName: "properties.ipv6PeeringConfig", type: { - name: "Boolean" + name: "Composite", + className: "Ipv6ExpressRouteCircuitPeeringConfig" } }, - provisioningState: { - serializedName: "properties.provisioningState", + expressRouteConnection: { + serializedName: "properties.expressRouteConnection", + type: { + name: "Composite", + className: "ExpressRouteConnectionId" + } + }, + connections: { + serializedName: "properties.connections", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteCircuitConnection" + } + } + } + }, + peeredConnections: { + serializedName: "properties.peeredConnections", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PeerExpressRouteCircuitConnection" + } + } } } } } }; -export const ApplicationGatewayPrivateLinkConfiguration: coreClient.CompositeMapper = { +export const ExpressRouteCrossConnectionPeering: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGatewayPrivateLinkConfiguration", + className: "ExpressRouteCrossConnectionPeering", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -17172,74 +20448,78 @@ export const ApplicationGatewayPrivateLinkConfiguration: coreClient.CompositeMap name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + peeringType: { + serializedName: "properties.peeringType", type: { name: "String" } }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", + state: { + serializedName: "properties.state", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGatewayPrivateLinkIpConfiguration" - } - } + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + azureASN: { + serializedName: "properties.azureASN", readOnly: true, + type: { + name: "Number" + } + }, + peerASN: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 1 + }, + serializedName: "properties.peerASN", + type: { + name: "Number" + } + }, + primaryPeerAddressPrefix: { + serializedName: "properties.primaryPeerAddressPrefix", type: { name: "String" } - } - } - } -}; - -export const ApplicationGatewayPrivateEndpointConnection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationGatewayPrivateEndpointConnection", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", + }, + secondaryPeerAddressPrefix: { + serializedName: "properties.secondaryPeerAddressPrefix", type: { name: "String" } }, - etag: { - serializedName: "etag", + primaryAzurePort: { + serializedName: "properties.primaryAzurePort", readOnly: true, type: { name: "String" } }, - type: { - serializedName: "type", + secondaryAzurePort: { + serializedName: "properties.secondaryAzurePort", readOnly: true, type: { name: "String" } }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + sharedKey: { + serializedName: "properties.sharedKey", type: { - name: "Composite", - className: "PrivateEndpoint" + name: "String" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + vlanId: { + serializedName: "properties.vlanId", + type: { + name: "Number" + } + }, + microsoftPeeringConfig: { + serializedName: "properties.microsoftPeeringConfig", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" + className: "ExpressRouteCircuitPeeringConfig" } }, provisioningState: { @@ -17249,21 +20529,34 @@ export const ApplicationGatewayPrivateEndpointConnection: coreClient.CompositeMa name: "String" } }, - linkIdentifier: { - serializedName: "properties.linkIdentifier", + gatewayManagerEtag: { + serializedName: "properties.gatewayManagerEtag", + type: { + name: "String" + } + }, + lastModifiedBy: { + serializedName: "properties.lastModifiedBy", readOnly: true, type: { name: "String" } + }, + ipv6PeeringConfig: { + serializedName: "properties.ipv6PeeringConfig", + type: { + name: "Composite", + className: "Ipv6ExpressRouteCircuitPeeringConfig" + } } } } }; -export const ApplicationGatewayLoadDistributionTarget: coreClient.CompositeMapper = { +export const ExpressRouteLink: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGatewayLoadDistributionTarget", + className: "ExpressRouteLink", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -17279,74 +20572,50 @@ export const ApplicationGatewayLoadDistributionTarget: coreClient.CompositeMappe name: "String" } }, - type: { - serializedName: "type", + routerName: { + serializedName: "properties.routerName", readOnly: true, type: { name: "String" } }, - weightPerServer: { - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 1 - }, - serializedName: "properties.weightPerServer", + interfaceName: { + serializedName: "properties.interfaceName", + readOnly: true, type: { - name: "Number" + name: "String" } }, - backendAddressPool: { - serializedName: "properties.backendAddressPool", - type: { - name: "Composite", - className: "SubResource" - } - } - } - } -}; - -export const ApplicationGatewayLoadDistributionPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationGatewayLoadDistributionPolicy", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", + patchPanelId: { + serializedName: "properties.patchPanelId", + readOnly: true, type: { name: "String" } }, - etag: { - serializedName: "etag", + rackId: { + serializedName: "properties.rackId", readOnly: true, type: { name: "String" } }, - type: { - serializedName: "type", + coloLocation: { + serializedName: "properties.coloLocation", readOnly: true, type: { name: "String" } }, - loadDistributionTargets: { - serializedName: "properties.loadDistributionTargets", + connectorType: { + serializedName: "properties.connectorType", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGatewayLoadDistributionTarget" - } - } + name: "String" } }, - loadDistributionAlgorithm: { - serializedName: "properties.loadDistributionAlgorithm", + adminState: { + serializedName: "properties.adminState", type: { name: "String" } @@ -17357,15 +20626,22 @@ export const ApplicationGatewayLoadDistributionPolicy: coreClient.CompositeMappe type: { name: "String" } + }, + macSecConfig: { + serializedName: "properties.macSecConfig", + type: { + name: "Composite", + className: "ExpressRouteLinkMacSecConfig" + } } } } }; -export const ApplicationGatewayPrivateLinkResource: coreClient.CompositeMapper = { +export const ExpressRoutePortAuthorization: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGatewayPrivateLinkResource", + className: "ExpressRoutePortAuthorization", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -17388,65 +20664,30 @@ export const ApplicationGatewayPrivateLinkResource: coreClient.CompositeMapper = name: "String" } }, - groupId: { - serializedName: "properties.groupId", + authorizationKey: { + serializedName: "properties.authorizationKey", readOnly: true, type: { name: "String" } }, - requiredMembers: { - serializedName: "properties.requiredMembers", + authorizationUseStatus: { + serializedName: "properties.authorizationUseStatus", readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ApplicationGatewaySslPredefinedPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationGatewaySslPredefinedPolicy", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", type: { name: "String" } }, - cipherSuites: { - serializedName: "properties.cipherSuites", + circuitResourceUri: { + serializedName: "properties.circuitResourceUri", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - minProtocolVersion: { - serializedName: "properties.minProtocolVersion", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } @@ -17455,10 +20696,10 @@ export const ApplicationGatewaySslPredefinedPolicy: coreClient.CompositeMapper = } }; -export const AzureFirewallApplicationRuleCollection: coreClient.CompositeMapper = { +export const FirewallPolicyRuleCollectionGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureFirewallApplicationRuleCollection", + className: "FirewallPolicyRuleCollectionGroup", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -17474,6 +20715,13 @@ export const AzureFirewallApplicationRuleCollection: coreClient.CompositeMapper name: "String" } }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, priority: { constraints: { InclusiveMaximum: 65000, @@ -17484,21 +20732,14 @@ export const AzureFirewallApplicationRuleCollection: coreClient.CompositeMapper name: "Number" } }, - action: { - serializedName: "properties.action", - type: { - name: "Composite", - className: "AzureFirewallRCAction" - } - }, - rules: { - serializedName: "properties.rules", + ruleCollections: { + serializedName: "properties.ruleCollections", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AzureFirewallApplicationRule" + className: "FirewallPolicyRuleCollection" } } } @@ -17514,10 +20755,10 @@ export const AzureFirewallApplicationRuleCollection: coreClient.CompositeMapper } }; -export const AzureFirewallNatRuleCollection: coreClient.CompositeMapper = { +export const LoadBalancingRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureFirewallNatRuleCollection", + className: "LoadBalancingRule", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -17533,35 +20774,94 @@ export const AzureFirewallNatRuleCollection: coreClient.CompositeMapper = { name: "String" } }, - priority: { - constraints: { - InclusiveMaximum: 65000, - InclusiveMinimum: 100 - }, - serializedName: "properties.priority", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Number" + name: "String" } }, - action: { - serializedName: "properties.action", + frontendIPConfiguration: { + serializedName: "properties.frontendIPConfiguration", type: { name: "Composite", - className: "AzureFirewallNatRCAction" + className: "SubResource" } }, - rules: { - serializedName: "properties.rules", + backendAddressPool: { + serializedName: "properties.backendAddressPool", + type: { + name: "Composite", + className: "SubResource" + } + }, + backendAddressPools: { + serializedName: "properties.backendAddressPools", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AzureFirewallNatRule" + className: "SubResource" } } } }, + probe: { + serializedName: "properties.probe", + type: { + name: "Composite", + className: "SubResource" + } + }, + protocol: { + serializedName: "properties.protocol", + type: { + name: "String" + } + }, + loadDistribution: { + serializedName: "properties.loadDistribution", + type: { + name: "String" + } + }, + frontendPort: { + serializedName: "properties.frontendPort", + type: { + name: "Number" + } + }, + backendPort: { + serializedName: "properties.backendPort", + type: { + name: "Number" + } + }, + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number" + } + }, + enableFloatingIP: { + serializedName: "properties.enableFloatingIP", + type: { + name: "Boolean" + } + }, + enableTcpReset: { + serializedName: "properties.enableTcpReset", + type: { + name: "Boolean" + } + }, + disableOutboundSnat: { + serializedName: "properties.disableOutboundSnat", + type: { + name: "Boolean" + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -17573,10 +20873,10 @@ export const AzureFirewallNatRuleCollection: coreClient.CompositeMapper = { } }; -export const AzureFirewallNetworkRuleCollection: coreClient.CompositeMapper = { +export const Probe: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureFirewallNetworkRuleCollection", + className: "Probe", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -17592,35 +20892,62 @@ export const AzureFirewallNetworkRuleCollection: coreClient.CompositeMapper = { name: "String" } }, - priority: { - constraints: { - InclusiveMaximum: 65000, - InclusiveMinimum: 100 - }, - serializedName: "properties.priority", - type: { - name: "Number" - } - }, - action: { - serializedName: "properties.action", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Composite", - className: "AzureFirewallRCAction" + name: "String" } }, - rules: { - serializedName: "properties.rules", + loadBalancingRules: { + serializedName: "properties.loadBalancingRules", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AzureFirewallNetworkRule" + className: "SubResource" } } } }, + protocol: { + serializedName: "properties.protocol", + type: { + name: "String" + } + }, + port: { + serializedName: "properties.port", + type: { + name: "Number" + } + }, + intervalInSeconds: { + serializedName: "properties.intervalInSeconds", + type: { + name: "Number" + } + }, + numberOfProbes: { + serializedName: "properties.numberOfProbes", + type: { + name: "Number" + } + }, + probeThreshold: { + serializedName: "properties.probeThreshold", + type: { + name: "Number" + } + }, + requestPath: { + serializedName: "properties.requestPath", + type: { + name: "String" + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -17632,10 +20959,10 @@ export const AzureFirewallNetworkRuleCollection: coreClient.CompositeMapper = { } }; -export const AzureFirewallIPConfiguration: coreClient.CompositeMapper = { +export const InboundNatPool: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureFirewallIPConfiguration", + className: "InboundNatPool", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -17658,25 +20985,53 @@ export const AzureFirewallIPConfiguration: coreClient.CompositeMapper = { name: "String" } }, - privateIPAddress: { - serializedName: "properties.privateIPAddress", - readOnly: true, + frontendIPConfiguration: { + serializedName: "properties.frontendIPConfiguration", + type: { + name: "Composite", + className: "SubResource" + } + }, + protocol: { + serializedName: "properties.protocol", type: { name: "String" } }, - subnet: { - serializedName: "properties.subnet", + frontendPortRangeStart: { + serializedName: "properties.frontendPortRangeStart", type: { - name: "Composite", - className: "SubResource" + name: "Number" } }, - publicIPAddress: { - serializedName: "properties.publicIPAddress", + frontendPortRangeEnd: { + serializedName: "properties.frontendPortRangeEnd", type: { - name: "Composite", - className: "SubResource" + name: "Number" + } + }, + backendPort: { + serializedName: "properties.backendPort", + type: { + name: "Number" + } + }, + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number" + } + }, + enableFloatingIP: { + serializedName: "properties.enableFloatingIP", + type: { + name: "Boolean" + } + }, + enableTcpReset: { + serializedName: "properties.enableTcpReset", + type: { + name: "Boolean" } }, provisioningState: { @@ -17690,10 +21045,10 @@ export const AzureFirewallIPConfiguration: coreClient.CompositeMapper = { } }; -export const BastionHostIPConfiguration: coreClient.CompositeMapper = { +export const OutboundRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BastionHostIPConfiguration", + className: "OutboundRule", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -17716,15 +21071,26 @@ export const BastionHostIPConfiguration: coreClient.CompositeMapper = { name: "String" } }, - subnet: { - serializedName: "properties.subnet", + allocatedOutboundPorts: { + serializedName: "properties.allocatedOutboundPorts", type: { - name: "Composite", - className: "SubResource" + name: "Number" } }, - publicIPAddress: { - serializedName: "properties.publicIPAddress", + frontendIPConfigurations: { + serializedName: "properties.frontendIPConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + backendAddressPool: { + serializedName: "properties.backendAddressPool", type: { name: "Composite", className: "SubResource" @@ -17737,25 +21103,36 @@ export const BastionHostIPConfiguration: coreClient.CompositeMapper = { name: "String" } }, - privateIPAllocationMethod: { - serializedName: "properties.privateIPAllocationMethod", + protocol: { + serializedName: "properties.protocol", type: { name: "String" } + }, + enableTcpReset: { + serializedName: "properties.enableTcpReset", + type: { + name: "Boolean" + } + }, + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number" + } } } } }; -export const EndpointServiceResult: coreClient.CompositeMapper = { +export const ContainerNetworkInterfaceConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointServiceResult", + className: "ContainerNetworkInterfaceConfiguration", modelProperties: { ...SubResource.type.modelProperties, name: { serializedName: "name", - readOnly: true, type: { name: "String" } @@ -17766,15 +21143,63 @@ export const EndpointServiceResult: coreClient.CompositeMapper = { type: { name: "String" } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + ipConfigurations: { + serializedName: "properties.ipConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IPConfigurationProfile" + } + } + } + }, + containerNetworkInterfaces: { + serializedName: "properties.containerNetworkInterfaces", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } } } } }; -export const ExpressRouteCircuitAuthorization: coreClient.CompositeMapper = { +export const Container: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExpressRouteCircuitAuthorization", + className: "Container", + modelProperties: { + ...SubResource.type.modelProperties + } + } +}; + +export const ContainerNetworkInterface: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContainerNetworkInterface", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -17783,30 +21208,45 @@ export const ExpressRouteCircuitAuthorization: coreClient.CompositeMapper = { name: "String" } }, - etag: { - serializedName: "etag", + type: { + serializedName: "type", readOnly: true, type: { name: "String" } }, - type: { - serializedName: "type", + etag: { + serializedName: "etag", readOnly: true, type: { name: "String" } }, - authorizationKey: { - serializedName: "properties.authorizationKey", + containerNetworkInterfaceConfiguration: { + serializedName: "properties.containerNetworkInterfaceConfiguration", type: { - name: "String" + name: "Composite", + className: "ContainerNetworkInterfaceConfiguration" } }, - authorizationUseStatus: { - serializedName: "properties.authorizationUseStatus", + container: { + serializedName: "properties.container", type: { - name: "String" + name: "Composite", + className: "Container" + } + }, + ipConfigurations: { + serializedName: "properties.ipConfigurations", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ContainerNetworkInterfaceIpConfiguration" + } + } } }, provisioningState: { @@ -17820,10 +21260,10 @@ export const ExpressRouteCircuitAuthorization: coreClient.CompositeMapper = { } }; -export const ExpressRouteCircuitConnection: coreClient.CompositeMapper = { +export const VirtualApplianceSite: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExpressRouteCircuitConnection", + className: "VirtualApplianceSite", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -17846,46 +21286,68 @@ export const ExpressRouteCircuitConnection: coreClient.CompositeMapper = { name: "String" } }, - expressRouteCircuitPeering: { - serializedName: "properties.expressRouteCircuitPeering", + addressPrefix: { + serializedName: "properties.addressPrefix", type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - peerExpressRouteCircuitPeering: { - serializedName: "properties.peerExpressRouteCircuitPeering", + o365Policy: { + serializedName: "properties.o365Policy", type: { name: "Composite", - className: "SubResource" + className: "Office365PolicyProperties" } }, - addressPrefix: { - serializedName: "properties.addressPrefix", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } - }, - authorizationKey: { - serializedName: "properties.authorizationKey", + } + } + } +}; + +export const InboundSecurityRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InboundSecurityRule", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", type: { name: "String" } }, - ipv6CircuitConnectionConfig: { - serializedName: "properties.ipv6CircuitConnectionConfig", + etag: { + serializedName: "etag", + readOnly: true, type: { - name: "Composite", - className: "Ipv6CircuitConnectionConfig" + name: "String" } }, - circuitConnectionStatus: { - serializedName: "properties.circuitConnectionStatus", + type: { + serializedName: "type", readOnly: true, type: { name: "String" } }, + rules: { + serializedName: "properties.rules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InboundSecurityRules" + } + } + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -17897,10 +21359,10 @@ export const ExpressRouteCircuitConnection: coreClient.CompositeMapper = { } }; -export const PeerExpressRouteCircuitConnection: coreClient.CompositeMapper = { +export const PrivateDnsZoneGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PeerExpressRouteCircuitConnection", + className: "PrivateDnsZoneGroup", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -17916,52 +21378,77 @@ export const PeerExpressRouteCircuitConnection: coreClient.CompositeMapper = { name: "String" } }, - type: { - serializedName: "type", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - expressRouteCircuitPeering: { - serializedName: "properties.expressRouteCircuitPeering", + privateDnsZoneConfigs: { + serializedName: "properties.privateDnsZoneConfigs", type: { - name: "Composite", - className: "SubResource" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateDnsZoneConfig" + } + } } - }, - peerExpressRouteCircuitPeering: { - serializedName: "properties.peerExpressRouteCircuitPeering", + } + } + } +}; + +export const RouteFilterRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RouteFilterRule", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - addressPrefix: { - serializedName: "properties.addressPrefix", + location: { + serializedName: "location", type: { name: "String" } }, - circuitConnectionStatus: { - serializedName: "properties.circuitConnectionStatus", + etag: { + serializedName: "etag", readOnly: true, type: { name: "String" } }, - connectionName: { - serializedName: "properties.connectionName", + access: { + serializedName: "properties.access", type: { name: "String" } }, - authResourceGuid: { - serializedName: "properties.authResourceGuid", + routeFilterRuleType: { + serializedName: "properties.routeFilterRuleType", type: { name: "String" } }, + communities: { + serializedName: "properties.communities", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -17973,10 +21460,10 @@ export const PeerExpressRouteCircuitConnection: coreClient.CompositeMapper = { } }; -export const ExpressRouteCircuitPeering: coreClient.CompositeMapper = { +export const VirtualNetworkPeering: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExpressRouteCircuitPeering", + className: "VirtualNetworkPeering", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -17994,163 +21481,166 @@ export const ExpressRouteCircuitPeering: coreClient.CompositeMapper = { }, type: { serializedName: "type", - readOnly: true, type: { name: "String" } }, - peeringType: { - serializedName: "properties.peeringType", + allowVirtualNetworkAccess: { + serializedName: "properties.allowVirtualNetworkAccess", type: { - name: "String" + name: "Boolean" } }, - state: { - serializedName: "properties.state", + allowForwardedTraffic: { + serializedName: "properties.allowForwardedTraffic", type: { - name: "String" + name: "Boolean" } }, - azureASN: { - serializedName: "properties.azureASN", + allowGatewayTransit: { + serializedName: "properties.allowGatewayTransit", type: { - name: "Number" + name: "Boolean" } }, - peerASN: { - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 1 - }, - serializedName: "properties.peerASN", + useRemoteGateways: { + serializedName: "properties.useRemoteGateways", type: { - name: "Number" + name: "Boolean" } }, - primaryPeerAddressPrefix: { - serializedName: "properties.primaryPeerAddressPrefix", + remoteVirtualNetwork: { + serializedName: "properties.remoteVirtualNetwork", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - secondaryPeerAddressPrefix: { - serializedName: "properties.secondaryPeerAddressPrefix", + remoteAddressSpace: { + serializedName: "properties.remoteAddressSpace", type: { - name: "String" + name: "Composite", + className: "AddressSpace" } }, - primaryAzurePort: { - serializedName: "properties.primaryAzurePort", + remoteVirtualNetworkAddressSpace: { + serializedName: "properties.remoteVirtualNetworkAddressSpace", type: { - name: "String" + name: "Composite", + className: "AddressSpace" } }, - secondaryAzurePort: { - serializedName: "properties.secondaryAzurePort", + remoteBgpCommunities: { + serializedName: "properties.remoteBgpCommunities", type: { - name: "String" + name: "Composite", + className: "VirtualNetworkBgpCommunities" } }, - sharedKey: { - serializedName: "properties.sharedKey", + remoteVirtualNetworkEncryption: { + serializedName: "properties.remoteVirtualNetworkEncryption", + type: { + name: "Composite", + className: "VirtualNetworkEncryption" + } + }, + peeringState: { + serializedName: "properties.peeringState", type: { name: "String" } }, - vlanId: { - serializedName: "properties.vlanId", + peeringSyncLevel: { + serializedName: "properties.peeringSyncLevel", type: { - name: "Number" + name: "String" } }, - microsoftPeeringConfig: { - serializedName: "properties.microsoftPeeringConfig", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Composite", - className: "ExpressRouteCircuitPeeringConfig" + name: "String" } }, - stats: { - serializedName: "properties.stats", + doNotVerifyRemoteGateways: { + serializedName: "properties.doNotVerifyRemoteGateways", type: { - name: "Composite", - className: "ExpressRouteCircuitStats" + name: "Boolean" } }, - provisioningState: { - serializedName: "properties.provisioningState", + resourceGuid: { + serializedName: "properties.resourceGuid", readOnly: true, type: { name: "String" } - }, - gatewayManagerEtag: { - serializedName: "properties.gatewayManagerEtag", + } + } + } +}; + +export const VirtualNetworkGatewayIPConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualNetworkGatewayIPConfiguration", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", type: { name: "String" } }, - lastModifiedBy: { - serializedName: "properties.lastModifiedBy", + etag: { + serializedName: "etag", readOnly: true, type: { name: "String" } }, - routeFilter: { - serializedName: "properties.routeFilter", + privateIPAllocationMethod: { + serializedName: "properties.privateIPAllocationMethod", type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - ipv6PeeringConfig: { - serializedName: "properties.ipv6PeeringConfig", + subnet: { + serializedName: "properties.subnet", type: { name: "Composite", - className: "Ipv6ExpressRouteCircuitPeeringConfig" + className: "SubResource" } }, - expressRouteConnection: { - serializedName: "properties.expressRouteConnection", + publicIPAddress: { + serializedName: "properties.publicIPAddress", type: { name: "Composite", - className: "ExpressRouteConnectionId" + className: "SubResource" } }, - connections: { - serializedName: "properties.connections", + privateIPAddress: { + serializedName: "properties.privateIPAddress", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExpressRouteCircuitConnection" - } - } + name: "String" } }, - peeredConnections: { - serializedName: "properties.peeredConnections", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PeerExpressRouteCircuitConnection" - } - } + name: "String" } } } } }; -export const ExpressRouteCrossConnectionPeering: coreClient.CompositeMapper = { +export const VpnClientRootCertificate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExpressRouteCrossConnectionPeering", + className: "VpnClientRootCertificate", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -18166,78 +21656,96 @@ export const ExpressRouteCrossConnectionPeering: coreClient.CompositeMapper = { name: "String" } }, - peeringType: { - serializedName: "properties.peeringType", - type: { - name: "String" - } - }, - state: { - serializedName: "properties.state", + publicCertData: { + serializedName: "properties.publicCertData", + required: true, type: { name: "String" } }, - azureASN: { - serializedName: "properties.azureASN", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "Number" + name: "String" } - }, - peerASN: { - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 1 - }, - serializedName: "properties.peerASN", + } + } + } +}; + +export const VpnClientRevokedCertificate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VpnClientRevokedCertificate", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", type: { - name: "Number" + name: "String" } }, - primaryPeerAddressPrefix: { - serializedName: "properties.primaryPeerAddressPrefix", + etag: { + serializedName: "etag", + readOnly: true, type: { name: "String" } }, - secondaryPeerAddressPrefix: { - serializedName: "properties.secondaryPeerAddressPrefix", + thumbprint: { + serializedName: "properties.thumbprint", type: { name: "String" } }, - primaryAzurePort: { - serializedName: "properties.primaryAzurePort", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } - }, - secondaryAzurePort: { - serializedName: "properties.secondaryAzurePort", - readOnly: true, + } + } + } +}; + +export const VngClientConnectionConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VngClientConnectionConfiguration", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", type: { name: "String" } }, - sharedKey: { - serializedName: "properties.sharedKey", + etag: { + serializedName: "etag", + readOnly: true, type: { name: "String" } }, - vlanId: { - serializedName: "properties.vlanId", + vpnClientAddressPool: { + serializedName: "properties.vpnClientAddressPool", type: { - name: "Number" + name: "Composite", + className: "AddressSpace" } }, - microsoftPeeringConfig: { - serializedName: "properties.microsoftPeeringConfig", + virtualNetworkGatewayPolicyGroups: { + serializedName: "properties.virtualNetworkGatewayPolicyGroups", type: { - name: "Composite", - className: "ExpressRouteCircuitPeeringConfig" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } }, provisioningState: { @@ -18246,35 +21754,82 @@ export const ExpressRouteCrossConnectionPeering: coreClient.CompositeMapper = { type: { name: "String" } - }, - gatewayManagerEtag: { - serializedName: "properties.gatewayManagerEtag", + } + } + } +}; + +export const VirtualNetworkGatewayPolicyGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualNetworkGatewayPolicyGroup", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", type: { name: "String" } }, - lastModifiedBy: { - serializedName: "properties.lastModifiedBy", + etag: { + serializedName: "etag", readOnly: true, type: { name: "String" } }, - ipv6PeeringConfig: { - serializedName: "properties.ipv6PeeringConfig", + isDefault: { + serializedName: "properties.isDefault", type: { - name: "Composite", - className: "Ipv6ExpressRouteCircuitPeeringConfig" + name: "Boolean" + } + }, + priority: { + serializedName: "properties.priority", + type: { + name: "Number" + } + }, + policyMembers: { + serializedName: "properties.policyMembers", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualNetworkGatewayPolicyGroupMember" + } + } + } + }, + vngClientConnectionConfigurations: { + serializedName: "properties.vngClientConnectionConfigurations", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" } } } } }; -export const ExpressRouteLink: coreClient.CompositeMapper = { +export const VirtualNetworkGatewayNatRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExpressRouteLink", + className: "VirtualNetworkGatewayNatRule", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -18290,69 +21845,87 @@ export const ExpressRouteLink: coreClient.CompositeMapper = { name: "String" } }, - routerName: { - serializedName: "properties.routerName", + type: { + serializedName: "type", readOnly: true, type: { name: "String" } }, - interfaceName: { - serializedName: "properties.interfaceName", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - patchPanelId: { - serializedName: "properties.patchPanelId", - readOnly: true, + typePropertiesType: { + serializedName: "properties.type", type: { name: "String" } }, - rackId: { - serializedName: "properties.rackId", - readOnly: true, + mode: { + serializedName: "properties.mode", type: { name: "String" } }, - connectorType: { - serializedName: "properties.connectorType", - readOnly: true, + internalMappings: { + serializedName: "properties.internalMappings", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VpnNatRuleMapping" + } + } } }, - adminState: { - serializedName: "properties.adminState", + externalMappings: { + serializedName: "properties.externalMappings", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VpnNatRuleMapping" + } + } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + ipConfigurationId: { + serializedName: "properties.ipConfigurationId", type: { name: "String" } - }, - macSecConfig: { - serializedName: "properties.macSecConfig", + } + } + } +}; + +export const ConnectionSharedKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConnectionSharedKey", + modelProperties: { + ...SubResource.type.modelProperties, + value: { + serializedName: "value", + required: true, type: { - name: "Composite", - className: "ExpressRouteLinkMacSecConfig" + name: "String" } } } } }; -export const FirewallPolicyRuleCollectionGroup: coreClient.CompositeMapper = { +export const VirtualRouterPeering: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FirewallPolicyRuleCollectionGroup", + className: "VirtualRouterPeering", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -18375,26 +21948,20 @@ export const FirewallPolicyRuleCollectionGroup: coreClient.CompositeMapper = { name: "String" } }, - priority: { + peerAsn: { constraints: { - InclusiveMaximum: 65000, - InclusiveMinimum: 100 + InclusiveMaximum: 4294967295, + InclusiveMinimum: 0 }, - serializedName: "properties.priority", + serializedName: "properties.peerAsn", type: { name: "Number" } }, - ruleCollections: { - serializedName: "properties.ruleCollections", + peerIp: { + serializedName: "properties.peerIp", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FirewallPolicyRuleCollection" - } - } + name: "String" } }, provisioningState: { @@ -18408,21 +21975,21 @@ export const FirewallPolicyRuleCollectionGroup: coreClient.CompositeMapper = { } }; -export const LoadBalancingRule: coreClient.CompositeMapper = { +export const VpnSiteLink: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LoadBalancingRule", + className: "VpnSiteLink", modelProperties: { ...SubResource.type.modelProperties, - name: { - serializedName: "name", + etag: { + serializedName: "etag", + readOnly: true, type: { name: "String" } }, - etag: { - serializedName: "etag", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } @@ -18434,85 +22001,104 @@ export const LoadBalancingRule: coreClient.CompositeMapper = { name: "String" } }, - frontendIPConfiguration: { - serializedName: "properties.frontendIPConfiguration", + linkProperties: { + serializedName: "properties.linkProperties", type: { name: "Composite", - className: "SubResource" + className: "VpnLinkProviderProperties" } }, - backendAddressPool: { - serializedName: "properties.backendAddressPool", + ipAddress: { + serializedName: "properties.ipAddress", type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - backendAddressPools: { - serializedName: "properties.backendAddressPools", + fqdn: { + serializedName: "properties.fqdn", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "String" } }, - probe: { - serializedName: "properties.probe", + bgpProperties: { + serializedName: "properties.bgpProperties", type: { name: "Composite", - className: "SubResource" + className: "VpnLinkBgpSettings" } }, - protocol: { - serializedName: "properties.protocol", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } - }, - loadDistribution: { - serializedName: "properties.loadDistribution", + } + } + } +}; + +export const VpnServerConfigurationPolicyGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VpnServerConfigurationPolicyGroup", + modelProperties: { + ...SubResource.type.modelProperties, + etag: { + serializedName: "etag", + readOnly: true, type: { name: "String" } }, - frontendPort: { - serializedName: "properties.frontendPort", + name: { + serializedName: "name", type: { - name: "Number" + name: "String" } }, - backendPort: { - serializedName: "properties.backendPort", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Number" + name: "String" } }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", + isDefault: { + serializedName: "properties.isDefault", type: { - name: "Number" + name: "Boolean" } }, - enableFloatingIP: { - serializedName: "properties.enableFloatingIP", + priority: { + serializedName: "properties.priority", type: { - name: "Boolean" + name: "Number" } }, - enableTcpReset: { - serializedName: "properties.enableTcpReset", + policyMembers: { + serializedName: "properties.policyMembers", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VpnServerConfigurationPolicyGroupMember" + } + } } }, - disableOutboundSnat: { - serializedName: "properties.disableOutboundSnat", + p2SConnectionConfigurations: { + serializedName: "properties.p2SConnectionConfigurations", + readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } }, provisioningState: { @@ -18526,10 +22112,10 @@ export const LoadBalancingRule: coreClient.CompositeMapper = { } }; -export const Probe: coreClient.CompositeMapper = { +export const P2SConnectionConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Probe", + className: "P2SConnectionConfiguration", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -18545,15 +22131,28 @@ export const Probe: coreClient.CompositeMapper = { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + vpnClientAddressPool: { + serializedName: "properties.vpnClientAddressPool", type: { - name: "String" + name: "Composite", + className: "AddressSpace" } }, - loadBalancingRules: { - serializedName: "properties.loadBalancingRules", + routingConfiguration: { + serializedName: "properties.routingConfiguration", + type: { + name: "Composite", + className: "RoutingConfiguration" + } + }, + enableInternetSecurity: { + serializedName: "properties.enableInternetSecurity", + type: { + name: "Boolean" + } + }, + configurationPolicyGroupAssociations: { + serializedName: "properties.configurationPolicyGroupAssociations", readOnly: true, type: { name: "Sequence", @@ -18565,34 +22164,18 @@ export const Probe: coreClient.CompositeMapper = { } } }, - protocol: { - serializedName: "properties.protocol", - type: { - name: "String" - } - }, - port: { - serializedName: "properties.port", - type: { - name: "Number" - } - }, - intervalInSeconds: { - serializedName: "properties.intervalInSeconds", - type: { - name: "Number" - } - }, - numberOfProbes: { - serializedName: "properties.numberOfProbes", - type: { - name: "Number" - } - }, - requestPath: { - serializedName: "properties.requestPath", + previousConfigurationPolicyGroupAssociations: { + serializedName: + "properties.previousConfigurationPolicyGroupAssociations", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VpnServerConfigurationPolicyGroup" + } + } } }, provisioningState: { @@ -18606,10 +22189,10 @@ export const Probe: coreClient.CompositeMapper = { } }; -export const InboundNatPool: coreClient.CompositeMapper = { +export const VirtualHubRouteTableV2: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InboundNatPool", + className: "VirtualHubRouteTableV2", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -18625,60 +22208,27 @@ export const InboundNatPool: coreClient.CompositeMapper = { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - frontendIPConfiguration: { - serializedName: "properties.frontendIPConfiguration", - type: { - name: "Composite", - className: "SubResource" - } - }, - protocol: { - serializedName: "properties.protocol", - type: { - name: "String" - } - }, - frontendPortRangeStart: { - serializedName: "properties.frontendPortRangeStart", - type: { - name: "Number" - } - }, - frontendPortRangeEnd: { - serializedName: "properties.frontendPortRangeEnd", - type: { - name: "Number" - } - }, - backendPort: { - serializedName: "properties.backendPort", - type: { - name: "Number" - } - }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", - type: { - name: "Number" - } - }, - enableFloatingIP: { - serializedName: "properties.enableFloatingIP", + routes: { + serializedName: "properties.routes", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualHubRouteV2" + } + } } }, - enableTcpReset: { - serializedName: "properties.enableTcpReset", + attachedConnections: { + serializedName: "properties.attachedConnections", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, provisioningState: { @@ -18692,14 +22242,15 @@ export const InboundNatPool: coreClient.CompositeMapper = { } }; -export const OutboundRule: coreClient.CompositeMapper = { +export const RouteMap: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutboundRule", + className: "RouteMap", modelProperties: { ...SubResource.type.modelProperties, name: { serializedName: "name", + readOnly: true, type: { name: "String" } @@ -18718,29 +22269,38 @@ export const OutboundRule: coreClient.CompositeMapper = { name: "String" } }, - allocatedOutboundPorts: { - serializedName: "properties.allocatedOutboundPorts", + associatedInboundConnections: { + serializedName: "properties.associatedInboundConnections", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - frontendIPConfigurations: { - serializedName: "properties.frontendIPConfigurations", + associatedOutboundConnections: { + serializedName: "properties.associatedOutboundConnections", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SubResource" + name: "String" } } } }, - backendAddressPool: { - serializedName: "properties.backendAddressPool", + rules: { + serializedName: "properties.rules", type: { - name: "Composite", - className: "SubResource" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RouteMapRule" + } + } } }, provisioningState: { @@ -18749,33 +22309,15 @@ export const OutboundRule: coreClient.CompositeMapper = { type: { name: "String" } - }, - protocol: { - serializedName: "properties.protocol", - type: { - name: "String" - } - }, - enableTcpReset: { - serializedName: "properties.enableTcpReset", - type: { - name: "Boolean" - } - }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", - type: { - name: "Number" - } } } } }; -export const ContainerNetworkInterfaceConfiguration: coreClient.CompositeMapper = { +export const HubVirtualNetworkConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContainerNetworkInterfaceConfiguration", + className: "HubVirtualNetworkConnection", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -18784,42 +22326,43 @@ export const ContainerNetworkInterfaceConfiguration: coreClient.CompositeMapper name: "String" } }, - type: { - serializedName: "type", + etag: { + serializedName: "etag", readOnly: true, type: { name: "String" } }, - etag: { - serializedName: "etag", - readOnly: true, + remoteVirtualNetwork: { + serializedName: "properties.remoteVirtualNetwork", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", + allowHubToRemoteVnetTransit: { + serializedName: "properties.allowHubToRemoteVnetTransit", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IPConfigurationProfile" - } - } + name: "Boolean" } }, - containerNetworkInterfaces: { - serializedName: "properties.containerNetworkInterfaces", + allowRemoteVnetToUseHubVnetGateways: { + serializedName: "properties.allowRemoteVnetToUseHubVnetGateways", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "Boolean" + } + }, + enableInternetSecurity: { + serializedName: "properties.enableInternetSecurity", + type: { + name: "Boolean" + } + }, + routingConfiguration: { + serializedName: "properties.routingConfiguration", + type: { + name: "Composite", + className: "RoutingConfiguration" } }, provisioningState: { @@ -18833,20 +22376,10 @@ export const ContainerNetworkInterfaceConfiguration: coreClient.CompositeMapper } }; -export const Container: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Container", - modelProperties: { - ...SubResource.type.modelProperties - } - } -}; - -export const ContainerNetworkInterface: coreClient.CompositeMapper = { +export const VpnSiteLinkConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContainerNetworkInterface", + className: "VpnSiteLinkConnection", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -18855,6 +22388,13 @@ export const ContainerNetworkInterface: coreClient.CompositeMapper = { name: "String" } }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, type: { serializedName: "type", readOnly: true, @@ -18862,105 +22402,151 @@ export const ContainerNetworkInterface: coreClient.CompositeMapper = { name: "String" } }, - etag: { - serializedName: "etag", + vpnSiteLink: { + serializedName: "properties.vpnSiteLink", + type: { + name: "Composite", + className: "SubResource" + } + }, + routingWeight: { + serializedName: "properties.routingWeight", + type: { + name: "Number" + } + }, + vpnLinkConnectionMode: { + serializedName: "properties.vpnLinkConnectionMode", + type: { + name: "String" + } + }, + connectionStatus: { + serializedName: "properties.connectionStatus", readOnly: true, type: { name: "String" } }, - containerNetworkInterfaceConfiguration: { - serializedName: "properties.containerNetworkInterfaceConfiguration", + vpnConnectionProtocolType: { + serializedName: "properties.vpnConnectionProtocolType", type: { - name: "Composite", - className: "ContainerNetworkInterfaceConfiguration" + name: "String" } }, - container: { - serializedName: "properties.container", + ingressBytesTransferred: { + serializedName: "properties.ingressBytesTransferred", + readOnly: true, type: { - name: "Composite", - className: "Container" + name: "Number" } }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", + egressBytesTransferred: { + serializedName: "properties.egressBytesTransferred", readOnly: true, + type: { + name: "Number" + } + }, + connectionBandwidth: { + serializedName: "properties.connectionBandwidth", + type: { + name: "Number" + } + }, + sharedKey: { + serializedName: "properties.sharedKey", + type: { + name: "String" + } + }, + enableBgp: { + serializedName: "properties.enableBgp", + type: { + name: "Boolean" + } + }, + vpnGatewayCustomBgpAddresses: { + serializedName: "properties.vpnGatewayCustomBgpAddresses", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ContainerNetworkInterfaceIpConfiguration" + className: "GatewayCustomBgpIpAddressIpConfiguration" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + usePolicyBasedTrafficSelectors: { + serializedName: "properties.usePolicyBasedTrafficSelectors", type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const VirtualApplianceSite: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualApplianceSite", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", + }, + ipsecPolicies: { + serializedName: "properties.ipsecPolicies", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpsecPolicy" + } + } } }, - etag: { - serializedName: "etag", - readOnly: true, + enableRateLimiting: { + serializedName: "properties.enableRateLimiting", type: { - name: "String" + name: "Boolean" } }, - type: { - serializedName: "type", - readOnly: true, + useLocalAzureIpAddress: { + serializedName: "properties.useLocalAzureIpAddress", type: { - name: "String" + name: "Boolean" } }, - addressPrefix: { - serializedName: "properties.addressPrefix", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - o365Policy: { - serializedName: "properties.o365Policy", + ingressNatRules: { + serializedName: "properties.ingressNatRules", type: { - name: "Composite", - className: "Office365PolicyProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + egressNatRules: { + serializedName: "properties.egressNatRules", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } } } } }; -export const InboundSecurityRule: coreClient.CompositeMapper = { +export const VpnConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InboundSecurityRule", + className: "VpnConnection", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -18976,141 +22562,152 @@ export const InboundSecurityRule: coreClient.CompositeMapper = { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + remoteVpnSite: { + serializedName: "properties.remoteVpnSite", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - rules: { - serializedName: "properties.rules", + routingWeight: { + serializedName: "properties.routingWeight", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InboundSecurityRules" - } - } + name: "Number" } }, - provisioningState: { - serializedName: "properties.provisioningState", + dpdTimeoutSeconds: { + serializedName: "properties.dpdTimeoutSeconds", + type: { + name: "Number" + } + }, + connectionStatus: { + serializedName: "properties.connectionStatus", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const PrivateDnsZoneGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateDnsZoneGroup", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", + }, + vpnConnectionProtocolType: { + serializedName: "properties.vpnConnectionProtocolType", type: { name: "String" } }, - etag: { - serializedName: "etag", + ingressBytesTransferred: { + serializedName: "properties.ingressBytesTransferred", readOnly: true, type: { - name: "String" + name: "Number" } }, - provisioningState: { - serializedName: "properties.provisioningState", + egressBytesTransferred: { + serializedName: "properties.egressBytesTransferred", readOnly: true, + type: { + name: "Number" + } + }, + connectionBandwidth: { + serializedName: "properties.connectionBandwidth", + type: { + name: "Number" + } + }, + sharedKey: { + serializedName: "properties.sharedKey", type: { name: "String" } }, - privateDnsZoneConfigs: { - serializedName: "properties.privateDnsZoneConfigs", + enableBgp: { + serializedName: "properties.enableBgp", + type: { + name: "Boolean" + } + }, + usePolicyBasedTrafficSelectors: { + serializedName: "properties.usePolicyBasedTrafficSelectors", + type: { + name: "Boolean" + } + }, + ipsecPolicies: { + serializedName: "properties.ipsecPolicies", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateDnsZoneConfig" + className: "IpsecPolicy" } } } - } - } - } -}; - -export const RouteFilterRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RouteFilterRule", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", + }, + trafficSelectorPolicies: { + serializedName: "properties.trafficSelectorPolicies", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TrafficSelectorPolicy" + } + } } }, - location: { - serializedName: "location", + enableRateLimiting: { + serializedName: "properties.enableRateLimiting", type: { - name: "String" + name: "Boolean" } }, - etag: { - serializedName: "etag", - readOnly: true, + enableInternetSecurity: { + serializedName: "properties.enableInternetSecurity", type: { - name: "String" + name: "Boolean" } }, - access: { - serializedName: "properties.access", + useLocalAzureIpAddress: { + serializedName: "properties.useLocalAzureIpAddress", type: { - name: "String" + name: "Boolean" } }, - routeFilterRuleType: { - serializedName: "properties.routeFilterRuleType", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - communities: { - serializedName: "properties.communities", + vpnLinkConnections: { + serializedName: "properties.vpnLinkConnections", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "VpnSiteLinkConnection" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + routingConfiguration: { + serializedName: "properties.routingConfiguration", type: { - name: "String" + name: "Composite", + className: "RoutingConfiguration" } } } } }; -export const VirtualNetworkPeering: coreClient.CompositeMapper = { +export const VpnGatewayNatRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkPeering", + className: "VpnGatewayNatRule", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -19128,109 +22725,162 @@ export const VirtualNetworkPeering: coreClient.CompositeMapper = { }, type: { serializedName: "type", + readOnly: true, type: { name: "String" } }, - allowVirtualNetworkAccess: { - serializedName: "properties.allowVirtualNetworkAccess", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - allowForwardedTraffic: { - serializedName: "properties.allowForwardedTraffic", + typePropertiesType: { + serializedName: "properties.type", type: { - name: "Boolean" + name: "String" } }, - allowGatewayTransit: { - serializedName: "properties.allowGatewayTransit", + mode: { + serializedName: "properties.mode", type: { - name: "Boolean" + name: "String" } }, - useRemoteGateways: { - serializedName: "properties.useRemoteGateways", + internalMappings: { + serializedName: "properties.internalMappings", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VpnNatRuleMapping" + } + } } }, - remoteVirtualNetwork: { - serializedName: "properties.remoteVirtualNetwork", + externalMappings: { + serializedName: "properties.externalMappings", type: { - name: "Composite", - className: "SubResource" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VpnNatRuleMapping" + } + } } }, - remoteAddressSpace: { - serializedName: "properties.remoteAddressSpace", + ipConfigurationId: { + serializedName: "properties.ipConfigurationId", + type: { + name: "String" + } + }, + egressVpnSiteLinkConnections: { + serializedName: "properties.egressVpnSiteLinkConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + ingressVpnSiteLinkConnections: { + serializedName: "properties.ingressVpnSiteLinkConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + } + } + } +}; + +export const ExpressRouteConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExpressRouteConnection", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + required: true, type: { - name: "Composite", - className: "AddressSpace" + name: "String" } }, - remoteVirtualNetworkAddressSpace: { - serializedName: "properties.remoteVirtualNetworkAddressSpace", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Composite", - className: "AddressSpace" + name: "String" } }, - remoteBgpCommunities: { - serializedName: "properties.remoteBgpCommunities", + expressRouteCircuitPeering: { + serializedName: "properties.expressRouteCircuitPeering", type: { name: "Composite", - className: "VirtualNetworkBgpCommunities" + className: "ExpressRouteCircuitPeeringId" } }, - remoteVirtualNetworkEncryption: { - serializedName: "properties.remoteVirtualNetworkEncryption", + authorizationKey: { + serializedName: "properties.authorizationKey", type: { - name: "Composite", - className: "VirtualNetworkEncryption" + name: "String" } }, - peeringState: { - serializedName: "properties.peeringState", + routingWeight: { + serializedName: "properties.routingWeight", type: { - name: "String" + name: "Number" } }, - peeringSyncLevel: { - serializedName: "properties.peeringSyncLevel", + enableInternetSecurity: { + serializedName: "properties.enableInternetSecurity", type: { - name: "String" + name: "Boolean" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + expressRouteGatewayBypass: { + serializedName: "properties.expressRouteGatewayBypass", type: { - name: "String" + name: "Boolean" } }, - doNotVerifyRemoteGateways: { - serializedName: "properties.doNotVerifyRemoteGateways", + enablePrivateLinkFastPath: { + serializedName: "properties.enablePrivateLinkFastPath", type: { name: "Boolean" } }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, + routingConfiguration: { + serializedName: "properties.routingConfiguration", type: { - name: "String" + name: "Composite", + className: "RoutingConfiguration" } } } } }; -export const VirtualNetworkGatewayIPConfiguration: coreClient.CompositeMapper = { +export const BgpConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkGatewayIPConfiguration", + className: "BgpConnection", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -19246,35 +22896,45 @@ export const VirtualNetworkGatewayIPConfiguration: coreClient.CompositeMapper = name: "String" } }, - privateIPAllocationMethod: { - serializedName: "properties.privateIPAllocationMethod", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - subnet: { - serializedName: "properties.subnet", + peerAsn: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 0 + }, + serializedName: "properties.peerAsn", type: { - name: "Composite", - className: "SubResource" + name: "Number" } }, - publicIPAddress: { - serializedName: "properties.publicIPAddress", + peerIp: { + serializedName: "properties.peerIp", + type: { + name: "String" + } + }, + hubVirtualNetworkConnection: { + serializedName: "properties.hubVirtualNetworkConnection", type: { name: "Composite", className: "SubResource" } }, - privateIPAddress: { - serializedName: "properties.privateIPAddress", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + connectionState: { + serializedName: "properties.connectionState", readOnly: true, type: { name: "String" @@ -19284,10 +22944,10 @@ export const VirtualNetworkGatewayIPConfiguration: coreClient.CompositeMapper = } }; -export const VpnClientRootCertificate: coreClient.CompositeMapper = { +export const HubIpConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnClientRootCertificate", + className: "HubIpConfiguration", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -19303,47 +22963,37 @@ export const VpnClientRootCertificate: coreClient.CompositeMapper = { name: "String" } }, - publicCertData: { - serializedName: "properties.publicCertData", - required: true, + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + privateIPAddress: { + serializedName: "properties.privateIPAddress", type: { name: "String" } - } - } - } -}; - -export const VpnClientRevokedCertificate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VpnClientRevokedCertificate", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", + }, + privateIPAllocationMethod: { + serializedName: "properties.privateIPAllocationMethod", type: { name: "String" } }, - etag: { - serializedName: "etag", - readOnly: true, + subnet: { + serializedName: "properties.subnet", type: { - name: "String" + name: "Composite", + className: "Subnet" } }, - thumbprint: { - serializedName: "properties.thumbprint", + publicIPAddress: { + serializedName: "properties.publicIPAddress", type: { - name: "String" + name: "Composite", + className: "PublicIPAddress" } }, provisioningState: { @@ -19357,10 +23007,10 @@ export const VpnClientRevokedCertificate: coreClient.CompositeMapper = { } }; -export const VirtualNetworkGatewayNatRule: coreClient.CompositeMapper = { +export const HubRouteTable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkGatewayNatRule", + className: "HubRouteTable", modelProperties: { ...SubResource.type.modelProperties, name: { @@ -19383,116 +23033,51 @@ export const VirtualNetworkGatewayNatRule: coreClient.CompositeMapper = { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - typePropertiesType: { - serializedName: "properties.type", - type: { - name: "String" - } - }, - mode: { - serializedName: "properties.mode", - type: { - name: "String" - } - }, - internalMappings: { - serializedName: "properties.internalMappings", + routes: { + serializedName: "properties.routes", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VpnNatRuleMapping" + className: "HubRoute" } } } }, - externalMappings: { - serializedName: "properties.externalMappings", + labels: { + serializedName: "properties.labels", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "VpnNatRuleMapping" + name: "String" } } } }, - ipConfigurationId: { - serializedName: "properties.ipConfigurationId", - type: { - name: "String" - } - } - } - } -}; - -export const ConnectionSharedKey: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConnectionSharedKey", - modelProperties: { - ...SubResource.type.modelProperties, - value: { - serializedName: "value", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const VirtualRouterPeering: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualRouterPeering", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - etag: { - serializedName: "etag", + associatedConnections: { + serializedName: "properties.associatedConnections", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - type: { - serializedName: "type", + propagatingConnections: { + serializedName: "properties.propagatingConnections", readOnly: true, type: { - name: "String" - } - }, - peerAsn: { - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 - }, - serializedName: "properties.peerAsn", - type: { - name: "Number" - } - }, - peerIp: { - serializedName: "properties.peerIp", - type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, provisioningState: { @@ -19506,56 +23091,42 @@ export const VirtualRouterPeering: coreClient.CompositeMapper = { } }; -export const VpnSiteLink: coreClient.CompositeMapper = { +export const RoutingIntent: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnSiteLink", + className: "RoutingIntent", modelProperties: { ...SubResource.type.modelProperties, - etag: { - serializedName: "etag", - readOnly: true, - type: { - name: "String" - } - }, name: { serializedName: "name", type: { name: "String" } }, - type: { - serializedName: "type", + etag: { + serializedName: "etag", readOnly: true, type: { name: "String" } }, - linkProperties: { - serializedName: "properties.linkProperties", - type: { - name: "Composite", - className: "VpnLinkProviderProperties" - } - }, - ipAddress: { - serializedName: "properties.ipAddress", - type: { - name: "String" - } - }, - fqdn: { - serializedName: "properties.fqdn", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - bgpProperties: { - serializedName: "properties.bgpProperties", + routingPolicies: { + serializedName: "properties.routingPolicies", type: { - name: "Composite", - className: "VpnLinkBgpSettings" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RoutingPolicy" + } + } } }, provisioningState: { @@ -19569,14 +23140,15 @@ export const VpnSiteLink: coreClient.CompositeMapper = { } }; -export const P2SConnectionConfiguration: coreClient.CompositeMapper = { +export const PatchRouteFilterRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "P2SConnectionConfiguration", + className: "PatchRouteFilterRule", modelProperties: { ...SubResource.type.modelProperties, name: { serializedName: "name", + readOnly: true, type: { name: "String" } @@ -19588,24 +23160,27 @@ export const P2SConnectionConfiguration: coreClient.CompositeMapper = { name: "String" } }, - vpnClientAddressPool: { - serializedName: "properties.vpnClientAddressPool", + access: { + serializedName: "properties.access", type: { - name: "Composite", - className: "AddressSpace" + name: "String" } }, - routingConfiguration: { - serializedName: "properties.routingConfiguration", + routeFilterRuleType: { + serializedName: "properties.routeFilterRuleType", type: { - name: "Composite", - className: "RoutingConfiguration" + name: "String" } }, - enableInternetSecurity: { - serializedName: "properties.enableInternetSecurity", + communities: { + serializedName: "properties.communities", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, provisioningState: { @@ -19619,14 +23194,15 @@ export const P2SConnectionConfiguration: coreClient.CompositeMapper = { } }; -export const VirtualHubRouteTableV2: coreClient.CompositeMapper = { +export const PatchRouteFilter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualHubRouteTableV2", + className: "PatchRouteFilter", modelProperties: { ...SubResource.type.modelProperties, name: { serializedName: "name", + readOnly: true, type: { name: "String" } @@ -19638,25 +23214,54 @@ export const VirtualHubRouteTableV2: coreClient.CompositeMapper = { name: "String" } }, - routes: { - serializedName: "properties.routes", + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + rules: { + serializedName: "properties.rules", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualHubRouteV2" + className: "RouteFilterRule" } } } }, - attachedConnections: { - serializedName: "properties.attachedConnections", + peerings: { + serializedName: "properties.peerings", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ExpressRouteCircuitPeering" + } + } + } + }, + ipv6Peerings: { + serializedName: "properties.ipv6Peerings", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteCircuitPeering" } } } @@ -19672,18 +23277,12 @@ export const VirtualHubRouteTableV2: coreClient.CompositeMapper = { } }; -export const HubVirtualNetworkConnection: coreClient.CompositeMapper = { +export const ApplicationSecurityGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HubVirtualNetworkConnection", + className: "ApplicationSecurityGroup", modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", - type: { - name: "String" - } - }, + ...Resource.type.modelProperties, etag: { serializedName: "etag", readOnly: true, @@ -19691,36 +23290,11 @@ export const HubVirtualNetworkConnection: coreClient.CompositeMapper = { name: "String" } }, - remoteVirtualNetwork: { - serializedName: "properties.remoteVirtualNetwork", - type: { - name: "Composite", - className: "SubResource" - } - }, - allowHubToRemoteVnetTransit: { - serializedName: "properties.allowHubToRemoteVnetTransit", - type: { - name: "Boolean" - } - }, - allowRemoteVnetToUseHubVnetGateways: { - serializedName: "properties.allowRemoteVnetToUseHubVnetGateways", - type: { - name: "Boolean" - } - }, - enableInternetSecurity: { - serializedName: "properties.enableInternetSecurity", - type: { - name: "Boolean" - } - }, - routingConfiguration: { - serializedName: "properties.routingConfiguration", + resourceGuid: { + serializedName: "properties.resourceGuid", + readOnly: true, type: { - name: "Composite", - className: "RoutingConfiguration" + name: "String" } }, provisioningState: { @@ -19734,16 +23308,17 @@ export const HubVirtualNetworkConnection: coreClient.CompositeMapper = { } }; -export const VpnSiteLinkConnection: coreClient.CompositeMapper = { +export const PrivateEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnSiteLinkConnection", + className: "PrivateEndpoint", modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", + ...Resource.type.modelProperties, + extendedLocation: { + serializedName: "extendedLocation", type: { - name: "String" + name: "Composite", + className: "ExtendedLocation" } }, etag: { @@ -19753,105 +23328,158 @@ export const VpnSiteLinkConnection: coreClient.CompositeMapper = { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - vpnSiteLink: { - serializedName: "properties.vpnSiteLink", + subnet: { + serializedName: "properties.subnet", type: { name: "Composite", - className: "SubResource" + className: "Subnet" } }, - routingWeight: { - serializedName: "properties.routingWeight", + networkInterfaces: { + serializedName: "properties.networkInterfaces", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterface" + } + } } }, - vpnLinkConnectionMode: { - serializedName: "properties.vpnLinkConnectionMode", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - connectionStatus: { - serializedName: "properties.connectionStatus", - readOnly: true, + privateLinkServiceConnections: { + serializedName: "properties.privateLinkServiceConnections", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkServiceConnection" + } + } } }, - vpnConnectionProtocolType: { - serializedName: "properties.vpnConnectionProtocolType", + manualPrivateLinkServiceConnections: { + serializedName: "properties.manualPrivateLinkServiceConnections", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkServiceConnection" + } + } } }, - ingressBytesTransferred: { - serializedName: "properties.ingressBytesTransferred", - readOnly: true, + customDnsConfigs: { + serializedName: "properties.customDnsConfigs", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CustomDnsConfigPropertiesFormat" + } + } } }, - egressBytesTransferred: { - serializedName: "properties.egressBytesTransferred", - readOnly: true, + applicationSecurityGroups: { + serializedName: "properties.applicationSecurityGroups", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationSecurityGroup" + } + } } }, - connectionBandwidth: { - serializedName: "properties.connectionBandwidth", + ipConfigurations: { + serializedName: "properties.ipConfigurations", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointIPConfiguration" + } + } } }, - sharedKey: { - serializedName: "properties.sharedKey", + customNetworkInterfaceName: { + serializedName: "properties.customNetworkInterfaceName", type: { name: "String" } - }, - enableBgp: { - serializedName: "properties.enableBgp", + } + } + } +}; + +export const PrivateLinkService: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkService", + modelProperties: { + ...Resource.type.modelProperties, + extendedLocation: { + serializedName: "extendedLocation", type: { - name: "Boolean" + name: "Composite", + className: "ExtendedLocation" } }, - usePolicyBasedTrafficSelectors: { - serializedName: "properties.usePolicyBasedTrafficSelectors", + etag: { + serializedName: "etag", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - ipsecPolicies: { - serializedName: "properties.ipsecPolicies", + loadBalancerFrontendIpConfigurations: { + serializedName: "properties.loadBalancerFrontendIpConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IpsecPolicy" + className: "FrontendIPConfiguration" } } } }, - enableRateLimiting: { - serializedName: "properties.enableRateLimiting", + ipConfigurations: { + serializedName: "properties.ipConfigurations", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkServiceIpConfiguration" + } + } } }, - useLocalAzureIpAddress: { - serializedName: "properties.useLocalAzureIpAddress", + networkInterfaces: { + serializedName: "properties.networkInterfaces", + readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterface" + } + } } }, provisioningState: { @@ -19861,44 +23489,72 @@ export const VpnSiteLinkConnection: coreClient.CompositeMapper = { name: "String" } }, - ingressNatRules: { - serializedName: "properties.ingressNatRules", + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubResource" + className: "PrivateEndpointConnection" } } } }, - egressNatRules: { - serializedName: "properties.egressNatRules", + visibility: { + serializedName: "properties.visibility", + type: { + name: "Composite", + className: "PrivateLinkServicePropertiesVisibility" + } + }, + autoApproval: { + serializedName: "properties.autoApproval", + type: { + name: "Composite", + className: "PrivateLinkServicePropertiesAutoApproval" + } + }, + fqdns: { + serializedName: "properties.fqdns", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SubResource" + name: "String" } } } + }, + alias: { + serializedName: "properties.alias", + readOnly: true, + type: { + name: "String" + } + }, + enableProxyProtocol: { + serializedName: "properties.enableProxyProtocol", + type: { + name: "Boolean" + } } } } }; -export const VpnConnection: coreClient.CompositeMapper = { +export const NetworkInterface: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnConnection", + className: "NetworkInterface", modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", + ...Resource.type.modelProperties, + extendedLocation: { + serializedName: "extendedLocation", type: { - name: "String" + name: "Composite", + className: "ExtendedLocation" } }, etag: { @@ -19908,262 +23564,322 @@ export const VpnConnection: coreClient.CompositeMapper = { name: "String" } }, - remoteVpnSite: { - serializedName: "properties.remoteVpnSite", + virtualMachine: { + serializedName: "properties.virtualMachine", type: { name: "Composite", className: "SubResource" } }, - routingWeight: { - serializedName: "properties.routingWeight", + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", type: { - name: "Number" + name: "Composite", + className: "NetworkSecurityGroup" } }, - dpdTimeoutSeconds: { - serializedName: "properties.dpdTimeoutSeconds", + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { - name: "Number" + name: "Composite", + className: "PrivateEndpoint" } }, - connectionStatus: { - serializedName: "properties.connectionStatus", + ipConfigurations: { + serializedName: "properties.ipConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterfaceIPConfiguration" + } + } + } + }, + tapConfigurations: { + serializedName: "properties.tapConfigurations", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterfaceTapConfiguration" + } + } } }, - vpnConnectionProtocolType: { - serializedName: "properties.vpnConnectionProtocolType", + dnsSettings: { + serializedName: "properties.dnsSettings", type: { - name: "String" + name: "Composite", + className: "NetworkInterfaceDnsSettings" } }, - ingressBytesTransferred: { - serializedName: "properties.ingressBytesTransferred", + macAddress: { + serializedName: "properties.macAddress", readOnly: true, type: { - name: "Number" + name: "String" } }, - egressBytesTransferred: { - serializedName: "properties.egressBytesTransferred", + primary: { + serializedName: "properties.primary", readOnly: true, type: { - name: "Number" + name: "Boolean" } }, - connectionBandwidth: { - serializedName: "properties.connectionBandwidth", + vnetEncryptionSupported: { + serializedName: "properties.vnetEncryptionSupported", + readOnly: true, type: { - name: "Number" + name: "Boolean" } }, - sharedKey: { - serializedName: "properties.sharedKey", + enableAcceleratedNetworking: { + serializedName: "properties.enableAcceleratedNetworking", type: { - name: "String" + name: "Boolean" } }, - enableBgp: { - serializedName: "properties.enableBgp", + disableTcpStateTracking: { + serializedName: "properties.disableTcpStateTracking", type: { name: "Boolean" } }, - usePolicyBasedTrafficSelectors: { - serializedName: "properties.usePolicyBasedTrafficSelectors", + enableIPForwarding: { + serializedName: "properties.enableIPForwarding", type: { name: "Boolean" } }, - ipsecPolicies: { - serializedName: "properties.ipsecPolicies", + hostedWorkloads: { + serializedName: "properties.hostedWorkloads", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "IpsecPolicy" + name: "String" } } } }, - trafficSelectorPolicies: { - serializedName: "properties.trafficSelectorPolicies", + dscpConfiguration: { + serializedName: "properties.dscpConfiguration", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TrafficSelectorPolicy" - } - } + name: "Composite", + className: "SubResource" } }, - enableRateLimiting: { - serializedName: "properties.enableRateLimiting", + resourceGuid: { + serializedName: "properties.resourceGuid", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - enableInternetSecurity: { - serializedName: "properties.enableInternetSecurity", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - useLocalAzureIpAddress: { - serializedName: "properties.useLocalAzureIpAddress", + workloadType: { + serializedName: "properties.workloadType", type: { - name: "Boolean" + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + nicType: { + serializedName: "properties.nicType", type: { name: "String" } }, - vpnLinkConnections: { - serializedName: "properties.vpnLinkConnections", + privateLinkService: { + serializedName: "properties.privateLinkService", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VpnSiteLinkConnection" - } - } + name: "Composite", + className: "PrivateLinkService" } }, - routingConfiguration: { - serializedName: "properties.routingConfiguration", + migrationPhase: { + serializedName: "properties.migrationPhase", type: { - name: "Composite", - className: "RoutingConfiguration" + name: "String" + } + }, + auxiliaryMode: { + serializedName: "properties.auxiliaryMode", + type: { + name: "String" } } } } }; -export const VpnGatewayNatRule: coreClient.CompositeMapper = { +export const FlowLog: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnGatewayNatRule", + className: "FlowLog", modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", + ...Resource.type.modelProperties, + etag: { + serializedName: "etag", + readOnly: true, type: { name: "String" } }, - etag: { - serializedName: "etag", - readOnly: true, + targetResourceId: { + serializedName: "properties.targetResourceId", type: { name: "String" } }, - type: { - serializedName: "type", + targetResourceGuid: { + serializedName: "properties.targetResourceGuid", readOnly: true, type: { name: "String" } }, + storageId: { + serializedName: "properties.storageId", + type: { + name: "String" + } + }, + enabled: { + serializedName: "properties.enabled", + type: { + name: "Boolean" + } + }, + retentionPolicy: { + serializedName: "properties.retentionPolicy", + type: { + name: "Composite", + className: "RetentionPolicyParameters" + } + }, + format: { + serializedName: "properties.format", + type: { + name: "Composite", + className: "FlowLogFormatParameters" + } + }, + flowAnalyticsConfiguration: { + serializedName: "properties.flowAnalyticsConfiguration", + type: { + name: "Composite", + className: "TrafficAnalyticsProperties" + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } - }, - typePropertiesType: { - serializedName: "properties.type", + } + } + } +}; + +export const NetworkSecurityGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkSecurityGroup", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + serializedName: "etag", + readOnly: true, type: { name: "String" } }, - mode: { - serializedName: "properties.mode", + flushConnection: { + serializedName: "properties.flushConnection", type: { - name: "String" + name: "Boolean" } }, - internalMappings: { - serializedName: "properties.internalMappings", + securityRules: { + serializedName: "properties.securityRules", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VpnNatRuleMapping" + className: "SecurityRule" } } } }, - externalMappings: { - serializedName: "properties.externalMappings", + defaultSecurityRules: { + serializedName: "properties.defaultSecurityRules", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "VpnNatRuleMapping" + className: "SecurityRule" } } } }, - ipConfigurationId: { - serializedName: "properties.ipConfigurationId", + networkInterfaces: { + serializedName: "properties.networkInterfaces", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterface" + } + } } }, - egressVpnSiteLinkConnections: { - serializedName: "properties.egressVpnSiteLinkConnections", + subnets: { + serializedName: "properties.subnets", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubResource" + className: "Subnet" } } } }, - ingressVpnSiteLinkConnections: { - serializedName: "properties.ingressVpnSiteLinkConnections", + flowLogs: { + serializedName: "properties.flowLogs", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubResource" + className: "FlowLog" } } } - } - } - } -}; - -export const ExpressRouteConnection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExpressRouteConnection", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", - required: true, + }, + resourceGuid: { + serializedName: "properties.resourceGuid", + readOnly: true, type: { name: "String" } @@ -20174,61 +23890,17 @@ export const ExpressRouteConnection: coreClient.CompositeMapper = { type: { name: "String" } - }, - expressRouteCircuitPeering: { - serializedName: "properties.expressRouteCircuitPeering", - type: { - name: "Composite", - className: "ExpressRouteCircuitPeeringId" - } - }, - authorizationKey: { - serializedName: "properties.authorizationKey", - type: { - name: "String" - } - }, - routingWeight: { - serializedName: "properties.routingWeight", - type: { - name: "Number" - } - }, - enableInternetSecurity: { - serializedName: "properties.enableInternetSecurity", - type: { - name: "Boolean" - } - }, - expressRouteGatewayBypass: { - serializedName: "properties.expressRouteGatewayBypass", - type: { - name: "Boolean" - } - }, - routingConfiguration: { - serializedName: "properties.routingConfiguration", - type: { - name: "Composite", - className: "RoutingConfiguration" - } } } } }; -export const BgpConnection: coreClient.CompositeMapper = { +export const RouteTable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BgpConnection", + className: "RouteTable", modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", - type: { - name: "String" - } - }, + ...Resource.type.modelProperties, etag: { serializedName: "etag", readOnly: true, @@ -20236,34 +23908,35 @@ export const BgpConnection: coreClient.CompositeMapper = { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - peerAsn: { - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 - }, - serializedName: "properties.peerAsn", + routes: { + serializedName: "properties.routes", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Route" + } + } } }, - peerIp: { - serializedName: "properties.peerIp", + subnets: { + serializedName: "properties.subnets", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Subnet" + } + } } }, - hubVirtualNetworkConnection: { - serializedName: "properties.hubVirtualNetworkConnection", + disableBgpRoutePropagation: { + serializedName: "properties.disableBgpRoutePropagation", type: { - name: "Composite", - className: "SubResource" + name: "Boolean" } }, provisioningState: { @@ -20273,8 +23946,8 @@ export const BgpConnection: coreClient.CompositeMapper = { name: "String" } }, - connectionState: { - serializedName: "properties.connectionState", + resourceGuid: { + serializedName: "properties.resourceGuid", readOnly: true, type: { name: "String" @@ -20284,18 +23957,12 @@ export const BgpConnection: coreClient.CompositeMapper = { } }; -export const HubIpConfiguration: coreClient.CompositeMapper = { +export const ServiceEndpointPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HubIpConfiguration", + className: "ServiceEndpointPolicy", modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", - type: { - name: "String" - } - }, + ...Resource.type.modelProperties, etag: { serializedName: "etag", readOnly: true, @@ -20303,37 +23970,43 @@ export const HubIpConfiguration: coreClient.CompositeMapper = { name: "String" } }, - type: { - serializedName: "type", + kind: { + serializedName: "kind", readOnly: true, type: { name: "String" } }, - privateIPAddress: { - serializedName: "properties.privateIPAddress", - type: { - name: "String" - } - }, - privateIPAllocationMethod: { - serializedName: "properties.privateIPAllocationMethod", + serviceEndpointPolicyDefinitions: { + serializedName: "properties.serviceEndpointPolicyDefinitions", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceEndpointPolicyDefinition" + } + } } }, - subnet: { - serializedName: "properties.subnet", + subnets: { + serializedName: "properties.subnets", + readOnly: true, type: { - name: "Composite", - className: "Subnet" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Subnet" + } + } } }, - publicIPAddress: { - serializedName: "properties.publicIPAddress", + resourceGuid: { + serializedName: "properties.resourceGuid", + readOnly: true, type: { - name: "Composite", - className: "PublicIPAddress" + name: "String" } }, provisioningState: { @@ -20342,21 +24015,50 @@ export const HubIpConfiguration: coreClient.CompositeMapper = { type: { name: "String" } + }, + serviceAlias: { + serializedName: "properties.serviceAlias", + type: { + name: "String" + } + }, + contextualServiceEndpointPolicies: { + serializedName: "properties.contextualServiceEndpointPolicies", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } }; -export const HubRouteTable: coreClient.CompositeMapper = { +export const NatGateway: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HubRouteTable", + className: "NatGateway", modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", + ...Resource.type.modelProperties, + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "NatGatewaySku" + } + }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, etag: { @@ -20366,58 +24068,54 @@ export const HubRouteTable: coreClient.CompositeMapper = { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", type: { - name: "String" + name: "Number" } }, - routes: { - serializedName: "properties.routes", + publicIpAddresses: { + serializedName: "properties.publicIpAddresses", type: { name: "Sequence", element: { type: { name: "Composite", - className: "HubRoute" + className: "SubResource" } } } }, - labels: { - serializedName: "properties.labels", + publicIpPrefixes: { + serializedName: "properties.publicIpPrefixes", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "SubResource" } } } }, - associatedConnections: { - serializedName: "properties.associatedConnections", + subnets: { + serializedName: "properties.subnets", readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "SubResource" } } } }, - propagatingConnections: { - serializedName: "properties.propagatingConnections", + resourceGuid: { + serializedName: "properties.resourceGuid", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, provisioningState: { @@ -20431,184 +24129,151 @@ export const HubRouteTable: coreClient.CompositeMapper = { } }; -export const RoutingIntent: coreClient.CompositeMapper = { +export const PublicIPAddress: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoutingIntent", + className: "PublicIPAddress", modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", + ...Resource.type.modelProperties, + extendedLocation: { + serializedName: "extendedLocation", type: { - name: "String" + name: "Composite", + className: "ExtendedLocation" } }, - etag: { - serializedName: "etag", - readOnly: true, + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "PublicIPAddressSku" } }, - type: { - serializedName: "type", + etag: { + serializedName: "etag", readOnly: true, type: { name: "String" } }, - routingPolicies: { - serializedName: "properties.routingPolicies", + zones: { + serializedName: "zones", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "RoutingPolicy" + name: "String" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + publicIPAllocationMethod: { + serializedName: "properties.publicIPAllocationMethod", type: { name: "String" } - } - } - } -}; - -export const PatchRouteFilterRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PatchRouteFilterRule", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", - readOnly: true, + }, + publicIPAddressVersion: { + serializedName: "properties.publicIPAddressVersion", type: { name: "String" } }, - etag: { - serializedName: "etag", - readOnly: true, + ipConfiguration: { + serializedName: "properties.ipConfiguration", type: { - name: "String" + name: "Composite", + className: "IPConfiguration" } }, - access: { - serializedName: "properties.access", + dnsSettings: { + serializedName: "properties.dnsSettings", type: { - name: "String" + name: "Composite", + className: "PublicIPAddressDnsSettings" } }, - routeFilterRuleType: { - serializedName: "properties.routeFilterRuleType", + ddosSettings: { + serializedName: "properties.ddosSettings", type: { - name: "String" + name: "Composite", + className: "DdosSettings" } }, - communities: { - serializedName: "properties.communities", + ipTags: { + serializedName: "properties.ipTags", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "IpTag" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + ipAddress: { + serializedName: "properties.ipAddress", type: { name: "String" } - } - } - } -}; - -export const PatchRouteFilter: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PatchRouteFilter", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", - readOnly: true, + }, + publicIPPrefix: { + serializedName: "properties.publicIPPrefix", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - etag: { - serializedName: "etag", + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number" + } + }, + resourceGuid: { + serializedName: "properties.resourceGuid", readOnly: true, type: { name: "String" } - }, - type: { - serializedName: "type", + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - tags: { - serializedName: "tags", + servicePublicIPAddress: { + serializedName: "properties.servicePublicIPAddress", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "PublicIPAddress" } }, - rules: { - serializedName: "properties.rules", + natGateway: { + serializedName: "properties.natGateway", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RouteFilterRule" - } - } + name: "Composite", + className: "NatGateway" } }, - peerings: { - serializedName: "properties.peerings", - readOnly: true, + migrationPhase: { + serializedName: "properties.migrationPhase", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExpressRouteCircuitPeering" - } - } + name: "String" } }, - ipv6Peerings: { - serializedName: "properties.ipv6Peerings", - readOnly: true, + linkedPublicIPAddress: { + serializedName: "properties.linkedPublicIPAddress", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExpressRouteCircuitPeering" - } - } + name: "Composite", + className: "PublicIPAddress" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + deleteOption: { + serializedName: "properties.deleteOption", type: { name: "String" } @@ -20617,10 +24282,10 @@ export const PatchRouteFilter: coreClient.CompositeMapper = { } }; -export const ApplicationSecurityGroup: coreClient.CompositeMapper = { +export const VirtualNetworkTap: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationSecurityGroup", + className: "VirtualNetworkTap", modelProperties: { ...Resource.type.modelProperties, etag: { @@ -20630,6 +24295,19 @@ export const ApplicationSecurityGroup: coreClient.CompositeMapper = { name: "String" } }, + networkInterfaceTapConfigurations: { + serializedName: "properties.networkInterfaceTapConfigurations", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterfaceTapConfiguration" + } + } + } + }, resourceGuid: { serializedName: "properties.resourceGuid", readOnly: true, @@ -20643,24 +24321,38 @@ export const ApplicationSecurityGroup: coreClient.CompositeMapper = { type: { name: "String" } + }, + destinationNetworkInterfaceIPConfiguration: { + serializedName: "properties.destinationNetworkInterfaceIPConfiguration", + type: { + name: "Composite", + className: "NetworkInterfaceIPConfiguration" + } + }, + destinationLoadBalancerFrontEndIPConfiguration: { + serializedName: + "properties.destinationLoadBalancerFrontEndIPConfiguration", + type: { + name: "Composite", + className: "FrontendIPConfiguration" + } + }, + destinationPort: { + serializedName: "properties.destinationPort", + type: { + name: "Number" + } } } } }; -export const PrivateEndpoint: coreClient.CompositeMapper = { +export const ApplicationGateway: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpoint", + className: "ApplicationGateway", modelProperties: { ...Resource.type.modelProperties, - extendedLocation: { - serializedName: "extendedLocation", - type: { - name: "Composite", - className: "ExtendedLocation" - } - }, etag: { serializedName: "etag", readOnly: true, @@ -20668,347 +24360,331 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { name: "String" } }, - subnet: { - serializedName: "properties.subnet", - type: { - name: "Composite", - className: "Subnet" - } - }, - networkInterfaces: { - serializedName: "properties.networkInterfaces", - readOnly: true, + zones: { + serializedName: "zones", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "NetworkInterface" + name: "String" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + sku: { + serializedName: "properties.sku", + type: { + name: "Composite", + className: "ApplicationGatewaySku" + } + }, + sslPolicy: { + serializedName: "properties.sslPolicy", + type: { + name: "Composite", + className: "ApplicationGatewaySslPolicy" + } + }, + operationalState: { + serializedName: "properties.operationalState", readOnly: true, type: { name: "String" } }, - privateLinkServiceConnections: { - serializedName: "properties.privateLinkServiceConnections", + gatewayIPConfigurations: { + serializedName: "properties.gatewayIPConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateLinkServiceConnection" + className: "ApplicationGatewayIPConfiguration" } } } }, - manualPrivateLinkServiceConnections: { - serializedName: "properties.manualPrivateLinkServiceConnections", + authenticationCertificates: { + serializedName: "properties.authenticationCertificates", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateLinkServiceConnection" + className: "ApplicationGatewayAuthenticationCertificate" } } } }, - customDnsConfigs: { - serializedName: "properties.customDnsConfigs", + trustedRootCertificates: { + serializedName: "properties.trustedRootCertificates", type: { name: "Sequence", element: { type: { name: "Composite", - className: "CustomDnsConfigPropertiesFormat" + className: "ApplicationGatewayTrustedRootCertificate" } } } }, - applicationSecurityGroups: { - serializedName: "properties.applicationSecurityGroups", + trustedClientCertificates: { + serializedName: "properties.trustedClientCertificates", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationSecurityGroup" + className: "ApplicationGatewayTrustedClientCertificate" } } } }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", + sslCertificates: { + serializedName: "properties.sslCertificates", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateEndpointIPConfiguration" + className: "ApplicationGatewaySslCertificate" } } } }, - customNetworkInterfaceName: { - serializedName: "properties.customNetworkInterfaceName", - type: { - name: "String" - } - } - } - } -}; - -export const PrivateLinkService: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkService", - modelProperties: { - ...Resource.type.modelProperties, - extendedLocation: { - serializedName: "extendedLocation", - type: { - name: "Composite", - className: "ExtendedLocation" - } - }, - etag: { - serializedName: "etag", - readOnly: true, - type: { - name: "String" - } - }, - loadBalancerFrontendIpConfigurations: { - serializedName: "properties.loadBalancerFrontendIpConfigurations", + frontendIPConfigurations: { + serializedName: "properties.frontendIPConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "FrontendIPConfiguration" + className: "ApplicationGatewayFrontendIPConfiguration" } } } }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", + frontendPorts: { + serializedName: "properties.frontendPorts", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateLinkServiceIpConfiguration" + className: "ApplicationGatewayFrontendPort" } } } }, - networkInterfaces: { - serializedName: "properties.networkInterfaces", - readOnly: true, + probes: { + serializedName: "properties.probes", type: { name: "Sequence", element: { type: { name: "Composite", - className: "NetworkInterface" + className: "ApplicationGatewayProbe" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - readOnly: true, + backendAddressPools: { + serializedName: "properties.backendAddressPools", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateEndpointConnection" + className: "ApplicationGatewayBackendAddressPool" } } } }, - visibility: { - serializedName: "properties.visibility", - type: { - name: "Composite", - className: "PrivateLinkServicePropertiesVisibility" - } - }, - autoApproval: { - serializedName: "properties.autoApproval", - type: { - name: "Composite", - className: "PrivateLinkServicePropertiesAutoApproval" - } - }, - fqdns: { - serializedName: "properties.fqdns", + backendHttpSettingsCollection: { + serializedName: "properties.backendHttpSettingsCollection", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ApplicationGatewayBackendHttpSettings" } } } }, - alias: { - serializedName: "properties.alias", - readOnly: true, + backendSettingsCollection: { + serializedName: "properties.backendSettingsCollection", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayBackendSettings" + } + } } }, - enableProxyProtocol: { - serializedName: "properties.enableProxyProtocol", + httpListeners: { + serializedName: "properties.httpListeners", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayHttpListener" + } + } } - } - } - } -}; - -export const NetworkInterface: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkInterface", - modelProperties: { - ...Resource.type.modelProperties, - extendedLocation: { - serializedName: "extendedLocation", + }, + listeners: { + serializedName: "properties.listeners", type: { - name: "Composite", - className: "ExtendedLocation" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayListener" + } + } } }, - etag: { - serializedName: "etag", - readOnly: true, + sslProfiles: { + serializedName: "properties.sslProfiles", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewaySslProfile" + } + } } }, - virtualMachine: { - serializedName: "properties.virtualMachine", + urlPathMaps: { + serializedName: "properties.urlPathMaps", type: { - name: "Composite", - className: "SubResource" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayUrlPathMap" + } + } } }, - networkSecurityGroup: { - serializedName: "properties.networkSecurityGroup", + requestRoutingRules: { + serializedName: "properties.requestRoutingRules", type: { - name: "Composite", - className: "NetworkSecurityGroup" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayRequestRoutingRule" + } + } } }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + routingRules: { + serializedName: "properties.routingRules", type: { - name: "Composite", - className: "PrivateEndpoint" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayRoutingRule" + } + } } }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", + rewriteRuleSets: { + serializedName: "properties.rewriteRuleSets", type: { name: "Sequence", element: { type: { name: "Composite", - className: "NetworkInterfaceIPConfiguration" + className: "ApplicationGatewayRewriteRuleSet" } } } }, - tapConfigurations: { - serializedName: "properties.tapConfigurations", - readOnly: true, + redirectConfigurations: { + serializedName: "properties.redirectConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "NetworkInterfaceTapConfiguration" + className: "ApplicationGatewayRedirectConfiguration" } } } }, - dnsSettings: { - serializedName: "properties.dnsSettings", + webApplicationFirewallConfiguration: { + serializedName: "properties.webApplicationFirewallConfiguration", type: { name: "Composite", - className: "NetworkInterfaceDnsSettings" + className: "ApplicationGatewayWebApplicationFirewallConfiguration" } }, - macAddress: { - serializedName: "properties.macAddress", - readOnly: true, + firewallPolicy: { + serializedName: "properties.firewallPolicy", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - primary: { - serializedName: "properties.primary", - readOnly: true, + enableHttp2: { + serializedName: "properties.enableHttp2", type: { name: "Boolean" } }, - vnetEncryptionSupported: { - serializedName: "properties.vnetEncryptionSupported", - readOnly: true, + enableFips: { + serializedName: "properties.enableFips", type: { name: "Boolean" } }, - enableAcceleratedNetworking: { - serializedName: "properties.enableAcceleratedNetworking", + autoscaleConfiguration: { + serializedName: "properties.autoscaleConfiguration", type: { - name: "Boolean" + name: "Composite", + className: "ApplicationGatewayAutoscaleConfiguration" } }, - enableIPForwarding: { - serializedName: "properties.enableIPForwarding", + privateLinkConfigurations: { + serializedName: "properties.privateLinkConfigurations", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayPrivateLinkConfiguration" + } + } } }, - hostedWorkloads: { - serializedName: "properties.hostedWorkloads", + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ApplicationGatewayPrivateEndpointConnection" } } } }, - dscpConfiguration: { - serializedName: "properties.dscpConfiguration", - type: { - name: "Composite", - className: "SubResource" - } - }, resourceGuid: { serializedName: "properties.resourceGuid", readOnly: true, @@ -21023,206 +24699,166 @@ export const NetworkInterface: coreClient.CompositeMapper = { name: "String" } }, - workloadType: { - serializedName: "properties.workloadType", - type: { - name: "String" - } - }, - nicType: { - serializedName: "properties.nicType", - type: { - name: "String" - } - }, - privateLinkService: { - serializedName: "properties.privateLinkService", - type: { - name: "Composite", - className: "PrivateLinkService" - } - }, - migrationPhase: { - serializedName: "properties.migrationPhase", - type: { - name: "String" - } - } - } - } -}; - -export const FlowLog: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FlowLog", - modelProperties: { - ...Resource.type.modelProperties, - etag: { - serializedName: "etag", - readOnly: true, - type: { - name: "String" - } - }, - targetResourceId: { - serializedName: "properties.targetResourceId", - type: { - name: "String" - } - }, - targetResourceGuid: { - serializedName: "properties.targetResourceGuid", - readOnly: true, - type: { - name: "String" - } - }, - storageId: { - serializedName: "properties.storageId", + customErrorConfigurations: { + serializedName: "properties.customErrorConfigurations", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayCustomError" + } + } } }, - enabled: { - serializedName: "properties.enabled", + forceFirewallPolicyAssociation: { + serializedName: "properties.forceFirewallPolicyAssociation", type: { name: "Boolean" } }, - retentionPolicy: { - serializedName: "properties.retentionPolicy", - type: { - name: "Composite", - className: "RetentionPolicyParameters" - } - }, - format: { - serializedName: "properties.format", + loadDistributionPolicies: { + serializedName: "properties.loadDistributionPolicies", type: { - name: "Composite", - className: "FlowLogFormatParameters" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayLoadDistributionPolicy" + } + } } }, - flowAnalyticsConfiguration: { - serializedName: "properties.flowAnalyticsConfiguration", + globalConfiguration: { + serializedName: "properties.globalConfiguration", type: { name: "Composite", - className: "TrafficAnalyticsProperties" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" + className: "ApplicationGatewayGlobalConfiguration" } } } } }; -export const NetworkSecurityGroup: coreClient.CompositeMapper = { +export const ApplicationGatewayFirewallRuleSet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkSecurityGroup", + className: "ApplicationGatewayFirewallRuleSet", modelProperties: { ...Resource.type.modelProperties, - etag: { - serializedName: "etag", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - securityRules: { - serializedName: "properties.securityRules", + ruleSetType: { + serializedName: "properties.ruleSetType", + type: { + name: "String" + } + }, + ruleSetVersion: { + serializedName: "properties.ruleSetVersion", + type: { + name: "String" + } + }, + ruleGroups: { + serializedName: "properties.ruleGroups", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SecurityRule" + className: "ApplicationGatewayFirewallRuleGroup" } } } }, - defaultSecurityRules: { - serializedName: "properties.defaultSecurityRules", - readOnly: true, + tiers: { + serializedName: "properties.tiers", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SecurityRule" + name: "String" } } } - }, - networkInterfaces: { - serializedName: "properties.networkInterfaces", - readOnly: true, + } + } + } +}; + +export const ApplicationGatewayAvailableSslOptions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationGatewayAvailableSslOptions", + modelProperties: { + ...Resource.type.modelProperties, + predefinedPolicies: { + serializedName: "properties.predefinedPolicies", type: { name: "Sequence", element: { type: { name: "Composite", - className: "NetworkInterface" + className: "SubResource" } } } }, - subnets: { - serializedName: "properties.subnets", - readOnly: true, + defaultPolicy: { + serializedName: "properties.defaultPolicy", + type: { + name: "String" + } + }, + availableCipherSuites: { + serializedName: "properties.availableCipherSuites", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "Subnet" + name: "String" } } } }, - flowLogs: { - serializedName: "properties.flowLogs", - readOnly: true, + availableProtocols: { + serializedName: "properties.availableProtocols", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "FlowLog" + name: "String" } } } - }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } } } } }; -export const RouteTable: coreClient.CompositeMapper = { +export const AzureFirewall: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RouteTable", + className: "AzureFirewall", modelProperties: { ...Resource.type.modelProperties, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, etag: { serializedName: "etag", readOnly: true, @@ -21230,35 +24866,59 @@ export const RouteTable: coreClient.CompositeMapper = { name: "String" } }, - routes: { - serializedName: "properties.routes", + applicationRuleCollections: { + serializedName: "properties.applicationRuleCollections", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Route" + className: "AzureFirewallApplicationRuleCollection" } } } }, - subnets: { - serializedName: "properties.subnets", - readOnly: true, + natRuleCollections: { + serializedName: "properties.natRuleCollections", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Subnet" + className: "AzureFirewallNatRuleCollection" } } } }, - disableBgpRoutePropagation: { - serializedName: "properties.disableBgpRoutePropagation", + networkRuleCollections: { + serializedName: "properties.networkRuleCollections", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureFirewallNetworkRuleCollection" + } + } + } + }, + ipConfigurations: { + serializedName: "properties.ipConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureFirewallIPConfiguration" + } + } + } + }, + managementIpConfiguration: { + serializedName: "properties.managementIpConfiguration", + type: { + name: "Composite", + className: "AzureFirewallIPConfiguration" } }, provisioningState: { @@ -21268,193 +24928,203 @@ export const RouteTable: coreClient.CompositeMapper = { name: "String" } }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, + threatIntelMode: { + serializedName: "properties.threatIntelMode", type: { name: "String" } - } - } - } -}; - -export const ServiceEndpointPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServiceEndpointPolicy", - modelProperties: { - ...Resource.type.modelProperties, - etag: { - serializedName: "etag", - readOnly: true, + }, + virtualHub: { + serializedName: "properties.virtualHub", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - kind: { - serializedName: "kind", - readOnly: true, + firewallPolicy: { + serializedName: "properties.firewallPolicy", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - serviceEndpointPolicyDefinitions: { - serializedName: "properties.serviceEndpointPolicyDefinitions", + hubIPAddresses: { + serializedName: "properties.hubIPAddresses", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServiceEndpointPolicyDefinition" - } - } + name: "Composite", + className: "HubIPAddresses" } }, - subnets: { - serializedName: "properties.subnets", + ipGroups: { + serializedName: "properties.ipGroups", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Subnet" + className: "AzureFirewallIpGroups" } } } }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, + sku: { + serializedName: "properties.sku", type: { - name: "String" + name: "Composite", + className: "AzureFirewallSku" } }, - provisioningState: { - serializedName: "properties.provisioningState", + additionalProperties: { + serializedName: "properties.additionalProperties", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const AzureFirewallFqdnTag: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureFirewallFqdnTag", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + serializedName: "etag", readOnly: true, type: { name: "String" } }, - serviceAlias: { - serializedName: "properties.serviceAlias", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - contextualServiceEndpointPolicies: { - serializedName: "properties.contextualServiceEndpointPolicies", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + fqdnTagName: { + serializedName: "properties.fqdnTagName", + readOnly: true, + type: { + name: "String" } } } } }; -export const NatGateway: coreClient.CompositeMapper = { +export const BastionHost: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NatGateway", + className: "BastionHost", modelProperties: { ...Resource.type.modelProperties, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, sku: { serializedName: "sku", type: { name: "Composite", - className: "NatGatewaySku" + className: "Sku" } }, - zones: { - serializedName: "zones", + ipConfigurations: { + serializedName: "properties.ipConfigurations", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "BastionHostIPConfiguration" } } } }, - etag: { - serializedName: "etag", + dnsName: { + serializedName: "properties.dnsName", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", + scaleUnits: { + constraints: { + InclusiveMaximum: 50, + InclusiveMinimum: 2 + }, + serializedName: "properties.scaleUnits", type: { name: "Number" } }, - publicIpAddresses: { - serializedName: "properties.publicIpAddresses", + disableCopyPaste: { + defaultValue: false, + serializedName: "properties.disableCopyPaste", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "Boolean" } }, - publicIpPrefixes: { - serializedName: "properties.publicIpPrefixes", + enableFileCopy: { + defaultValue: false, + serializedName: "properties.enableFileCopy", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "Boolean" } }, - subnets: { - serializedName: "properties.subnets", - readOnly: true, + enableIpConnect: { + defaultValue: false, + serializedName: "properties.enableIpConnect", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "Boolean" } }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, + enableShareableLink: { + defaultValue: false, + serializedName: "properties.enableShareableLink", type: { - name: "String" + name: "Boolean" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + enableTunneling: { + defaultValue: false, + serializedName: "properties.enableTunneling", type: { - name: "String" + name: "Boolean" } } } } }; -export const PublicIPAddress: coreClient.CompositeMapper = { +export const Vm: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PublicIPAddress", + className: "Vm", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + +export const CustomIpPrefix: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomIpPrefix", modelProperties: { ...Resource.type.modelProperties, extendedLocation: { @@ -21464,13 +25134,6 @@ export const PublicIPAddress: coreClient.CompositeMapper = { className: "ExtendedLocation" } }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "PublicIPAddressSku" - } - }, etag: { serializedName: "etag", readOnly: true, @@ -21489,113 +25152,110 @@ export const PublicIPAddress: coreClient.CompositeMapper = { } } }, - publicIPAllocationMethod: { - serializedName: "properties.publicIPAllocationMethod", + asn: { + serializedName: "properties.asn", type: { name: "String" } }, - publicIPAddressVersion: { - serializedName: "properties.publicIPAddressVersion", + cidr: { + serializedName: "properties.cidr", type: { name: "String" } }, - ipConfiguration: { - serializedName: "properties.ipConfiguration", + signedMessage: { + serializedName: "properties.signedMessage", type: { - name: "Composite", - className: "IPConfiguration" + name: "String" } }, - dnsSettings: { - serializedName: "properties.dnsSettings", + authorizationMessage: { + serializedName: "properties.authorizationMessage", type: { - name: "Composite", - className: "PublicIPAddressDnsSettings" + name: "String" } }, - ddosSettings: { - serializedName: "properties.ddosSettings", + customIpPrefixParent: { + serializedName: "properties.customIpPrefixParent", type: { name: "Composite", - className: "DdosSettings" + className: "SubResource" } }, - ipTags: { - serializedName: "properties.ipTags", + childCustomIpPrefixes: { + serializedName: "properties.childCustomIpPrefixes", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "IpTag" + className: "SubResource" } } } }, - ipAddress: { - serializedName: "properties.ipAddress", + commissionedState: { + serializedName: "properties.commissionedState", type: { name: "String" } }, - publicIPPrefix: { - serializedName: "properties.publicIPPrefix", - type: { - name: "Composite", - className: "SubResource" - } - }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", + expressRouteAdvertise: { + serializedName: "properties.expressRouteAdvertise", type: { - name: "Number" + name: "Boolean" } }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, + geo: { + serializedName: "properties.geo", type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + noInternetAdvertise: { + serializedName: "properties.noInternetAdvertise", type: { - name: "String" + name: "Boolean" } }, - servicePublicIPAddress: { - serializedName: "properties.servicePublicIPAddress", + prefixType: { + serializedName: "properties.prefixType", type: { - name: "Composite", - className: "PublicIPAddress" + name: "String" } }, - natGateway: { - serializedName: "properties.natGateway", + publicIpPrefixes: { + serializedName: "properties.publicIpPrefixes", + readOnly: true, type: { - name: "Composite", - className: "NatGateway" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } }, - migrationPhase: { - serializedName: "properties.migrationPhase", + resourceGuid: { + serializedName: "properties.resourceGuid", + readOnly: true, type: { name: "String" } }, - linkedPublicIPAddress: { - serializedName: "properties.linkedPublicIPAddress", + failedReason: { + serializedName: "properties.failedReason", + readOnly: true, type: { - name: "Composite", - className: "PublicIPAddress" + name: "String" } }, - deleteOption: { - serializedName: "properties.deleteOption", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } @@ -21604,10 +25264,10 @@ export const PublicIPAddress: coreClient.CompositeMapper = { } }; -export const VirtualNetworkTap: coreClient.CompositeMapper = { +export const DdosCustomPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkTap", + className: "DdosCustomPolicy", modelProperties: { ...Resource.type.modelProperties, etag: { @@ -21617,19 +25277,6 @@ export const VirtualNetworkTap: coreClient.CompositeMapper = { name: "String" } }, - networkInterfaceTapConfigurations: { - serializedName: "properties.networkInterfaceTapConfigurations", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkInterfaceTapConfiguration" - } - } - } - }, resourceGuid: { serializedName: "properties.resourceGuid", readOnly: true, @@ -21637,42 +25284,21 @@ export const VirtualNetworkTap: coreClient.CompositeMapper = { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - destinationNetworkInterfaceIPConfiguration: { - serializedName: "properties.destinationNetworkInterfaceIPConfiguration", - type: { - name: "Composite", - className: "NetworkInterfaceIPConfiguration" - } - }, - destinationLoadBalancerFrontEndIPConfiguration: { - serializedName: - "properties.destinationLoadBalancerFrontEndIPConfiguration", - type: { - name: "Composite", - className: "FrontendIPConfiguration" - } - }, - destinationPort: { - serializedName: "properties.destinationPort", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const ApplicationGateway: coreClient.CompositeMapper = { +export const DscpConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGateway", + className: "DscpConfiguration", modelProperties: { ...Resource.type.modelProperties, etag: { @@ -21682,383 +25308,373 @@ export const ApplicationGateway: coreClient.CompositeMapper = { name: "String" } }, - zones: { - serializedName: "zones", + markings: { + serializedName: "properties.markings", type: { name: "Sequence", element: { type: { - name: "String" + name: "Number" } } } }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - }, - sku: { - serializedName: "properties.sku", - type: { - name: "Composite", - className: "ApplicationGatewaySku" - } - }, - sslPolicy: { - serializedName: "properties.sslPolicy", - type: { - name: "Composite", - className: "ApplicationGatewaySslPolicy" - } - }, - operationalState: { - serializedName: "properties.operationalState", - readOnly: true, - type: { - name: "String" - } - }, - gatewayIPConfigurations: { - serializedName: "properties.gatewayIPConfigurations", + sourceIpRanges: { + serializedName: "properties.sourceIpRanges", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationGatewayIPConfiguration" + className: "QosIpRange" } } } }, - authenticationCertificates: { - serializedName: "properties.authenticationCertificates", + destinationIpRanges: { + serializedName: "properties.destinationIpRanges", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationGatewayAuthenticationCertificate" + className: "QosIpRange" } } } }, - trustedRootCertificates: { - serializedName: "properties.trustedRootCertificates", + sourcePortRanges: { + serializedName: "properties.sourcePortRanges", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationGatewayTrustedRootCertificate" + className: "QosPortRange" } } } }, - trustedClientCertificates: { - serializedName: "properties.trustedClientCertificates", + destinationPortRanges: { + serializedName: "properties.destinationPortRanges", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationGatewayTrustedClientCertificate" + className: "QosPortRange" } } } }, - sslCertificates: { - serializedName: "properties.sslCertificates", + protocol: { + serializedName: "properties.protocol", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGatewaySslCertificate" - } - } + name: "String" } }, - frontendIPConfigurations: { - serializedName: "properties.frontendIPConfigurations", + qosDefinitionCollection: { + serializedName: "properties.qosDefinitionCollection", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationGatewayFrontendIPConfiguration" + className: "QosDefinition" } } } }, - frontendPorts: { - serializedName: "properties.frontendPorts", + qosCollectionId: { + serializedName: "properties.qosCollectionId", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGatewayFrontendPort" - } - } + name: "String" } }, - probes: { - serializedName: "properties.probes", + associatedNetworkInterfaces: { + serializedName: "properties.associatedNetworkInterfaces", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationGatewayProbe" + className: "NetworkInterface" } } } }, - backendAddressPools: { - serializedName: "properties.backendAddressPools", + resourceGuid: { + serializedName: "properties.resourceGuid", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGatewayBackendAddressPool" - } - } + name: "String" } }, - backendHttpSettingsCollection: { - serializedName: "properties.backendHttpSettingsCollection", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGatewayBackendHttpSettings" - } - } + name: "String" + } + } + } + } +}; + +export const ExpressRouteCircuit: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExpressRouteCircuit", + modelProperties: { + ...Resource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "ExpressRouteCircuitSku" } }, - httpListeners: { - serializedName: "properties.httpListeners", + etag: { + serializedName: "etag", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGatewayHttpListener" - } - } + name: "String" } }, - sslProfiles: { - serializedName: "properties.sslProfiles", + allowClassicOperations: { + serializedName: "properties.allowClassicOperations", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGatewaySslProfile" - } - } + name: "Boolean" } }, - urlPathMaps: { - serializedName: "properties.urlPathMaps", + circuitProvisioningState: { + serializedName: "properties.circuitProvisioningState", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGatewayUrlPathMap" - } - } + name: "String" } }, - requestRoutingRules: { - serializedName: "properties.requestRoutingRules", + serviceProviderProvisioningState: { + serializedName: "properties.serviceProviderProvisioningState", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGatewayRequestRoutingRule" - } - } + name: "String" } }, - rewriteRuleSets: { - serializedName: "properties.rewriteRuleSets", + authorizations: { + serializedName: "properties.authorizations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationGatewayRewriteRuleSet" + className: "ExpressRouteCircuitAuthorization" } } } }, - redirectConfigurations: { - serializedName: "properties.redirectConfigurations", + peerings: { + serializedName: "properties.peerings", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationGatewayRedirectConfiguration" + className: "ExpressRouteCircuitPeering" } } } }, - webApplicationFirewallConfiguration: { - serializedName: "properties.webApplicationFirewallConfiguration", + serviceKey: { + serializedName: "properties.serviceKey", + type: { + name: "String" + } + }, + serviceProviderNotes: { + serializedName: "properties.serviceProviderNotes", + type: { + name: "String" + } + }, + serviceProviderProperties: { + serializedName: "properties.serviceProviderProperties", type: { name: "Composite", - className: "ApplicationGatewayWebApplicationFirewallConfiguration" + className: "ExpressRouteCircuitServiceProviderProperties" } }, - firewallPolicy: { - serializedName: "properties.firewallPolicy", + expressRoutePort: { + serializedName: "properties.expressRoutePort", type: { name: "Composite", className: "SubResource" } }, - enableHttp2: { - serializedName: "properties.enableHttp2", + bandwidthInGbps: { + serializedName: "properties.bandwidthInGbps", type: { - name: "Boolean" + name: "Number" + } + }, + stag: { + serializedName: "properties.stag", + readOnly: true, + type: { + name: "Number" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + gatewayManagerEtag: { + serializedName: "properties.gatewayManagerEtag", + type: { + name: "String" } }, - enableFips: { - serializedName: "properties.enableFips", + globalReachEnabled: { + serializedName: "properties.globalReachEnabled", type: { name: "Boolean" } }, - autoscaleConfiguration: { - serializedName: "properties.autoscaleConfiguration", + authorizationKey: { + serializedName: "properties.authorizationKey", type: { - name: "Composite", - className: "ApplicationGatewayAutoscaleConfiguration" + name: "String" } - }, - privateLinkConfigurations: { - serializedName: "properties.privateLinkConfigurations", + } + } + } +}; + +export const ExpressRouteServiceProvider: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExpressRouteServiceProvider", + modelProperties: { + ...Resource.type.modelProperties, + peeringLocations: { + serializedName: "properties.peeringLocations", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ApplicationGatewayPrivateLinkConfiguration" + name: "String" } } } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - readOnly: true, + bandwidthsOffered: { + serializedName: "properties.bandwidthsOffered", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationGatewayPrivateEndpointConnection" + className: "ExpressRouteServiceProviderBandwidthsOffered" } } } }, - resourceGuid: { - serializedName: "properties.resourceGuid", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ExpressRouteCrossConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExpressRouteCrossConnection", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + serializedName: "etag", readOnly: true, type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + primaryAzurePort: { + serializedName: "properties.primaryAzurePort", readOnly: true, type: { name: "String" } }, - customErrorConfigurations: { - serializedName: "properties.customErrorConfigurations", + secondaryAzurePort: { + serializedName: "properties.secondaryAzurePort", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGatewayCustomError" - } - } + name: "String" } }, - forceFirewallPolicyAssociation: { - serializedName: "properties.forceFirewallPolicyAssociation", + sTag: { + serializedName: "properties.sTag", + readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - loadDistributionPolicies: { - serializedName: "properties.loadDistributionPolicies", + peeringLocation: { + serializedName: "properties.peeringLocation", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGatewayLoadDistributionPolicy" - } - } + name: "String" } }, - globalConfiguration: { - serializedName: "properties.globalConfiguration", + bandwidthInMbps: { + serializedName: "properties.bandwidthInMbps", + readOnly: true, + type: { + name: "Number" + } + }, + expressRouteCircuit: { + serializedName: "properties.expressRouteCircuit", type: { name: "Composite", - className: "ApplicationGatewayGlobalConfiguration" + className: "ExpressRouteCircuitReference" } - } - } - } -}; - -export const ApplicationGatewayFirewallRuleSet: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationGatewayFirewallRuleSet", - modelProperties: { - ...Resource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + }, + serviceProviderProvisioningState: { + serializedName: "properties.serviceProviderProvisioningState", type: { name: "String" } }, - ruleSetType: { - serializedName: "properties.ruleSetType", + serviceProviderNotes: { + serializedName: "properties.serviceProviderNotes", type: { name: "String" } }, - ruleSetVersion: { - serializedName: "properties.ruleSetVersion", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - ruleGroups: { - serializedName: "properties.ruleGroups", + peerings: { + serializedName: "properties.peerings", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationGatewayFirewallRuleGroup" + className: "ExpressRouteCrossConnectionPeering" } } } @@ -22067,73 +25683,55 @@ export const ApplicationGatewayFirewallRuleSet: coreClient.CompositeMapper = { } }; -export const ApplicationGatewayAvailableSslOptions: coreClient.CompositeMapper = { +export const ExpressRoutePortsLocation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationGatewayAvailableSslOptions", + className: "ExpressRoutePortsLocation", modelProperties: { ...Resource.type.modelProperties, - predefinedPolicies: { - serializedName: "properties.predefinedPolicies", + address: { + serializedName: "properties.address", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "String" } }, - defaultPolicy: { - serializedName: "properties.defaultPolicy", + contact: { + serializedName: "properties.contact", + readOnly: true, type: { name: "String" } }, - availableCipherSuites: { - serializedName: "properties.availableCipherSuites", + availableBandwidths: { + serializedName: "properties.availableBandwidths", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ExpressRoutePortsLocationBandwidths" } } } }, - availableProtocols: { - serializedName: "properties.availableProtocols", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const AzureFirewall: coreClient.CompositeMapper = { +export const ExpressRoutePort: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureFirewall", + className: "ExpressRoutePort", modelProperties: { ...Resource.type.modelProperties, - zones: { - serializedName: "zones", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, etag: { serializedName: "etag", readOnly: true, @@ -22141,130 +25739,112 @@ export const AzureFirewall: coreClient.CompositeMapper = { name: "String" } }, - applicationRuleCollections: { - serializedName: "properties.applicationRuleCollections", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureFirewallApplicationRuleCollection" - } - } - } - }, - natRuleCollections: { - serializedName: "properties.natRuleCollections", + identity: { + serializedName: "identity", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureFirewallNatRuleCollection" - } - } + name: "Composite", + className: "ManagedServiceIdentity" } }, - networkRuleCollections: { - serializedName: "properties.networkRuleCollections", + peeringLocation: { + serializedName: "properties.peeringLocation", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureFirewallNetworkRuleCollection" - } - } + name: "String" } }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", + bandwidthInGbps: { + serializedName: "properties.bandwidthInGbps", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureFirewallIPConfiguration" - } - } + name: "Number" } }, - managementIpConfiguration: { - serializedName: "properties.managementIpConfiguration", + provisionedBandwidthInGbps: { + serializedName: "properties.provisionedBandwidthInGbps", + readOnly: true, type: { - name: "Composite", - className: "AzureFirewallIPConfiguration" + name: "Number" } }, - provisioningState: { - serializedName: "properties.provisioningState", + mtu: { + serializedName: "properties.mtu", readOnly: true, type: { name: "String" } }, - threatIntelMode: { - serializedName: "properties.threatIntelMode", + encapsulation: { + serializedName: "properties.encapsulation", type: { name: "String" } }, - virtualHub: { - serializedName: "properties.virtualHub", + etherType: { + serializedName: "properties.etherType", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - firewallPolicy: { - serializedName: "properties.firewallPolicy", + allocationDate: { + serializedName: "properties.allocationDate", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - hubIPAddresses: { - serializedName: "properties.hubIPAddresses", + links: { + serializedName: "properties.links", type: { - name: "Composite", - className: "HubIPAddresses" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteLink" + } + } } }, - ipGroups: { - serializedName: "properties.ipGroups", + circuits: { + serializedName: "properties.circuits", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AzureFirewallIpGroups" + className: "SubResource" } } } }, - sku: { - serializedName: "properties.sku", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Composite", - className: "AzureFirewallSku" + name: "String" } }, - additionalProperties: { - serializedName: "properties.additionalProperties", + resourceGuid: { + serializedName: "properties.resourceGuid", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" + } + }, + billingType: { + serializedName: "properties.billingType", + type: { + name: "String" } } } } }; -export const AzureFirewallFqdnTag: coreClient.CompositeMapper = { +export const ExpressRouteProviderPort: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureFirewallFqdnTag", + className: "ExpressRouteProviderPort", modelProperties: { ...Resource.type.modelProperties, etag: { @@ -22274,28 +25854,65 @@ export const AzureFirewallFqdnTag: coreClient.CompositeMapper = { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + portPairDescriptor: { + serializedName: "properties.portPairDescriptor", readOnly: true, type: { name: "String" } }, - fqdnTagName: { - serializedName: "properties.fqdnTagName", + primaryAzurePort: { + serializedName: "properties.primaryAzurePort", + readOnly: true, + type: { + name: "String" + } + }, + secondaryAzurePort: { + serializedName: "properties.secondaryAzurePort", readOnly: true, type: { name: "String" } + }, + peeringLocation: { + serializedName: "properties.peeringLocation", + type: { + name: "String" + } + }, + overprovisionFactor: { + serializedName: "properties.overprovisionFactor", + type: { + name: "Number" + } + }, + portBandwidthInMbps: { + serializedName: "properties.portBandwidthInMbps", + type: { + name: "Number" + } + }, + usedBandwidthInMbps: { + serializedName: "properties.usedBandwidthInMbps", + type: { + name: "Number" + } + }, + remainingBandwidthInMbps: { + serializedName: "properties.remainingBandwidthInMbps", + type: { + name: "Number" + } } } } }; -export const BastionHost: coreClient.CompositeMapper = { +export const FirewallPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BastionHost", + className: "FirewallPolicy", modelProperties: { ...Resource.type.modelProperties, etag: { @@ -22305,214 +25922,213 @@ export const BastionHost: coreClient.CompositeMapper = { name: "String" } }, - sku: { - serializedName: "sku", + identity: { + serializedName: "identity", type: { name: "Composite", - className: "Sku" + className: "ManagedServiceIdentity" } }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", + ruleCollectionGroups: { + serializedName: "properties.ruleCollectionGroups", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "BastionHostIPConfiguration" + className: "SubResource" } } } }, - dnsName: { - serializedName: "properties.dnsName", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + basePolicy: { + serializedName: "properties.basePolicy", + type: { + name: "Composite", + className: "SubResource" + } + }, + firewalls: { + serializedName: "properties.firewalls", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } }, - scaleUnits: { - constraints: { - InclusiveMaximum: 50, - InclusiveMinimum: 2 - }, - serializedName: "properties.scaleUnits", + childPolicies: { + serializedName: "properties.childPolicies", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } }, - disableCopyPaste: { - defaultValue: false, - serializedName: "properties.disableCopyPaste", + threatIntelMode: { + serializedName: "properties.threatIntelMode", type: { - name: "Boolean" + name: "String" } }, - enableFileCopy: { - defaultValue: false, - serializedName: "properties.enableFileCopy", + threatIntelWhitelist: { + serializedName: "properties.threatIntelWhitelist", type: { - name: "Boolean" + name: "Composite", + className: "FirewallPolicyThreatIntelWhitelist" } }, - enableIpConnect: { - defaultValue: false, - serializedName: "properties.enableIpConnect", + insights: { + serializedName: "properties.insights", type: { - name: "Boolean" + name: "Composite", + className: "FirewallPolicyInsights" } }, - enableShareableLink: { - defaultValue: false, - serializedName: "properties.enableShareableLink", + snat: { + serializedName: "properties.snat", type: { - name: "Boolean" + name: "Composite", + className: "FirewallPolicySnat" } }, - enableTunneling: { - defaultValue: false, - serializedName: "properties.enableTunneling", + sql: { + serializedName: "properties.sql", type: { - name: "Boolean" + name: "Composite", + className: "FirewallPolicySQL" } - } - } - } -}; - -export const Vm: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Vm", - modelProperties: { - ...Resource.type.modelProperties - } - } -}; - -export const CustomIpPrefix: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CustomIpPrefix", - modelProperties: { - ...Resource.type.modelProperties, - extendedLocation: { - serializedName: "extendedLocation", + }, + dnsSettings: { + serializedName: "properties.dnsSettings", type: { name: "Composite", - className: "ExtendedLocation" + className: "DnsSettings" } }, - etag: { - serializedName: "etag", - readOnly: true, + explicitProxy: { + serializedName: "properties.explicitProxy", type: { - name: "String" + name: "Composite", + className: "ExplicitProxy" } }, - zones: { - serializedName: "zones", + intrusionDetection: { + serializedName: "properties.intrusionDetection", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "FirewallPolicyIntrusionDetection" } }, - cidr: { - serializedName: "properties.cidr", + transportSecurity: { + serializedName: "properties.transportSecurity", type: { - name: "String" + name: "Composite", + className: "FirewallPolicyTransportSecurity" } }, - signedMessage: { - serializedName: "properties.signedMessage", + sku: { + serializedName: "properties.sku", + type: { + name: "Composite", + className: "FirewallPolicySku" + } + } + } + } +}; + +export const IpAllocation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpAllocation", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + serializedName: "etag", + readOnly: true, type: { name: "String" } }, - authorizationMessage: { - serializedName: "properties.authorizationMessage", + subnet: { + serializedName: "properties.subnet", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - customIpPrefixParent: { - serializedName: "properties.customIpPrefixParent", + virtualNetwork: { + serializedName: "properties.virtualNetwork", type: { name: "Composite", className: "SubResource" } }, - childCustomIpPrefixes: { - serializedName: "properties.childCustomIpPrefixes", - readOnly: true, + typePropertiesType: { + serializedName: "properties.type", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "String" } }, - commissionedState: { - serializedName: "properties.commissionedState", + prefix: { + serializedName: "properties.prefix", type: { name: "String" } }, - publicIpPrefixes: { - serializedName: "properties.publicIpPrefixes", - readOnly: true, + prefixLength: { + defaultValue: 0, + serializedName: "properties.prefixLength", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "Number" } }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, + prefixType: { + serializedName: "properties.prefixType", type: { name: "String" } }, - failedReason: { - serializedName: "properties.failedReason", - readOnly: true, + ipamAllocationId: { + serializedName: "properties.ipamAllocationId", type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + allocationTags: { + serializedName: "properties.allocationTags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const DdosCustomPolicy: coreClient.CompositeMapper = { +export const IpGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DdosCustomPolicy", + className: "IpGroup", modelProperties: { ...Resource.type.modelProperties, etag: { @@ -22522,22 +26138,26 @@ export const DdosCustomPolicy: coreClient.CompositeMapper = { name: "String" } }, - resourceGuid: { - serializedName: "properties.resourceGuid", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + ipAddresses: { + serializedName: "properties.ipAddresses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - publicIPAddresses: { - serializedName: "properties.publicIPAddresses", + firewalls: { + serializedName: "properties.firewalls", readOnly: true, type: { name: "Sequence", @@ -22549,14 +26169,15 @@ export const DdosCustomPolicy: coreClient.CompositeMapper = { } } }, - protocolCustomSettings: { - serializedName: "properties.protocolCustomSettings", + firewallPolicies: { + serializedName: "properties.firewallPolicies", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ProtocolCustomSettingsFormat" + className: "SubResource" } } } @@ -22565,12 +26186,26 @@ export const DdosCustomPolicy: coreClient.CompositeMapper = { } }; -export const DscpConfiguration: coreClient.CompositeMapper = { +export const LoadBalancer: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DscpConfiguration", + className: "LoadBalancer", modelProperties: { ...Resource.type.modelProperties, + extendedLocation: { + serializedName: "extendedLocation", + type: { + name: "Composite", + className: "ExtendedLocation" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "LoadBalancerSku" + } + }, etag: { serializedName: "etag", readOnly: true, @@ -22578,99 +26213,86 @@ export const DscpConfiguration: coreClient.CompositeMapper = { name: "String" } }, - markings: { - serializedName: "properties.markings", + frontendIPConfigurations: { + serializedName: "properties.frontendIPConfigurations", type: { name: "Sequence", element: { type: { - name: "Number" + name: "Composite", + className: "FrontendIPConfiguration" } } } }, - sourceIpRanges: { - serializedName: "properties.sourceIpRanges", + backendAddressPools: { + serializedName: "properties.backendAddressPools", type: { name: "Sequence", element: { type: { name: "Composite", - className: "QosIpRange" + className: "BackendAddressPool" } } } }, - destinationIpRanges: { - serializedName: "properties.destinationIpRanges", + loadBalancingRules: { + serializedName: "properties.loadBalancingRules", type: { name: "Sequence", element: { type: { name: "Composite", - className: "QosIpRange" + className: "LoadBalancingRule" } } } }, - sourcePortRanges: { - serializedName: "properties.sourcePortRanges", + probes: { + serializedName: "properties.probes", type: { name: "Sequence", element: { type: { name: "Composite", - className: "QosPortRange" + className: "Probe" } } } }, - destinationPortRanges: { - serializedName: "properties.destinationPortRanges", + inboundNatRules: { + serializedName: "properties.inboundNatRules", type: { name: "Sequence", element: { type: { name: "Composite", - className: "QosPortRange" + className: "InboundNatRule" } } } }, - protocol: { - serializedName: "properties.protocol", - type: { - name: "String" - } - }, - qosDefinitionCollection: { - serializedName: "properties.qosDefinitionCollection", + inboundNatPools: { + serializedName: "properties.inboundNatPools", type: { name: "Sequence", element: { type: { name: "Composite", - className: "QosDefinition" + className: "InboundNatPool" } } } }, - qosCollectionId: { - serializedName: "properties.qosCollectionId", - readOnly: true, - type: { - name: "String" - } - }, - associatedNetworkInterfaces: { - serializedName: "properties.associatedNetworkInterfaces", - readOnly: true, + outboundRules: { + serializedName: "properties.outboundRules", type: { name: "Sequence", element: { type: { name: "Composite", - className: "NetworkInterface" + className: "OutboundRule" } } } @@ -22693,19 +26315,12 @@ export const DscpConfiguration: coreClient.CompositeMapper = { } }; -export const ExpressRouteCircuit: coreClient.CompositeMapper = { +export const NetworkManager: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExpressRouteCircuit", + className: "NetworkManager", modelProperties: { ...Resource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "ExpressRouteCircuitSku" - } - }, etag: { serializedName: "etag", readOnly: true, @@ -22713,85 +26328,35 @@ export const ExpressRouteCircuit: coreClient.CompositeMapper = { name: "String" } }, - allowClassicOperations: { - serializedName: "properties.allowClassicOperations", - type: { - name: "Boolean" - } - }, - circuitProvisioningState: { - serializedName: "properties.circuitProvisioningState", + systemData: { + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - serviceProviderProvisioningState: { - serializedName: "properties.serviceProviderProvisioningState", + description: { + serializedName: "properties.description", type: { name: "String" } }, - authorizations: { - serializedName: "properties.authorizations", + networkManagerScopes: { + serializedName: "properties.networkManagerScopes", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExpressRouteCircuitAuthorization" - } - } + name: "Composite", + className: "NetworkManagerPropertiesNetworkManagerScopes" } }, - peerings: { - serializedName: "properties.peerings", + networkManagerScopeAccesses: { + serializedName: "properties.networkManagerScopeAccesses", type: { name: "Sequence", element: { - type: { - name: "Composite", - className: "ExpressRouteCircuitPeering" - } - } - } - }, - serviceKey: { - serializedName: "properties.serviceKey", - type: { - name: "String" - } - }, - serviceProviderNotes: { - serializedName: "properties.serviceProviderNotes", - type: { - name: "String" - } - }, - serviceProviderProperties: { - serializedName: "properties.serviceProviderProperties", - type: { - name: "Composite", - className: "ExpressRouteCircuitServiceProviderProperties" - } - }, - expressRoutePort: { - serializedName: "properties.expressRoutePort", - type: { - name: "Composite", - className: "SubResource" - } - }, - bandwidthInGbps: { - serializedName: "properties.bandwidthInGbps", - type: { - name: "Number" - } - }, - stag: { - serializedName: "properties.stag", - readOnly: true, - type: { - name: "Number" + type: { + name: "String" + } + } } }, provisioningState: { @@ -22800,52 +26365,56 @@ export const ExpressRouteCircuit: coreClient.CompositeMapper = { type: { name: "String" } - }, - gatewayManagerEtag: { - serializedName: "properties.gatewayManagerEtag", - type: { - name: "String" - } - }, - globalReachEnabled: { - serializedName: "properties.globalReachEnabled", - type: { - name: "Boolean" - } } } } }; -export const ExpressRouteServiceProvider: coreClient.CompositeMapper = { +export const NetworkProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExpressRouteServiceProvider", + className: "NetworkProfile", modelProperties: { ...Resource.type.modelProperties, - peeringLocations: { - serializedName: "properties.peeringLocations", + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + containerNetworkInterfaces: { + serializedName: "properties.containerNetworkInterfaces", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ContainerNetworkInterface" } } } }, - bandwidthsOffered: { - serializedName: "properties.bandwidthsOffered", + containerNetworkInterfaceConfigurations: { + serializedName: "properties.containerNetworkInterfaceConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ExpressRouteServiceProviderBandwidthsOffered" + className: "ContainerNetworkInterfaceConfiguration" } } } }, + resourceGuid: { + serializedName: "properties.resourceGuid", + readOnly: true, + type: { + name: "String" + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -22857,12 +26426,19 @@ export const ExpressRouteServiceProvider: coreClient.CompositeMapper = { } }; -export const ExpressRouteCrossConnection: coreClient.CompositeMapper = { +export const NetworkVirtualAppliance: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExpressRouteCrossConnection", + className: "NetworkVirtualAppliance", modelProperties: { ...Resource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, etag: { serializedName: "etag", readOnly: true, @@ -22870,130 +26446,194 @@ export const ExpressRouteCrossConnection: coreClient.CompositeMapper = { name: "String" } }, - primaryAzurePort: { - serializedName: "properties.primaryAzurePort", - readOnly: true, + nvaSku: { + serializedName: "properties.nvaSku", type: { - name: "String" + name: "Composite", + className: "VirtualApplianceSkuProperties" } }, - secondaryAzurePort: { - serializedName: "properties.secondaryAzurePort", + addressPrefix: { + serializedName: "properties.addressPrefix", readOnly: true, type: { name: "String" } }, - sTag: { - serializedName: "properties.sTag", - readOnly: true, + bootStrapConfigurationBlobs: { + serializedName: "properties.bootStrapConfigurationBlobs", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - peeringLocation: { - serializedName: "properties.peeringLocation", - readOnly: true, + virtualHub: { + serializedName: "properties.virtualHub", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - bandwidthInMbps: { - serializedName: "properties.bandwidthInMbps", - readOnly: true, + cloudInitConfigurationBlobs: { + serializedName: "properties.cloudInitConfigurationBlobs", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - expressRouteCircuit: { - serializedName: "properties.expressRouteCircuit", + cloudInitConfiguration: { + serializedName: "properties.cloudInitConfiguration", type: { - name: "Composite", - className: "ExpressRouteCircuitReference" + name: "String" } }, - serviceProviderProvisioningState: { - serializedName: "properties.serviceProviderProvisioningState", + virtualApplianceAsn: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 0 + }, + serializedName: "properties.virtualApplianceAsn", type: { - name: "String" + name: "Number" } }, - serviceProviderNotes: { - serializedName: "properties.serviceProviderNotes", + sshPublicKey: { + serializedName: "properties.sshPublicKey", type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + virtualApplianceNics: { + serializedName: "properties.virtualApplianceNics", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualApplianceNicProperties" + } + } } }, - peerings: { - serializedName: "properties.peerings", + virtualApplianceSites: { + serializedName: "properties.virtualApplianceSites", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ExpressRouteCrossConnectionPeering" + className: "SubResource" + } + } + } + }, + inboundSecurityRules: { + serializedName: "properties.inboundSecurityRules", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" } } } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + deploymentType: { + serializedName: "properties.deploymentType", + readOnly: true, + type: { + name: "String" + } + }, + delegation: { + serializedName: "properties.delegation", + type: { + name: "Composite", + className: "DelegationProperties" + } + }, + partnerManagedResource: { + serializedName: "properties.partnerManagedResource", + type: { + name: "Composite", + className: "PartnerManagedResourceProperties" + } } } } }; -export const ExpressRoutePortsLocation: coreClient.CompositeMapper = { +export const NetworkVirtualApplianceSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExpressRoutePortsLocation", + className: "NetworkVirtualApplianceSku", modelProperties: { ...Resource.type.modelProperties, - address: { - serializedName: "properties.address", + etag: { + serializedName: "etag", readOnly: true, type: { name: "String" } }, - contact: { - serializedName: "properties.contact", + vendor: { + serializedName: "properties.vendor", readOnly: true, type: { name: "String" } }, - availableBandwidths: { - serializedName: "properties.availableBandwidths", + availableVersions: { + serializedName: "properties.availableVersions", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ExpressRoutePortsLocationBandwidths" + name: "String" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + availableScaleUnits: { + serializedName: "properties.availableScaleUnits", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkVirtualApplianceSkuInstances" + } + } } } } } }; -export const ExpressRoutePort: coreClient.CompositeMapper = { +export const NetworkWatcher: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExpressRoutePort", + className: "NetworkWatcher", modelProperties: { ...Resource.type.modelProperties, etag: { @@ -23003,89 +26643,111 @@ export const ExpressRoutePort: coreClient.CompositeMapper = { name: "String" } }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - }, - peeringLocation: { - serializedName: "properties.peeringLocation", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } - }, - bandwidthInGbps: { - serializedName: "properties.bandwidthInGbps", - type: { - name: "Number" - } - }, - provisionedBandwidthInGbps: { - serializedName: "properties.provisionedBandwidthInGbps", - readOnly: true, + } + } + } +}; + +export const PublicIPPrefix: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PublicIPPrefix", + modelProperties: { + ...Resource.type.modelProperties, + extendedLocation: { + serializedName: "extendedLocation", type: { - name: "Number" + name: "Composite", + className: "ExtendedLocation" } }, - mtu: { - serializedName: "properties.mtu", - readOnly: true, + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "PublicIPPrefixSku" } }, - encapsulation: { - serializedName: "properties.encapsulation", + etag: { + serializedName: "etag", + readOnly: true, type: { name: "String" } }, - etherType: { - serializedName: "properties.etherType", - readOnly: true, + zones: { + serializedName: "zones", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - allocationDate: { - serializedName: "properties.allocationDate", - readOnly: true, + publicIPAddressVersion: { + serializedName: "properties.publicIPAddressVersion", type: { name: "String" } }, - links: { - serializedName: "properties.links", + ipTags: { + serializedName: "properties.ipTags", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ExpressRouteLink" + className: "IpTag" } } } }, - circuits: { - serializedName: "properties.circuits", + prefixLength: { + serializedName: "properties.prefixLength", + type: { + name: "Number" + } + }, + ipPrefix: { + serializedName: "properties.ipPrefix", + readOnly: true, + type: { + name: "String" + } + }, + publicIPAddresses: { + serializedName: "properties.publicIPAddresses", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubResource" + className: "ReferencedPublicIpAddress" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + loadBalancerFrontendIpConfiguration: { + serializedName: "properties.loadBalancerFrontendIpConfiguration", type: { - name: "String" + name: "Composite", + className: "SubResource" + } + }, + customIPPrefix: { + serializedName: "properties.customIPPrefix", + type: { + name: "Composite", + className: "SubResource" } }, resourceGuid: { @@ -23094,15 +26756,29 @@ export const ExpressRoutePort: coreClient.CompositeMapper = { type: { name: "String" } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + natGateway: { + serializedName: "properties.natGateway", + type: { + name: "Composite", + className: "NatGateway" + } } } } }; -export const FirewallPolicy: coreClient.CompositeMapper = { +export const RouteFilter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FirewallPolicy", + className: "RouteFilter", modelProperties: { ...Resource.type.modelProperties, etag: { @@ -23112,143 +26788,59 @@ export const FirewallPolicy: coreClient.CompositeMapper = { name: "String" } }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - }, - ruleCollectionGroups: { - serializedName: "properties.ruleCollectionGroups", - readOnly: true, + rules: { + serializedName: "properties.rules", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubResource" + className: "RouteFilterRule" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - basePolicy: { - serializedName: "properties.basePolicy", - type: { - name: "Composite", - className: "SubResource" - } - }, - firewalls: { - serializedName: "properties.firewalls", + peerings: { + serializedName: "properties.peerings", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubResource" + className: "ExpressRouteCircuitPeering" } } } }, - childPolicies: { - serializedName: "properties.childPolicies", + ipv6Peerings: { + serializedName: "properties.ipv6Peerings", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubResource" + className: "ExpressRouteCircuitPeering" } } } }, - threatIntelMode: { - serializedName: "properties.threatIntelMode", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } - }, - threatIntelWhitelist: { - serializedName: "properties.threatIntelWhitelist", - type: { - name: "Composite", - className: "FirewallPolicyThreatIntelWhitelist" - } - }, - insights: { - serializedName: "properties.insights", - type: { - name: "Composite", - className: "FirewallPolicyInsights" - } - }, - snat: { - serializedName: "properties.snat", - type: { - name: "Composite", - className: "FirewallPolicySnat" - } - }, - sql: { - serializedName: "properties.sql", - type: { - name: "Composite", - className: "FirewallPolicySQL" - } - }, - dnsSettings: { - serializedName: "properties.dnsSettings", - type: { - name: "Composite", - className: "DnsSettings" - } - }, - explicitProxySettings: { - serializedName: "properties.explicitProxySettings", - type: { - name: "Composite", - className: "ExplicitProxySettings" - } - }, - intrusionDetection: { - serializedName: "properties.intrusionDetection", - type: { - name: "Composite", - className: "FirewallPolicyIntrusionDetection" - } - }, - transportSecurity: { - serializedName: "properties.transportSecurity", - type: { - name: "Composite", - className: "FirewallPolicyTransportSecurity" - } - }, - sku: { - serializedName: "properties.sku", - type: { - name: "Composite", - className: "FirewallPolicySku" - } } } } }; -export const IpAllocation: coreClient.CompositeMapper = { +export const SecurityPartnerProvider: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpAllocation", + className: "SecurityPartnerProvider", modelProperties: { ...Resource.type.modelProperties, etag: { @@ -23258,69 +26850,78 @@ export const IpAllocation: coreClient.CompositeMapper = { name: "String" } }, - subnet: { - serializedName: "properties.subnet", - type: { - name: "Composite", - className: "SubResource" - } - }, - virtualNetwork: { - serializedName: "properties.virtualNetwork", - type: { - name: "Composite", - className: "SubResource" - } - }, - typePropertiesType: { - serializedName: "properties.type", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - prefix: { - serializedName: "properties.prefix", + securityProviderName: { + serializedName: "properties.securityProviderName", type: { name: "String" } }, - prefixLength: { - defaultValue: 0, - serializedName: "properties.prefixLength", - nullable: true, + connectionStatus: { + serializedName: "properties.connectionStatus", + readOnly: true, type: { - name: "Number" + name: "String" } }, - prefixType: { - serializedName: "properties.prefixType", + virtualHub: { + serializedName: "properties.virtualHub", type: { - name: "String" + name: "Composite", + className: "SubResource" } - }, - ipamAllocationId: { - serializedName: "properties.ipamAllocationId", + } + } + } +}; + +export const BgpServiceCommunity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BgpServiceCommunity", + modelProperties: { + ...Resource.type.modelProperties, + serviceName: { + serializedName: "properties.serviceName", type: { name: "String" } }, - allocationTags: { - serializedName: "properties.allocationTags", + bgpCommunities: { + serializedName: "properties.bgpCommunities", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BGPCommunity" + } + } } } } } }; -export const IpGroup: coreClient.CompositeMapper = { +export const VirtualNetwork: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpGroup", + className: "VirtualNetwork", modelProperties: { ...Resource.type.modelProperties, + extendedLocation: { + serializedName: "extendedLocation", + type: { + name: "Composite", + className: "ExtendedLocation" + } + }, etag: { serializedName: "etag", readOnly: true, @@ -23328,40 +26929,101 @@ export const IpGroup: coreClient.CompositeMapper = { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + addressSpace: { + serializedName: "properties.addressSpace", type: { - name: "String" + name: "Composite", + className: "AddressSpace" } }, - ipAddresses: { - serializedName: "properties.ipAddresses", + dhcpOptions: { + serializedName: "properties.dhcpOptions", + type: { + name: "Composite", + className: "DhcpOptions" + } + }, + flowTimeoutInMinutes: { + serializedName: "properties.flowTimeoutInMinutes", + type: { + name: "Number" + } + }, + subnets: { + serializedName: "properties.subnets", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "Subnet" } } } }, - firewalls: { - serializedName: "properties.firewalls", - readOnly: true, + virtualNetworkPeerings: { + serializedName: "properties.virtualNetworkPeerings", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubResource" + className: "VirtualNetworkPeering" } } } }, - firewallPolicies: { - serializedName: "properties.firewallPolicies", + resourceGuid: { + serializedName: "properties.resourceGuid", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, + type: { + name: "String" + } + }, + enableDdosProtection: { + defaultValue: false, + serializedName: "properties.enableDdosProtection", + type: { + name: "Boolean" + } + }, + enableVmProtection: { + defaultValue: false, + serializedName: "properties.enableVmProtection", + type: { + name: "Boolean" + } + }, + ddosProtectionPlan: { + serializedName: "properties.ddosProtectionPlan", + type: { + name: "Composite", + className: "SubResource" + } + }, + bgpCommunities: { + serializedName: "properties.bgpCommunities", + type: { + name: "Composite", + className: "VirtualNetworkBgpCommunities" + } + }, + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "VirtualNetworkEncryption" + } + }, + ipAllocations: { + serializedName: "properties.ipAllocations", type: { name: "Sequence", element: { @@ -23376,10 +27038,27 @@ export const IpGroup: coreClient.CompositeMapper = { } }; -export const LoadBalancer: coreClient.CompositeMapper = { +export const NetworkIntentPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LoadBalancer", + className: "NetworkIntentPolicy", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const VirtualNetworkGateway: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualNetworkGateway", modelProperties: { ...Resource.type.modelProperties, extendedLocation: { @@ -23389,13 +27068,6 @@ export const LoadBalancer: coreClient.CompositeMapper = { className: "ExtendedLocation" } }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "LoadBalancerSku" - } - }, etag: { serializedName: "etag", readOnly: true, @@ -23403,177 +27075,180 @@ export const LoadBalancer: coreClient.CompositeMapper = { name: "String" } }, - frontendIPConfigurations: { - serializedName: "properties.frontendIPConfigurations", + ipConfigurations: { + serializedName: "properties.ipConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "FrontendIPConfiguration" + className: "VirtualNetworkGatewayIPConfiguration" } } } }, - backendAddressPools: { - serializedName: "properties.backendAddressPools", + gatewayType: { + serializedName: "properties.gatewayType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BackendAddressPool" - } - } + name: "String" } }, - loadBalancingRules: { - serializedName: "properties.loadBalancingRules", + vpnType: { + serializedName: "properties.vpnType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LoadBalancingRule" - } - } + name: "String" } }, - probes: { - serializedName: "properties.probes", + vpnGatewayGeneration: { + serializedName: "properties.vpnGatewayGeneration", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Probe" - } - } + name: "String" } }, - inboundNatRules: { - serializedName: "properties.inboundNatRules", + enableBgp: { + serializedName: "properties.enableBgp", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InboundNatRule" - } - } + name: "Boolean" } }, - inboundNatPools: { - serializedName: "properties.inboundNatPools", + enablePrivateIpAddress: { + serializedName: "properties.enablePrivateIpAddress", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InboundNatPool" - } - } + name: "Boolean" } }, - outboundRules: { - serializedName: "properties.outboundRules", + active: { + serializedName: "properties.activeActive", + type: { + name: "Boolean" + } + }, + disableIPSecReplayProtection: { + serializedName: "properties.disableIPSecReplayProtection", + type: { + name: "Boolean" + } + }, + gatewayDefaultSite: { + serializedName: "properties.gatewayDefaultSite", + type: { + name: "Composite", + className: "SubResource" + } + }, + sku: { + serializedName: "properties.sku", + type: { + name: "Composite", + className: "VirtualNetworkGatewaySku" + } + }, + vpnClientConfiguration: { + serializedName: "properties.vpnClientConfiguration", + type: { + name: "Composite", + className: "VpnClientConfiguration" + } + }, + virtualNetworkGatewayPolicyGroups: { + serializedName: "properties.virtualNetworkGatewayPolicyGroups", type: { name: "Sequence", element: { type: { name: "Composite", - className: "OutboundRule" + className: "VirtualNetworkGatewayPolicyGroup" } } } }, + bgpSettings: { + serializedName: "properties.bgpSettings", + type: { + name: "Composite", + className: "BgpSettings" + } + }, + customRoutes: { + serializedName: "properties.customRoutes", + type: { + name: "Composite", + className: "AddressSpace" + } + }, resourceGuid: { serializedName: "properties.resourceGuid", readOnly: true, type: { - name: "String" + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + enableDnsForwarding: { + serializedName: "properties.enableDnsForwarding", + type: { + name: "Boolean" } }, - provisioningState: { - serializedName: "properties.provisioningState", + inboundDnsForwardingEndpoint: { + serializedName: "properties.inboundDnsForwardingEndpoint", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const NetworkProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkProfile", - modelProperties: { - ...Resource.type.modelProperties, - etag: { - serializedName: "etag", - readOnly: true, + }, + vNetExtendedLocationResourceId: { + serializedName: "properties.vNetExtendedLocationResourceId", type: { name: "String" } }, - containerNetworkInterfaces: { - serializedName: "properties.containerNetworkInterfaces", - readOnly: true, + natRules: { + serializedName: "properties.natRules", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ContainerNetworkInterface" + className: "VirtualNetworkGatewayNatRule" } } } }, - containerNetworkInterfaceConfigurations: { - serializedName: "properties.containerNetworkInterfaceConfigurations", + enableBgpRouteTranslationForNat: { + serializedName: "properties.enableBgpRouteTranslationForNat", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ContainerNetworkInterfaceConfiguration" - } - } + name: "Boolean" } }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, + allowVirtualWanTraffic: { + serializedName: "properties.allowVirtualWanTraffic", type: { - name: "String" + name: "Boolean" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + allowRemoteVnetTraffic: { + serializedName: "properties.allowRemoteVnetTraffic", type: { - name: "String" + name: "Boolean" } } } } }; -export const NetworkVirtualAppliance: coreClient.CompositeMapper = { +export const VirtualNetworkGatewayConnectionListEntity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkVirtualAppliance", + className: "VirtualNetworkGatewayConnectionListEntity", modelProperties: { ...Resource.type.modelProperties, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - }, etag: { serializedName: "etag", readOnly: true, @@ -23581,287 +27256,220 @@ export const NetworkVirtualAppliance: coreClient.CompositeMapper = { name: "String" } }, - nvaSku: { - serializedName: "properties.nvaSku", + authorizationKey: { + serializedName: "properties.authorizationKey", type: { - name: "Composite", - className: "VirtualApplianceSkuProperties" + name: "String" } }, - addressPrefix: { - serializedName: "properties.addressPrefix", - readOnly: true, + virtualNetworkGateway1: { + serializedName: "properties.virtualNetworkGateway1", type: { - name: "String" + name: "Composite", + className: "VirtualNetworkConnectionGatewayReference" } }, - bootStrapConfigurationBlobs: { - serializedName: "properties.bootStrapConfigurationBlobs", + virtualNetworkGateway2: { + serializedName: "properties.virtualNetworkGateway2", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "VirtualNetworkConnectionGatewayReference" } }, - virtualHub: { - serializedName: "properties.virtualHub", + localNetworkGateway2: { + serializedName: "properties.localNetworkGateway2", type: { name: "Composite", - className: "SubResource" + className: "VirtualNetworkConnectionGatewayReference" } }, - cloudInitConfigurationBlobs: { - serializedName: "properties.cloudInitConfigurationBlobs", + connectionType: { + serializedName: "properties.connectionType", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - cloudInitConfiguration: { - serializedName: "properties.cloudInitConfiguration", + connectionProtocol: { + serializedName: "properties.connectionProtocol", type: { name: "String" } }, - virtualApplianceAsn: { - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 - }, - serializedName: "properties.virtualApplianceAsn", + routingWeight: { + serializedName: "properties.routingWeight", type: { name: "Number" } }, - sshPublicKey: { - serializedName: "properties.sshPublicKey", + connectionMode: { + serializedName: "properties.connectionMode", type: { name: "String" } }, - virtualApplianceNics: { - serializedName: "properties.virtualApplianceNics", - readOnly: true, + sharedKey: { + serializedName: "properties.sharedKey", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualApplianceNicProperties" - } - } + name: "String" } }, - virtualApplianceSites: { - serializedName: "properties.virtualApplianceSites", + connectionStatus: { + serializedName: "properties.connectionStatus", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } + name: "String" } }, - inboundSecurityRules: { - serializedName: "properties.inboundSecurityRules", + tunnelConnectionStatus: { + serializedName: "properties.tunnelConnectionStatus", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubResource" + className: "TunnelConnectionHealth" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", + egressBytesTransferred: { + serializedName: "properties.egressBytesTransferred", readOnly: true, type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const NetworkVirtualApplianceSku: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkVirtualApplianceSku", - modelProperties: { - ...Resource.type.modelProperties, - etag: { - serializedName: "etag", + }, + ingressBytesTransferred: { + serializedName: "properties.ingressBytesTransferred", readOnly: true, type: { - name: "String" + name: "Number" } }, - vendor: { - serializedName: "properties.vendor", - readOnly: true, + peer: { + serializedName: "properties.peer", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - availableVersions: { - serializedName: "properties.availableVersions", - readOnly: true, + enableBgp: { + serializedName: "properties.enableBgp", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - availableScaleUnits: { - serializedName: "properties.availableScaleUnits", + gatewayCustomBgpIpAddresses: { + serializedName: "properties.gatewayCustomBgpIpAddresses", type: { name: "Sequence", element: { type: { name: "Composite", - className: "NetworkVirtualApplianceSkuInstances" + className: "GatewayCustomBgpIpAddressIpConfiguration" } } } - } - } - } -}; - -export const NetworkWatcher: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkWatcher", - modelProperties: { - ...Resource.type.modelProperties, - etag: { - serializedName: "etag", - readOnly: true, - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const PublicIPPrefix: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PublicIPPrefix", - modelProperties: { - ...Resource.type.modelProperties, - extendedLocation: { - serializedName: "extendedLocation", - type: { - name: "Composite", - className: "ExtendedLocation" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "PublicIPPrefixSku" - } }, - etag: { - serializedName: "etag", - readOnly: true, + usePolicyBasedTrafficSelectors: { + serializedName: "properties.usePolicyBasedTrafficSelectors", type: { - name: "String" + name: "Boolean" } }, - zones: { - serializedName: "zones", + ipsecPolicies: { + serializedName: "properties.ipsecPolicies", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "IpsecPolicy" } } } }, - publicIPAddressVersion: { - serializedName: "properties.publicIPAddressVersion", - type: { - name: "String" - } - }, - ipTags: { - serializedName: "properties.ipTags", + trafficSelectorPolicies: { + serializedName: "properties.trafficSelectorPolicies", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IpTag" + className: "TrafficSelectorPolicy" } } } }, - prefixLength: { - serializedName: "properties.prefixLength", + resourceGuid: { + serializedName: "properties.resourceGuid", + readOnly: true, type: { - name: "Number" + name: "String" } }, - ipPrefix: { - serializedName: "properties.ipPrefix", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - publicIPAddresses: { - serializedName: "properties.publicIPAddresses", + expressRouteGatewayBypass: { + serializedName: "properties.expressRouteGatewayBypass", + type: { + name: "Boolean" + } + }, + enablePrivateLinkFastPath: { + serializedName: "properties.enablePrivateLinkFastPath", + type: { + name: "Boolean" + } + } + } + } +}; + +export const LocalNetworkGateway: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LocalNetworkGateway", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + serializedName: "etag", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ReferencedPublicIpAddress" - } - } + name: "String" } }, - loadBalancerFrontendIpConfiguration: { - serializedName: "properties.loadBalancerFrontendIpConfiguration", + localNetworkAddressSpace: { + serializedName: "properties.localNetworkAddressSpace", type: { name: "Composite", - className: "SubResource" + className: "AddressSpace" } }, - customIPPrefix: { - serializedName: "properties.customIPPrefix", + gatewayIpAddress: { + serializedName: "properties.gatewayIpAddress", + type: { + name: "String" + } + }, + fqdn: { + serializedName: "properties.fqdn", + type: { + name: "String" + } + }, + bgpSettings: { + serializedName: "properties.bgpSettings", type: { name: "Composite", - className: "SubResource" + className: "BgpSettings" } }, resourceGuid: { @@ -23877,22 +27485,15 @@ export const PublicIPPrefix: coreClient.CompositeMapper = { type: { name: "String" } - }, - natGateway: { - serializedName: "properties.natGateway", - type: { - name: "Composite", - className: "NatGateway" - } } } } }; -export const RouteFilter: coreClient.CompositeMapper = { +export const VirtualNetworkGatewayConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RouteFilter", + className: "VirtualNetworkGatewayConnection", modelProperties: { ...Resource.type.modelProperties, etag: { @@ -23902,187 +27503,185 @@ export const RouteFilter: coreClient.CompositeMapper = { name: "String" } }, - rules: { - serializedName: "properties.rules", + authorizationKey: { + serializedName: "properties.authorizationKey", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RouteFilterRule" - } - } + name: "String" } }, - peerings: { - serializedName: "properties.peerings", - readOnly: true, + virtualNetworkGateway1: { + serializedName: "properties.virtualNetworkGateway1", + type: { + name: "Composite", + className: "VirtualNetworkGateway" + } + }, + virtualNetworkGateway2: { + serializedName: "properties.virtualNetworkGateway2", + type: { + name: "Composite", + className: "VirtualNetworkGateway" + } + }, + localNetworkGateway2: { + serializedName: "properties.localNetworkGateway2", + type: { + name: "Composite", + className: "LocalNetworkGateway" + } + }, + ingressNatRules: { + serializedName: "properties.ingressNatRules", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ExpressRouteCircuitPeering" + className: "SubResource" } } } }, - ipv6Peerings: { - serializedName: "properties.ipv6Peerings", - readOnly: true, + egressNatRules: { + serializedName: "properties.egressNatRules", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ExpressRouteCircuitPeering" + className: "SubResource" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + connectionType: { + serializedName: "properties.connectionType", + required: true, type: { name: "String" } - } - } - } -}; - -export const SecurityPartnerProvider: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecurityPartnerProvider", - modelProperties: { - ...Resource.type.modelProperties, - etag: { - serializedName: "etag", - readOnly: true, + }, + connectionProtocol: { + serializedName: "properties.connectionProtocol", type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + routingWeight: { + serializedName: "properties.routingWeight", type: { - name: "String" + name: "Number" } }, - securityProviderName: { - serializedName: "properties.securityProviderName", + dpdTimeoutSeconds: { + serializedName: "properties.dpdTimeoutSeconds", type: { - name: "String" + name: "Number" } }, - connectionStatus: { - serializedName: "properties.connectionStatus", - readOnly: true, + connectionMode: { + serializedName: "properties.connectionMode", type: { name: "String" } }, - virtualHub: { - serializedName: "properties.virtualHub", + sharedKey: { + serializedName: "properties.sharedKey", type: { - name: "Composite", - className: "SubResource" + name: "String" } - } - } - } -}; - -export const BgpServiceCommunity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BgpServiceCommunity", - modelProperties: { - ...Resource.type.modelProperties, - serviceName: { - serializedName: "properties.serviceName", + }, + connectionStatus: { + serializedName: "properties.connectionStatus", + readOnly: true, type: { name: "String" } }, - bgpCommunities: { - serializedName: "properties.bgpCommunities", + tunnelConnectionStatus: { + serializedName: "properties.tunnelConnectionStatus", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "BGPCommunity" + className: "TunnelConnectionHealth" } } } - } - } - } -}; - -export const VirtualNetwork: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualNetwork", - modelProperties: { - ...Resource.type.modelProperties, - extendedLocation: { - serializedName: "extendedLocation", + }, + egressBytesTransferred: { + serializedName: "properties.egressBytesTransferred", + readOnly: true, type: { - name: "Composite", - className: "ExtendedLocation" + name: "Number" } }, - etag: { - serializedName: "etag", + ingressBytesTransferred: { + serializedName: "properties.ingressBytesTransferred", readOnly: true, type: { - name: "String" + name: "Number" + } + }, + peer: { + serializedName: "properties.peer", + type: { + name: "Composite", + className: "SubResource" + } + }, + enableBgp: { + serializedName: "properties.enableBgp", + type: { + name: "Boolean" } }, - addressSpace: { - serializedName: "properties.addressSpace", + gatewayCustomBgpIpAddresses: { + serializedName: "properties.gatewayCustomBgpIpAddresses", type: { - name: "Composite", - className: "AddressSpace" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayCustomBgpIpAddressIpConfiguration" + } + } } }, - dhcpOptions: { - serializedName: "properties.dhcpOptions", + useLocalAzureIpAddress: { + serializedName: "properties.useLocalAzureIpAddress", type: { - name: "Composite", - className: "DhcpOptions" + name: "Boolean" } }, - flowTimeoutInMinutes: { - serializedName: "properties.flowTimeoutInMinutes", + usePolicyBasedTrafficSelectors: { + serializedName: "properties.usePolicyBasedTrafficSelectors", type: { - name: "Number" + name: "Boolean" } }, - subnets: { - serializedName: "properties.subnets", + ipsecPolicies: { + serializedName: "properties.ipsecPolicies", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Subnet" + className: "IpsecPolicy" } } } }, - virtualNetworkPeerings: { - serializedName: "properties.virtualNetworkPeerings", + trafficSelectorPolicies: { + serializedName: "properties.trafficSelectorPolicies", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualNetworkPeering" + className: "TrafficSelectorPolicy" } } } @@ -24101,43 +27700,73 @@ export const VirtualNetwork: coreClient.CompositeMapper = { name: "String" } }, - enableDdosProtection: { - defaultValue: false, - serializedName: "properties.enableDdosProtection", + expressRouteGatewayBypass: { + serializedName: "properties.expressRouteGatewayBypass", type: { name: "Boolean" } }, - enableVmProtection: { - defaultValue: false, - serializedName: "properties.enableVmProtection", + enablePrivateLinkFastPath: { + serializedName: "properties.enablePrivateLinkFastPath", type: { name: "Boolean" } + } + } + } +}; + +export const VirtualRouter: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualRouter", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } }, - ddosProtectionPlan: { - serializedName: "properties.ddosProtectionPlan", + virtualRouterAsn: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 0 + }, + serializedName: "properties.virtualRouterAsn", type: { - name: "Composite", - className: "SubResource" + name: "Number" } }, - bgpCommunities: { - serializedName: "properties.bgpCommunities", + virtualRouterIps: { + serializedName: "properties.virtualRouterIps", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + hostedSubnet: { + serializedName: "properties.hostedSubnet", type: { name: "Composite", - className: "VirtualNetworkBgpCommunities" + className: "SubResource" } }, - encryption: { - serializedName: "properties.encryption", + hostedGateway: { + serializedName: "properties.hostedGateway", type: { name: "Composite", - className: "VirtualNetworkEncryption" + className: "SubResource" } }, - ipAllocations: { - serializedName: "properties.ipAllocations", + peerings: { + serializedName: "properties.peerings", + readOnly: true, type: { name: "Sequence", element: { @@ -24147,15 +27776,22 @@ export const VirtualNetwork: coreClient.CompositeMapper = { } } } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } } } } }; -export const NetworkIntentPolicy: coreClient.CompositeMapper = { +export const VirtualWAN: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkIntentPolicy", + className: "VirtualWAN", modelProperties: { ...Resource.type.modelProperties, etag: { @@ -24164,125 +27800,194 @@ export const NetworkIntentPolicy: coreClient.CompositeMapper = { type: { name: "String" } - } - } - } -}; - -export const VirtualNetworkGateway: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualNetworkGateway", - modelProperties: { - ...Resource.type.modelProperties, - extendedLocation: { - serializedName: "extendedLocation", + }, + disableVpnEncryption: { + serializedName: "properties.disableVpnEncryption", type: { - name: "Composite", - className: "ExtendedLocation" + name: "Boolean" } }, - etag: { - serializedName: "etag", + virtualHubs: { + serializedName: "properties.virtualHubs", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", + vpnSites: { + serializedName: "properties.vpnSites", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualNetworkGatewayIPConfiguration" + className: "SubResource" } } } }, - gatewayType: { - serializedName: "properties.gatewayType", + allowBranchToBranchTraffic: { + serializedName: "properties.allowBranchToBranchTraffic", + type: { + name: "Boolean" + } + }, + allowVnetToVnetTraffic: { + serializedName: "properties.allowVnetToVnetTraffic", + type: { + name: "Boolean" + } + }, + office365LocalBreakoutCategory: { + serializedName: "properties.office365LocalBreakoutCategory", + readOnly: true, type: { name: "String" } }, - vpnType: { - serializedName: "properties.vpnType", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - vpnGatewayGeneration: { - serializedName: "properties.vpnGatewayGeneration", + typePropertiesType: { + serializedName: "properties.type", + type: { + name: "String" + } + } + } + } +}; + +export const VpnSite: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VpnSite", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + serializedName: "etag", + readOnly: true, type: { name: "String" } }, - enableBgp: { - serializedName: "properties.enableBgp", + virtualWan: { + serializedName: "properties.virtualWan", type: { - name: "Boolean" + name: "Composite", + className: "SubResource" } }, - enablePrivateIpAddress: { - serializedName: "properties.enablePrivateIpAddress", + deviceProperties: { + serializedName: "properties.deviceProperties", type: { - name: "Boolean" + name: "Composite", + className: "DeviceProperties" } }, - active: { - serializedName: "properties.activeActive", + ipAddress: { + serializedName: "properties.ipAddress", type: { - name: "Boolean" + name: "String" } }, - disableIPSecReplayProtection: { - serializedName: "properties.disableIPSecReplayProtection", + siteKey: { + serializedName: "properties.siteKey", type: { - name: "Boolean" + name: "String" } }, - gatewayDefaultSite: { - serializedName: "properties.gatewayDefaultSite", + addressSpace: { + serializedName: "properties.addressSpace", type: { name: "Composite", - className: "SubResource" + className: "AddressSpace" } }, - sku: { - serializedName: "properties.sku", + bgpProperties: { + serializedName: "properties.bgpProperties", type: { name: "Composite", - className: "VirtualNetworkGatewaySku" + className: "BgpSettings" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + isSecuritySite: { + serializedName: "properties.isSecuritySite", + type: { + name: "Boolean" + } + }, + vpnSiteLinks: { + serializedName: "properties.vpnSiteLinks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VpnSiteLink" + } + } } }, - vpnClientConfiguration: { - serializedName: "properties.vpnClientConfiguration", + o365Policy: { + serializedName: "properties.o365Policy", type: { name: "Composite", - className: "VpnClientConfiguration" + className: "O365PolicyProperties" } - }, - bgpSettings: { - serializedName: "properties.bgpSettings", + } + } + } +}; + +export const P2SVpnGateway: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "P2SVpnGateway", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + serializedName: "etag", + readOnly: true, type: { - name: "Composite", - className: "BgpSettings" + name: "String" } }, - customRoutes: { - serializedName: "properties.customRoutes", + virtualHub: { + serializedName: "properties.virtualHub", type: { name: "Composite", - className: "AddressSpace" + className: "SubResource" } }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, + p2SConnectionConfigurations: { + serializedName: "properties.p2SConnectionConfigurations", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "P2SConnectionConfiguration" + } + } } }, provisioningState: { @@ -24292,39 +27997,39 @@ export const VirtualNetworkGateway: coreClient.CompositeMapper = { name: "String" } }, - enableDnsForwarding: { - serializedName: "properties.enableDnsForwarding", + vpnGatewayScaleUnit: { + serializedName: "properties.vpnGatewayScaleUnit", type: { - name: "Boolean" + name: "Number" } }, - inboundDnsForwardingEndpoint: { - serializedName: "properties.inboundDnsForwardingEndpoint", - readOnly: true, + vpnServerConfiguration: { + serializedName: "properties.vpnServerConfiguration", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - vNetExtendedLocationResourceId: { - serializedName: "properties.vNetExtendedLocationResourceId", + vpnClientConnectionHealth: { + serializedName: "properties.vpnClientConnectionHealth", type: { - name: "String" + name: "Composite", + className: "VpnClientConnectionHealth" } }, - natRules: { - serializedName: "properties.natRules", + customDnsServers: { + serializedName: "properties.customDnsServers", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "VirtualNetworkGatewayNatRule" + name: "String" } } } }, - enableBgpRouteTranslationForNat: { - serializedName: "properties.enableBgpRouteTranslationForNat", + isRoutingPreferenceInternet: { + serializedName: "properties.isRoutingPreferenceInternet", type: { name: "Boolean" } @@ -24333,10 +28038,10 @@ export const VirtualNetworkGateway: coreClient.CompositeMapper = { } }; -export const VirtualNetworkGatewayConnectionListEntity: coreClient.CompositeMapper = { +export const VpnServerConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkGatewayConnectionListEntity", + className: "VpnServerConfiguration", modelProperties: { ...Resource.type.modelProperties, etag: { @@ -24346,169 +28051,172 @@ export const VirtualNetworkGatewayConnectionListEntity: coreClient.CompositeMapp name: "String" } }, - authorizationKey: { - serializedName: "properties.authorizationKey", + namePropertiesName: { + serializedName: "properties.name", type: { name: "String" } }, - virtualNetworkGateway1: { - serializedName: "properties.virtualNetworkGateway1", + vpnProtocols: { + serializedName: "properties.vpnProtocols", type: { - name: "Composite", - className: "VirtualNetworkConnectionGatewayReference" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - virtualNetworkGateway2: { - serializedName: "properties.virtualNetworkGateway2", + vpnAuthenticationTypes: { + serializedName: "properties.vpnAuthenticationTypes", type: { - name: "Composite", - className: "VirtualNetworkConnectionGatewayReference" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - localNetworkGateway2: { - serializedName: "properties.localNetworkGateway2", + vpnClientRootCertificates: { + serializedName: "properties.vpnClientRootCertificates", type: { - name: "Composite", - className: "VirtualNetworkConnectionGatewayReference" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VpnServerConfigVpnClientRootCertificate" + } + } } }, - connectionType: { - serializedName: "properties.connectionType", - required: true, + vpnClientRevokedCertificates: { + serializedName: "properties.vpnClientRevokedCertificates", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VpnServerConfigVpnClientRevokedCertificate" + } + } } }, - connectionProtocol: { - serializedName: "properties.connectionProtocol", + radiusServerRootCertificates: { + serializedName: "properties.radiusServerRootCertificates", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VpnServerConfigRadiusServerRootCertificate" + } + } } }, - routingWeight: { - serializedName: "properties.routingWeight", + radiusClientRootCertificates: { + serializedName: "properties.radiusClientRootCertificates", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VpnServerConfigRadiusClientRootCertificate" + } + } } }, - connectionMode: { - serializedName: "properties.connectionMode", + vpnClientIpsecPolicies: { + serializedName: "properties.vpnClientIpsecPolicies", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpsecPolicy" + } + } } }, - sharedKey: { - serializedName: "properties.sharedKey", + radiusServerAddress: { + serializedName: "properties.radiusServerAddress", type: { name: "String" } }, - connectionStatus: { - serializedName: "properties.connectionStatus", - readOnly: true, + radiusServerSecret: { + serializedName: "properties.radiusServerSecret", type: { name: "String" } }, - tunnelConnectionStatus: { - serializedName: "properties.tunnelConnectionStatus", - readOnly: true, + radiusServers: { + serializedName: "properties.radiusServers", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TunnelConnectionHealth" + className: "RadiusServer" } } } }, - egressBytesTransferred: { - serializedName: "properties.egressBytesTransferred", - readOnly: true, - type: { - name: "Number" - } - }, - ingressBytesTransferred: { - serializedName: "properties.ingressBytesTransferred", - readOnly: true, - type: { - name: "Number" - } - }, - peer: { - serializedName: "properties.peer", + aadAuthenticationParameters: { + serializedName: "properties.aadAuthenticationParameters", type: { name: "Composite", - className: "SubResource" - } - }, - enableBgp: { - serializedName: "properties.enableBgp", - type: { - name: "Boolean" + className: "AadAuthenticationParameters" } }, - usePolicyBasedTrafficSelectors: { - serializedName: "properties.usePolicyBasedTrafficSelectors", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - ipsecPolicies: { - serializedName: "properties.ipsecPolicies", + p2SVpnGateways: { + serializedName: "properties.p2SVpnGateways", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "IpsecPolicy" + className: "P2SVpnGateway" } } } }, - trafficSelectorPolicies: { - serializedName: "properties.trafficSelectorPolicies", + configurationPolicyGroups: { + serializedName: "properties.configurationPolicyGroups", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TrafficSelectorPolicy" + className: "VpnServerConfigurationPolicyGroup" } } } }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", + etagPropertiesEtag: { + serializedName: "properties.etag", readOnly: true, type: { name: "String" } - }, - expressRouteGatewayBypass: { - serializedName: "properties.expressRouteGatewayBypass", - type: { - name: "Boolean" - } } } } }; -export const LocalNetworkGateway: coreClient.CompositeMapper = { +export const VirtualHub: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LocalNetworkGateway", + className: "VirtualHub", modelProperties: { ...Resource.type.modelProperties, etag: { @@ -24518,92 +28226,109 @@ export const LocalNetworkGateway: coreClient.CompositeMapper = { name: "String" } }, - localNetworkAddressSpace: { - serializedName: "properties.localNetworkAddressSpace", + kind: { + serializedName: "kind", + readOnly: true, + type: { + name: "String" + } + }, + virtualWan: { + serializedName: "properties.virtualWan", type: { name: "Composite", - className: "AddressSpace" + className: "SubResource" } }, - gatewayIpAddress: { - serializedName: "properties.gatewayIpAddress", + vpnGateway: { + serializedName: "properties.vpnGateway", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - fqdn: { - serializedName: "properties.fqdn", + p2SVpnGateway: { + serializedName: "properties.p2SVpnGateway", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - bgpSettings: { - serializedName: "properties.bgpSettings", + expressRouteGateway: { + serializedName: "properties.expressRouteGateway", type: { name: "Composite", - className: "BgpSettings" + className: "SubResource" } }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, + azureFirewall: { + serializedName: "properties.azureFirewall", type: { - name: "String" + name: "Composite", + className: "SubResource" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + securityPartnerProvider: { + serializedName: "properties.securityPartnerProvider", + type: { + name: "Composite", + className: "SubResource" + } + }, + addressPrefix: { + serializedName: "properties.addressPrefix", type: { name: "String" } - } - } - } -}; - -export const VirtualNetworkGatewayConnection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualNetworkGatewayConnection", - modelProperties: { - ...Resource.type.modelProperties, - etag: { - serializedName: "etag", + }, + routeTable: { + serializedName: "properties.routeTable", + type: { + name: "Composite", + className: "VirtualHubRouteTable" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - authorizationKey: { - serializedName: "properties.authorizationKey", + securityProviderName: { + serializedName: "properties.securityProviderName", type: { name: "String" } }, - virtualNetworkGateway1: { - serializedName: "properties.virtualNetworkGateway1", + virtualHubRouteTableV2S: { + serializedName: "properties.virtualHubRouteTableV2s", type: { - name: "Composite", - className: "VirtualNetworkGateway" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualHubRouteTableV2" + } + } } }, - virtualNetworkGateway2: { - serializedName: "properties.virtualNetworkGateway2", + sku: { + serializedName: "properties.sku", type: { - name: "Composite", - className: "VirtualNetworkGateway" + name: "String" } }, - localNetworkGateway2: { - serializedName: "properties.localNetworkGateway2", + routingState: { + serializedName: "properties.routingState", + readOnly: true, type: { - name: "Composite", - className: "LocalNetworkGateway" + name: "String" } }, - ingressNatRules: { - serializedName: "properties.ingressNatRules", + bgpConnections: { + serializedName: "properties.bgpConnections", + readOnly: true, type: { name: "Sequence", element: { @@ -24614,8 +28339,9 @@ export const VirtualNetworkGatewayConnection: coreClient.CompositeMapper = { } } }, - egressNatRules: { - serializedName: "properties.egressNatRules", + ipConfigurations: { + serializedName: "properties.ipConfigurations", + readOnly: true, type: { name: "Sequence", element: { @@ -24626,142 +28352,210 @@ export const VirtualNetworkGatewayConnection: coreClient.CompositeMapper = { } } }, - connectionType: { - serializedName: "properties.connectionType", - required: true, + routeMaps: { + serializedName: "properties.routeMaps", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } }, - connectionProtocol: { - serializedName: "properties.connectionProtocol", + virtualRouterAsn: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 0 + }, + serializedName: "properties.virtualRouterAsn", type: { - name: "String" + name: "Number" } }, - routingWeight: { - serializedName: "properties.routingWeight", + virtualRouterIps: { + serializedName: "properties.virtualRouterIps", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - dpdTimeoutSeconds: { - serializedName: "properties.dpdTimeoutSeconds", + allowBranchToBranchTraffic: { + serializedName: "properties.allowBranchToBranchTraffic", type: { - name: "Number" + name: "Boolean" } }, - connectionMode: { - serializedName: "properties.connectionMode", + preferredRoutingGateway: { + serializedName: "properties.preferredRoutingGateway", type: { name: "String" } }, - sharedKey: { - serializedName: "properties.sharedKey", + hubRoutingPreference: { + serializedName: "properties.hubRoutingPreference", type: { name: "String" } }, - connectionStatus: { - serializedName: "properties.connectionStatus", + virtualRouterAutoScaleConfiguration: { + serializedName: "properties.virtualRouterAutoScaleConfiguration", + type: { + name: "Composite", + className: "VirtualRouterAutoScaleConfiguration" + } + } + } + } +}; + +export const VpnGateway: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VpnGateway", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + serializedName: "etag", readOnly: true, type: { name: "String" } }, - tunnelConnectionStatus: { - serializedName: "properties.tunnelConnectionStatus", - readOnly: true, + virtualHub: { + serializedName: "properties.virtualHub", + type: { + name: "Composite", + className: "SubResource" + } + }, + connections: { + serializedName: "properties.connections", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TunnelConnectionHealth" + className: "VpnConnection" } } } }, - egressBytesTransferred: { - serializedName: "properties.egressBytesTransferred", - readOnly: true, + bgpSettings: { + serializedName: "properties.bgpSettings", type: { - name: "Number" + name: "Composite", + className: "BgpSettings" } }, - ingressBytesTransferred: { - serializedName: "properties.ingressBytesTransferred", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, + type: { + name: "String" + } + }, + vpnGatewayScaleUnit: { + serializedName: "properties.vpnGatewayScaleUnit", type: { name: "Number" } }, - peer: { - serializedName: "properties.peer", + ipConfigurations: { + serializedName: "properties.ipConfigurations", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VpnGatewayIpConfiguration" + } + } } }, - enableBgp: { - serializedName: "properties.enableBgp", + enableBgpRouteTranslationForNat: { + serializedName: "properties.enableBgpRouteTranslationForNat", type: { name: "Boolean" } }, - useLocalAzureIpAddress: { - serializedName: "properties.useLocalAzureIpAddress", + isRoutingPreferenceInternet: { + serializedName: "properties.isRoutingPreferenceInternet", type: { name: "Boolean" } }, - usePolicyBasedTrafficSelectors: { - serializedName: "properties.usePolicyBasedTrafficSelectors", + natRules: { + serializedName: "properties.natRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VpnGatewayNatRule" + } + } + } + } + } + } +}; + +export const ExpressRouteGateway: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExpressRouteGateway", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + serializedName: "etag", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - ipsecPolicies: { - serializedName: "properties.ipsecPolicies", + autoScaleConfiguration: { + serializedName: "properties.autoScaleConfiguration", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IpsecPolicy" - } - } + name: "Composite", + className: "ExpressRouteGatewayPropertiesAutoScaleConfiguration" } }, - trafficSelectorPolicies: { - serializedName: "properties.trafficSelectorPolicies", + expressRouteConnections: { + serializedName: "properties.expressRouteConnections", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TrafficSelectorPolicy" + className: "ExpressRouteConnection" } } } }, - resourceGuid: { - serializedName: "properties.resourceGuid", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + virtualHub: { + serializedName: "properties.virtualHub", type: { - name: "String" + name: "Composite", + className: "VirtualHubId" } }, - expressRouteGatewayBypass: { - serializedName: "properties.expressRouteGatewayBypass", + allowNonVirtualWanTraffic: { + serializedName: "properties.allowNonVirtualWanTraffic", type: { name: "Boolean" } @@ -24770,10 +28564,10 @@ export const VirtualNetworkGatewayConnection: coreClient.CompositeMapper = { } }; -export const VirtualRouter: coreClient.CompositeMapper = { +export const WebApplicationFirewallPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualRouter", + className: "WebApplicationFirewallPolicy", modelProperties: { ...Resource.type.modelProperties, etag: { @@ -24783,50 +28577,34 @@ export const VirtualRouter: coreClient.CompositeMapper = { name: "String" } }, - virtualRouterAsn: { - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 - }, - serializedName: "properties.virtualRouterAsn", + policySettings: { + serializedName: "properties.policySettings", type: { - name: "Number" + name: "Composite", + className: "PolicySettings" } }, - virtualRouterIps: { - serializedName: "properties.virtualRouterIps", + customRules: { + serializedName: "properties.customRules", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "WebApplicationFirewallCustomRule" } } } }, - hostedSubnet: { - serializedName: "properties.hostedSubnet", - type: { - name: "Composite", - className: "SubResource" - } - }, - hostedGateway: { - serializedName: "properties.hostedGateway", - type: { - name: "Composite", - className: "SubResource" - } - }, - peerings: { - serializedName: "properties.peerings", + applicationGateways: { + serializedName: "properties.applicationGateways", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubResource" + className: "ApplicationGateway" } } } @@ -24837,32 +28615,23 @@ export const VirtualRouter: coreClient.CompositeMapper = { type: { name: "String" } - } - } - } -}; - -export const VirtualWAN: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualWAN", - modelProperties: { - ...Resource.type.modelProperties, - etag: { - serializedName: "etag", + }, + resourceState: { + serializedName: "properties.resourceState", readOnly: true, type: { name: "String" } }, - disableVpnEncryption: { - serializedName: "properties.disableVpnEncryption", + managedRules: { + serializedName: "properties.managedRules", type: { - name: "Boolean" + name: "Composite", + className: "ManagedRulesDefinition" } }, - virtualHubs: { - serializedName: "properties.virtualHubs", + httpListeners: { + serializedName: "properties.httpListeners", readOnly: true, type: { name: "Sequence", @@ -24874,8 +28643,8 @@ export const VirtualWAN: coreClient.CompositeMapper = { } } }, - vpnSites: { - serializedName: "properties.vpnSites", + pathBasedRules: { + serializedName: "properties.pathBasedRules", readOnly: true, type: { name: "Sequence", @@ -24886,193 +28655,178 @@ export const VirtualWAN: coreClient.CompositeMapper = { } } } - }, - allowBranchToBranchTraffic: { - serializedName: "properties.allowBranchToBranchTraffic", - type: { - name: "Boolean" - } - }, - allowVnetToVnetTraffic: { - serializedName: "properties.allowVnetToVnetTraffic", - type: { - name: "Boolean" - } - }, - office365LocalBreakoutCategory: { - serializedName: "properties.office365LocalBreakoutCategory", - readOnly: true, - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - typePropertiesType: { - serializedName: "properties.type", - type: { - name: "String" - } } } } }; -export const VpnSite: coreClient.CompositeMapper = { +export const PrivateLinkServicePropertiesVisibility: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnSite", + className: "PrivateLinkServicePropertiesVisibility", modelProperties: { - ...Resource.type.modelProperties, - etag: { - serializedName: "etag", - readOnly: true, - type: { - name: "String" - } - }, - virtualWan: { - serializedName: "properties.virtualWan", - type: { - name: "Composite", - className: "SubResource" - } - }, - deviceProperties: { - serializedName: "properties.deviceProperties", + ...ResourceSet.type.modelProperties + } + } +}; + +export const PrivateLinkServicePropertiesAutoApproval: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkServicePropertiesAutoApproval", + modelProperties: { + ...ResourceSet.type.modelProperties + } + } +}; + +export const FirewallPolicyNatRuleCollection: coreClient.CompositeMapper = { + serializedName: "FirewallPolicyNatRuleCollection", + type: { + name: "Composite", + className: "FirewallPolicyNatRuleCollection", + uberParent: "FirewallPolicyRuleCollection", + polymorphicDiscriminator: + FirewallPolicyRuleCollection.type.polymorphicDiscriminator, + modelProperties: { + ...FirewallPolicyRuleCollection.type.modelProperties, + action: { + serializedName: "action", type: { name: "Composite", - className: "DeviceProperties" - } - }, - ipAddress: { - serializedName: "properties.ipAddress", - type: { - name: "String" - } - }, - siteKey: { - serializedName: "properties.siteKey", - type: { - name: "String" + className: "FirewallPolicyNatRuleCollectionAction" } }, - addressSpace: { - serializedName: "properties.addressSpace", + rules: { + serializedName: "rules", type: { - name: "Composite", - className: "AddressSpace" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FirewallPolicyRule" + } + } } - }, - bgpProperties: { - serializedName: "properties.bgpProperties", + } + } + } +}; + +export const FirewallPolicyFilterRuleCollection: coreClient.CompositeMapper = { + serializedName: "FirewallPolicyFilterRuleCollection", + type: { + name: "Composite", + className: "FirewallPolicyFilterRuleCollection", + uberParent: "FirewallPolicyRuleCollection", + polymorphicDiscriminator: + FirewallPolicyRuleCollection.type.polymorphicDiscriminator, + modelProperties: { + ...FirewallPolicyRuleCollection.type.modelProperties, + action: { + serializedName: "action", type: { name: "Composite", - className: "BgpSettings" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - isSecuritySite: { - serializedName: "properties.isSecuritySite", - type: { - name: "Boolean" + className: "FirewallPolicyFilterRuleCollectionAction" } }, - vpnSiteLinks: { - serializedName: "properties.vpnSiteLinks", + rules: { + serializedName: "rules", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VpnSiteLink" + className: "FirewallPolicyRule" } } } + } + } + } +}; + +export const ActiveConnectivityConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ActiveConnectivityConfiguration", + modelProperties: { + ...EffectiveConnectivityConfiguration.type.modelProperties, + commitTime: { + serializedName: "commitTime", + type: { + name: "DateTime" + } }, - o365Policy: { - serializedName: "properties.o365Policy", + region: { + serializedName: "region", type: { - name: "Composite", - className: "O365PolicyProperties" + name: "String" } } } } }; -export const P2SVpnGateway: coreClient.CompositeMapper = { +export const ActiveSecurityAdminRule: coreClient.CompositeMapper = { + serializedName: "Custom", type: { name: "Composite", - className: "P2SVpnGateway", + className: "ActiveSecurityAdminRule", + uberParent: "ActiveBaseSecurityAdminRule", + polymorphicDiscriminator: + ActiveBaseSecurityAdminRule.type.polymorphicDiscriminator, modelProperties: { - ...Resource.type.modelProperties, - etag: { - serializedName: "etag", - readOnly: true, + ...ActiveBaseSecurityAdminRule.type.modelProperties, + description: { + serializedName: "properties.description", type: { name: "String" } }, - virtualHub: { - serializedName: "properties.virtualHub", + protocol: { + serializedName: "properties.protocol", type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - p2SConnectionConfigurations: { - serializedName: "properties.p2SConnectionConfigurations", + sources: { + serializedName: "properties.sources", type: { name: "Sequence", element: { type: { name: "Composite", - className: "P2SConnectionConfiguration" + className: "AddressPrefixItem" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - vpnGatewayScaleUnit: { - serializedName: "properties.vpnGatewayScaleUnit", - type: { - name: "Number" - } - }, - vpnServerConfiguration: { - serializedName: "properties.vpnServerConfiguration", + destinations: { + serializedName: "properties.destinations", type: { - name: "Composite", - className: "SubResource" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AddressPrefixItem" + } + } } }, - vpnClientConnectionHealth: { - serializedName: "properties.vpnClientConnectionHealth", + sourcePortRanges: { + serializedName: "properties.sourcePortRanges", type: { - name: "Composite", - className: "VpnClientConnectionHealth" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - customDnsServers: { - serializedName: "properties.customDnsServers", + destinationPortRanges: { + serializedName: "properties.destinationPortRanges", type: { name: "Sequence", element: { @@ -25082,252 +28836,396 @@ export const P2SVpnGateway: coreClient.CompositeMapper = { } } }, - isRoutingPreferenceInternet: { - serializedName: "properties.isRoutingPreferenceInternet", + access: { + serializedName: "properties.access", type: { - name: "Boolean" + name: "String" + } + }, + priority: { + constraints: { + InclusiveMaximum: 4096, + InclusiveMinimum: 1 + }, + serializedName: "properties.priority", + type: { + name: "Number" + } + }, + direction: { + serializedName: "properties.direction", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" } } } } }; -export const VpnServerConfiguration: coreClient.CompositeMapper = { +export const ActiveDefaultSecurityAdminRule: coreClient.CompositeMapper = { + serializedName: "Default", type: { name: "Composite", - className: "VpnServerConfiguration", + className: "ActiveDefaultSecurityAdminRule", + uberParent: "ActiveBaseSecurityAdminRule", + polymorphicDiscriminator: + ActiveBaseSecurityAdminRule.type.polymorphicDiscriminator, modelProperties: { - ...Resource.type.modelProperties, - etag: { - serializedName: "etag", + ...ActiveBaseSecurityAdminRule.type.modelProperties, + description: { + serializedName: "properties.description", readOnly: true, type: { name: "String" } }, - namePropertiesName: { - serializedName: "properties.name", + flag: { + serializedName: "properties.flag", type: { name: "String" } }, - vpnProtocols: { - serializedName: "properties.vpnProtocols", + protocol: { + serializedName: "properties.protocol", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - vpnAuthenticationTypes: { - serializedName: "properties.vpnAuthenticationTypes", + sources: { + serializedName: "properties.sources", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "AddressPrefixItem" } } } }, - vpnClientRootCertificates: { - serializedName: "properties.vpnClientRootCertificates", + destinations: { + serializedName: "properties.destinations", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "VpnServerConfigVpnClientRootCertificate" + className: "AddressPrefixItem" } } } }, - vpnClientRevokedCertificates: { - serializedName: "properties.vpnClientRevokedCertificates", + sourcePortRanges: { + serializedName: "properties.sourcePortRanges", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "VpnServerConfigVpnClientRevokedCertificate" + name: "String" } } } }, - radiusServerRootCertificates: { - serializedName: "properties.radiusServerRootCertificates", + destinationPortRanges: { + serializedName: "properties.destinationPortRanges", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "VpnServerConfigRadiusServerRootCertificate" + name: "String" } } } }, - radiusClientRootCertificates: { - serializedName: "properties.radiusClientRootCertificates", + access: { + serializedName: "properties.access", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VpnServerConfigRadiusClientRootCertificate" - } - } + name: "String" } }, - vpnClientIpsecPolicies: { - serializedName: "properties.vpnClientIpsecPolicies", + priority: { + serializedName: "properties.priority", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IpsecPolicy" - } - } + name: "Number" } }, - radiusServerAddress: { - serializedName: "properties.radiusServerAddress", + direction: { + serializedName: "properties.direction", + readOnly: true, type: { name: "String" } }, - radiusServerSecret: { - serializedName: "properties.radiusServerSecret", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } + } + } + } +}; + +export const NetworkManagerConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkManagerConnection", + modelProperties: { + ...ChildResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } }, - radiusServers: { - serializedName: "properties.radiusServers", + networkManagerId: { + serializedName: "properties.networkManagerId", + type: { + name: "String" + } + }, + connectionState: { + serializedName: "properties.connectionState", + readOnly: true, + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + +export const ConnectivityConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConnectivityConfiguration", + modelProperties: { + ...ChildResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + connectivityTopology: { + serializedName: "properties.connectivityTopology", + type: { + name: "String" + } + }, + hubs: { + serializedName: "properties.hubs", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RadiusServer" + className: "Hub" } } } - }, - aadAuthenticationParameters: { - serializedName: "properties.aadAuthenticationParameters", - type: { - name: "Composite", - className: "AadAuthenticationParameters" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + }, + isGlobal: { + serializedName: "properties.isGlobal", type: { name: "String" } }, - p2SVpnGateways: { - serializedName: "properties.p2SVpnGateways", - readOnly: true, + appliesToGroups: { + serializedName: "properties.appliesToGroups", type: { name: "Sequence", element: { type: { name: "Composite", - className: "P2SVpnGateway" + className: "ConnectivityGroupItem" } } } }, - etagPropertiesEtag: { - serializedName: "properties.etag", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } + }, + deleteExistingPeering: { + serializedName: "properties.deleteExistingPeering", + type: { + name: "String" + } } } } }; -export const VirtualHub: coreClient.CompositeMapper = { +export const NetworkGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualHub", + className: "NetworkGroup", modelProperties: { - ...Resource.type.modelProperties, - etag: { - serializedName: "etag", - readOnly: true, + ...ChildResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + description: { + serializedName: "properties.description", type: { name: "String" } }, - kind: { - serializedName: "kind", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } - }, - virtualWan: { - serializedName: "properties.virtualWan", + } + } + } +}; + +export const StaticMember: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StaticMember", + modelProperties: { + ...ChildResource.type.modelProperties, + systemData: { + serializedName: "systemData", type: { name: "Composite", - className: "SubResource" + className: "SystemData" } }, - vpnGateway: { - serializedName: "properties.vpnGateway", + resourceId: { + serializedName: "properties.resourceId", type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - p2SVpnGateway: { - serializedName: "properties.p2SVpnGateway", + region: { + serializedName: "properties.region", + readOnly: true, type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - expressRouteGateway: { - serializedName: "properties.expressRouteGateway", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ScopeConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScopeConnection", + modelProperties: { + ...ChildResource.type.modelProperties, + systemData: { + serializedName: "systemData", type: { name: "Composite", - className: "SubResource" + className: "SystemData" } }, - azureFirewall: { - serializedName: "properties.azureFirewall", + tenantId: { + serializedName: "properties.tenantId", type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - securityPartnerProvider: { - serializedName: "properties.securityPartnerProvider", + resourceId: { + serializedName: "properties.resourceId", type: { - name: "Composite", - className: "SubResource" + name: "String" } }, - addressPrefix: { - serializedName: "properties.addressPrefix", + connectionState: { + serializedName: "properties.connectionState", + readOnly: true, type: { name: "String" } }, - routeTable: { - serializedName: "properties.routeTable", + description: { + serializedName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + +export const SecurityAdminConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityAdminConfiguration", + modelProperties: { + ...ChildResource.type.modelProperties, + systemData: { + serializedName: "systemData", type: { name: "Composite", - className: "VirtualHubRouteTable" + className: "SystemData" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + applyOnNetworkIntentPolicyBasedServices: { + serializedName: "properties.applyOnNetworkIntentPolicyBasedServices", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, provisioningState: { @@ -25336,76 +29234,142 @@ export const VirtualHub: coreClient.CompositeMapper = { type: { name: "String" } + } + } + } +}; + +export const AdminRuleCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AdminRuleCollection", + modelProperties: { + ...ChildResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } }, - securityProviderName: { - serializedName: "properties.securityProviderName", + description: { + serializedName: "properties.description", type: { name: "String" } }, - virtualHubRouteTableV2S: { - serializedName: "properties.virtualHubRouteTableV2s", + appliesToGroups: { + serializedName: "properties.appliesToGroups", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualHubRouteTableV2" + className: "NetworkManagerSecurityGroupItem" } } } }, - sku: { - serializedName: "properties.sku", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const BaseAdminRule: coreClient.CompositeMapper = { + serializedName: "BaseAdminRule", + type: { + name: "Composite", + className: "BaseAdminRule", + uberParent: "ChildResource", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + modelProperties: { + ...ChildResource.type.modelProperties, + kind: { + serializedName: "kind", + required: true, type: { name: "String" } }, - routingState: { - serializedName: "properties.routingState", - readOnly: true, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const EffectiveSecurityAdminRule: coreClient.CompositeMapper = { + serializedName: "Custom", + type: { + name: "Composite", + className: "EffectiveSecurityAdminRule", + uberParent: "EffectiveBaseSecurityAdminRule", + polymorphicDiscriminator: + EffectiveBaseSecurityAdminRule.type.polymorphicDiscriminator, + modelProperties: { + ...EffectiveBaseSecurityAdminRule.type.modelProperties, + description: { + serializedName: "properties.description", type: { name: "String" } }, - bgpConnections: { - serializedName: "properties.bgpConnections", - readOnly: true, + protocol: { + serializedName: "properties.protocol", + type: { + name: "String" + } + }, + sources: { + serializedName: "properties.sources", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubResource" + className: "AddressPrefixItem" } } } }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", - readOnly: true, + destinations: { + serializedName: "properties.destinations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubResource" + className: "AddressPrefixItem" } } } }, - virtualRouterAsn: { - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 - }, - serializedName: "properties.virtualRouterAsn", + sourcePortRanges: { + serializedName: "properties.sourcePortRanges", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - virtualRouterIps: { - serializedName: "properties.virtualRouterIps", + destinationPortRanges: { + serializedName: "properties.destinationPortRanges", type: { name: "Sequence", element: { @@ -25415,14 +29379,31 @@ export const VirtualHub: coreClient.CompositeMapper = { } } }, - allowBranchToBranchTraffic: { - serializedName: "properties.allowBranchToBranchTraffic", + access: { + serializedName: "properties.access", type: { - name: "Boolean" + name: "String" } }, - preferredRoutingGateway: { - serializedName: "properties.preferredRoutingGateway", + priority: { + constraints: { + InclusiveMaximum: 4096, + InclusiveMinimum: 1 + }, + serializedName: "properties.priority", + type: { + name: "Number" + } + }, + direction: { + serializedName: "properties.direction", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } @@ -25431,291 +29412,273 @@ export const VirtualHub: coreClient.CompositeMapper = { } }; -export const VpnGateway: coreClient.CompositeMapper = { +export const EffectiveDefaultSecurityAdminRule: coreClient.CompositeMapper = { + serializedName: "Default", type: { name: "Composite", - className: "VpnGateway", + className: "EffectiveDefaultSecurityAdminRule", + uberParent: "EffectiveBaseSecurityAdminRule", + polymorphicDiscriminator: + EffectiveBaseSecurityAdminRule.type.polymorphicDiscriminator, modelProperties: { - ...Resource.type.modelProperties, - etag: { - serializedName: "etag", + ...EffectiveBaseSecurityAdminRule.type.modelProperties, + description: { + serializedName: "properties.description", readOnly: true, type: { name: "String" } }, - virtualHub: { - serializedName: "properties.virtualHub", + flag: { + serializedName: "properties.flag", type: { - name: "Composite", - className: "SubResource" + name: "String" + } + }, + protocol: { + serializedName: "properties.protocol", + readOnly: true, + type: { + name: "String" } }, - connections: { - serializedName: "properties.connections", + sources: { + serializedName: "properties.sources", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "VpnConnection" + className: "AddressPrefixItem" } } } }, - bgpSettings: { - serializedName: "properties.bgpSettings", - type: { - name: "Composite", - className: "BgpSettings" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", + destinations: { + serializedName: "properties.destinations", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AddressPrefixItem" + } + } } }, - vpnGatewayScaleUnit: { - serializedName: "properties.vpnGatewayScaleUnit", + sourcePortRanges: { + serializedName: "properties.sourcePortRanges", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", + destinationPortRanges: { + serializedName: "properties.destinationPortRanges", readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "VpnGatewayIpConfiguration" + name: "String" } } } }, - enableBgpRouteTranslationForNat: { - serializedName: "properties.enableBgpRouteTranslationForNat", + access: { + serializedName: "properties.access", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - isRoutingPreferenceInternet: { - serializedName: "properties.isRoutingPreferenceInternet", + priority: { + serializedName: "properties.priority", + readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - natRules: { - serializedName: "properties.natRules", + direction: { + serializedName: "properties.direction", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VpnGatewayNatRule" - } - } + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" } } } } }; -export const ExpressRouteGateway: coreClient.CompositeMapper = { +export const PacketCaptureResultProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExpressRouteGateway", + className: "PacketCaptureResultProperties", modelProperties: { - ...Resource.type.modelProperties, - etag: { - serializedName: "etag", + ...PacketCaptureParameters.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { name: "String" } - }, - autoScaleConfiguration: { - serializedName: "properties.autoScaleConfiguration", + } + } + } +}; + +export const ConnectionMonitorResultProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConnectionMonitorResultProperties", + modelProperties: { + ...ConnectionMonitorParameters.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Composite", - className: "ExpressRouteGatewayPropertiesAutoScaleConfiguration" + name: "String" } }, - expressRouteConnections: { - serializedName: "properties.expressRouteConnections", + startTime: { + serializedName: "startTime", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExpressRouteConnection" - } - } + name: "DateTime" } }, - provisioningState: { - serializedName: "properties.provisioningState", + monitoringStatus: { + serializedName: "monitoringStatus", readOnly: true, type: { name: "String" } }, - virtualHub: { - serializedName: "properties.virtualHub", + connectionMonitorType: { + serializedName: "connectionMonitorType", + readOnly: true, type: { - name: "Composite", - className: "VirtualHubId" + name: "String" } } } } }; -export const WebApplicationFirewallPolicy: coreClient.CompositeMapper = { +export const ApplicationRule: coreClient.CompositeMapper = { + serializedName: "ApplicationRule", type: { name: "Composite", - className: "WebApplicationFirewallPolicy", + className: "ApplicationRule", + uberParent: "FirewallPolicyRule", + polymorphicDiscriminator: FirewallPolicyRule.type.polymorphicDiscriminator, modelProperties: { - ...Resource.type.modelProperties, - etag: { - serializedName: "etag", - readOnly: true, - type: { - name: "String" - } - }, - policySettings: { - serializedName: "properties.policySettings", + ...FirewallPolicyRule.type.modelProperties, + sourceAddresses: { + serializedName: "sourceAddresses", type: { - name: "Composite", - className: "PolicySettings" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - customRules: { - serializedName: "properties.customRules", + destinationAddresses: { + serializedName: "destinationAddresses", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "WebApplicationFirewallCustomRule" + name: "String" } } } }, - applicationGateways: { - serializedName: "properties.applicationGateways", - readOnly: true, + protocols: { + serializedName: "protocols", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationGateway" + className: "FirewallPolicyRuleApplicationProtocol" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - resourceState: { - serializedName: "properties.resourceState", - readOnly: true, + targetFqdns: { + serializedName: "targetFqdns", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - managedRules: { - serializedName: "properties.managedRules", + targetUrls: { + serializedName: "targetUrls", type: { - name: "Composite", - className: "ManagedRulesDefinition" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - httpListeners: { - serializedName: "properties.httpListeners", - readOnly: true, + fqdnTags: { + serializedName: "fqdnTags", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SubResource" + name: "String" } } } }, - pathBasedRules: { - serializedName: "properties.pathBasedRules", - readOnly: true, + sourceIpGroups: { + serializedName: "sourceIpGroups", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SubResource" + name: "String" } } } - } - } - } -}; - -export const PrivateLinkServicePropertiesVisibility: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkServicePropertiesVisibility", - modelProperties: { - ...ResourceSet.type.modelProperties - } - } -}; - -export const PrivateLinkServicePropertiesAutoApproval: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkServicePropertiesAutoApproval", - modelProperties: { - ...ResourceSet.type.modelProperties - } - } -}; - -export const FirewallPolicyNatRuleCollection: coreClient.CompositeMapper = { - serializedName: "FirewallPolicyNatRuleCollection", - type: { - name: "Composite", - className: "FirewallPolicyNatRuleCollection", - uberParent: "FirewallPolicyRuleCollection", - polymorphicDiscriminator: - FirewallPolicyRuleCollection.type.polymorphicDiscriminator, - modelProperties: { - ...FirewallPolicyRuleCollection.type.modelProperties, - action: { - serializedName: "action", + }, + terminateTLS: { + serializedName: "terminateTLS", type: { - name: "Composite", - className: "FirewallPolicyNatRuleCollectionAction" + name: "Boolean" } }, - rules: { - serializedName: "rules", + webCategories: { + serializedName: "webCategories", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "FirewallPolicyRule" + name: "String" } } } @@ -25724,86 +29687,84 @@ export const FirewallPolicyNatRuleCollection: coreClient.CompositeMapper = { } }; -export const FirewallPolicyFilterRuleCollection: coreClient.CompositeMapper = { - serializedName: "FirewallPolicyFilterRuleCollection", +export const NatRule: coreClient.CompositeMapper = { + serializedName: "NatRule", type: { name: "Composite", - className: "FirewallPolicyFilterRuleCollection", - uberParent: "FirewallPolicyRuleCollection", - polymorphicDiscriminator: - FirewallPolicyRuleCollection.type.polymorphicDiscriminator, + className: "NatRule", + uberParent: "FirewallPolicyRule", + polymorphicDiscriminator: FirewallPolicyRule.type.polymorphicDiscriminator, modelProperties: { - ...FirewallPolicyRuleCollection.type.modelProperties, - action: { - serializedName: "action", + ...FirewallPolicyRule.type.modelProperties, + ipProtocols: { + serializedName: "ipProtocols", type: { - name: "Composite", - className: "FirewallPolicyFilterRuleCollectionAction" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - rules: { - serializedName: "rules", + sourceAddresses: { + serializedName: "sourceAddresses", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "FirewallPolicyRule" + name: "String" } } } - } - } - } -}; - -export const PacketCaptureResultProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PacketCaptureResultProperties", - modelProperties: { - ...PacketCaptureParameters.type.modelProperties, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + }, + destinationAddresses: { + serializedName: "destinationAddresses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const ConnectionMonitorResultProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConnectionMonitorResultProperties", - modelProperties: { - ...ConnectionMonitorParameters.type.modelProperties, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + }, + destinationPorts: { + serializedName: "destinationPorts", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - startTime: { - serializedName: "startTime", - readOnly: true, + translatedAddress: { + serializedName: "translatedAddress", type: { - name: "DateTime" + name: "String" } }, - monitoringStatus: { - serializedName: "monitoringStatus", - readOnly: true, + translatedPort: { + serializedName: "translatedPort", type: { name: "String" } }, - connectionMonitorType: { - serializedName: "connectionMonitorType", - readOnly: true, + sourceIpGroups: { + serializedName: "sourceIpGroups", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + translatedFqdn: { + serializedName: "translatedFqdn", type: { name: "String" } @@ -25812,15 +29773,26 @@ export const ConnectionMonitorResultProperties: coreClient.CompositeMapper = { } }; -export const ApplicationRule: coreClient.CompositeMapper = { - serializedName: "ApplicationRule", +export const NetworkRule: coreClient.CompositeMapper = { + serializedName: "NetworkRule", type: { name: "Composite", - className: "ApplicationRule", + className: "NetworkRule", uberParent: "FirewallPolicyRule", polymorphicDiscriminator: FirewallPolicyRule.type.polymorphicDiscriminator, modelProperties: { ...FirewallPolicyRule.type.modelProperties, + ipProtocols: { + serializedName: "ipProtocols", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, sourceAddresses: { serializedName: "sourceAddresses", type: { @@ -25843,20 +29815,19 @@ export const ApplicationRule: coreClient.CompositeMapper = { } } }, - protocols: { - serializedName: "protocols", + destinationPorts: { + serializedName: "destinationPorts", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "FirewallPolicyRuleApplicationProtocol" + name: "String" } } } }, - targetFqdns: { - serializedName: "targetFqdns", + sourceIpGroups: { + serializedName: "sourceIpGroups", type: { name: "Sequence", element: { @@ -25866,8 +29837,8 @@ export const ApplicationRule: coreClient.CompositeMapper = { } } }, - targetUrls: { - serializedName: "targetUrls", + destinationIpGroups: { + serializedName: "destinationIpGroups", type: { name: "Sequence", element: { @@ -25877,8 +29848,8 @@ export const ApplicationRule: coreClient.CompositeMapper = { } } }, - fqdnTags: { - serializedName: "fqdnTags", + destinationFqdns: { + serializedName: "destinationFqdns", type: { name: "Sequence", element: { @@ -25887,26 +29858,69 @@ export const ApplicationRule: coreClient.CompositeMapper = { } } } + } + } + } +}; + +export const AdminRule: coreClient.CompositeMapper = { + serializedName: "Custom", + type: { + name: "Composite", + className: "AdminRule", + uberParent: "BaseAdminRule", + polymorphicDiscriminator: BaseAdminRule.type.polymorphicDiscriminator, + modelProperties: { + ...BaseAdminRule.type.modelProperties, + description: { + serializedName: "properties.description", + type: { + name: "String" + } }, - sourceIpGroups: { - serializedName: "sourceIpGroups", + protocol: { + serializedName: "properties.protocol", + type: { + name: "String" + } + }, + sources: { + serializedName: "properties.sources", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "AddressPrefixItem" } } } }, - terminateTLS: { - serializedName: "terminateTLS", + destinations: { + serializedName: "properties.destinations", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AddressPrefixItem" + } + } } }, - webCategories: { - serializedName: "webCategories", + sourcePortRanges: { + serializedName: "properties.sourcePortRanges", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + destinationPortRanges: { + serializedName: "properties.destinationPortRanges", type: { name: "Sequence", element: { @@ -25915,44 +29929,98 @@ export const ApplicationRule: coreClient.CompositeMapper = { } } } - } - } - } -}; - -export const NatRule: coreClient.CompositeMapper = { - serializedName: "NatRule", - type: { - name: "Composite", - className: "NatRule", - uberParent: "FirewallPolicyRule", - polymorphicDiscriminator: FirewallPolicyRule.type.polymorphicDiscriminator, - modelProperties: { - ...FirewallPolicyRule.type.modelProperties, - ipProtocols: { - serializedName: "ipProtocols", + }, + access: { + serializedName: "properties.access", + type: { + name: "String" + } + }, + priority: { + constraints: { + InclusiveMaximum: 4096, + InclusiveMinimum: 1 + }, + serializedName: "properties.priority", + type: { + name: "Number" + } + }, + direction: { + serializedName: "properties.direction", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const DefaultAdminRule: coreClient.CompositeMapper = { + serializedName: "Default", + type: { + name: "Composite", + className: "DefaultAdminRule", + uberParent: "BaseAdminRule", + polymorphicDiscriminator: BaseAdminRule.type.polymorphicDiscriminator, + modelProperties: { + ...BaseAdminRule.type.modelProperties, + description: { + serializedName: "properties.description", + readOnly: true, + type: { + name: "String" + } + }, + flag: { + serializedName: "properties.flag", + type: { + name: "String" + } + }, + protocol: { + serializedName: "properties.protocol", + readOnly: true, + type: { + name: "String" + } + }, + sources: { + serializedName: "properties.sources", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "AddressPrefixItem" } } } }, - sourceAddresses: { - serializedName: "sourceAddresses", + destinations: { + serializedName: "properties.destinations", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "AddressPrefixItem" } } } }, - destinationAddresses: { - serializedName: "destinationAddresses", + sourcePortRanges: { + serializedName: "properties.sourcePortRanges", + readOnly: true, type: { name: "Sequence", element: { @@ -25962,8 +30030,9 @@ export const NatRule: coreClient.CompositeMapper = { } } }, - destinationPorts: { - serializedName: "destinationPorts", + destinationPortRanges: { + serializedName: "properties.destinationPortRanges", + readOnly: true, type: { name: "Sequence", element: { @@ -25973,31 +30042,30 @@ export const NatRule: coreClient.CompositeMapper = { } } }, - translatedAddress: { - serializedName: "translatedAddress", + access: { + serializedName: "properties.access", + readOnly: true, type: { name: "String" } }, - translatedPort: { - serializedName: "translatedPort", + priority: { + serializedName: "properties.priority", + readOnly: true, type: { - name: "String" + name: "Number" } }, - sourceIpGroups: { - serializedName: "sourceIpGroups", + direction: { + serializedName: "properties.direction", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - translatedFqdn: { - serializedName: "translatedFqdn", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } @@ -26006,90 +30074,165 @@ export const NatRule: coreClient.CompositeMapper = { } }; -export const NetworkRule: coreClient.CompositeMapper = { - serializedName: "NetworkRule", +export const PublicIPAddressesDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkRule", - uberParent: "FirewallPolicyRule", - polymorphicDiscriminator: FirewallPolicyRule.type.polymorphicDiscriminator, + className: "PublicIPAddressesDeleteHeaders", modelProperties: { - ...FirewallPolicyRule.type.modelProperties, - ipProtocols: { - serializedName: "ipProtocols", + location: { + serializedName: "location", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - }, - sourceAddresses: { - serializedName: "sourceAddresses", + } + } + } +}; + +export const PublicIPAddressesDdosProtectionStatusHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PublicIPAddressesDdosProtectionStatusHeaders", + modelProperties: { + location: { + serializedName: "location", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - }, - destinationAddresses: { - serializedName: "destinationAddresses", + } + } + } +}; + +export const DdosProtectionPlansDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DdosProtectionPlansDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - }, - destinationPorts: { - serializedName: "destinationPorts", + } + } + } +}; + +export const NetworkManagersDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkManagersDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - }, - sourceIpGroups: { - serializedName: "sourceIpGroups", + } + } + } +}; + +export const NetworkManagerCommitsPostHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkManagerCommitsPostHeaders", + modelProperties: { + location: { + serializedName: "location", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - }, - destinationIpGroups: { - serializedName: "destinationIpGroups", + } + } + } +}; + +export const ConnectivityConfigurationsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConnectivityConfigurationsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - }, - destinationFqdns: { - serializedName: "destinationFqdns", + } + } + } +}; + +export const NetworkGroupsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkGroupsCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" + } + } + } + } +}; + +export const NetworkGroupsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkGroupsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const SecurityAdminConfigurationsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityAdminConfigurationsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const AdminRuleCollectionsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AdminRuleCollectionsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const AdminRulesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AdminRulesDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" } } } @@ -26098,10 +30241,19 @@ export const NetworkRule: coreClient.CompositeMapper = { export let discriminators = { FirewallPolicyRuleCollection: FirewallPolicyRuleCollection, + ActiveBaseSecurityAdminRule: ActiveBaseSecurityAdminRule, + EffectiveBaseSecurityAdminRule: EffectiveBaseSecurityAdminRule, FirewallPolicyRule: FirewallPolicyRule, "FirewallPolicyRuleCollection.FirewallPolicyNatRuleCollection": FirewallPolicyNatRuleCollection, "FirewallPolicyRuleCollection.FirewallPolicyFilterRuleCollection": FirewallPolicyFilterRuleCollection, + "ActiveBaseSecurityAdminRule.Custom": ActiveSecurityAdminRule, + "ActiveBaseSecurityAdminRule.Default": ActiveDefaultSecurityAdminRule, + "ChildResource.BaseAdminRule": BaseAdminRule, + "EffectiveBaseSecurityAdminRule.Custom": EffectiveSecurityAdminRule, + "EffectiveBaseSecurityAdminRule.Default": EffectiveDefaultSecurityAdminRule, "FirewallPolicyRule.ApplicationRule": ApplicationRule, "FirewallPolicyRule.NatRule": NatRule, - "FirewallPolicyRule.NetworkRule": NetworkRule + "FirewallPolicyRule.NetworkRule": NetworkRule, + "BaseAdminRule.Custom": AdminRule, + "BaseAdminRule.Default": DefaultAdminRule }; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/models/parameters.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/models/parameters.ts index 4f81f563b0..1fed00b352 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/models/parameters.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/models/parameters.ts @@ -21,9 +21,12 @@ import { BastionHost as BastionHostMapper, BastionShareableLinkListRequest as BastionShareableLinkListRequestMapper, SessionIds as SessionIdsMapper, + ActiveConfigurationParameter as ActiveConfigurationParameterMapper, + QueryRequestOptions as QueryRequestOptionsMapper, VirtualWanVpnProfileParameters as VirtualWanVpnProfileParametersMapper, NetworkInterface as NetworkInterfaceMapper, PublicIPAddress as PublicIPAddressMapper, + SwapResource as SwapResourceMapper, CustomIpPrefix as CustomIpPrefixMapper, DdosCustomPolicy as DdosCustomPolicyMapper, DdosProtectionPlan as DdosProtectionPlanMapper, @@ -36,6 +39,7 @@ import { ExpressRouteCrossConnectionPeering as ExpressRouteCrossConnectionPeeringMapper, ExpressRoutePort as ExpressRoutePortMapper, GenerateExpressRoutePortsLOARequest as GenerateExpressRoutePortsLOARequestMapper, + ExpressRoutePortAuthorization as ExpressRoutePortAuthorizationMapper, FirewallPolicy as FirewallPolicyMapper, FirewallPolicyRuleCollectionGroup as FirewallPolicyRuleCollectionGroupMapper, IdpsQueryObject as IdpsQueryObjectMapper, @@ -50,6 +54,18 @@ import { InboundNatRule as InboundNatRuleMapper, NatGateway as NatGatewayMapper, NetworkInterfaceTapConfiguration as NetworkInterfaceTapConfigurationMapper, + NetworkManager as NetworkManagerMapper, + PatchObject as PatchObjectMapper, + NetworkManagerCommit as NetworkManagerCommitMapper, + NetworkManagerDeploymentStatusParameter as NetworkManagerDeploymentStatusParameterMapper, + NetworkManagerConnection as NetworkManagerConnectionMapper, + ConnectivityConfiguration as ConnectivityConfigurationMapper, + NetworkGroup as NetworkGroupMapper, + StaticMember as StaticMemberMapper, + ScopeConnection as ScopeConnectionMapper, + SecurityAdminConfiguration as SecurityAdminConfigurationMapper, + AdminRuleCollection as AdminRuleCollectionMapper, + BaseAdminRule as BaseAdminRuleMapper, NetworkProfile as NetworkProfileMapper, NetworkSecurityGroup as NetworkSecurityGroupMapper, SecurityRule as SecurityRuleMapper, @@ -109,8 +125,12 @@ import { VpnSite as VpnSiteMapper, GetVpnSitesConfigurationRequest as GetVpnSitesConfigurationRequestMapper, VpnServerConfiguration as VpnServerConfigurationMapper, + VpnServerConfigurationPolicyGroup as VpnServerConfigurationPolicyGroupMapper, VirtualHub as VirtualHubMapper, EffectiveRoutesParameters as EffectiveRoutesParametersMapper, + GetInboundRoutesParameters as GetInboundRoutesParametersMapper, + GetOutboundRoutesParameters as GetOutboundRoutesParametersMapper, + RouteMap as RouteMapMapper, HubVirtualNetworkConnection as HubVirtualNetworkConnectionMapper, VpnGateway as VpnGatewayMapper, VpnGatewayPacketCaptureStartParameters as VpnGatewayPacketCaptureStartParametersMapper, @@ -181,7 +201,7 @@ export const applicationGatewayName: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-05-01", + defaultValue: "2022-07-01", isConstant: true, serializedName: "api-version", type: { @@ -277,10 +297,10 @@ export const parameters2: OperationParameter = { mapper: ApplicationGatewayPrivateEndpointConnectionMapper }; -export const applicationSecurityGroupName: OperationURLParameter = { - parameterPath: "applicationSecurityGroupName", +export const location: OperationURLParameter = { + parameterPath: "location", mapper: { - serializedName: "applicationSecurityGroupName", + serializedName: "location", required: true, type: { name: "String" @@ -288,15 +308,10 @@ export const applicationSecurityGroupName: OperationURLParameter = { } }; -export const parameters3: OperationParameter = { - parameterPath: "parameters", - mapper: ApplicationSecurityGroupMapper -}; - -export const location: OperationURLParameter = { - parameterPath: "location", +export const applicationSecurityGroupName: OperationURLParameter = { + parameterPath: "applicationSecurityGroupName", mapper: { - serializedName: "location", + serializedName: "applicationSecurityGroupName", required: true, type: { name: "String" @@ -304,6 +319,11 @@ export const location: OperationURLParameter = { } }; +export const parameters3: OperationParameter = { + parameterPath: "parameters", + mapper: ApplicationSecurityGroupMapper +}; + export const azureFirewallName: OperationURLParameter = { parameterPath: "azureFirewallName", mapper: { @@ -383,6 +403,63 @@ export const domainNameLabel: OperationQueryParameter = { } }; +export const providerport: OperationURLParameter = { + parameterPath: "providerport", + mapper: { + serializedName: "providerport", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters6: OperationParameter = { + parameterPath: "parameters", + mapper: ActiveConfigurationParameterMapper +}; + +export const networkManagerName: OperationURLParameter = { + parameterPath: "networkManagerName", + mapper: { + serializedName: "networkManagerName", + required: true, + type: { + name: "String" + } + } +}; + +export const top: OperationQueryParameter = { + parameterPath: ["options", "top"], + mapper: { + constraints: { + InclusiveMaximum: 20, + InclusiveMinimum: 1 + }, + serializedName: "$top", + type: { + name: "Number" + } + } +}; + +export const parameters7: OperationParameter = { + parameterPath: "parameters", + mapper: QueryRequestOptionsMapper +}; + +export const virtualNetworkName: OperationURLParameter = { + parameterPath: "virtualNetworkName", + mapper: { + serializedName: "virtualNetworkName", + required: true, + type: { + name: "String" + } + } +}; + export const virtualWANName: OperationURLParameter = { parameterPath: "virtualWANName", mapper: { @@ -432,7 +509,7 @@ export const networkInterfaceName: OperationURLParameter = { } }; -export const parameters6: OperationParameter = { +export const parameters8: OperationParameter = { parameterPath: "parameters", mapper: NetworkInterfaceMapper }; @@ -493,11 +570,50 @@ export const publicIpAddressName: OperationURLParameter = { } }; -export const parameters7: OperationParameter = { +export const parameters9: OperationParameter = { parameterPath: "parameters", mapper: PublicIPAddressMapper }; +export const groupName: OperationURLParameter = { + parameterPath: "groupName", + mapper: { + serializedName: "groupName", + required: true, + type: { + name: "String" + } + } +}; + +export const resourceName: OperationURLParameter = { + parameterPath: "resourceName", + mapper: { + serializedName: "resourceName", + required: true, + type: { + name: "String" + } + } +}; + +export const singletonResource: OperationURLParameter = { + parameterPath: "singletonResource", + mapper: { + defaultValue: "swap", + isConstant: true, + serializedName: "singletonResource", + type: { + name: "String" + } + } +}; + +export const parameters10: OperationParameter = { + parameterPath: "parameters", + mapper: SwapResourceMapper +}; + export const customIpPrefixName: OperationURLParameter = { parameterPath: "customIpPrefixName", mapper: { @@ -509,7 +625,7 @@ export const customIpPrefixName: OperationURLParameter = { } }; -export const parameters8: OperationParameter = { +export const parameters11: OperationParameter = { parameterPath: "parameters", mapper: CustomIpPrefixMapper }; @@ -525,7 +641,7 @@ export const ddosCustomPolicyName: OperationURLParameter = { } }; -export const parameters9: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", mapper: DdosCustomPolicyMapper }; @@ -541,12 +657,12 @@ export const ddosProtectionPlanName: OperationURLParameter = { } }; -export const parameters10: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", mapper: DdosProtectionPlanMapper }; -export const parameters11: OperationParameter = { +export const parameters14: OperationParameter = { parameterPath: "parameters", mapper: DscpConfigurationMapper }; @@ -610,7 +726,7 @@ export const expressRouteCircuitConnectionParameters: OperationParameter = { mapper: ExpressRouteCircuitConnectionMapper }; -export const parameters12: OperationParameter = { +export const parameters15: OperationParameter = { parameterPath: "parameters", mapper: ExpressRouteCircuitMapper }; @@ -637,7 +753,7 @@ export const crossConnectionName: OperationURLParameter = { } }; -export const parameters13: OperationParameter = { +export const parameters16: OperationParameter = { parameterPath: "parameters", mapper: ExpressRouteCrossConnectionMapper }; @@ -674,7 +790,7 @@ export const expressRoutePortName: OperationURLParameter = { } }; -export const parameters14: OperationParameter = { +export const parameters17: OperationParameter = { parameterPath: "parameters", mapper: ExpressRoutePortMapper }; @@ -695,6 +811,21 @@ export const linkName: OperationURLParameter = { } }; +export const authorizationParameters1: OperationParameter = { + parameterPath: "authorizationParameters", + mapper: ExpressRoutePortAuthorizationMapper +}; + +export const filter: OperationQueryParameter = { + parameterPath: ["options", "filter"], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; + export const firewallPolicyName: OperationURLParameter = { parameterPath: "firewallPolicyName", mapper: { @@ -706,7 +837,7 @@ export const firewallPolicyName: OperationURLParameter = { } }; -export const parameters15: OperationParameter = { +export const parameters18: OperationParameter = { parameterPath: "parameters", mapper: FirewallPolicyMapper }; @@ -722,22 +853,22 @@ export const ruleCollectionGroupName: OperationURLParameter = { } }; -export const parameters16: OperationParameter = { +export const parameters19: OperationParameter = { parameterPath: "parameters", mapper: FirewallPolicyRuleCollectionGroupMapper }; -export const parameters17: OperationParameter = { +export const parameters20: OperationParameter = { parameterPath: "parameters", mapper: IdpsQueryObjectMapper }; -export const parameters18: OperationParameter = { +export const parameters21: OperationParameter = { parameterPath: "parameters", mapper: SignaturesOverridesMapper }; -export const parameters19: OperationParameter = { +export const parameters22: OperationParameter = { parameterPath: "parameters", mapper: SignatureOverridesFilterValuesQueryMapper }; @@ -753,7 +884,7 @@ export const ipAllocationName: OperationURLParameter = { } }; -export const parameters20: OperationParameter = { +export const parameters23: OperationParameter = { parameterPath: "parameters", mapper: IpAllocationMapper }; @@ -769,7 +900,7 @@ export const ipGroupsName: OperationURLParameter = { } }; -export const parameters21: OperationParameter = { +export const parameters24: OperationParameter = { parameterPath: "parameters", mapper: IpGroupMapper }; @@ -785,32 +916,21 @@ export const loadBalancerName: OperationURLParameter = { } }; -export const parameters22: OperationParameter = { +export const parameters25: OperationParameter = { parameterPath: "parameters", mapper: LoadBalancerMapper }; -export const parameters23: OperationParameter = { +export const parameters26: OperationParameter = { parameterPath: "parameters", mapper: LoadBalancerVipSwapRequestMapper }; -export const parameters24: OperationParameter = { +export const parameters27: OperationParameter = { parameterPath: "parameters", mapper: QueryInboundNatRulePortMappingRequestMapper }; -export const groupName: OperationURLParameter = { - parameterPath: "groupName", - mapper: { - serializedName: "groupName", - required: true, - type: { - name: "String" - } - } -}; - export const backendPoolName: OperationURLParameter = { parameterPath: "backendPoolName", mapper: { @@ -833,7 +953,7 @@ export const backendAddressPoolName: OperationURLParameter = { } }; -export const parameters25: OperationParameter = { +export const parameters28: OperationParameter = { parameterPath: "parameters", mapper: BackendAddressPoolMapper }; @@ -909,7 +1029,7 @@ export const natGatewayName: OperationURLParameter = { } }; -export const parameters26: OperationParameter = { +export const parameters29: OperationParameter = { parameterPath: "parameters", mapper: NatGatewayMapper }; @@ -930,6 +1050,184 @@ export const tapConfigurationParameters: OperationParameter = { mapper: NetworkInterfaceTapConfigurationMapper }; +export const parameters30: OperationParameter = { + parameterPath: "parameters", + mapper: NetworkManagerMapper +}; + +export const force: OperationQueryParameter = { + parameterPath: ["options", "force"], + mapper: { + serializedName: "force", + type: { + name: "Boolean" + } + } +}; + +export const parameters31: OperationParameter = { + parameterPath: "parameters", + mapper: PatchObjectMapper +}; + +export const skipToken: OperationQueryParameter = { + parameterPath: ["options", "skipToken"], + mapper: { + serializedName: "$skipToken", + type: { + name: "String" + } + } +}; + +export const parameters32: OperationParameter = { + parameterPath: "parameters", + mapper: NetworkManagerCommitMapper +}; + +export const parameters33: OperationParameter = { + parameterPath: "parameters", + mapper: NetworkManagerDeploymentStatusParameterMapper +}; + +export const parameters34: OperationParameter = { + parameterPath: "parameters", + mapper: NetworkManagerConnectionMapper +}; + +export const networkManagerConnectionName: OperationURLParameter = { + parameterPath: "networkManagerConnectionName", + mapper: { + serializedName: "networkManagerConnectionName", + required: true, + type: { + name: "String" + } + } +}; + +export const managementGroupId: OperationURLParameter = { + parameterPath: "managementGroupId", + mapper: { + serializedName: "managementGroupId", + required: true, + type: { + name: "String" + } + } +}; + +export const configurationName: OperationURLParameter = { + parameterPath: "configurationName", + mapper: { + serializedName: "configurationName", + required: true, + type: { + name: "String" + } + } +}; + +export const connectivityConfiguration: OperationParameter = { + parameterPath: "connectivityConfiguration", + mapper: ConnectivityConfigurationMapper +}; + +export const networkGroupName: OperationURLParameter = { + parameterPath: "networkGroupName", + mapper: { + serializedName: "networkGroupName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters35: OperationParameter = { + parameterPath: "parameters", + mapper: NetworkGroupMapper +}; + +export const ifMatch: OperationParameter = { + parameterPath: ["options", "ifMatch"], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; + +export const staticMemberName: OperationURLParameter = { + parameterPath: "staticMemberName", + mapper: { + serializedName: "staticMemberName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters36: OperationParameter = { + parameterPath: "parameters", + mapper: StaticMemberMapper +}; + +export const parameters37: OperationParameter = { + parameterPath: "parameters", + mapper: ScopeConnectionMapper +}; + +export const scopeConnectionName: OperationURLParameter = { + parameterPath: "scopeConnectionName", + mapper: { + serializedName: "scopeConnectionName", + required: true, + type: { + name: "String" + } + } +}; + +export const securityAdminConfiguration: OperationParameter = { + parameterPath: "securityAdminConfiguration", + mapper: SecurityAdminConfigurationMapper +}; + +export const ruleCollectionName: OperationURLParameter = { + parameterPath: "ruleCollectionName", + mapper: { + serializedName: "ruleCollectionName", + required: true, + type: { + name: "String" + } + } +}; + +export const ruleCollection: OperationParameter = { + parameterPath: "ruleCollection", + mapper: AdminRuleCollectionMapper +}; + +export const ruleName: OperationURLParameter = { + parameterPath: "ruleName", + mapper: { + serializedName: "ruleName", + required: true, + type: { + name: "String" + } + } +}; + +export const adminRule: OperationParameter = { + parameterPath: "adminRule", + mapper: BaseAdminRuleMapper +}; + export const networkProfileName: OperationURLParameter = { parameterPath: "networkProfileName", mapper: { @@ -941,7 +1239,7 @@ export const networkProfileName: OperationURLParameter = { } }; -export const parameters27: OperationParameter = { +export const parameters38: OperationParameter = { parameterPath: "parameters", mapper: NetworkProfileMapper }; @@ -957,7 +1255,7 @@ export const networkSecurityGroupName: OperationURLParameter = { } }; -export const parameters28: OperationParameter = { +export const parameters39: OperationParameter = { parameterPath: "parameters", mapper: NetworkSecurityGroupMapper }; @@ -1000,7 +1298,7 @@ export const networkVirtualApplianceName: OperationURLParameter = { } }; -export const parameters29: OperationParameter = { +export const parameters40: OperationParameter = { parameterPath: "parameters", mapper: NetworkVirtualApplianceMapper }; @@ -1016,7 +1314,7 @@ export const siteName: OperationURLParameter = { } }; -export const parameters30: OperationParameter = { +export const parameters41: OperationParameter = { parameterPath: "parameters", mapper: VirtualApplianceSiteMapper }; @@ -1032,23 +1330,12 @@ export const skuName: OperationURLParameter = { } }; -export const parameters31: OperationParameter = { +export const parameters42: OperationParameter = { parameterPath: "parameters", mapper: InboundSecurityRuleMapper }; -export const ruleCollectionName: OperationURLParameter = { - parameterPath: "ruleCollectionName", - mapper: { - serializedName: "ruleCollectionName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters32: OperationParameter = { +export const parameters43: OperationParameter = { parameterPath: "parameters", mapper: NetworkWatcherMapper }; @@ -1064,67 +1351,67 @@ export const networkWatcherName: OperationURLParameter = { } }; -export const parameters33: OperationParameter = { +export const parameters44: OperationParameter = { parameterPath: "parameters", mapper: TopologyParametersMapper }; -export const parameters34: OperationParameter = { +export const parameters45: OperationParameter = { parameterPath: "parameters", mapper: VerificationIPFlowParametersMapper }; -export const parameters35: OperationParameter = { +export const parameters46: OperationParameter = { parameterPath: "parameters", mapper: NextHopParametersMapper }; -export const parameters36: OperationParameter = { +export const parameters47: OperationParameter = { parameterPath: "parameters", mapper: SecurityGroupViewParametersMapper }; -export const parameters37: OperationParameter = { +export const parameters48: OperationParameter = { parameterPath: "parameters", mapper: TroubleshootingParametersMapper }; -export const parameters38: OperationParameter = { +export const parameters49: OperationParameter = { parameterPath: "parameters", mapper: QueryTroubleshootingParametersMapper }; -export const parameters39: OperationParameter = { +export const parameters50: OperationParameter = { parameterPath: "parameters", mapper: FlowLogInformationMapper }; -export const parameters40: OperationParameter = { +export const parameters51: OperationParameter = { parameterPath: "parameters", mapper: FlowLogStatusParametersMapper }; -export const parameters41: OperationParameter = { +export const parameters52: OperationParameter = { parameterPath: "parameters", mapper: ConnectivityParametersMapper }; -export const parameters42: OperationParameter = { +export const parameters53: OperationParameter = { parameterPath: "parameters", mapper: AzureReachabilityReportParametersMapper }; -export const parameters43: OperationParameter = { +export const parameters54: OperationParameter = { parameterPath: "parameters", mapper: AvailableProvidersListParametersMapper }; -export const parameters44: OperationParameter = { +export const parameters55: OperationParameter = { parameterPath: "parameters", mapper: NetworkConfigurationDiagnosticParametersMapper }; -export const parameters45: OperationParameter = { +export const parameters56: OperationParameter = { parameterPath: "parameters", mapper: PacketCaptureMapper }; @@ -1140,7 +1427,7 @@ export const packetCaptureName: OperationURLParameter = { } }; -export const parameters46: OperationParameter = { +export const parameters57: OperationParameter = { parameterPath: "parameters", mapper: ConnectionMonitorMapper }; @@ -1166,7 +1453,7 @@ export const migrate: OperationQueryParameter = { } }; -export const parameters47: OperationParameter = { +export const parameters58: OperationParameter = { parameterPath: "parameters", mapper: FlowLogMapper }; @@ -1193,7 +1480,7 @@ export const privateEndpointName: OperationURLParameter = { } }; -export const parameters48: OperationParameter = { +export const parameters59: OperationParameter = { parameterPath: "parameters", mapper: PrivateEndpointMapper }; @@ -1209,7 +1496,7 @@ export const privateDnsZoneGroupName: OperationURLParameter = { } }; -export const parameters49: OperationParameter = { +export const parameters60: OperationParameter = { parameterPath: "parameters", mapper: PrivateDnsZoneGroupMapper }; @@ -1225,7 +1512,7 @@ export const serviceName: OperationURLParameter = { } }; -export const parameters50: OperationParameter = { +export const parameters61: OperationParameter = { parameterPath: "parameters", mapper: PrivateLinkServiceMapper }; @@ -1241,12 +1528,12 @@ export const peConnectionName: OperationURLParameter = { } }; -export const parameters51: OperationParameter = { +export const parameters62: OperationParameter = { parameterPath: "parameters", mapper: PrivateEndpointConnectionMapper }; -export const parameters52: OperationParameter = { +export const parameters63: OperationParameter = { parameterPath: "parameters", mapper: CheckPrivateLinkServiceVisibilityRequestMapper }; @@ -1262,7 +1549,7 @@ export const publicIpPrefixName: OperationURLParameter = { } }; -export const parameters53: OperationParameter = { +export const parameters64: OperationParameter = { parameterPath: "parameters", mapper: PublicIPPrefixMapper }; @@ -1283,17 +1570,6 @@ export const routeFilterParameters: OperationParameter = { mapper: RouteFilterMapper }; -export const ruleName: OperationURLParameter = { - parameterPath: "ruleName", - mapper: { - serializedName: "ruleName", - required: true, - type: { - name: "String" - } - } -}; - export const routeFilterRuleParameters: OperationParameter = { parameterPath: "routeFilterRuleParameters", mapper: RouteFilterRuleMapper @@ -1310,7 +1586,7 @@ export const routeTableName: OperationURLParameter = { } }; -export const parameters54: OperationParameter = { +export const parameters65: OperationParameter = { parameterPath: "parameters", mapper: RouteTableMapper }; @@ -1342,7 +1618,7 @@ export const securityPartnerProviderName: OperationURLParameter = { } }; -export const parameters55: OperationParameter = { +export const parameters66: OperationParameter = { parameterPath: "parameters", mapper: SecurityPartnerProviderMapper }; @@ -1358,7 +1634,7 @@ export const serviceEndpointPolicyName: OperationURLParameter = { } }; -export const parameters56: OperationParameter = { +export const parameters67: OperationParameter = { parameterPath: "parameters", mapper: ServiceEndpointPolicyMapper }; @@ -1413,10 +1689,15 @@ export const location1: OperationURLParameter = { } }; -export const virtualNetworkName: OperationURLParameter = { - parameterPath: "virtualNetworkName", +export const parameters68: OperationParameter = { + parameterPath: "parameters", + mapper: VirtualNetworkMapper +}; + +export const ipAddress: OperationQueryParameter = { + parameterPath: "ipAddress", mapper: { - serializedName: "virtualNetworkName", + serializedName: "ipAddress", required: true, type: { name: "String" @@ -1424,16 +1705,20 @@ export const virtualNetworkName: OperationURLParameter = { } }; -export const parameters57: OperationParameter = { - parameterPath: "parameters", - mapper: VirtualNetworkMapper +export const top1: OperationQueryParameter = { + parameterPath: ["options", "top"], + mapper: { + serializedName: "top", + type: { + name: "Number" + } + } }; -export const ipAddress: OperationQueryParameter = { - parameterPath: "ipAddress", +export const skipToken1: OperationQueryParameter = { + parameterPath: ["options", "skipToken"], mapper: { - serializedName: "ipAddress", - required: true, + serializedName: "skipToken", type: { name: "String" } @@ -1492,7 +1777,7 @@ export const syncRemoteAddressSpace: OperationQueryParameter = { } }; -export const parameters58: OperationParameter = { +export const parameters69: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkGatewayMapper }; @@ -1518,7 +1803,7 @@ export const gatewayVip: OperationQueryParameter = { } }; -export const parameters59: OperationParameter = { +export const parameters70: OperationParameter = { parameterPath: "parameters", mapper: VpnClientParametersMapper }; @@ -1549,7 +1834,7 @@ export const vpnclientIpsecParams: OperationParameter = { mapper: VpnClientIPsecParametersMapper }; -export const parameters60: OperationParameter = { +export const parameters71: OperationParameter = { parameterPath: "parameters", mapper: VpnDeviceScriptParametersMapper }; @@ -1565,12 +1850,12 @@ export const virtualNetworkGatewayConnectionName: OperationURLParameter = { } }; -export const parameters61: OperationParameter = { +export const parameters72: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnPacketCaptureStartParametersMapper }; -export const parameters62: OperationParameter = { +export const parameters73: OperationParameter = { parameterPath: "parameters", mapper: VpnPacketCaptureStopParametersMapper }; @@ -1580,22 +1865,22 @@ export const request1: OperationParameter = { mapper: P2SVpnConnectionRequestMapper }; -export const parameters63: OperationParameter = { +export const parameters74: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkGatewayConnectionMapper }; -export const parameters64: OperationParameter = { +export const parameters75: OperationParameter = { parameterPath: "parameters", mapper: ConnectionSharedKeyMapper }; -export const parameters65: OperationParameter = { +export const parameters76: OperationParameter = { parameterPath: "parameters", mapper: ConnectionResetSharedKeyMapper }; -export const parameters66: OperationParameter = { +export const parameters77: OperationParameter = { parameterPath: "parameters", mapper: LocalNetworkGatewayMapper }; @@ -1641,7 +1926,7 @@ export const tapName: OperationURLParameter = { } }; -export const parameters67: OperationParameter = { +export const parameters78: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkTapMapper }; @@ -1662,12 +1947,12 @@ export const virtualRouterName: OperationURLParameter = { } }; -export const parameters68: OperationParameter = { +export const parameters79: OperationParameter = { parameterPath: "parameters", mapper: VirtualRouterMapper }; -export const parameters69: OperationParameter = { +export const parameters80: OperationParameter = { parameterPath: "parameters", mapper: VirtualRouterPeeringMapper }; @@ -1751,6 +2036,22 @@ export const vpnServerConfigurationParameters1: OperationParameter = { mapper: TagsObjectMapper }; +export const vpnServerConfigurationPolicyGroupParameters: OperationParameter = { + parameterPath: "vpnServerConfigurationPolicyGroupParameters", + mapper: VpnServerConfigurationPolicyGroupMapper +}; + +export const configurationPolicyGroupName: OperationURLParameter = { + parameterPath: "configurationPolicyGroupName", + mapper: { + serializedName: "configurationPolicyGroupName", + required: true, + type: { + name: "String" + } + } +}; + export const virtualHubName: OperationURLParameter = { parameterPath: "virtualHubName", mapper: { @@ -1777,6 +2078,32 @@ export const effectiveRoutesParameters: OperationParameter = { mapper: EffectiveRoutesParametersMapper }; +export const getInboundRoutesParameters: OperationParameter = { + parameterPath: "getInboundRoutesParameters", + mapper: GetInboundRoutesParametersMapper +}; + +export const getOutboundRoutesParameters: OperationParameter = { + parameterPath: "getOutboundRoutesParameters", + mapper: GetOutboundRoutesParametersMapper +}; + +export const routeMapName: OperationURLParameter = { + parameterPath: "routeMapName", + mapper: { + serializedName: "routeMapName", + required: true, + type: { + name: "String" + } + } +}; + +export const routeMapParameters: OperationParameter = { + parameterPath: "routeMapParameters", + mapper: RouteMapMapper +}; + export const hubVirtualNetworkConnectionParameters: OperationParameter = { parameterPath: "hubVirtualNetworkConnectionParameters", mapper: HubVirtualNetworkConnectionMapper @@ -1803,12 +2130,12 @@ export const vpnGatewayParameters1: OperationParameter = { mapper: TagsObjectMapper }; -export const parameters70: OperationParameter = { +export const parameters81: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnGatewayPacketCaptureStartParametersMapper }; -export const parameters71: OperationParameter = { +export const parameters82: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnGatewayPacketCaptureStopParametersMapper }; @@ -1829,7 +2156,7 @@ export const vpnConnectionParameters: OperationParameter = { mapper: VpnConnectionMapper }; -export const parameters72: OperationParameter = { +export const parameters83: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnConnectionPacketCaptureStartParametersMapper }; @@ -1845,7 +2172,7 @@ export const vpnConnectionName: OperationURLParameter = { } }; -export const parameters73: OperationParameter = { +export const parameters84: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnConnectionPacketCaptureStopParametersMapper }; @@ -1865,7 +2192,7 @@ export const p2SVpnGatewayParameters1: OperationParameter = { mapper: TagsObjectMapper }; -export const parameters74: OperationParameter = { +export const parameters85: OperationParameter = { parameterPath: "parameters", mapper: P2SVpnProfileParametersMapper }; @@ -1917,7 +2244,7 @@ export const putExpressRouteConnectionParameters: OperationParameter = { mapper: ExpressRouteConnectionMapper }; -export const parameters75: OperationParameter = { +export const parameters86: OperationParameter = { parameterPath: "parameters", mapper: BgpConnectionMapper }; @@ -1944,7 +2271,7 @@ export const ipConfigName: OperationURLParameter = { } }; -export const parameters76: OperationParameter = { +export const parameters87: OperationParameter = { parameterPath: "parameters", mapper: HubIpConfigurationMapper }; @@ -1984,7 +2311,7 @@ export const policyName: OperationURLParameter = { } }; -export const parameters77: OperationParameter = { +export const parameters88: OperationParameter = { parameterPath: "parameters", mapper: WebApplicationFirewallPolicyMapper }; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/networkManagementClient.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/networkManagementClient.ts index 99f5f1f664..59a8aa24fd 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/networkManagementClient.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/networkManagementClient.ts @@ -16,6 +16,8 @@ import { ApplicationGatewaysImpl, ApplicationGatewayPrivateLinkResourcesImpl, ApplicationGatewayPrivateEndpointConnectionsImpl, + ApplicationGatewayWafDynamicManifestsDefaultImpl, + ApplicationGatewayWafDynamicManifestsImpl, ApplicationSecurityGroupsImpl, AvailableDelegationsImpl, AvailableResourceGroupDelegationsImpl, @@ -26,6 +28,7 @@ import { BastionHostsImpl, NetworkInterfacesImpl, PublicIPAddressesImpl, + VipSwapImpl, CustomIPPrefixesImpl, DdosCustomPoliciesImpl, DdosProtectionPlansImpl, @@ -42,6 +45,8 @@ import { ExpressRoutePortsLocationsImpl, ExpressRoutePortsImpl, ExpressRouteLinksImpl, + ExpressRoutePortAuthorizationsImpl, + ExpressRouteProviderPortsLocationImpl, FirewallPoliciesImpl, FirewallPolicyRuleCollectionGroupsImpl, FirewallPolicyIdpsSignaturesImpl, @@ -61,6 +66,18 @@ import { NetworkInterfaceIPConfigurationsImpl, NetworkInterfaceLoadBalancersImpl, NetworkInterfaceTapConfigurationsImpl, + NetworkManagersImpl, + NetworkManagerCommitsImpl, + NetworkManagerDeploymentStatusOperationsImpl, + SubscriptionNetworkManagerConnectionsImpl, + ManagementGroupNetworkManagerConnectionsImpl, + ConnectivityConfigurationsImpl, + NetworkGroupsImpl, + StaticMembersImpl, + ScopeConnectionsImpl, + SecurityAdminConfigurationsImpl, + AdminRuleCollectionsImpl, + AdminRulesImpl, NetworkProfilesImpl, NetworkSecurityGroupsImpl, SecurityRulesImpl, @@ -107,7 +124,9 @@ import { VpnSiteLinksImpl, VpnSitesConfigurationImpl, VpnServerConfigurationsImpl, + ConfigurationPolicyGroupsImpl, VirtualHubsImpl, + RouteMapsImpl, HubVirtualNetworkConnectionsImpl, VpnGatewaysImpl, VpnLinkConnectionsImpl, @@ -130,6 +149,8 @@ import { ApplicationGateways, ApplicationGatewayPrivateLinkResources, ApplicationGatewayPrivateEndpointConnections, + ApplicationGatewayWafDynamicManifestsDefault, + ApplicationGatewayWafDynamicManifests, ApplicationSecurityGroups, AvailableDelegations, AvailableResourceGroupDelegations, @@ -140,6 +161,7 @@ import { BastionHosts, NetworkInterfaces, PublicIPAddresses, + VipSwap, CustomIPPrefixes, DdosCustomPolicies, DdosProtectionPlans, @@ -156,6 +178,8 @@ import { ExpressRoutePortsLocations, ExpressRoutePorts, ExpressRouteLinks, + ExpressRoutePortAuthorizations, + ExpressRouteProviderPortsLocation, FirewallPolicies, FirewallPolicyRuleCollectionGroups, FirewallPolicyIdpsSignatures, @@ -175,6 +199,18 @@ import { NetworkInterfaceIPConfigurations, NetworkInterfaceLoadBalancers, NetworkInterfaceTapConfigurations, + NetworkManagers, + NetworkManagerCommits, + NetworkManagerDeploymentStatusOperations, + SubscriptionNetworkManagerConnections, + ManagementGroupNetworkManagerConnections, + ConnectivityConfigurations, + NetworkGroups, + StaticMembers, + ScopeConnections, + SecurityAdminConfigurations, + AdminRuleCollections, + AdminRules, NetworkProfiles, NetworkSecurityGroups, SecurityRules, @@ -221,7 +257,9 @@ import { VpnSiteLinks, VpnSitesConfiguration, VpnServerConfigurations, + ConfigurationPolicyGroups, VirtualHubs, + RouteMaps, HubVirtualNetworkConnections, VpnGateways, VpnLinkConnections, @@ -264,6 +302,18 @@ import { DeleteBastionShareableLinkOptionalParams, CheckDnsNameAvailabilityOptionalParams, CheckDnsNameAvailabilityResponse, + ExpressRouteProviderPortOptionalParams, + ExpressRouteProviderPortResponse, + ActiveConfigurationParameter, + ListActiveConnectivityConfigurationsOptionalParams, + ListActiveConnectivityConfigurationsResponse, + ListActiveSecurityAdminRulesOptionalParams, + ListActiveSecurityAdminRulesResponse, + QueryRequestOptions, + ListNetworkManagerEffectiveConnectivityConfigurationsOptionalParams, + ListNetworkManagerEffectiveConnectivityConfigurationsResponse, + ListNetworkManagerEffectiveSecurityAdminRulesOptionalParams, + ListNetworkManagerEffectiveSecurityAdminRulesResponse, SupportedSecurityProvidersOptionalParams, SupportedSecurityProvidersResponse, VirtualWanVpnProfileParameters, @@ -336,6 +386,12 @@ export class NetworkManagementClient extends coreClient.ServiceClient { this.applicationGatewayPrivateEndpointConnections = new ApplicationGatewayPrivateEndpointConnectionsImpl( this ); + this.applicationGatewayWafDynamicManifestsDefault = new ApplicationGatewayWafDynamicManifestsDefaultImpl( + this + ); + this.applicationGatewayWafDynamicManifests = new ApplicationGatewayWafDynamicManifestsImpl( + this + ); this.applicationSecurityGroups = new ApplicationSecurityGroupsImpl(this); this.availableDelegations = new AvailableDelegationsImpl(this); this.availableResourceGroupDelegations = new AvailableResourceGroupDelegationsImpl( @@ -348,6 +404,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { this.bastionHosts = new BastionHostsImpl(this); this.networkInterfaces = new NetworkInterfacesImpl(this); this.publicIPAddresses = new PublicIPAddressesImpl(this); + this.vipSwap = new VipSwapImpl(this); this.customIPPrefixes = new CustomIPPrefixesImpl(this); this.ddosCustomPolicies = new DdosCustomPoliciesImpl(this); this.ddosProtectionPlans = new DdosProtectionPlansImpl(this); @@ -380,6 +437,12 @@ export class NetworkManagementClient extends coreClient.ServiceClient { this.expressRoutePortsLocations = new ExpressRoutePortsLocationsImpl(this); this.expressRoutePorts = new ExpressRoutePortsImpl(this); this.expressRouteLinks = new ExpressRouteLinksImpl(this); + this.expressRoutePortAuthorizations = new ExpressRoutePortAuthorizationsImpl( + this + ); + this.expressRouteProviderPortsLocation = new ExpressRouteProviderPortsLocationImpl( + this + ); this.firewallPolicies = new FirewallPoliciesImpl(this); this.firewallPolicyRuleCollectionGroups = new FirewallPolicyRuleCollectionGroupsImpl( this @@ -421,6 +484,26 @@ export class NetworkManagementClient extends coreClient.ServiceClient { this.networkInterfaceTapConfigurations = new NetworkInterfaceTapConfigurationsImpl( this ); + this.networkManagers = new NetworkManagersImpl(this); + this.networkManagerCommits = new NetworkManagerCommitsImpl(this); + this.networkManagerDeploymentStatusOperations = new NetworkManagerDeploymentStatusOperationsImpl( + this + ); + this.subscriptionNetworkManagerConnections = new SubscriptionNetworkManagerConnectionsImpl( + this + ); + this.managementGroupNetworkManagerConnections = new ManagementGroupNetworkManagerConnectionsImpl( + this + ); + this.connectivityConfigurations = new ConnectivityConfigurationsImpl(this); + this.networkGroups = new NetworkGroupsImpl(this); + this.staticMembers = new StaticMembersImpl(this); + this.scopeConnections = new ScopeConnectionsImpl(this); + this.securityAdminConfigurations = new SecurityAdminConfigurationsImpl( + this + ); + this.adminRuleCollections = new AdminRuleCollectionsImpl(this); + this.adminRules = new AdminRulesImpl(this); this.networkProfiles = new NetworkProfilesImpl(this); this.networkSecurityGroups = new NetworkSecurityGroupsImpl(this); this.securityRules = new SecurityRulesImpl(this); @@ -479,7 +562,9 @@ export class NetworkManagementClient extends coreClient.ServiceClient { this.vpnSiteLinks = new VpnSiteLinksImpl(this); this.vpnSitesConfiguration = new VpnSitesConfigurationImpl(this); this.vpnServerConfigurations = new VpnServerConfigurationsImpl(this); + this.configurationPolicyGroups = new ConfigurationPolicyGroupsImpl(this); this.virtualHubs = new VirtualHubsImpl(this); + this.routeMaps = new RouteMapsImpl(this); this.hubVirtualNetworkConnections = new HubVirtualNetworkConnectionsImpl( this ); @@ -1154,6 +1239,97 @@ export class NetworkManagementClient extends coreClient.ServiceClient { ); } + /** + * Retrieves detail of a provider port. + * @param providerport The name of the provider port. + * @param options The options parameters. + */ + expressRouteProviderPort( + providerport: string, + options?: ExpressRouteProviderPortOptionalParams + ): Promise { + return this.sendOperationRequest( + { providerport, options }, + expressRouteProviderPortOperationSpec + ); + } + + /** + * Lists active connectivity configurations in a network manager. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param parameters Active Configuration Parameter. + * @param options The options parameters. + */ + listActiveConnectivityConfigurations( + resourceGroupName: string, + networkManagerName: string, + parameters: ActiveConfigurationParameter, + options?: ListActiveConnectivityConfigurationsOptionalParams + ): Promise { + return this.sendOperationRequest( + { resourceGroupName, networkManagerName, parameters, options }, + listActiveConnectivityConfigurationsOperationSpec + ); + } + + /** + * Lists active security admin rules in a network manager. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param parameters Active Configuration Parameter. + * @param options The options parameters. + */ + listActiveSecurityAdminRules( + resourceGroupName: string, + networkManagerName: string, + parameters: ActiveConfigurationParameter, + options?: ListActiveSecurityAdminRulesOptionalParams + ): Promise { + return this.sendOperationRequest( + { resourceGroupName, networkManagerName, parameters, options }, + listActiveSecurityAdminRulesOperationSpec + ); + } + + /** + * List all effective connectivity configurations applied on a virtual network. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param parameters Parameters supplied to list correct page. + * @param options The options parameters. + */ + listNetworkManagerEffectiveConnectivityConfigurations( + resourceGroupName: string, + virtualNetworkName: string, + parameters: QueryRequestOptions, + options?: ListNetworkManagerEffectiveConnectivityConfigurationsOptionalParams + ): Promise { + return this.sendOperationRequest( + { resourceGroupName, virtualNetworkName, parameters, options }, + listNetworkManagerEffectiveConnectivityConfigurationsOperationSpec + ); + } + + /** + * List all effective security admin rules applied on a virtual network. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param parameters Parameters supplied to list correct page. + * @param options The options parameters. + */ + listNetworkManagerEffectiveSecurityAdminRules( + resourceGroupName: string, + virtualNetworkName: string, + parameters: QueryRequestOptions, + options?: ListNetworkManagerEffectiveSecurityAdminRulesOptionalParams + ): Promise { + return this.sendOperationRequest( + { resourceGroupName, virtualNetworkName, parameters, options }, + listNetworkManagerEffectiveSecurityAdminRulesOperationSpec + ); + } + /** * Gives the supported security providers for the virtual wan. * @param resourceGroupName The resource group name. @@ -1358,6 +1534,8 @@ export class NetworkManagementClient extends coreClient.ServiceClient { applicationGateways: ApplicationGateways; applicationGatewayPrivateLinkResources: ApplicationGatewayPrivateLinkResources; applicationGatewayPrivateEndpointConnections: ApplicationGatewayPrivateEndpointConnections; + applicationGatewayWafDynamicManifestsDefault: ApplicationGatewayWafDynamicManifestsDefault; + applicationGatewayWafDynamicManifests: ApplicationGatewayWafDynamicManifests; applicationSecurityGroups: ApplicationSecurityGroups; availableDelegations: AvailableDelegations; availableResourceGroupDelegations: AvailableResourceGroupDelegations; @@ -1368,6 +1546,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { bastionHosts: BastionHosts; networkInterfaces: NetworkInterfaces; publicIPAddresses: PublicIPAddresses; + vipSwap: VipSwap; customIPPrefixes: CustomIPPrefixes; ddosCustomPolicies: DdosCustomPolicies; ddosProtectionPlans: DdosProtectionPlans; @@ -1384,6 +1563,8 @@ export class NetworkManagementClient extends coreClient.ServiceClient { expressRoutePortsLocations: ExpressRoutePortsLocations; expressRoutePorts: ExpressRoutePorts; expressRouteLinks: ExpressRouteLinks; + expressRoutePortAuthorizations: ExpressRoutePortAuthorizations; + expressRouteProviderPortsLocation: ExpressRouteProviderPortsLocation; firewallPolicies: FirewallPolicies; firewallPolicyRuleCollectionGroups: FirewallPolicyRuleCollectionGroups; firewallPolicyIdpsSignatures: FirewallPolicyIdpsSignatures; @@ -1403,6 +1584,18 @@ export class NetworkManagementClient extends coreClient.ServiceClient { networkInterfaceIPConfigurations: NetworkInterfaceIPConfigurations; networkInterfaceLoadBalancers: NetworkInterfaceLoadBalancers; networkInterfaceTapConfigurations: NetworkInterfaceTapConfigurations; + networkManagers: NetworkManagers; + networkManagerCommits: NetworkManagerCommits; + networkManagerDeploymentStatusOperations: NetworkManagerDeploymentStatusOperations; + subscriptionNetworkManagerConnections: SubscriptionNetworkManagerConnections; + managementGroupNetworkManagerConnections: ManagementGroupNetworkManagerConnections; + connectivityConfigurations: ConnectivityConfigurations; + networkGroups: NetworkGroups; + staticMembers: StaticMembers; + scopeConnections: ScopeConnections; + securityAdminConfigurations: SecurityAdminConfigurations; + adminRuleCollections: AdminRuleCollections; + adminRules: AdminRules; networkProfiles: NetworkProfiles; networkSecurityGroups: NetworkSecurityGroups; securityRules: SecurityRules; @@ -1449,7 +1642,9 @@ export class NetworkManagementClient extends coreClient.ServiceClient { vpnSiteLinks: VpnSiteLinks; vpnSitesConfiguration: VpnSitesConfiguration; vpnServerConfigurations: VpnServerConfigurations; + configurationPolicyGroups: ConfigurationPolicyGroups; virtualHubs: VirtualHubs; + routeMaps: RouteMaps; hubVirtualNetworkConnections: HubVirtualNetworkConnections; vpnGateways: VpnGateways; vpnLinkConnections: VpnLinkConnections; @@ -1629,6 +1824,124 @@ const checkDnsNameAvailabilityOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const expressRouteProviderPortOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteProviderPorts/{providerport}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ExpressRouteProviderPort + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.providerport + ], + headerParameters: [Parameters.accept], + serializer +}; +const listActiveConnectivityConfigurationsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/listActiveConnectivityConfigurations", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ActiveConnectivityConfigurationsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters6, + queryParameters: [Parameters.apiVersion, Parameters.top], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listActiveSecurityAdminRulesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/listActiveSecurityAdminRules", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ActiveSecurityAdminRulesListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters6, + queryParameters: [Parameters.apiVersion, Parameters.top], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNetworkManagerEffectiveConnectivityConfigurationsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listNetworkManagerEffectiveConnectivityConfigurations", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: + Mappers.NetworkManagerEffectiveConnectivityConfigurationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion, Parameters.top], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.virtualNetworkName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNetworkManagerEffectiveSecurityAdminRulesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listNetworkManagerEffectiveSecurityAdminRules", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.NetworkManagerEffectiveSecurityAdminRulesListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion, Parameters.top], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.virtualNetworkName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const supportedSecurityProvidersOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/supportedSecurityProviders", diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/adminRuleCollections.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/adminRuleCollections.ts new file mode 100644 index 0000000000..fe4beaeb41 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/adminRuleCollections.ts @@ -0,0 +1,468 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { AdminRuleCollections } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + AdminRuleCollection, + AdminRuleCollectionsListNextOptionalParams, + AdminRuleCollectionsListOptionalParams, + AdminRuleCollectionsListResponse, + AdminRuleCollectionsGetOptionalParams, + AdminRuleCollectionsGetResponse, + AdminRuleCollectionsCreateOrUpdateOptionalParams, + AdminRuleCollectionsCreateOrUpdateResponse, + AdminRuleCollectionsDeleteOptionalParams, + AdminRuleCollectionsListNextResponse +} from "../models"; + +/// +/** Class containing AdminRuleCollections operations. */ +export class AdminRuleCollectionsImpl implements AdminRuleCollections { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class AdminRuleCollections class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * Lists all the rule collections in a security admin configuration, in a paginated format. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + options?: AdminRuleCollectionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + networkManagerName, + configurationName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + networkManagerName, + configurationName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + options?: AdminRuleCollectionsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: AdminRuleCollectionsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + networkManagerName, + configurationName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + networkManagerName, + configurationName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + options?: AdminRuleCollectionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + networkManagerName, + configurationName, + options + )) { + yield* page; + } + } + + /** + * Lists all the rule collections in a security admin configuration, in a paginated format. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + options?: AdminRuleCollectionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, configurationName, options }, + listOperationSpec + ); + } + + /** + * Gets a network manager security admin configuration rule collection. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + ruleCollectionName: string, + options?: AdminRuleCollectionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates an admin rule collection. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param ruleCollection The Rule Collection to create or update + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + ruleCollectionName: string, + ruleCollection: AdminRuleCollection, + options?: AdminRuleCollectionsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName, + ruleCollection, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes an admin rule collection. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + ruleCollectionName: string, + options?: AdminRuleCollectionsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName, + options + }, + deleteOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes an admin rule collection. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + ruleCollectionName: string, + options?: AdminRuleCollectionsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + nextLink: string, + options?: AdminRuleCollectionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + configurationName, + nextLink, + options + }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AdminRuleCollectionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.top, + Parameters.skipToken + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.configurationName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AdminRuleCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.configurationName, + Parameters.ruleCollectionName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.AdminRuleCollection + }, + 201: { + bodyMapper: Mappers.AdminRuleCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.ruleCollection, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.configurationName, + Parameters.ruleCollectionName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion, Parameters.force], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.configurationName, + Parameters.ruleCollectionName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AdminRuleCollectionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.networkManagerName, + Parameters.configurationName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/adminRules.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/adminRules.ts new file mode 100644 index 0000000000..d01c015f1d --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/adminRules.ts @@ -0,0 +1,505 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { AdminRules } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + BaseAdminRuleUnion, + AdminRulesListNextOptionalParams, + AdminRulesListOptionalParams, + AdminRulesListResponse, + AdminRulesGetOptionalParams, + AdminRulesGetResponse, + AdminRulesCreateOrUpdateOptionalParams, + AdminRulesCreateOrUpdateResponse, + AdminRulesDeleteOptionalParams, + AdminRulesListNextResponse +} from "../models"; + +/// +/** Class containing AdminRules operations. */ +export class AdminRulesImpl implements AdminRules { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class AdminRules class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * List all network manager security configuration admin rules. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + ruleCollectionName: string, + options?: AdminRulesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + ruleCollectionName: string, + options?: AdminRulesListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: AdminRulesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + ruleCollectionName: string, + options?: AdminRulesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName, + options + )) { + yield* page; + } + } + + /** + * List all network manager security configuration admin rules. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + ruleCollectionName: string, + options?: AdminRulesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName, + options + }, + listOperationSpec + ); + } + + /** + * Gets a network manager security configuration admin rule. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param ruleName The name of the rule. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + ruleCollectionName: string, + ruleName: string, + options?: AdminRulesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName, + ruleName, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates an admin rule. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param ruleName The name of the rule. + * @param adminRule The admin rule to create or update + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + ruleCollectionName: string, + ruleName: string, + adminRule: BaseAdminRuleUnion, + options?: AdminRulesCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName, + ruleName, + adminRule, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes an admin rule. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param ruleName The name of the rule. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + ruleCollectionName: string, + ruleName: string, + options?: AdminRulesDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName, + ruleName, + options + }, + deleteOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes an admin rule. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param ruleName The name of the rule. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + ruleCollectionName: string, + ruleName: string, + options?: AdminRulesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName, + ruleName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + ruleCollectionName: string, + nextLink: string, + options?: AdminRulesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + configurationName, + ruleCollectionName, + nextLink, + options + }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AdminRuleListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.top, + Parameters.skipToken + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.configurationName, + Parameters.ruleCollectionName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BaseAdminRule + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.configurationName, + Parameters.ruleCollectionName, + Parameters.ruleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.BaseAdminRule + }, + 201: { + bodyMapper: Mappers.BaseAdminRule + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.adminRule, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.configurationName, + Parameters.ruleCollectionName, + Parameters.ruleName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}/ruleCollections/{ruleCollectionName}/rules/{ruleName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion, Parameters.force], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.configurationName, + Parameters.ruleCollectionName, + Parameters.ruleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AdminRuleListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.networkManagerName, + Parameters.configurationName, + Parameters.ruleCollectionName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/applicationGatewayWafDynamicManifests.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/applicationGatewayWafDynamicManifests.ts new file mode 100644 index 0000000000..007a0683c5 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/applicationGatewayWafDynamicManifests.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ApplicationGatewayWafDynamicManifests } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { + ApplicationGatewayWafDynamicManifestResult, + ApplicationGatewayWafDynamicManifestsGetNextOptionalParams, + ApplicationGatewayWafDynamicManifestsGetOptionalParams, + ApplicationGatewayWafDynamicManifestsGetResponse, + ApplicationGatewayWafDynamicManifestsGetNextResponse +} from "../models"; + +/// +/** Class containing ApplicationGatewayWafDynamicManifests operations. */ +export class ApplicationGatewayWafDynamicManifestsImpl + implements ApplicationGatewayWafDynamicManifests { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class ApplicationGatewayWafDynamicManifests class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * Gets the regional application gateway waf manifest. + * @param location The region where the nrp are located at. + * @param options The options parameters. + */ + public list( + location: string, + options?: ApplicationGatewayWafDynamicManifestsGetOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.getPagingAll(location, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.getPagingPage(location, options, settings); + } + }; + } + + private async *getPagingPage( + location: string, + options?: ApplicationGatewayWafDynamicManifestsGetOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ApplicationGatewayWafDynamicManifestsGetResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._get(location, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._getNext(location, continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *getPagingAll( + location: string, + options?: ApplicationGatewayWafDynamicManifestsGetOptionalParams + ): AsyncIterableIterator { + for await (const page of this.getPagingPage(location, options)) { + yield* page; + } + } + + /** + * Gets the regional application gateway waf manifest. + * @param location The region where the nrp are located at. + * @param options The options parameters. + */ + private _get( + location: string, + options?: ApplicationGatewayWafDynamicManifestsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { location, options }, + getOperationSpec + ); + } + + /** + * GetNext + * @param location The region where the nrp are located at. + * @param nextLink The nextLink from the previous successful call to the Get method. + * @param options The options parameters. + */ + private _getNext( + location: string, + nextLink: string, + options?: ApplicationGatewayWafDynamicManifestsGetNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { location, nextLink, options }, + getNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/applicationGatewayWafDynamicManifests", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApplicationGatewayWafDynamicManifestResultList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location + ], + headerParameters: [Parameters.accept], + serializer +}; +const getNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApplicationGatewayWafDynamicManifestResultList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.location + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/applicationGatewayWafDynamicManifestsDefault.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/applicationGatewayWafDynamicManifestsDefault.ts new file mode 100644 index 0000000000..9fa3feea34 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/applicationGatewayWafDynamicManifestsDefault.ts @@ -0,0 +1,70 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { ApplicationGatewayWafDynamicManifestsDefault } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { + ApplicationGatewayWafDynamicManifestsDefaultGetOptionalParams, + ApplicationGatewayWafDynamicManifestsDefaultGetResponse +} from "../models"; + +/** Class containing ApplicationGatewayWafDynamicManifestsDefault operations. */ +export class ApplicationGatewayWafDynamicManifestsDefaultImpl + implements ApplicationGatewayWafDynamicManifestsDefault { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class ApplicationGatewayWafDynamicManifestsDefault class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * Gets the regional application gateway waf manifest. + * @param location The region where the nrp are located at. + * @param options The options parameters. + */ + get( + location: string, + options?: ApplicationGatewayWafDynamicManifestsDefaultGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { location, options }, + getOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/applicationGatewayWafDynamicManifests/dafault", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApplicationGatewayWafDynamicManifestResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/azureFirewalls.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/azureFirewalls.ts index 98ea281984..a98c426dea 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/azureFirewalls.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/azureFirewalls.ts @@ -31,6 +31,8 @@ import { TagsObject, AzureFirewallsUpdateTagsOptionalParams, AzureFirewallsUpdateTagsResponse, + AzureFirewallsListLearnedPrefixesOptionalParams, + AzureFirewallsListLearnedPrefixesResponse, AzureFirewallsListNextResponse, AzureFirewallsListAllNextResponse } from "../models"; @@ -475,6 +477,94 @@ export class AzureFirewallsImpl implements AzureFirewalls { return this.client.sendOperationRequest({ options }, listAllOperationSpec); } + /** + * Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the azure firewall. + * @param options The options parameters. + */ + async beginListLearnedPrefixes( + resourceGroupName: string, + azureFirewallName: string, + options?: AzureFirewallsListLearnedPrefixesOptionalParams + ): Promise< + PollerLike< + PollOperationState, + AzureFirewallsListLearnedPrefixesResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, azureFirewallName, options }, + listLearnedPrefixesOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the azure firewall. + * @param options The options parameters. + */ + async beginListLearnedPrefixesAndWait( + resourceGroupName: string, + azureFirewallName: string, + options?: AzureFirewallsListLearnedPrefixesOptionalParams + ): Promise { + const poller = await this.beginListLearnedPrefixes( + resourceGroupName, + azureFirewallName, + options + ); + return poller.pollUntilDone(); + } + /** * ListNext * @param resourceGroupName The name of the resource group. @@ -659,6 +749,37 @@ const listAllOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const listLearnedPrefixesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}/learnedIPPrefixes", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.IPPrefixesList + }, + 201: { + bodyMapper: Mappers.IPPrefixesList + }, + 202: { + bodyMapper: Mappers.IPPrefixesList + }, + 204: { + bodyMapper: Mappers.IPPrefixesList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.azureFirewallName + ], + headerParameters: [Parameters.accept], + serializer +}; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/configurationPolicyGroups.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/configurationPolicyGroups.ts new file mode 100644 index 0000000000..88f438afaf --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/configurationPolicyGroups.ts @@ -0,0 +1,517 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ConfigurationPolicyGroups } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + VpnServerConfigurationPolicyGroup, + ConfigurationPolicyGroupsListByVpnServerConfigurationNextOptionalParams, + ConfigurationPolicyGroupsListByVpnServerConfigurationOptionalParams, + ConfigurationPolicyGroupsListByVpnServerConfigurationResponse, + ConfigurationPolicyGroupsCreateOrUpdateOptionalParams, + ConfigurationPolicyGroupsCreateOrUpdateResponse, + ConfigurationPolicyGroupsDeleteOptionalParams, + ConfigurationPolicyGroupsGetOptionalParams, + ConfigurationPolicyGroupsGetResponse, + ConfigurationPolicyGroupsListByVpnServerConfigurationNextResponse +} from "../models"; + +/// +/** Class containing ConfigurationPolicyGroups operations. */ +export class ConfigurationPolicyGroupsImpl + implements ConfigurationPolicyGroups { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class ConfigurationPolicyGroups class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * Lists all the configurationPolicyGroups in a resource group for a vpnServerConfiguration. + * @param resourceGroupName The resource group name of the VpnServerConfiguration. + * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param options The options parameters. + */ + public listByVpnServerConfiguration( + resourceGroupName: string, + vpnServerConfigurationName: string, + options?: ConfigurationPolicyGroupsListByVpnServerConfigurationOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByVpnServerConfigurationPagingAll( + resourceGroupName, + vpnServerConfigurationName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByVpnServerConfigurationPagingPage( + resourceGroupName, + vpnServerConfigurationName, + options, + settings + ); + } + }; + } + + private async *listByVpnServerConfigurationPagingPage( + resourceGroupName: string, + vpnServerConfigurationName: string, + options?: ConfigurationPolicyGroupsListByVpnServerConfigurationOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ConfigurationPolicyGroupsListByVpnServerConfigurationResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByVpnServerConfiguration( + resourceGroupName, + vpnServerConfigurationName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByVpnServerConfigurationNext( + resourceGroupName, + vpnServerConfigurationName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByVpnServerConfigurationPagingAll( + resourceGroupName: string, + vpnServerConfigurationName: string, + options?: ConfigurationPolicyGroupsListByVpnServerConfigurationOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByVpnServerConfigurationPagingPage( + resourceGroupName, + vpnServerConfigurationName, + options + )) { + yield* page; + } + } + + /** + * Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. + * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. + * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param vpnServerConfigurationPolicyGroupParameters Parameters supplied to create or update a + * VpnServerConfiguration PolicyGroup. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + vpnServerConfigurationName: string, + configurationPolicyGroupName: string, + vpnServerConfigurationPolicyGroupParameters: VpnServerConfigurationPolicyGroup, + options?: ConfigurationPolicyGroupsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ConfigurationPolicyGroupsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + vpnServerConfigurationName, + configurationPolicyGroupName, + vpnServerConfigurationPolicyGroupParameters, + options + }, + createOrUpdateOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. + * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. + * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param vpnServerConfigurationPolicyGroupParameters Parameters supplied to create or update a + * VpnServerConfiguration PolicyGroup. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + vpnServerConfigurationName: string, + configurationPolicyGroupName: string, + vpnServerConfigurationPolicyGroupParameters: VpnServerConfigurationPolicyGroup, + options?: ConfigurationPolicyGroupsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + vpnServerConfigurationName, + configurationPolicyGroupName, + vpnServerConfigurationPolicyGroupParameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a ConfigurationPolicyGroup. + * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. + * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + vpnServerConfigurationName: string, + configurationPolicyGroupName: string, + options?: ConfigurationPolicyGroupsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + vpnServerConfigurationName, + configurationPolicyGroupName, + options + }, + deleteOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes a ConfigurationPolicyGroup. + * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. + * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + vpnServerConfigurationName: string, + configurationPolicyGroupName: string, + options?: ConfigurationPolicyGroupsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + vpnServerConfigurationName, + configurationPolicyGroupName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Retrieves the details of a ConfigurationPolicyGroup. + * @param resourceGroupName The resource group name of the VpnServerConfiguration. + * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup being retrieved. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + vpnServerConfigurationName: string, + configurationPolicyGroupName: string, + options?: ConfigurationPolicyGroupsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + vpnServerConfigurationName, + configurationPolicyGroupName, + options + }, + getOperationSpec + ); + } + + /** + * Lists all the configurationPolicyGroups in a resource group for a vpnServerConfiguration. + * @param resourceGroupName The resource group name of the VpnServerConfiguration. + * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param options The options parameters. + */ + private _listByVpnServerConfiguration( + resourceGroupName: string, + vpnServerConfigurationName: string, + options?: ConfigurationPolicyGroupsListByVpnServerConfigurationOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, vpnServerConfigurationName, options }, + listByVpnServerConfigurationOperationSpec + ); + } + + /** + * ListByVpnServerConfigurationNext + * @param resourceGroupName The resource group name of the VpnServerConfiguration. + * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param nextLink The nextLink from the previous successful call to the ListByVpnServerConfiguration + * method. + * @param options The options parameters. + */ + private _listByVpnServerConfigurationNext( + resourceGroupName: string, + vpnServerConfigurationName: string, + nextLink: string, + options?: ConfigurationPolicyGroupsListByVpnServerConfigurationNextOptionalParams + ): Promise< + ConfigurationPolicyGroupsListByVpnServerConfigurationNextResponse + > { + return this.client.sendOperationRequest( + { resourceGroupName, vpnServerConfigurationName, nextLink, options }, + listByVpnServerConfigurationNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}/configurationPolicyGroups/{configurationPolicyGroupName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.VpnServerConfigurationPolicyGroup + }, + 201: { + bodyMapper: Mappers.VpnServerConfigurationPolicyGroup + }, + 202: { + bodyMapper: Mappers.VpnServerConfigurationPolicyGroup + }, + 204: { + bodyMapper: Mappers.VpnServerConfigurationPolicyGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.vpnServerConfigurationPolicyGroupParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.vpnServerConfigurationName, + Parameters.configurationPolicyGroupName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}/configurationPolicyGroups/{configurationPolicyGroupName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.vpnServerConfigurationName, + Parameters.configurationPolicyGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}/configurationPolicyGroups/{configurationPolicyGroupName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VpnServerConfigurationPolicyGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.vpnServerConfigurationName, + Parameters.configurationPolicyGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByVpnServerConfigurationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}/configurationPolicyGroups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ListVpnServerConfigurationPolicyGroupsResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.vpnServerConfigurationName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByVpnServerConfigurationNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ListVpnServerConfigurationPolicyGroupsResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.vpnServerConfigurationName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/connectionMonitors.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/connectionMonitors.ts index 435399e150..bc48fc532b 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/connectionMonitors.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/connectionMonitors.ts @@ -656,7 +656,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters46, + requestBody: Parameters.parameters57, queryParameters: [Parameters.apiVersion, Parameters.migrate], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/connectivityConfigurations.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/connectivityConfigurations.ts new file mode 100644 index 0000000000..b9f1c93c21 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/connectivityConfigurations.ts @@ -0,0 +1,423 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ConnectivityConfigurations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + ConnectivityConfiguration, + ConnectivityConfigurationsListNextOptionalParams, + ConnectivityConfigurationsListOptionalParams, + ConnectivityConfigurationsListResponse, + ConnectivityConfigurationsGetOptionalParams, + ConnectivityConfigurationsGetResponse, + ConnectivityConfigurationsCreateOrUpdateOptionalParams, + ConnectivityConfigurationsCreateOrUpdateResponse, + ConnectivityConfigurationsDeleteOptionalParams, + ConnectivityConfigurationsListNextResponse +} from "../models"; + +/// +/** Class containing ConnectivityConfigurations operations. */ +export class ConnectivityConfigurationsImpl + implements ConnectivityConfigurations { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class ConnectivityConfigurations class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * Lists all the network manager connectivity configuration in a specified network manager. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + networkManagerName: string, + options?: ConnectivityConfigurationsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + networkManagerName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + networkManagerName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + networkManagerName: string, + options?: ConnectivityConfigurationsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ConnectivityConfigurationsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, networkManagerName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + networkManagerName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + networkManagerName: string, + options?: ConnectivityConfigurationsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + networkManagerName, + options + )) { + yield* page; + } + } + + /** + * Gets a Network Connectivity Configuration, specified by the resource group, network manager name, + * and connectivity Configuration name + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager connectivity configuration. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + options?: ConnectivityConfigurationsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, configurationName, options }, + getOperationSpec + ); + } + + /** + * Creates/Updates a new network manager connectivity configuration + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager connectivity configuration. + * @param connectivityConfiguration Parameters supplied to create/update a network manager connectivity + * configuration + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + connectivityConfiguration: ConnectivityConfiguration, + options?: ConnectivityConfigurationsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + configurationName, + connectivityConfiguration, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes a network manager connectivity configuration, specified by the resource group, network + * manager name, and connectivity configuration name + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager connectivity configuration. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + options?: ConnectivityConfigurationsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, networkManagerName, configurationName, options }, + deleteOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes a network manager connectivity configuration, specified by the resource group, network + * manager name, and connectivity configuration name + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager connectivity configuration. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + options?: ConnectivityConfigurationsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + networkManagerName, + configurationName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Lists all the network manager connectivity configuration in a specified network manager. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + networkManagerName: string, + options?: ConnectivityConfigurationsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + networkManagerName: string, + nextLink: string, + options?: ConnectivityConfigurationsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/connectivityConfigurations/{configurationName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ConnectivityConfiguration + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.configurationName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/connectivityConfigurations/{configurationName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ConnectivityConfiguration + }, + 201: { + bodyMapper: Mappers.ConnectivityConfiguration + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.connectivityConfiguration, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.configurationName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/connectivityConfigurations/{configurationName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion, Parameters.force], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.configurationName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/connectivityConfigurations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ConnectivityConfigurationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.top, + Parameters.skipToken + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ConnectivityConfigurationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.networkManagerName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/customIPPrefixes.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/customIPPrefixes.ts index 5e42607c63..dc596668c7 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/customIPPrefixes.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/customIPPrefixes.ts @@ -502,7 +502,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/ddosCustomPolicies.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/ddosCustomPolicies.ts index 09575ca1a1..1f68563211 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/ddosCustomPolicies.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/ddosCustomPolicies.ts @@ -318,7 +318,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters9, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/ddosProtectionPlans.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/ddosProtectionPlans.ts index 4053bfa54d..1c20192d33 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/ddosProtectionPlans.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/ddosProtectionPlans.ts @@ -509,7 +509,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/dscpConfigurationOperations.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/dscpConfigurationOperations.ts index 993dd25f43..b7a08b1190 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/dscpConfigurationOperations.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/dscpConfigurationOperations.ts @@ -436,7 +436,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters11, + requestBody: Parameters.parameters14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/expressRouteCircuits.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/expressRouteCircuits.ts index cf1895d290..7a605418c7 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/expressRouteCircuits.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/expressRouteCircuits.ts @@ -848,7 +848,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters12, + requestBody: Parameters.parameters15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/expressRouteCrossConnections.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/expressRouteCrossConnections.ts index 202bda3f54..7ec8ce4c15 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/expressRouteCrossConnections.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/expressRouteCrossConnections.ts @@ -770,7 +770,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters13, + requestBody: Parameters.parameters16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/expressRoutePortAuthorizations.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/expressRoutePortAuthorizations.ts new file mode 100644 index 0000000000..20aa6321c2 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/expressRoutePortAuthorizations.ts @@ -0,0 +1,504 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ExpressRoutePortAuthorizations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + ExpressRoutePortAuthorization, + ExpressRoutePortAuthorizationsListNextOptionalParams, + ExpressRoutePortAuthorizationsListOptionalParams, + ExpressRoutePortAuthorizationsListResponse, + ExpressRoutePortAuthorizationsDeleteOptionalParams, + ExpressRoutePortAuthorizationsGetOptionalParams, + ExpressRoutePortAuthorizationsGetResponse, + ExpressRoutePortAuthorizationsCreateOrUpdateOptionalParams, + ExpressRoutePortAuthorizationsCreateOrUpdateResponse, + ExpressRoutePortAuthorizationsListNextResponse +} from "../models"; + +/// +/** Class containing ExpressRoutePortAuthorizations operations. */ +export class ExpressRoutePortAuthorizationsImpl + implements ExpressRoutePortAuthorizations { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class ExpressRoutePortAuthorizations class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * Gets all authorizations in an express route port. + * @param resourceGroupName The name of the resource group. + * @param expressRoutePortName The name of the express route port. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + expressRoutePortName: string, + options?: ExpressRoutePortAuthorizationsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + expressRoutePortName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + expressRoutePortName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + expressRoutePortName: string, + options?: ExpressRoutePortAuthorizationsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ExpressRoutePortAuthorizationsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + expressRoutePortName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + expressRoutePortName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + expressRoutePortName: string, + options?: ExpressRoutePortAuthorizationsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + expressRoutePortName, + options + )) { + yield* page; + } + } + + /** + * Deletes the specified authorization from the specified express route port. + * @param resourceGroupName The name of the resource group. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + expressRoutePortName: string, + authorizationName: string, + options?: ExpressRoutePortAuthorizationsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, expressRoutePortName, authorizationName, options }, + deleteOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes the specified authorization from the specified express route port. + * @param resourceGroupName The name of the resource group. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + expressRoutePortName: string, + authorizationName: string, + options?: ExpressRoutePortAuthorizationsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + expressRoutePortName, + authorizationName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Gets the specified authorization from the specified express route port. + * @param resourceGroupName The name of the resource group. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + expressRoutePortName: string, + authorizationName: string, + options?: ExpressRoutePortAuthorizationsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, expressRoutePortName, authorizationName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates an authorization in the specified express route port. + * @param resourceGroupName The name of the resource group. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @param authorizationParameters Parameters supplied to the create or update express route port + * authorization operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + expressRoutePortName: string, + authorizationName: string, + authorizationParameters: ExpressRoutePortAuthorization, + options?: ExpressRoutePortAuthorizationsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ExpressRoutePortAuthorizationsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + expressRoutePortName, + authorizationName, + authorizationParameters, + options + }, + createOrUpdateOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates an authorization in the specified express route port. + * @param resourceGroupName The name of the resource group. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @param authorizationParameters Parameters supplied to the create or update express route port + * authorization operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + expressRoutePortName: string, + authorizationName: string, + authorizationParameters: ExpressRoutePortAuthorization, + options?: ExpressRoutePortAuthorizationsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + expressRoutePortName, + authorizationName, + authorizationParameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Gets all authorizations in an express route port. + * @param resourceGroupName The name of the resource group. + * @param expressRoutePortName The name of the express route port. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + expressRoutePortName: string, + options?: ExpressRoutePortAuthorizationsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, expressRoutePortName, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. + * @param expressRoutePortName The name of the express route port. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + expressRoutePortName: string, + nextLink: string, + options?: ExpressRoutePortAuthorizationsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, expressRoutePortName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRoutePorts/{expressRoutePortName}/authorizations/{authorizationName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.authorizationName, + Parameters.expressRoutePortName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRoutePorts/{expressRoutePortName}/authorizations/{authorizationName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ExpressRoutePortAuthorization + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.authorizationName, + Parameters.expressRoutePortName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRoutePorts/{expressRoutePortName}/authorizations/{authorizationName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ExpressRoutePortAuthorization + }, + 201: { + bodyMapper: Mappers.ExpressRoutePortAuthorization + }, + 202: { + bodyMapper: Mappers.ExpressRoutePortAuthorization + }, + 204: { + bodyMapper: Mappers.ExpressRoutePortAuthorization + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.authorizationParameters1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.authorizationName, + Parameters.expressRoutePortName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRoutePorts/{expressRoutePortName}/authorizations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ExpressRoutePortAuthorizationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.expressRoutePortName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ExpressRoutePortAuthorizationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.expressRoutePortName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/expressRoutePorts.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/expressRoutePorts.ts index e8ab782530..e704ca9672 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/expressRoutePorts.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/expressRoutePorts.ts @@ -531,7 +531,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters14, + requestBody: Parameters.parameters17, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/expressRouteProviderPortsLocation.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/expressRouteProviderPortsLocation.ts new file mode 100644 index 0000000000..d23c32ec08 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/expressRouteProviderPortsLocation.ts @@ -0,0 +1,61 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { ExpressRouteProviderPortsLocation } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { + ExpressRouteProviderPortsLocationListOptionalParams, + ExpressRouteProviderPortsLocationListResponse +} from "../models"; + +/** Class containing ExpressRouteProviderPortsLocation operations. */ +export class ExpressRouteProviderPortsLocationImpl + implements ExpressRouteProviderPortsLocation { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class ExpressRouteProviderPortsLocation class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * Retrieves all the ExpressRouteProviderPorts in a subscription. + * @param options The options parameters. + */ + list( + options?: ExpressRouteProviderPortsLocationListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteProviderPorts", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ExpressRouteProviderPortListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion, Parameters.filter], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/firewallPolicies.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/firewallPolicies.ts index 6a215545c8..b65885a81c 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/firewallPolicies.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/firewallPolicies.ts @@ -28,6 +28,9 @@ import { FirewallPoliciesGetResponse, FirewallPoliciesCreateOrUpdateOptionalParams, FirewallPoliciesCreateOrUpdateResponse, + TagsObject, + FirewallPoliciesUpdateTagsOptionalParams, + FirewallPoliciesUpdateTagsResponse, FirewallPoliciesListNextResponse, FirewallPoliciesListAllNextResponse } from "../models"; @@ -354,6 +357,25 @@ export class FirewallPoliciesImpl implements FirewallPolicies { return poller.pollUntilDone(); } + /** + * Updates tags of a Azure Firewall Policy resource. + * @param resourceGroupName The name of the resource group. + * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Parameters supplied to update Azure Firewall Policy tags. + * @param options The options parameters. + */ + updateTags( + resourceGroupName: string, + firewallPolicyName: string, + parameters: TagsObject, + options?: FirewallPoliciesUpdateTagsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, firewallPolicyName, parameters, options }, + updateTagsOperationSpec + ); + } + /** * Lists all Firewall Policies in a resource group. * @param resourceGroupName The name of the resource group. @@ -480,7 +502,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters15, + requestBody: Parameters.parameters18, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.firewallPolicyName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateTagsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.FirewallPolicy + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/firewallPolicyIdpsSignatures.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/firewallPolicyIdpsSignatures.ts index 75812bc4d2..7e777b48e2 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/firewallPolicyIdpsSignatures.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/firewallPolicyIdpsSignatures.ts @@ -64,7 +64,8 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters17, + requestBody: Parameters.parameters20, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/firewallPolicyIdpsSignaturesFilterValues.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/firewallPolicyIdpsSignaturesFilterValues.ts index 22d5a17019..af2d63b600 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/firewallPolicyIdpsSignaturesFilterValues.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/firewallPolicyIdpsSignaturesFilterValues.ts @@ -64,7 +64,8 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters19, + requestBody: Parameters.parameters22, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/firewallPolicyIdpsSignaturesOverrides.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/firewallPolicyIdpsSignaturesOverrides.ts index 546dedf489..04544c7215 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/firewallPolicyIdpsSignaturesOverrides.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/firewallPolicyIdpsSignaturesOverrides.ts @@ -123,7 +123,8 @@ const patchOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters18, + requestBody: Parameters.parameters21, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -146,7 +147,8 @@ const putOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters18, + requestBody: Parameters.parameters21, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -169,6 +171,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -190,6 +193,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/firewallPolicyRuleCollectionGroups.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/firewallPolicyRuleCollectionGroups.ts index 6022438052..fb8a5d36a2 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/firewallPolicyRuleCollectionGroups.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/firewallPolicyRuleCollectionGroups.ts @@ -454,7 +454,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters16, + requestBody: Parameters.parameters19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/flowLogs.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/flowLogs.ts index c3d8359779..35088a5f43 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/flowLogs.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/flowLogs.ts @@ -422,7 +422,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters47, + requestBody: Parameters.parameters58, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/inboundSecurityRuleOperations.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/inboundSecurityRuleOperations.ts index 9f50fa277c..42724fc8ff 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/inboundSecurityRuleOperations.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/inboundSecurityRuleOperations.ts @@ -162,14 +162,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters31, + requestBody: Parameters.parameters42, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.networkVirtualApplianceName, - Parameters.ruleCollectionName + Parameters.ruleCollectionName, + Parameters.networkVirtualApplianceName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/index.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/index.ts index 19e1496111..a666d0b45a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/index.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/index.ts @@ -9,6 +9,8 @@ export * from "./applicationGateways"; export * from "./applicationGatewayPrivateLinkResources"; export * from "./applicationGatewayPrivateEndpointConnections"; +export * from "./applicationGatewayWafDynamicManifestsDefault"; +export * from "./applicationGatewayWafDynamicManifests"; export * from "./applicationSecurityGroups"; export * from "./availableDelegations"; export * from "./availableResourceGroupDelegations"; @@ -19,6 +21,7 @@ export * from "./webCategories"; export * from "./bastionHosts"; export * from "./networkInterfaces"; export * from "./publicIPAddresses"; +export * from "./vipSwap"; export * from "./customIPPrefixes"; export * from "./ddosCustomPolicies"; export * from "./ddosProtectionPlans"; @@ -35,6 +38,8 @@ export * from "./expressRouteCrossConnectionPeerings"; export * from "./expressRoutePortsLocations"; export * from "./expressRoutePorts"; export * from "./expressRouteLinks"; +export * from "./expressRoutePortAuthorizations"; +export * from "./expressRouteProviderPortsLocation"; export * from "./firewallPolicies"; export * from "./firewallPolicyRuleCollectionGroups"; export * from "./firewallPolicyIdpsSignatures"; @@ -54,6 +59,18 @@ export * from "./natGateways"; export * from "./networkInterfaceIPConfigurations"; export * from "./networkInterfaceLoadBalancers"; export * from "./networkInterfaceTapConfigurations"; +export * from "./networkManagers"; +export * from "./networkManagerCommits"; +export * from "./networkManagerDeploymentStatusOperations"; +export * from "./subscriptionNetworkManagerConnections"; +export * from "./managementGroupNetworkManagerConnections"; +export * from "./connectivityConfigurations"; +export * from "./networkGroups"; +export * from "./staticMembers"; +export * from "./scopeConnections"; +export * from "./securityAdminConfigurations"; +export * from "./adminRuleCollections"; +export * from "./adminRules"; export * from "./networkProfiles"; export * from "./networkSecurityGroups"; export * from "./securityRules"; @@ -100,7 +117,9 @@ export * from "./vpnSites"; export * from "./vpnSiteLinks"; export * from "./vpnSitesConfiguration"; export * from "./vpnServerConfigurations"; +export * from "./configurationPolicyGroups"; export * from "./virtualHubs"; +export * from "./routeMaps"; export * from "./hubVirtualNetworkConnections"; export * from "./vpnGateways"; export * from "./vpnLinkConnections"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/ipAllocations.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/ipAllocations.ts index 0a48493d53..a93dcf9c35 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/ipAllocations.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/ipAllocations.ts @@ -509,7 +509,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters20, + requestBody: Parameters.parameters23, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/ipGroups.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/ipGroups.ts index 8579bb411f..eb29984180 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/ipGroups.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/ipGroups.ts @@ -486,7 +486,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters21, + requestBody: Parameters.parameters24, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/loadBalancerBackendAddressPools.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/loadBalancerBackendAddressPools.ts index f327e8ad24..7446f93200 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/loadBalancerBackendAddressPools.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/loadBalancerBackendAddressPools.ts @@ -440,7 +440,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters25, + requestBody: Parameters.parameters28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/loadBalancers.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/loadBalancers.ts index e87e2fed10..dc3ef2dd34 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/loadBalancers.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/loadBalancers.ts @@ -688,7 +688,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters22, + requestBody: Parameters.parameters25, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -775,7 +775,7 @@ const swapPublicIpAddressesOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters23, + requestBody: Parameters.parameters26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -807,13 +807,13 @@ const listInboundNatRulePortMappingsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters24, + requestBody: Parameters.parameters27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.loadBalancerName, Parameters.groupName, + Parameters.loadBalancerName, Parameters.backendPoolName ], headerParameters: [Parameters.accept, Parameters.contentType], diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/localNetworkGateways.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/localNetworkGateways.ts index 2039ad76c6..fb0d3a56c8 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/localNetworkGateways.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/localNetworkGateways.ts @@ -374,7 +374,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters66, + requestBody: Parameters.parameters77, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/managementGroupNetworkManagerConnections.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/managementGroupNetworkManagerConnections.ts new file mode 100644 index 0000000000..5e7d95f3f8 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/managementGroupNetworkManagerConnections.ts @@ -0,0 +1,305 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ManagementGroupNetworkManagerConnections } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { + NetworkManagerConnection, + ManagementGroupNetworkManagerConnectionsListNextOptionalParams, + ManagementGroupNetworkManagerConnectionsListOptionalParams, + ManagementGroupNetworkManagerConnectionsListResponse, + ManagementGroupNetworkManagerConnectionsCreateOrUpdateOptionalParams, + ManagementGroupNetworkManagerConnectionsCreateOrUpdateResponse, + ManagementGroupNetworkManagerConnectionsGetOptionalParams, + ManagementGroupNetworkManagerConnectionsGetResponse, + ManagementGroupNetworkManagerConnectionsDeleteOptionalParams, + ManagementGroupNetworkManagerConnectionsListNextResponse +} from "../models"; + +/// +/** Class containing ManagementGroupNetworkManagerConnections operations. */ +export class ManagementGroupNetworkManagerConnectionsImpl + implements ManagementGroupNetworkManagerConnections { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class ManagementGroupNetworkManagerConnections class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * List all network manager connections created by this management group. + * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure + * management group. + * @param options The options parameters. + */ + public list( + managementGroupId: string, + options?: ManagementGroupNetworkManagerConnectionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(managementGroupId, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(managementGroupId, options, settings); + } + }; + } + + private async *listPagingPage( + managementGroupId: string, + options?: ManagementGroupNetworkManagerConnectionsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ManagementGroupNetworkManagerConnectionsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(managementGroupId, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + managementGroupId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + managementGroupId: string, + options?: ManagementGroupNetworkManagerConnectionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(managementGroupId, options)) { + yield* page; + } + } + + /** + * Create a network manager connection on this management group. + * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure + * management group. + * @param networkManagerConnectionName Name for the network manager connection. + * @param parameters Network manager connection to be created/updated. + * @param options The options parameters. + */ + createOrUpdate( + managementGroupId: string, + networkManagerConnectionName: string, + parameters: NetworkManagerConnection, + options?: ManagementGroupNetworkManagerConnectionsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { managementGroupId, networkManagerConnectionName, parameters, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Get a specified connection created by this management group. + * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure + * management group. + * @param networkManagerConnectionName Name for the network manager connection. + * @param options The options parameters. + */ + get( + managementGroupId: string, + networkManagerConnectionName: string, + options?: ManagementGroupNetworkManagerConnectionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { managementGroupId, networkManagerConnectionName, options }, + getOperationSpec + ); + } + + /** + * Delete specified pending connection created by this management group. + * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure + * management group. + * @param networkManagerConnectionName Name for the network manager connection. + * @param options The options parameters. + */ + delete( + managementGroupId: string, + networkManagerConnectionName: string, + options?: ManagementGroupNetworkManagerConnectionsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { managementGroupId, networkManagerConnectionName, options }, + deleteOperationSpec + ); + } + + /** + * List all network manager connections created by this management group. + * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure + * management group. + * @param options The options parameters. + */ + private _list( + managementGroupId: string, + options?: ManagementGroupNetworkManagerConnectionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { managementGroupId, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure + * management group. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + managementGroupId: string, + nextLink: string, + options?: ManagementGroupNetworkManagerConnectionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { managementGroupId, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.NetworkManagerConnection + }, + 201: { + bodyMapper: Mappers.NetworkManagerConnection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters34, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.networkManagerConnectionName, + Parameters.managementGroupId + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkManagerConnection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.networkManagerConnectionName, + Parameters.managementGroupId + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.networkManagerConnectionName, + Parameters.managementGroupId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkManagerConnectionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.top, + Parameters.skipToken + ], + urlParameters: [Parameters.$host, Parameters.managementGroupId], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkManagerConnectionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.managementGroupId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/natGateways.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/natGateways.ts index ffa0361a39..a5bfd52219 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/natGateways.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/natGateways.ts @@ -502,7 +502,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters26, + requestBody: Parameters.parameters29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkGroups.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkGroups.ts new file mode 100644 index 0000000000..c0ed61c4d0 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkGroups.ts @@ -0,0 +1,424 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { NetworkGroups } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + NetworkGroup, + NetworkGroupsListNextOptionalParams, + NetworkGroupsListOptionalParams, + NetworkGroupsListResponse, + NetworkGroupsGetOptionalParams, + NetworkGroupsGetResponse, + NetworkGroupsCreateOrUpdateOptionalParams, + NetworkGroupsCreateOrUpdateResponse, + NetworkGroupsDeleteOptionalParams, + NetworkGroupsListNextResponse +} from "../models"; + +/// +/** Class containing NetworkGroups operations. */ +export class NetworkGroupsImpl implements NetworkGroups { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class NetworkGroups class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * Lists the specified network group. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + networkManagerName: string, + options?: NetworkGroupsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + networkManagerName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + networkManagerName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + networkManagerName: string, + options?: NetworkGroupsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: NetworkGroupsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, networkManagerName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + networkManagerName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + networkManagerName: string, + options?: NetworkGroupsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + networkManagerName, + options + )) { + yield* page; + } + } + + /** + * Gets the specified network group. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param networkGroupName The name of the network group. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + networkGroupName: string, + options?: NetworkGroupsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, networkGroupName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates a network group. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param networkGroupName The name of the network group. + * @param parameters Parameters supplied to the specify which network group need to create + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + networkManagerName: string, + networkGroupName: string, + parameters: NetworkGroup, + options?: NetworkGroupsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + networkGroupName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes a network group. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param networkGroupName The name of the network group. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + networkManagerName: string, + networkGroupName: string, + options?: NetworkGroupsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, networkManagerName, networkGroupName, options }, + deleteOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes a network group. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param networkGroupName The name of the network group. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + networkManagerName: string, + networkGroupName: string, + options?: NetworkGroupsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + networkManagerName, + networkGroupName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Lists the specified network group. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + networkManagerName: string, + options?: NetworkGroupsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + networkManagerName: string, + nextLink: string, + options?: NetworkGroupsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.networkGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.NetworkGroup, + headersMapper: Mappers.NetworkGroupsCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.NetworkGroup, + headersMapper: Mappers.NetworkGroupsCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters35, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.networkGroupName + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion, Parameters.force], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.networkGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.top, + Parameters.skipToken + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.networkManagerName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkInterfaces.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkInterfaces.ts index 2107fe55eb..928feab5fa 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkInterfaces.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkInterfaces.ts @@ -1571,7 +1571,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkManagerCommits.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkManagerCommits.ts new file mode 100644 index 0000000000..d614f67d15 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkManagerCommits.ts @@ -0,0 +1,162 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { NetworkManagerCommits } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + NetworkManagerCommit, + NetworkManagerCommitsPostOptionalParams, + NetworkManagerCommitsPostResponse +} from "../models"; + +/** Class containing NetworkManagerCommits operations. */ +export class NetworkManagerCommitsImpl implements NetworkManagerCommits { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class NetworkManagerCommits class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * Post a Network Manager Commit. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param parameters Parameters supplied to specify which Managed Network commit is. + * @param options The options parameters. + */ + async beginPost( + resourceGroupName: string, + networkManagerName: string, + parameters: NetworkManagerCommit, + options?: NetworkManagerCommitsPostOptionalParams + ): Promise< + PollerLike< + PollOperationState, + NetworkManagerCommitsPostResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, networkManagerName, parameters, options }, + postOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Post a Network Manager Commit. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param parameters Parameters supplied to specify which Managed Network commit is. + * @param options The options parameters. + */ + async beginPostAndWait( + resourceGroupName: string, + networkManagerName: string, + parameters: NetworkManagerCommit, + options?: NetworkManagerCommitsPostOptionalParams + ): Promise { + const poller = await this.beginPost( + resourceGroupName, + networkManagerName, + parameters, + options + ); + return poller.pollUntilDone(); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const postOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/commit", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.NetworkManagerCommit + }, + 201: { + bodyMapper: Mappers.NetworkManagerCommit + }, + 202: { + bodyMapper: Mappers.NetworkManagerCommit + }, + 204: { + bodyMapper: Mappers.NetworkManagerCommit + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters32, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkManagerDeploymentStatusOperations.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkManagerDeploymentStatusOperations.ts new file mode 100644 index 0000000000..7796b57667 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkManagerDeploymentStatusOperations.ts @@ -0,0 +1,78 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { NetworkManagerDeploymentStatusOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { + NetworkManagerDeploymentStatusParameter, + NetworkManagerDeploymentStatusListOptionalParams, + NetworkManagerDeploymentStatusListResponse +} from "../models"; + +/** Class containing NetworkManagerDeploymentStatusOperations operations. */ +export class NetworkManagerDeploymentStatusOperationsImpl + implements NetworkManagerDeploymentStatusOperations { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class NetworkManagerDeploymentStatusOperations class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * Post to List of Network Manager Deployment Status. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param parameters Parameters supplied to specify which Managed Network deployment status is. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + networkManagerName: string, + parameters: NetworkManagerDeploymentStatusParameter, + options?: NetworkManagerDeploymentStatusListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, parameters, options }, + listOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/listDeploymentStatus", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.NetworkManagerDeploymentStatusListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters33, + queryParameters: [Parameters.apiVersion, Parameters.top], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkManagers.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkManagers.ts new file mode 100644 index 0000000000..23687a0537 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkManagers.ts @@ -0,0 +1,548 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { NetworkManagers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + NetworkManager, + NetworkManagersListBySubscriptionNextOptionalParams, + NetworkManagersListBySubscriptionOptionalParams, + NetworkManagersListBySubscriptionResponse, + NetworkManagersListNextOptionalParams, + NetworkManagersListOptionalParams, + NetworkManagersListResponse, + NetworkManagersGetOptionalParams, + NetworkManagersGetResponse, + NetworkManagersCreateOrUpdateOptionalParams, + NetworkManagersCreateOrUpdateResponse, + NetworkManagersDeleteOptionalParams, + PatchObject, + NetworkManagersPatchOptionalParams, + NetworkManagersPatchResponse, + NetworkManagersListBySubscriptionNextResponse, + NetworkManagersListNextResponse +} from "../models"; + +/// +/** Class containing NetworkManagers operations. */ +export class NetworkManagersImpl implements NetworkManagers { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class NetworkManagers class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * List all network managers in a subscription. + * @param options The options parameters. + */ + public listBySubscription( + options?: NetworkManagersListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySubscriptionPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listBySubscriptionPagingPage(options, settings); + } + }; + } + + private async *listBySubscriptionPagingPage( + options?: NetworkManagersListBySubscriptionOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: NetworkManagersListBySubscriptionResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySubscription(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBySubscriptionPagingAll( + options?: NetworkManagersListBySubscriptionOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + + /** + * List network managers in a resource group. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + options?: NetworkManagersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(resourceGroupName, options, settings); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + options?: NetworkManagersListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: NetworkManagersListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + options?: NetworkManagersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(resourceGroupName, options)) { + yield* page; + } + } + + /** + * Gets the specified Network Manager. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + options?: NetworkManagersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates a Network Manager. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param parameters Parameters supplied to specify which network manager is. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + networkManagerName: string, + parameters: NetworkManager, + options?: NetworkManagersCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, parameters, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes a network manager. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + networkManagerName: string, + options?: NetworkManagersDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, networkManagerName, options }, + deleteOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes a network manager. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + networkManagerName: string, + options?: NetworkManagersDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + networkManagerName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Patch NetworkManager. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param parameters Parameters supplied to specify which network manager is. + * @param options The options parameters. + */ + patch( + resourceGroupName: string, + networkManagerName: string, + parameters: PatchObject, + options?: NetworkManagersPatchOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, parameters, options }, + patchOperationSpec + ); + } + + /** + * List all network managers in a subscription. + * @param options The options parameters. + */ + private _listBySubscription( + options?: NetworkManagersListBySubscriptionOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec + ); + } + + /** + * List network managers in a resource group. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + options?: NetworkManagersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listOperationSpec + ); + } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: NetworkManagersListBySubscriptionNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + nextLink: string, + options?: NetworkManagersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkManager + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.NetworkManager + }, + 201: { + bodyMapper: Mappers.NetworkManager + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters30, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion, Parameters.force], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName + ], + headerParameters: [Parameters.accept], + serializer +}; +const patchOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.NetworkManager + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters31, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkManagerListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.top, + Parameters.skipToken + ], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkManagerListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.top, + Parameters.skipToken + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkManagerListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkManagerListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkProfiles.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkProfiles.ts index 2438c78b7d..5c31ee3e9d 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkProfiles.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkProfiles.ts @@ -422,7 +422,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters27, + requestBody: Parameters.parameters38, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkSecurityGroups.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkSecurityGroups.ts index 559203727c..b1ed036010 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkSecurityGroups.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkSecurityGroups.ts @@ -502,7 +502,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters28, + requestBody: Parameters.parameters39, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkVirtualAppliances.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkVirtualAppliances.ts index b358a618a4..efbaa12a89 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkVirtualAppliances.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkVirtualAppliances.ts @@ -533,7 +533,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters29, + requestBody: Parameters.parameters40, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkWatchers.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkWatchers.ts index b17904a42b..ee72b9eb48 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkWatchers.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/networkWatchers.ts @@ -1406,7 +1406,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters32, + requestBody: Parameters.parameters43, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1537,7 +1537,7 @@ const getTopologyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters33, + requestBody: Parameters.parameters44, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1570,7 +1570,7 @@ const verifyIPFlowOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters34, + requestBody: Parameters.parameters45, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1603,7 +1603,7 @@ const getNextHopOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters35, + requestBody: Parameters.parameters46, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1636,7 +1636,7 @@ const getVMSecurityRulesOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters36, + requestBody: Parameters.parameters47, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1669,7 +1669,7 @@ const getTroubleshootingOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters37, + requestBody: Parameters.parameters48, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1702,7 +1702,7 @@ const getTroubleshootingResultOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters38, + requestBody: Parameters.parameters49, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1735,7 +1735,7 @@ const setFlowLogConfigurationOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters39, + requestBody: Parameters.parameters50, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1768,7 +1768,7 @@ const getFlowLogStatusOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters40, + requestBody: Parameters.parameters51, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1801,7 +1801,7 @@ const checkConnectivityOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters41, + requestBody: Parameters.parameters52, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1834,7 +1834,7 @@ const getAzureReachabilityReportOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters42, + requestBody: Parameters.parameters53, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1867,7 +1867,7 @@ const listAvailableProvidersOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters43, + requestBody: Parameters.parameters54, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1900,7 +1900,7 @@ const getNetworkConfigurationDiagnosticOperationSpec: coreClient.OperationSpec = bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters44, + requestBody: Parameters.parameters55, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/p2SVpnGateways.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/p2SVpnGateways.ts index e2bfea6956..7415b61697 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/p2SVpnGateways.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/p2SVpnGateways.ts @@ -1188,7 +1188,7 @@ const generateVpnProfileOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters74, + requestBody: Parameters.parameters85, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/packetCaptures.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/packetCaptures.ts index f65a54fca7..a4c28f04b4 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/packetCaptures.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/packetCaptures.ts @@ -537,7 +537,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters45, + requestBody: Parameters.parameters56, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/privateDnsZoneGroups.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/privateDnsZoneGroups.ts index 2abce211ef..45f1dfdd4a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/privateDnsZoneGroups.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/privateDnsZoneGroups.ts @@ -453,7 +453,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters49, + requestBody: Parameters.parameters60, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/privateEndpoints.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/privateEndpoints.ts index 25db7415e3..9638f65862 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/privateEndpoints.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/privateEndpoints.ts @@ -483,7 +483,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters48, + requestBody: Parameters.parameters59, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/privateLinkServices.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/privateLinkServices.ts index b2ec5936a0..d24c34e2b0 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/privateLinkServices.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/privateLinkServices.ts @@ -1183,7 +1183,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters50, + requestBody: Parameters.parameters61, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1268,7 +1268,7 @@ const updatePrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters51, + requestBody: Parameters.parameters62, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1348,7 +1348,7 @@ const checkPrivateLinkServiceVisibilityOperationSpec: coreClient.OperationSpec = bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters52, + requestBody: Parameters.parameters63, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1380,7 +1380,7 @@ const checkPrivateLinkServiceVisibilityByResourceGroupOperationSpec: coreClient. bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters52, + requestBody: Parameters.parameters63, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/publicIPAddresses.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/publicIPAddresses.ts index a610596808..8a8b625af4 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/publicIPAddresses.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/publicIPAddresses.ts @@ -45,6 +45,8 @@ import { TagsObject, PublicIPAddressesUpdateTagsOptionalParams, PublicIPAddressesUpdateTagsResponse, + PublicIPAddressesDdosProtectionStatusOptionalParams, + PublicIPAddressesDdosProtectionStatusResponse, PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressOptionalParams, PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressResponse, PublicIPAddressesListCloudServicePublicIPAddressesNextResponse, @@ -896,6 +898,94 @@ export class PublicIPAddressesImpl implements PublicIPAddresses { ); } + /** + * Gets the Ddos Protection Status of a Public IP Address + * @param resourceGroupName The name of the resource group. + * @param publicIpAddressName The name of the public IP address. + * @param options The options parameters. + */ + async beginDdosProtectionStatus( + resourceGroupName: string, + publicIpAddressName: string, + options?: PublicIPAddressesDdosProtectionStatusOptionalParams + ): Promise< + PollerLike< + PollOperationState, + PublicIPAddressesDdosProtectionStatusResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, publicIpAddressName, options }, + ddosProtectionStatusOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Gets the Ddos Protection Status of a Public IP Address + * @param resourceGroupName The name of the resource group. + * @param publicIpAddressName The name of the public IP address. + * @param options The options parameters. + */ + async beginDdosProtectionStatusAndWait( + resourceGroupName: string, + publicIpAddressName: string, + options?: PublicIPAddressesDdosProtectionStatusOptionalParams + ): Promise { + const poller = await this.beginDdosProtectionStatus( + resourceGroupName, + publicIpAddressName, + options + ); + return poller.pollUntilDone(); + } + /** * Gets information about all public IP addresses on a virtual machine scale set level. * @param resourceGroupName The name of the resource group. @@ -1271,7 +1361,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1345,6 +1435,37 @@ const listOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const ddosProtectionStatusOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}/ddosProtectionStatus", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PublicIpDdosProtectionStatusResult + }, + 201: { + bodyMapper: Mappers.PublicIpDdosProtectionStatusResult + }, + 202: { + bodyMapper: Mappers.PublicIpDdosProtectionStatusResult + }, + 204: { + bodyMapper: Mappers.PublicIpDdosProtectionStatusResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.publicIpAddressName + ], + headerParameters: [Parameters.accept], + serializer +}; const listVirtualMachineScaleSetPublicIPAddressesOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/publicipaddresses", diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/publicIPPrefixes.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/publicIPPrefixes.ts index 8b5d643272..1099e7af0f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/publicIPPrefixes.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/publicIPPrefixes.ts @@ -502,7 +502,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters53, + requestBody: Parameters.parameters64, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/routeFilterRules.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/routeFilterRules.ts index 6673d46880..b841837ddc 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/routeFilterRules.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/routeFilterRules.ts @@ -395,8 +395,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.routeFilterName, - Parameters.ruleName + Parameters.ruleName, + Parameters.routeFilterName ], headerParameters: [Parameters.accept], serializer @@ -418,8 +418,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.routeFilterName, - Parameters.ruleName + Parameters.ruleName, + Parameters.routeFilterName ], headerParameters: [Parameters.accept], serializer @@ -451,8 +451,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.routeFilterName, - Parameters.ruleName + Parameters.ruleName, + Parameters.routeFilterName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/routeMaps.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/routeMaps.ts new file mode 100644 index 0000000000..2e84a7826b --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/routeMaps.ts @@ -0,0 +1,493 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { RouteMaps } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + RouteMap, + RouteMapsListNextOptionalParams, + RouteMapsListOptionalParams, + RouteMapsListResponse, + RouteMapsGetOptionalParams, + RouteMapsGetResponse, + RouteMapsCreateOrUpdateOptionalParams, + RouteMapsCreateOrUpdateResponse, + RouteMapsDeleteOptionalParams, + RouteMapsListNextResponse +} from "../models"; + +/// +/** Class containing RouteMaps operations. */ +export class RouteMapsImpl implements RouteMaps { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class RouteMaps class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * Retrieves the details of all RouteMaps. + * @param resourceGroupName The resource group name of the RouteMap's resource group'. + * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + virtualHubName: string, + options?: RouteMapsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, virtualHubName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + virtualHubName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + virtualHubName: string, + options?: RouteMapsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RouteMapsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, virtualHubName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + virtualHubName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + virtualHubName: string, + options?: RouteMapsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + virtualHubName, + options + )) { + yield* page; + } + } + + /** + * Retrieves the details of a RouteMap. + * @param resourceGroupName The resource group name of the RouteMap's resource group. + * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param routeMapName The name of the RouteMap. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + virtualHubName: string, + routeMapName: string, + options?: RouteMapsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, virtualHubName, routeMapName, options }, + getOperationSpec + ); + } + + /** + * Creates a RouteMap if it doesn't exist else updates the existing one. + * @param resourceGroupName The resource group name of the RouteMap's resource group. + * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param routeMapName The name of the RouteMap. + * @param routeMapParameters Parameters supplied to create or update a RouteMap. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + virtualHubName: string, + routeMapName: string, + routeMapParameters: RouteMap, + options?: RouteMapsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + RouteMapsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + virtualHubName, + routeMapName, + routeMapParameters, + options + }, + createOrUpdateOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates a RouteMap if it doesn't exist else updates the existing one. + * @param resourceGroupName The resource group name of the RouteMap's resource group. + * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param routeMapName The name of the RouteMap. + * @param routeMapParameters Parameters supplied to create or update a RouteMap. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + virtualHubName: string, + routeMapName: string, + routeMapParameters: RouteMap, + options?: RouteMapsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + virtualHubName, + routeMapName, + routeMapParameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a RouteMap. + * @param resourceGroupName The resource group name of the RouteMap's resource group. + * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param routeMapName The name of the RouteMap. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + virtualHubName: string, + routeMapName: string, + options?: RouteMapsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, virtualHubName, routeMapName, options }, + deleteOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes a RouteMap. + * @param resourceGroupName The resource group name of the RouteMap's resource group. + * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param routeMapName The name of the RouteMap. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + virtualHubName: string, + routeMapName: string, + options?: RouteMapsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + virtualHubName, + routeMapName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Retrieves the details of all RouteMaps. + * @param resourceGroupName The resource group name of the RouteMap's resource group'. + * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + virtualHubName: string, + options?: RouteMapsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, virtualHubName, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The resource group name of the RouteMap's resource group'. + * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + virtualHubName: string, + nextLink: string, + options?: RouteMapsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, virtualHubName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeMaps/{routeMapName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RouteMap + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.virtualHubName, + Parameters.routeMapName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeMaps/{routeMapName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.RouteMap + }, + 201: { + bodyMapper: Mappers.RouteMap + }, + 202: { + bodyMapper: Mappers.RouteMap + }, + 204: { + bodyMapper: Mappers.RouteMap + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.routeMapParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.virtualHubName, + Parameters.routeMapName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeMaps/{routeMapName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.virtualHubName, + Parameters.routeMapName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeMaps", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ListRouteMapsResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.virtualHubName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ListRouteMapsResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.virtualHubName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/routeTables.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/routeTables.ts index 5f35845b38..d36b33bc46 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/routeTables.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/routeTables.ts @@ -502,7 +502,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters54, + requestBody: Parameters.parameters65, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/scopeConnections.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/scopeConnections.ts new file mode 100644 index 0000000000..e0e5fba8c3 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/scopeConnections.ts @@ -0,0 +1,345 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ScopeConnections } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { + ScopeConnection, + ScopeConnectionsListNextOptionalParams, + ScopeConnectionsListOptionalParams, + ScopeConnectionsListResponse, + ScopeConnectionsCreateOrUpdateOptionalParams, + ScopeConnectionsCreateOrUpdateResponse, + ScopeConnectionsGetOptionalParams, + ScopeConnectionsGetResponse, + ScopeConnectionsDeleteOptionalParams, + ScopeConnectionsListNextResponse +} from "../models"; + +/// +/** Class containing ScopeConnections operations. */ +export class ScopeConnectionsImpl implements ScopeConnections { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class ScopeConnections class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * List all scope connections created by this network manager. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + networkManagerName: string, + options?: ScopeConnectionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + networkManagerName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + networkManagerName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + networkManagerName: string, + options?: ScopeConnectionsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ScopeConnectionsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, networkManagerName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + networkManagerName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + networkManagerName: string, + options?: ScopeConnectionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + networkManagerName, + options + )) { + yield* page; + } + } + + /** + * Creates or updates scope connection from Network Manager + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param scopeConnectionName Name for the cross-tenant connection. + * @param parameters Scope connection to be created/updated. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + networkManagerName: string, + scopeConnectionName: string, + parameters: ScopeConnection, + options?: ScopeConnectionsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + scopeConnectionName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Get specified scope connection created by this Network Manager. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param scopeConnectionName Name for the cross-tenant connection. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + scopeConnectionName: string, + options?: ScopeConnectionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, scopeConnectionName, options }, + getOperationSpec + ); + } + + /** + * Delete the pending scope connection created by this network manager. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param scopeConnectionName Name for the cross-tenant connection. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + networkManagerName: string, + scopeConnectionName: string, + options?: ScopeConnectionsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, scopeConnectionName, options }, + deleteOperationSpec + ); + } + + /** + * List all scope connections created by this network manager. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + networkManagerName: string, + options?: ScopeConnectionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + networkManagerName: string, + nextLink: string, + options?: ScopeConnectionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/scopeConnections/{scopeConnectionName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ScopeConnection + }, + 201: { + bodyMapper: Mappers.ScopeConnection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters37, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.scopeConnectionName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/scopeConnections/{scopeConnectionName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ScopeConnection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.scopeConnectionName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/scopeConnections/{scopeConnectionName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.scopeConnectionName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/scopeConnections", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ScopeConnectionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.top, + Parameters.skipToken + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ScopeConnectionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.networkManagerName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/securityAdminConfigurations.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/securityAdminConfigurations.ts new file mode 100644 index 0000000000..4ebcaeef72 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/securityAdminConfigurations.ts @@ -0,0 +1,421 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { SecurityAdminConfigurations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + SecurityAdminConfiguration, + SecurityAdminConfigurationsListNextOptionalParams, + SecurityAdminConfigurationsListOptionalParams, + SecurityAdminConfigurationsListResponse, + SecurityAdminConfigurationsGetOptionalParams, + SecurityAdminConfigurationsGetResponse, + SecurityAdminConfigurationsCreateOrUpdateOptionalParams, + SecurityAdminConfigurationsCreateOrUpdateResponse, + SecurityAdminConfigurationsDeleteOptionalParams, + SecurityAdminConfigurationsListNextResponse +} from "../models"; + +/// +/** Class containing SecurityAdminConfigurations operations. */ +export class SecurityAdminConfigurationsImpl + implements SecurityAdminConfigurations { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class SecurityAdminConfigurations class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * Lists all the network manager security admin configurations in a network manager, in a paginated + * format. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + networkManagerName: string, + options?: SecurityAdminConfigurationsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + networkManagerName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + networkManagerName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + networkManagerName: string, + options?: SecurityAdminConfigurationsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: SecurityAdminConfigurationsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, networkManagerName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + networkManagerName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + networkManagerName: string, + options?: SecurityAdminConfigurationsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + networkManagerName, + options + )) { + yield* page; + } + } + + /** + * Lists all the network manager security admin configurations in a network manager, in a paginated + * format. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + networkManagerName: string, + options?: SecurityAdminConfigurationsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, options }, + listOperationSpec + ); + } + + /** + * Retrieves a network manager security admin configuration. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + options?: SecurityAdminConfigurationsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, configurationName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates a network manager security admin configuration. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param securityAdminConfiguration The security admin configuration to create or update + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + securityAdminConfiguration: SecurityAdminConfiguration, + options?: SecurityAdminConfigurationsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + configurationName, + securityAdminConfiguration, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes a network manager security admin configuration. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + options?: SecurityAdminConfigurationsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, networkManagerName, configurationName, options }, + deleteOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes a network manager security admin configuration. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + options?: SecurityAdminConfigurationsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + networkManagerName, + configurationName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + networkManagerName: string, + nextLink: string, + options?: SecurityAdminConfigurationsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SecurityAdminConfigurationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.top, + Parameters.skipToken + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SecurityAdminConfiguration + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.configurationName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.SecurityAdminConfiguration + }, + 201: { + bodyMapper: Mappers.SecurityAdminConfiguration + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.securityAdminConfiguration, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.configurationName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/securityAdminConfigurations/{configurationName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion, Parameters.force], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.configurationName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SecurityAdminConfigurationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.networkManagerName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/securityPartnerProviders.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/securityPartnerProviders.ts index caa13937ba..34da5280d8 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/securityPartnerProviders.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/securityPartnerProviders.ts @@ -509,7 +509,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters55, + requestBody: Parameters.parameters66, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/serviceEndpointPolicies.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/serviceEndpointPolicies.ts index 0631ef91d4..d719c52093 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/serviceEndpointPolicies.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/serviceEndpointPolicies.ts @@ -509,7 +509,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters56, + requestBody: Parameters.parameters67, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/staticMembers.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/staticMembers.ts new file mode 100644 index 0000000000..447573f991 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/staticMembers.ts @@ -0,0 +1,392 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { StaticMembers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { + StaticMember, + StaticMembersListNextOptionalParams, + StaticMembersListOptionalParams, + StaticMembersListResponse, + StaticMembersGetOptionalParams, + StaticMembersGetResponse, + StaticMembersCreateOrUpdateOptionalParams, + StaticMembersCreateOrUpdateResponse, + StaticMembersDeleteOptionalParams, + StaticMembersListNextResponse +} from "../models"; + +/// +/** Class containing StaticMembers operations. */ +export class StaticMembersImpl implements StaticMembers { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class StaticMembers class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * Lists the specified static member. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param networkGroupName The name of the network group. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + networkManagerName: string, + networkGroupName: string, + options?: StaticMembersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + networkManagerName, + networkGroupName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + networkManagerName, + networkGroupName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + networkManagerName: string, + networkGroupName: string, + options?: StaticMembersListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: StaticMembersListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + networkManagerName, + networkGroupName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + networkManagerName, + networkGroupName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + networkManagerName: string, + networkGroupName: string, + options?: StaticMembersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + networkManagerName, + networkGroupName, + options + )) { + yield* page; + } + } + + /** + * Gets the specified static member. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param networkGroupName The name of the network group. + * @param staticMemberName The name of the static member. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + networkGroupName: string, + staticMemberName: string, + options?: StaticMembersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + networkGroupName, + staticMemberName, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates a static member. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param networkGroupName The name of the network group. + * @param staticMemberName The name of the static member. + * @param parameters Parameters supplied to the specify the static member to create + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + networkManagerName: string, + networkGroupName: string, + staticMemberName: string, + parameters: StaticMember, + options?: StaticMembersCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + networkGroupName, + staticMemberName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes a static member. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param networkGroupName The name of the network group. + * @param staticMemberName The name of the static member. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + networkManagerName: string, + networkGroupName: string, + staticMemberName: string, + options?: StaticMembersDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + networkGroupName, + staticMemberName, + options + }, + deleteOperationSpec + ); + } + + /** + * Lists the specified static member. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param networkGroupName The name of the network group. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + networkManagerName: string, + networkGroupName: string, + options?: StaticMembersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkManagerName, networkGroupName, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param networkGroupName The name of the network group. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + networkManagerName: string, + networkGroupName: string, + nextLink: string, + options?: StaticMembersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkManagerName, + networkGroupName, + nextLink, + options + }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/staticMembers/{staticMemberName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StaticMember + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.networkGroupName, + Parameters.staticMemberName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/staticMembers/{staticMemberName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.StaticMember + }, + 201: { + bodyMapper: Mappers.StaticMember + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters36, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.networkGroupName, + Parameters.staticMemberName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/staticMembers/{staticMemberName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.networkGroupName, + Parameters.staticMemberName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}/staticMembers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StaticMemberListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.top, + Parameters.skipToken + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkManagerName, + Parameters.networkGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StaticMemberListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.networkManagerName, + Parameters.networkGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/subscriptionNetworkManagerConnections.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/subscriptionNetworkManagerConnections.ts new file mode 100644 index 0000000000..5a756b5e89 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/subscriptionNetworkManagerConnections.ts @@ -0,0 +1,278 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { SubscriptionNetworkManagerConnections } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { + NetworkManagerConnection, + SubscriptionNetworkManagerConnectionsListNextOptionalParams, + SubscriptionNetworkManagerConnectionsListOptionalParams, + SubscriptionNetworkManagerConnectionsListResponse, + SubscriptionNetworkManagerConnectionsCreateOrUpdateOptionalParams, + SubscriptionNetworkManagerConnectionsCreateOrUpdateResponse, + SubscriptionNetworkManagerConnectionsGetOptionalParams, + SubscriptionNetworkManagerConnectionsGetResponse, + SubscriptionNetworkManagerConnectionsDeleteOptionalParams, + SubscriptionNetworkManagerConnectionsListNextResponse +} from "../models"; + +/// +/** Class containing SubscriptionNetworkManagerConnections operations. */ +export class SubscriptionNetworkManagerConnectionsImpl + implements SubscriptionNetworkManagerConnections { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class SubscriptionNetworkManagerConnections class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * List all network manager connections created by this subscription. + * @param options The options parameters. + */ + public list( + options?: SubscriptionNetworkManagerConnectionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(options, settings); + } + }; + } + + private async *listPagingPage( + options?: SubscriptionNetworkManagerConnectionsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: SubscriptionNetworkManagerConnectionsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + options?: SubscriptionNetworkManagerConnectionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + + /** + * Create a network manager connection on this subscription. + * @param networkManagerConnectionName Name for the network manager connection. + * @param parameters Network manager connection to be created/updated. + * @param options The options parameters. + */ + createOrUpdate( + networkManagerConnectionName: string, + parameters: NetworkManagerConnection, + options?: SubscriptionNetworkManagerConnectionsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { networkManagerConnectionName, parameters, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Get a specified connection created by this subscription. + * @param networkManagerConnectionName Name for the network manager connection. + * @param options The options parameters. + */ + get( + networkManagerConnectionName: string, + options?: SubscriptionNetworkManagerConnectionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { networkManagerConnectionName, options }, + getOperationSpec + ); + } + + /** + * Delete specified connection created by this subscription. + * @param networkManagerConnectionName Name for the network manager connection. + * @param options The options parameters. + */ + delete( + networkManagerConnectionName: string, + options?: SubscriptionNetworkManagerConnectionsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { networkManagerConnectionName, options }, + deleteOperationSpec + ); + } + + /** + * List all network manager connections created by this subscription. + * @param options The options parameters. + */ + private _list( + options?: SubscriptionNetworkManagerConnectionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + + /** + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + nextLink: string, + options?: SubscriptionNetworkManagerConnectionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.NetworkManagerConnection + }, + 201: { + bodyMapper: Mappers.NetworkManagerConnection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters34, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.networkManagerConnectionName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkManagerConnection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.networkManagerConnectionName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.networkManagerConnectionName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkManagerConnectionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.top, + Parameters.skipToken + ], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkManagerConnectionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/vipSwap.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/vipSwap.ts new file mode 100644 index 0000000000..ef7f957249 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/vipSwap.ts @@ -0,0 +1,235 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { VipSwap } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClient } from "../networkManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + VipSwapGetOptionalParams, + VipSwapGetResponse, + SwapResource, + VipSwapCreateOptionalParams, + VipSwapListOptionalParams, + VipSwapListResponse +} from "../models"; + +/** Class containing VipSwap operations. */ +export class VipSwapImpl implements VipSwap { + private readonly client: NetworkManagementClient; + + /** + * Initialize a new instance of the class VipSwap class. + * @param client Reference to the service client + */ + constructor(client: NetworkManagementClient) { + this.client = client; + } + + /** + * Gets the SwapResource which identifies the slot type for the specified cloud service. The slot type + * on a cloud service can either be Staging or Production + * @param groupName The name of the resource group. + * @param resourceName The name of the cloud service. + * @param options The options parameters. + */ + get( + groupName: string, + resourceName: string, + options?: VipSwapGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { groupName, resourceName, options }, + getOperationSpec + ); + } + + /** + * Performs vip swap operation on swappable cloud services. + * @param groupName The name of the resource group. + * @param resourceName The name of the cloud service. + * @param parameters SwapResource object where slot type should be the target slot after vip swap for + * the specified cloud service. + * @param options The options parameters. + */ + async beginCreate( + groupName: string, + resourceName: string, + parameters: SwapResource, + options?: VipSwapCreateOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { groupName, resourceName, parameters, options }, + createOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Performs vip swap operation on swappable cloud services. + * @param groupName The name of the resource group. + * @param resourceName The name of the cloud service. + * @param parameters SwapResource object where slot type should be the target slot after vip swap for + * the specified cloud service. + * @param options The options parameters. + */ + async beginCreateAndWait( + groupName: string, + resourceName: string, + parameters: SwapResource, + options?: VipSwapCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + groupName, + resourceName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Gets the list of SwapResource which identifies the slot type for the specified cloud service. The + * slot type on a cloud service can either be Staging or Production + * @param groupName The name of the resource group. + * @param resourceName The name of the cloud service. + * @param options The options parameters. + */ + list( + groupName: string, + resourceName: string, + options?: VipSwapListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { groupName, resourceName, options }, + listOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Compute/cloudServices/{resourceName}/providers/Microsoft.Network/cloudServiceSlots/{singletonResource}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SwapResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.groupName, + Parameters.resourceName, + Parameters.singletonResource + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Compute/cloudServices/{resourceName}/providers/Microsoft.Network/cloudServiceSlots/{singletonResource}", + httpMethod: "PUT", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters10, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.groupName, + Parameters.resourceName, + Parameters.singletonResource + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Compute/cloudServices/{resourceName}/providers/Microsoft.Network/cloudServiceSlots", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SwapResourceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.groupName, + Parameters.resourceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualApplianceSites.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualApplianceSites.ts index 3a461c9826..57553ba25f 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualApplianceSites.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualApplianceSites.ts @@ -445,7 +445,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters30, + requestBody: Parameters.parameters41, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualHubBgpConnection.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualHubBgpConnection.ts index ed96225317..c7445c7a6a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualHubBgpConnection.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualHubBgpConnection.ts @@ -294,7 +294,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters75, + requestBody: Parameters.parameters86, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualHubIpConfiguration.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualHubIpConfiguration.ts index 3b22488d14..914e819f14 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualHubIpConfiguration.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualHubIpConfiguration.ts @@ -408,7 +408,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters76, + requestBody: Parameters.parameters87, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualHubs.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualHubs.ts index ab50dc5885..894db01c5a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualHubs.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualHubs.ts @@ -32,6 +32,10 @@ import { VirtualHubsUpdateTagsResponse, VirtualHubsDeleteOptionalParams, VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams, + GetInboundRoutesParameters, + VirtualHubsGetInboundRoutesOptionalParams, + GetOutboundRoutesParameters, + VirtualHubsGetOutboundRoutesOptionalParams, VirtualHubsListByResourceGroupNextResponse, VirtualHubsListNextResponse } from "../models"; @@ -492,6 +496,196 @@ export class VirtualHubsImpl implements VirtualHubs { return poller.pollUntilDone(); } + /** + * Gets the inbound routes configured for the Virtual Hub on a particular connection. + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection + * resource. + * @param options The options parameters. + */ + async beginGetInboundRoutes( + resourceGroupName: string, + virtualHubName: string, + getInboundRoutesParameters: GetInboundRoutesParameters, + options?: VirtualHubsGetInboundRoutesOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + virtualHubName, + getInboundRoutesParameters, + options + }, + getInboundRoutesOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Gets the inbound routes configured for the Virtual Hub on a particular connection. + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection + * resource. + * @param options The options parameters. + */ + async beginGetInboundRoutesAndWait( + resourceGroupName: string, + virtualHubName: string, + getInboundRoutesParameters: GetInboundRoutesParameters, + options?: VirtualHubsGetInboundRoutesOptionalParams + ): Promise { + const poller = await this.beginGetInboundRoutes( + resourceGroupName, + virtualHubName, + getInboundRoutesParameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Gets the outbound routes configured for the Virtual Hub on a particular connection. + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection + * resource. + * @param options The options parameters. + */ + async beginGetOutboundRoutes( + resourceGroupName: string, + virtualHubName: string, + getOutboundRoutesParameters: GetOutboundRoutesParameters, + options?: VirtualHubsGetOutboundRoutesOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + virtualHubName, + getOutboundRoutesParameters, + options + }, + getOutboundRoutesOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Gets the outbound routes configured for the Virtual Hub on a particular connection. + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection + * resource. + * @param options The options parameters. + */ + async beginGetOutboundRoutesAndWait( + resourceGroupName: string, + virtualHubName: string, + getOutboundRoutesParameters: GetOutboundRoutesParameters, + options?: VirtualHubsGetOutboundRoutesOptionalParams + ): Promise { + const poller = await this.beginGetOutboundRoutes( + resourceGroupName, + virtualHubName, + getOutboundRoutesParameters, + options + ); + return poller.pollUntilDone(); + } + /** * ListByResourceGroupNext * @param resourceGroupName The resource group name of the VirtualHub. @@ -692,6 +886,56 @@ const getEffectiveVirtualHubRoutesOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; +const getInboundRoutesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/inboundRoutes", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.getInboundRoutesParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.virtualHubName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getOutboundRoutesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/outboundRoutes", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.getOutboundRoutesParameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.virtualHubName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualNetworkGatewayConnections.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualNetworkGatewayConnections.ts index 1b91b9754c..e6cc11cb94 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualNetworkGatewayConnections.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualNetworkGatewayConnections.ts @@ -1076,7 +1076,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters63, + requestBody: Parameters.parameters74, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1187,7 +1187,7 @@ const setSharedKeyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters64, + requestBody: Parameters.parameters75, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1263,7 +1263,7 @@ const resetSharedKeyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters65, + requestBody: Parameters.parameters76, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1296,7 +1296,7 @@ const startPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters61, + requestBody: Parameters.parameters72, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1329,7 +1329,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters62, + requestBody: Parameters.parameters73, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualNetworkGateways.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualNetworkGateways.ts index faf5448ae2..6a24af1bda 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualNetworkGateways.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualNetworkGateways.ts @@ -1941,7 +1941,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters58, + requestBody: Parameters.parameters69, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2149,7 +2149,7 @@ const generatevpnclientpackageOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters59, + requestBody: Parameters.parameters70, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2182,7 +2182,7 @@ const generateVpnProfileOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters59, + requestBody: Parameters.parameters70, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2416,7 +2416,7 @@ const vpnDeviceConfigurationScriptOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters60, + requestBody: Parameters.parameters71, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2449,7 +2449,7 @@ const startPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters61, + requestBody: Parameters.parameters72, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2482,7 +2482,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters62, + requestBody: Parameters.parameters73, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualNetworkTaps.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualNetworkTaps.ts index ecb300d4c6..e63f7dc413 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualNetworkTaps.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualNetworkTaps.ts @@ -505,7 +505,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters67, + requestBody: Parameters.parameters78, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualNetworks.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualNetworks.ts index 64697fa290..46c06a3724 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualNetworks.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualNetworks.ts @@ -27,6 +27,10 @@ import { VirtualNetworksListUsageNextOptionalParams, VirtualNetworksListUsageOptionalParams, VirtualNetworksListUsageResponse, + PublicIpDdosProtectionStatusResult, + VirtualNetworksListDdosProtectionStatusNextOptionalParams, + VirtualNetworksListDdosProtectionStatusOptionalParams, + VirtualNetworksListDdosProtectionStatusResponse, VirtualNetworksDeleteOptionalParams, VirtualNetworksGetOptionalParams, VirtualNetworksGetResponse, @@ -39,7 +43,8 @@ import { VirtualNetworksCheckIPAddressAvailabilityResponse, VirtualNetworksListAllNextResponse, VirtualNetworksListNextResponse, - VirtualNetworksListUsageNextResponse + VirtualNetworksListUsageNextResponse, + VirtualNetworksListDdosProtectionStatusNextResponse } from "../models"; /// @@ -255,6 +260,91 @@ export class VirtualNetworksImpl implements VirtualNetworks { } } + /** + * Gets the Ddos Protection Status of all IP Addresses under the Virtual Network + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param options The options parameters. + */ + public beginListDdosProtectionStatusAndWait( + resourceGroupName: string, + virtualNetworkName: string, + options?: VirtualNetworksListDdosProtectionStatusOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listDdosProtectionStatusPagingAll( + resourceGroupName, + virtualNetworkName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listDdosProtectionStatusPagingPage( + resourceGroupName, + virtualNetworkName, + options, + settings + ); + } + }; + } + + private async *listDdosProtectionStatusPagingPage( + resourceGroupName: string, + virtualNetworkName: string, + options?: VirtualNetworksListDdosProtectionStatusOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: VirtualNetworksListDdosProtectionStatusResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + const poller = await this._listDdosProtectionStatus( + resourceGroupName, + virtualNetworkName, + options + ); + result = await poller.pollUntilDone(); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listDdosProtectionStatusNext( + resourceGroupName, + virtualNetworkName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listDdosProtectionStatusPagingAll( + resourceGroupName: string, + virtualNetworkName: string, + options?: VirtualNetworksListDdosProtectionStatusOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listDdosProtectionStatusPagingPage( + resourceGroupName, + virtualNetworkName, + options + )) { + yield* page; + } + } + /** * Deletes the specified virtual network. * @param resourceGroupName The name of the resource group. @@ -528,6 +618,75 @@ export class VirtualNetworksImpl implements VirtualNetworks { ); } + /** + * Gets the Ddos Protection Status of all IP Addresses under the Virtual Network + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param options The options parameters. + */ + private async _listDdosProtectionStatus( + resourceGroupName: string, + virtualNetworkName: string, + options?: VirtualNetworksListDdosProtectionStatusOptionalParams + ): Promise< + PollerLike< + PollOperationState, + VirtualNetworksListDdosProtectionStatusResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, virtualNetworkName, options }, + listDdosProtectionStatusOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + /** * ListAllNext * @param nextLink The nextLink from the previous successful call to the ListAll method. @@ -578,6 +737,26 @@ export class VirtualNetworksImpl implements VirtualNetworks { listUsageNextOperationSpec ); } + + /** + * ListDdosProtectionStatusNext + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param nextLink The nextLink from the previous successful call to the ListDdosProtectionStatus + * method. + * @param options The options parameters. + */ + private _listDdosProtectionStatusNext( + resourceGroupName: string, + virtualNetworkName: string, + nextLink: string, + options?: VirtualNetworksListDdosProtectionStatusNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, virtualNetworkName, nextLink, options }, + listDdosProtectionStatusNextOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -648,7 +827,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters57, + requestBody: Parameters.parameters68, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -766,6 +945,41 @@ const listUsageOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const listDdosProtectionStatusOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/ddosProtectionStatus", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkDdosProtectionStatusResult + }, + 201: { + bodyMapper: Mappers.VirtualNetworkDdosProtectionStatusResult + }, + 202: { + bodyMapper: Mappers.VirtualNetworkDdosProtectionStatusResult + }, + 204: { + bodyMapper: Mappers.VirtualNetworkDdosProtectionStatusResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.top1, + Parameters.skipToken1 + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.virtualNetworkName + ], + headerParameters: [Parameters.accept], + serializer +}; const listAllNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -826,3 +1040,25 @@ const listUsageNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const listDdosProtectionStatusNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkDdosProtectionStatusResult + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.virtualNetworkName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualRouterPeerings.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualRouterPeerings.ts index f0ad599196..2eea661f28 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualRouterPeerings.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualRouterPeerings.ts @@ -439,7 +439,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters69, + requestBody: Parameters.parameters80, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualRouters.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualRouters.ts index 64da3f6e7d..7833898d1a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualRouters.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/virtualRouters.ts @@ -487,7 +487,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters68, + requestBody: Parameters.parameters79, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/vpnConnections.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/vpnConnections.ts index 422bd100e1..2588d99ffb 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/vpnConnections.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/vpnConnections.ts @@ -669,7 +669,7 @@ const startPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters72, + requestBody: Parameters.parameters83, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -703,7 +703,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters73, + requestBody: Parameters.parameters84, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/vpnGateways.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/vpnGateways.ts index 2afaf2aa1d..f09714fdf9 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/vpnGateways.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/vpnGateways.ts @@ -950,7 +950,7 @@ const startPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters70, + requestBody: Parameters.parameters81, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -983,7 +983,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters71, + requestBody: Parameters.parameters82, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/webApplicationFirewallPolicies.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/webApplicationFirewallPolicies.ts index 2ba285c76b..729552d3be 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/webApplicationFirewallPolicies.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operations/webApplicationFirewallPolicies.ts @@ -416,7 +416,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters77, + requestBody: Parameters.parameters88, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/adminRuleCollections.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/adminRuleCollections.ts new file mode 100644 index 0000000000..2c75a7c7cc --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/adminRuleCollections.ts @@ -0,0 +1,99 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + AdminRuleCollection, + AdminRuleCollectionsListOptionalParams, + AdminRuleCollectionsGetOptionalParams, + AdminRuleCollectionsGetResponse, + AdminRuleCollectionsCreateOrUpdateOptionalParams, + AdminRuleCollectionsCreateOrUpdateResponse, + AdminRuleCollectionsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a AdminRuleCollections. */ +export interface AdminRuleCollections { + /** + * Lists all the rule collections in a security admin configuration, in a paginated format. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + options?: AdminRuleCollectionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a network manager security admin configuration rule collection. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + ruleCollectionName: string, + options?: AdminRuleCollectionsGetOptionalParams + ): Promise; + /** + * Creates or updates an admin rule collection. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param ruleCollection The Rule Collection to create or update + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + ruleCollectionName: string, + ruleCollection: AdminRuleCollection, + options?: AdminRuleCollectionsCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes an admin rule collection. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + ruleCollectionName: string, + options?: AdminRuleCollectionsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes an admin rule collection. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + ruleCollectionName: string, + options?: AdminRuleCollectionsDeleteOptionalParams + ): Promise; +} diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/adminRules.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/adminRules.ts new file mode 100644 index 0000000000..f2334b0061 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/adminRules.ts @@ -0,0 +1,109 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + BaseAdminRuleUnion, + AdminRulesListOptionalParams, + AdminRulesGetOptionalParams, + AdminRulesGetResponse, + AdminRulesCreateOrUpdateOptionalParams, + AdminRulesCreateOrUpdateResponse, + AdminRulesDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a AdminRules. */ +export interface AdminRules { + /** + * List all network manager security configuration admin rules. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + ruleCollectionName: string, + options?: AdminRulesListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a network manager security configuration admin rule. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param ruleName The name of the rule. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + ruleCollectionName: string, + ruleName: string, + options?: AdminRulesGetOptionalParams + ): Promise; + /** + * Creates or updates an admin rule. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param ruleName The name of the rule. + * @param adminRule The admin rule to create or update + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + ruleCollectionName: string, + ruleName: string, + adminRule: BaseAdminRuleUnion, + options?: AdminRulesCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes an admin rule. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param ruleName The name of the rule. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + ruleCollectionName: string, + ruleName: string, + options?: AdminRulesDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes an admin rule. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param ruleCollectionName The name of the network manager security Configuration rule collection. + * @param ruleName The name of the rule. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + ruleCollectionName: string, + ruleName: string, + options?: AdminRulesDeleteOptionalParams + ): Promise; +} diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/applicationGatewayWafDynamicManifests.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/applicationGatewayWafDynamicManifests.ts new file mode 100644 index 0000000000..c26f0f8d85 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/applicationGatewayWafDynamicManifests.ts @@ -0,0 +1,27 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ApplicationGatewayWafDynamicManifestResult, + ApplicationGatewayWafDynamicManifestsGetOptionalParams +} from "../models"; + +/// +/** Interface representing a ApplicationGatewayWafDynamicManifests. */ +export interface ApplicationGatewayWafDynamicManifests { + /** + * Gets the regional application gateway waf manifest. + * @param location The region where the nrp are located at. + * @param options The options parameters. + */ + list( + location: string, + options?: ApplicationGatewayWafDynamicManifestsGetOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/applicationGatewayWafDynamicManifestsDefault.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/applicationGatewayWafDynamicManifestsDefault.ts new file mode 100644 index 0000000000..b3b5f82c44 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/applicationGatewayWafDynamicManifestsDefault.ts @@ -0,0 +1,25 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + ApplicationGatewayWafDynamicManifestsDefaultGetOptionalParams, + ApplicationGatewayWafDynamicManifestsDefaultGetResponse +} from "../models"; + +/** Interface representing a ApplicationGatewayWafDynamicManifestsDefault. */ +export interface ApplicationGatewayWafDynamicManifestsDefault { + /** + * Gets the regional application gateway waf manifest. + * @param location The region where the nrp are located at. + * @param options The options parameters. + */ + get( + location: string, + options?: ApplicationGatewayWafDynamicManifestsDefaultGetOptionalParams + ): Promise; +} diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/azureFirewalls.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/azureFirewalls.ts index d63bd2959a..b8b7124992 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/azureFirewalls.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/azureFirewalls.ts @@ -19,7 +19,9 @@ import { AzureFirewallsCreateOrUpdateResponse, TagsObject, AzureFirewallsUpdateTagsOptionalParams, - AzureFirewallsUpdateTagsResponse + AzureFirewallsUpdateTagsResponse, + AzureFirewallsListLearnedPrefixesOptionalParams, + AzureFirewallsListLearnedPrefixesResponse } from "../models"; /// @@ -136,4 +138,31 @@ export interface AzureFirewalls { parameters: TagsObject, options?: AzureFirewallsUpdateTagsOptionalParams ): Promise; + /** + * Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the azure firewall. + * @param options The options parameters. + */ + beginListLearnedPrefixes( + resourceGroupName: string, + azureFirewallName: string, + options?: AzureFirewallsListLearnedPrefixesOptionalParams + ): Promise< + PollerLike< + PollOperationState, + AzureFirewallsListLearnedPrefixesResponse + > + >; + /** + * Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT. + * @param resourceGroupName The name of the resource group. + * @param azureFirewallName The name of the azure firewall. + * @param options The options parameters. + */ + beginListLearnedPrefixesAndWait( + resourceGroupName: string, + azureFirewallName: string, + options?: AzureFirewallsListLearnedPrefixesOptionalParams + ): Promise; } diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/configurationPolicyGroups.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/configurationPolicyGroups.ts new file mode 100644 index 0000000000..537b4a9e71 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/configurationPolicyGroups.ts @@ -0,0 +1,111 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + VpnServerConfigurationPolicyGroup, + ConfigurationPolicyGroupsListByVpnServerConfigurationOptionalParams, + ConfigurationPolicyGroupsCreateOrUpdateOptionalParams, + ConfigurationPolicyGroupsCreateOrUpdateResponse, + ConfigurationPolicyGroupsDeleteOptionalParams, + ConfigurationPolicyGroupsGetOptionalParams, + ConfigurationPolicyGroupsGetResponse +} from "../models"; + +/// +/** Interface representing a ConfigurationPolicyGroups. */ +export interface ConfigurationPolicyGroups { + /** + * Lists all the configurationPolicyGroups in a resource group for a vpnServerConfiguration. + * @param resourceGroupName The resource group name of the VpnServerConfiguration. + * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param options The options parameters. + */ + listByVpnServerConfiguration( + resourceGroupName: string, + vpnServerConfigurationName: string, + options?: ConfigurationPolicyGroupsListByVpnServerConfigurationOptionalParams + ): PagedAsyncIterableIterator; + /** + * Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. + * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. + * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param vpnServerConfigurationPolicyGroupParameters Parameters supplied to create or update a + * VpnServerConfiguration PolicyGroup. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + vpnServerConfigurationName: string, + configurationPolicyGroupName: string, + vpnServerConfigurationPolicyGroupParameters: VpnServerConfigurationPolicyGroup, + options?: ConfigurationPolicyGroupsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ConfigurationPolicyGroupsCreateOrUpdateResponse + > + >; + /** + * Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. + * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. + * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param vpnServerConfigurationPolicyGroupParameters Parameters supplied to create or update a + * VpnServerConfiguration PolicyGroup. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + vpnServerConfigurationName: string, + configurationPolicyGroupName: string, + vpnServerConfigurationPolicyGroupParameters: VpnServerConfigurationPolicyGroup, + options?: ConfigurationPolicyGroupsCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a ConfigurationPolicyGroup. + * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. + * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + vpnServerConfigurationName: string, + configurationPolicyGroupName: string, + options?: ConfigurationPolicyGroupsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a ConfigurationPolicyGroup. + * @param resourceGroupName The resource group name of the ConfigurationPolicyGroup. + * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + vpnServerConfigurationName: string, + configurationPolicyGroupName: string, + options?: ConfigurationPolicyGroupsDeleteOptionalParams + ): Promise; + /** + * Retrieves the details of a ConfigurationPolicyGroup. + * @param resourceGroupName The resource group name of the VpnServerConfiguration. + * @param vpnServerConfigurationName The name of the VpnServerConfiguration. + * @param configurationPolicyGroupName The name of the ConfigurationPolicyGroup being retrieved. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + vpnServerConfigurationName: string, + configurationPolicyGroupName: string, + options?: ConfigurationPolicyGroupsGetOptionalParams + ): Promise; +} diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/connectivityConfigurations.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/connectivityConfigurations.ts new file mode 100644 index 0000000000..a5930b0d8a --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/connectivityConfigurations.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + ConnectivityConfiguration, + ConnectivityConfigurationsListOptionalParams, + ConnectivityConfigurationsGetOptionalParams, + ConnectivityConfigurationsGetResponse, + ConnectivityConfigurationsCreateOrUpdateOptionalParams, + ConnectivityConfigurationsCreateOrUpdateResponse, + ConnectivityConfigurationsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a ConnectivityConfigurations. */ +export interface ConnectivityConfigurations { + /** + * Lists all the network manager connectivity configuration in a specified network manager. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + networkManagerName: string, + options?: ConnectivityConfigurationsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a Network Connectivity Configuration, specified by the resource group, network manager name, + * and connectivity Configuration name + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager connectivity configuration. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + options?: ConnectivityConfigurationsGetOptionalParams + ): Promise; + /** + * Creates/Updates a new network manager connectivity configuration + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager connectivity configuration. + * @param connectivityConfiguration Parameters supplied to create/update a network manager connectivity + * configuration + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + connectivityConfiguration: ConnectivityConfiguration, + options?: ConnectivityConfigurationsCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a network manager connectivity configuration, specified by the resource group, network + * manager name, and connectivity configuration name + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager connectivity configuration. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + options?: ConnectivityConfigurationsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a network manager connectivity configuration, specified by the resource group, network + * manager name, and connectivity configuration name + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager connectivity configuration. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + options?: ConnectivityConfigurationsDeleteOptionalParams + ): Promise; +} diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/expressRoutePortAuthorizations.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/expressRoutePortAuthorizations.ts new file mode 100644 index 0000000000..fc6032f6ff --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/expressRoutePortAuthorizations.ts @@ -0,0 +1,111 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + ExpressRoutePortAuthorization, + ExpressRoutePortAuthorizationsListOptionalParams, + ExpressRoutePortAuthorizationsDeleteOptionalParams, + ExpressRoutePortAuthorizationsGetOptionalParams, + ExpressRoutePortAuthorizationsGetResponse, + ExpressRoutePortAuthorizationsCreateOrUpdateOptionalParams, + ExpressRoutePortAuthorizationsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a ExpressRoutePortAuthorizations. */ +export interface ExpressRoutePortAuthorizations { + /** + * Gets all authorizations in an express route port. + * @param resourceGroupName The name of the resource group. + * @param expressRoutePortName The name of the express route port. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + expressRoutePortName: string, + options?: ExpressRoutePortAuthorizationsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Deletes the specified authorization from the specified express route port. + * @param resourceGroupName The name of the resource group. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + expressRoutePortName: string, + authorizationName: string, + options?: ExpressRoutePortAuthorizationsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes the specified authorization from the specified express route port. + * @param resourceGroupName The name of the resource group. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + expressRoutePortName: string, + authorizationName: string, + options?: ExpressRoutePortAuthorizationsDeleteOptionalParams + ): Promise; + /** + * Gets the specified authorization from the specified express route port. + * @param resourceGroupName The name of the resource group. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + expressRoutePortName: string, + authorizationName: string, + options?: ExpressRoutePortAuthorizationsGetOptionalParams + ): Promise; + /** + * Creates or updates an authorization in the specified express route port. + * @param resourceGroupName The name of the resource group. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @param authorizationParameters Parameters supplied to the create or update express route port + * authorization operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + expressRoutePortName: string, + authorizationName: string, + authorizationParameters: ExpressRoutePortAuthorization, + options?: ExpressRoutePortAuthorizationsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ExpressRoutePortAuthorizationsCreateOrUpdateResponse + > + >; + /** + * Creates or updates an authorization in the specified express route port. + * @param resourceGroupName The name of the resource group. + * @param expressRoutePortName The name of the express route port. + * @param authorizationName The name of the authorization. + * @param authorizationParameters Parameters supplied to the create or update express route port + * authorization operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + expressRoutePortName: string, + authorizationName: string, + authorizationParameters: ExpressRoutePortAuthorization, + options?: ExpressRoutePortAuthorizationsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/expressRouteProviderPortsLocation.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/expressRouteProviderPortsLocation.ts new file mode 100644 index 0000000000..500e4f2d8a --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/expressRouteProviderPortsLocation.ts @@ -0,0 +1,23 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + ExpressRouteProviderPortsLocationListOptionalParams, + ExpressRouteProviderPortsLocationListResponse +} from "../models"; + +/** Interface representing a ExpressRouteProviderPortsLocation. */ +export interface ExpressRouteProviderPortsLocation { + /** + * Retrieves all the ExpressRouteProviderPorts in a subscription. + * @param options The options parameters. + */ + list( + options?: ExpressRouteProviderPortsLocationListOptionalParams + ): Promise; +} diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/firewallPolicies.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/firewallPolicies.ts index 0037e04735..bccb088a47 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/firewallPolicies.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/firewallPolicies.ts @@ -16,7 +16,10 @@ import { FirewallPoliciesGetOptionalParams, FirewallPoliciesGetResponse, FirewallPoliciesCreateOrUpdateOptionalParams, - FirewallPoliciesCreateOrUpdateResponse + FirewallPoliciesCreateOrUpdateResponse, + TagsObject, + FirewallPoliciesUpdateTagsOptionalParams, + FirewallPoliciesUpdateTagsResponse } from "../models"; /// @@ -102,4 +105,17 @@ export interface FirewallPolicies { parameters: FirewallPolicy, options?: FirewallPoliciesCreateOrUpdateOptionalParams ): Promise; + /** + * Updates tags of a Azure Firewall Policy resource. + * @param resourceGroupName The name of the resource group. + * @param firewallPolicyName The name of the Firewall Policy. + * @param parameters Parameters supplied to update Azure Firewall Policy tags. + * @param options The options parameters. + */ + updateTags( + resourceGroupName: string, + firewallPolicyName: string, + parameters: TagsObject, + options?: FirewallPoliciesUpdateTagsOptionalParams + ): Promise; } diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/index.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/index.ts index 19e1496111..a666d0b45a 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/index.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/index.ts @@ -9,6 +9,8 @@ export * from "./applicationGateways"; export * from "./applicationGatewayPrivateLinkResources"; export * from "./applicationGatewayPrivateEndpointConnections"; +export * from "./applicationGatewayWafDynamicManifestsDefault"; +export * from "./applicationGatewayWafDynamicManifests"; export * from "./applicationSecurityGroups"; export * from "./availableDelegations"; export * from "./availableResourceGroupDelegations"; @@ -19,6 +21,7 @@ export * from "./webCategories"; export * from "./bastionHosts"; export * from "./networkInterfaces"; export * from "./publicIPAddresses"; +export * from "./vipSwap"; export * from "./customIPPrefixes"; export * from "./ddosCustomPolicies"; export * from "./ddosProtectionPlans"; @@ -35,6 +38,8 @@ export * from "./expressRouteCrossConnectionPeerings"; export * from "./expressRoutePortsLocations"; export * from "./expressRoutePorts"; export * from "./expressRouteLinks"; +export * from "./expressRoutePortAuthorizations"; +export * from "./expressRouteProviderPortsLocation"; export * from "./firewallPolicies"; export * from "./firewallPolicyRuleCollectionGroups"; export * from "./firewallPolicyIdpsSignatures"; @@ -54,6 +59,18 @@ export * from "./natGateways"; export * from "./networkInterfaceIPConfigurations"; export * from "./networkInterfaceLoadBalancers"; export * from "./networkInterfaceTapConfigurations"; +export * from "./networkManagers"; +export * from "./networkManagerCommits"; +export * from "./networkManagerDeploymentStatusOperations"; +export * from "./subscriptionNetworkManagerConnections"; +export * from "./managementGroupNetworkManagerConnections"; +export * from "./connectivityConfigurations"; +export * from "./networkGroups"; +export * from "./staticMembers"; +export * from "./scopeConnections"; +export * from "./securityAdminConfigurations"; +export * from "./adminRuleCollections"; +export * from "./adminRules"; export * from "./networkProfiles"; export * from "./networkSecurityGroups"; export * from "./securityRules"; @@ -100,7 +117,9 @@ export * from "./vpnSites"; export * from "./vpnSiteLinks"; export * from "./vpnSitesConfiguration"; export * from "./vpnServerConfigurations"; +export * from "./configurationPolicyGroups"; export * from "./virtualHubs"; +export * from "./routeMaps"; export * from "./hubVirtualNetworkConnections"; export * from "./vpnGateways"; export * from "./vpnLinkConnections"; diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/managementGroupNetworkManagerConnections.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/managementGroupNetworkManagerConnections.ts new file mode 100644 index 0000000000..883692675d --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/managementGroupNetworkManagerConnections.ts @@ -0,0 +1,71 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + NetworkManagerConnection, + ManagementGroupNetworkManagerConnectionsListOptionalParams, + ManagementGroupNetworkManagerConnectionsCreateOrUpdateOptionalParams, + ManagementGroupNetworkManagerConnectionsCreateOrUpdateResponse, + ManagementGroupNetworkManagerConnectionsGetOptionalParams, + ManagementGroupNetworkManagerConnectionsGetResponse, + ManagementGroupNetworkManagerConnectionsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a ManagementGroupNetworkManagerConnections. */ +export interface ManagementGroupNetworkManagerConnections { + /** + * List all network manager connections created by this management group. + * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure + * management group. + * @param options The options parameters. + */ + list( + managementGroupId: string, + options?: ManagementGroupNetworkManagerConnectionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Create a network manager connection on this management group. + * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure + * management group. + * @param networkManagerConnectionName Name for the network manager connection. + * @param parameters Network manager connection to be created/updated. + * @param options The options parameters. + */ + createOrUpdate( + managementGroupId: string, + networkManagerConnectionName: string, + parameters: NetworkManagerConnection, + options?: ManagementGroupNetworkManagerConnectionsCreateOrUpdateOptionalParams + ): Promise; + /** + * Get a specified connection created by this management group. + * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure + * management group. + * @param networkManagerConnectionName Name for the network manager connection. + * @param options The options parameters. + */ + get( + managementGroupId: string, + networkManagerConnectionName: string, + options?: ManagementGroupNetworkManagerConnectionsGetOptionalParams + ): Promise; + /** + * Delete specified pending connection created by this management group. + * @param managementGroupId The management group Id which uniquely identify the Microsoft Azure + * management group. + * @param networkManagerConnectionName Name for the network manager connection. + * @param options The options parameters. + */ + delete( + managementGroupId: string, + networkManagerConnectionName: string, + options?: ManagementGroupNetworkManagerConnectionsDeleteOptionalParams + ): Promise; +} diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/networkGroups.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/networkGroups.ts new file mode 100644 index 0000000000..7aa593f8dc --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/networkGroups.ts @@ -0,0 +1,89 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + NetworkGroup, + NetworkGroupsListOptionalParams, + NetworkGroupsGetOptionalParams, + NetworkGroupsGetResponse, + NetworkGroupsCreateOrUpdateOptionalParams, + NetworkGroupsCreateOrUpdateResponse, + NetworkGroupsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a NetworkGroups. */ +export interface NetworkGroups { + /** + * Lists the specified network group. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + networkManagerName: string, + options?: NetworkGroupsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the specified network group. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param networkGroupName The name of the network group. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + networkGroupName: string, + options?: NetworkGroupsGetOptionalParams + ): Promise; + /** + * Creates or updates a network group. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param networkGroupName The name of the network group. + * @param parameters Parameters supplied to the specify which network group need to create + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + networkManagerName: string, + networkGroupName: string, + parameters: NetworkGroup, + options?: NetworkGroupsCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a network group. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param networkGroupName The name of the network group. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + networkManagerName: string, + networkGroupName: string, + options?: NetworkGroupsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a network group. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param networkGroupName The name of the network group. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + networkManagerName: string, + networkGroupName: string, + options?: NetworkGroupsDeleteOptionalParams + ): Promise; +} diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/networkManagerCommits.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/networkManagerCommits.ts new file mode 100644 index 0000000000..84e304d7cf --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/networkManagerCommits.ts @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + NetworkManagerCommit, + NetworkManagerCommitsPostOptionalParams, + NetworkManagerCommitsPostResponse +} from "../models"; + +/** Interface representing a NetworkManagerCommits. */ +export interface NetworkManagerCommits { + /** + * Post a Network Manager Commit. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param parameters Parameters supplied to specify which Managed Network commit is. + * @param options The options parameters. + */ + beginPost( + resourceGroupName: string, + networkManagerName: string, + parameters: NetworkManagerCommit, + options?: NetworkManagerCommitsPostOptionalParams + ): Promise< + PollerLike< + PollOperationState, + NetworkManagerCommitsPostResponse + > + >; + /** + * Post a Network Manager Commit. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param parameters Parameters supplied to specify which Managed Network commit is. + * @param options The options parameters. + */ + beginPostAndWait( + resourceGroupName: string, + networkManagerName: string, + parameters: NetworkManagerCommit, + options?: NetworkManagerCommitsPostOptionalParams + ): Promise; +} diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/networkManagerDeploymentStatusOperations.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/networkManagerDeploymentStatusOperations.ts new file mode 100644 index 0000000000..99adba9530 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/networkManagerDeploymentStatusOperations.ts @@ -0,0 +1,30 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + NetworkManagerDeploymentStatusParameter, + NetworkManagerDeploymentStatusListOptionalParams, + NetworkManagerDeploymentStatusListResponse +} from "../models"; + +/** Interface representing a NetworkManagerDeploymentStatusOperations. */ +export interface NetworkManagerDeploymentStatusOperations { + /** + * Post to List of Network Manager Deployment Status. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param parameters Parameters supplied to specify which Managed Network deployment status is. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + networkManagerName: string, + parameters: NetworkManagerDeploymentStatusParameter, + options?: NetworkManagerDeploymentStatusListOptionalParams + ): Promise; +} diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/networkManagers.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/networkManagers.ts new file mode 100644 index 0000000000..ab5d4d88ed --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/networkManagers.ts @@ -0,0 +1,103 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + NetworkManager, + NetworkManagersListBySubscriptionOptionalParams, + NetworkManagersListOptionalParams, + NetworkManagersGetOptionalParams, + NetworkManagersGetResponse, + NetworkManagersCreateOrUpdateOptionalParams, + NetworkManagersCreateOrUpdateResponse, + NetworkManagersDeleteOptionalParams, + PatchObject, + NetworkManagersPatchOptionalParams, + NetworkManagersPatchResponse +} from "../models"; + +/// +/** Interface representing a NetworkManagers. */ +export interface NetworkManagers { + /** + * List all network managers in a subscription. + * @param options The options parameters. + */ + listBySubscription( + options?: NetworkManagersListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator; + /** + * List network managers in a resource group. + * @param resourceGroupName The name of the resource group. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + options?: NetworkManagersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the specified Network Manager. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + options?: NetworkManagersGetOptionalParams + ): Promise; + /** + * Creates or updates a Network Manager. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param parameters Parameters supplied to specify which network manager is. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + networkManagerName: string, + parameters: NetworkManager, + options?: NetworkManagersCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a network manager. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + networkManagerName: string, + options?: NetworkManagersDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a network manager. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + networkManagerName: string, + options?: NetworkManagersDeleteOptionalParams + ): Promise; + /** + * Patch NetworkManager. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param parameters Parameters supplied to specify which network manager is. + * @param options The options parameters. + */ + patch( + resourceGroupName: string, + networkManagerName: string, + parameters: PatchObject, + options?: NetworkManagersPatchOptionalParams + ): Promise; +} diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/publicIPAddresses.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/publicIPAddresses.ts index 37a00d07a0..75544d6010 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/publicIPAddresses.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/publicIPAddresses.ts @@ -26,6 +26,8 @@ import { TagsObject, PublicIPAddressesUpdateTagsOptionalParams, PublicIPAddressesUpdateTagsResponse, + PublicIPAddressesDdosProtectionStatusOptionalParams, + PublicIPAddressesDdosProtectionStatusResponse, PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressOptionalParams, PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressResponse } from "../models"; @@ -203,6 +205,33 @@ export interface PublicIPAddresses { parameters: TagsObject, options?: PublicIPAddressesUpdateTagsOptionalParams ): Promise; + /** + * Gets the Ddos Protection Status of a Public IP Address + * @param resourceGroupName The name of the resource group. + * @param publicIpAddressName The name of the public IP address. + * @param options The options parameters. + */ + beginDdosProtectionStatus( + resourceGroupName: string, + publicIpAddressName: string, + options?: PublicIPAddressesDdosProtectionStatusOptionalParams + ): Promise< + PollerLike< + PollOperationState, + PublicIPAddressesDdosProtectionStatusResponse + > + >; + /** + * Gets the Ddos Protection Status of a Public IP Address + * @param resourceGroupName The name of the resource group. + * @param publicIpAddressName The name of the public IP address. + * @param options The options parameters. + */ + beginDdosProtectionStatusAndWait( + resourceGroupName: string, + publicIpAddressName: string, + options?: PublicIPAddressesDdosProtectionStatusOptionalParams + ): Promise; /** * Get the specified public IP address in a virtual machine scale set. * @param resourceGroupName The name of the resource group. diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/routeMaps.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/routeMaps.ts new file mode 100644 index 0000000000..ddb597043d --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/routeMaps.ts @@ -0,0 +1,109 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + RouteMap, + RouteMapsListOptionalParams, + RouteMapsGetOptionalParams, + RouteMapsGetResponse, + RouteMapsCreateOrUpdateOptionalParams, + RouteMapsCreateOrUpdateResponse, + RouteMapsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a RouteMaps. */ +export interface RouteMaps { + /** + * Retrieves the details of all RouteMaps. + * @param resourceGroupName The resource group name of the RouteMap's resource group'. + * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + virtualHubName: string, + options?: RouteMapsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Retrieves the details of a RouteMap. + * @param resourceGroupName The resource group name of the RouteMap's resource group. + * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param routeMapName The name of the RouteMap. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + virtualHubName: string, + routeMapName: string, + options?: RouteMapsGetOptionalParams + ): Promise; + /** + * Creates a RouteMap if it doesn't exist else updates the existing one. + * @param resourceGroupName The resource group name of the RouteMap's resource group. + * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param routeMapName The name of the RouteMap. + * @param routeMapParameters Parameters supplied to create or update a RouteMap. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + virtualHubName: string, + routeMapName: string, + routeMapParameters: RouteMap, + options?: RouteMapsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + RouteMapsCreateOrUpdateResponse + > + >; + /** + * Creates a RouteMap if it doesn't exist else updates the existing one. + * @param resourceGroupName The resource group name of the RouteMap's resource group. + * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param routeMapName The name of the RouteMap. + * @param routeMapParameters Parameters supplied to create or update a RouteMap. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + virtualHubName: string, + routeMapName: string, + routeMapParameters: RouteMap, + options?: RouteMapsCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a RouteMap. + * @param resourceGroupName The resource group name of the RouteMap's resource group. + * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param routeMapName The name of the RouteMap. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + virtualHubName: string, + routeMapName: string, + options?: RouteMapsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a RouteMap. + * @param resourceGroupName The resource group name of the RouteMap's resource group. + * @param virtualHubName The name of the VirtualHub containing the RouteMap. + * @param routeMapName The name of the RouteMap. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + virtualHubName: string, + routeMapName: string, + options?: RouteMapsDeleteOptionalParams + ): Promise; +} diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/scopeConnections.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/scopeConnections.ts new file mode 100644 index 0000000000..c810b66c6a --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/scopeConnections.ts @@ -0,0 +1,75 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ScopeConnection, + ScopeConnectionsListOptionalParams, + ScopeConnectionsCreateOrUpdateOptionalParams, + ScopeConnectionsCreateOrUpdateResponse, + ScopeConnectionsGetOptionalParams, + ScopeConnectionsGetResponse, + ScopeConnectionsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a ScopeConnections. */ +export interface ScopeConnections { + /** + * List all scope connections created by this network manager. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + networkManagerName: string, + options?: ScopeConnectionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Creates or updates scope connection from Network Manager + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param scopeConnectionName Name for the cross-tenant connection. + * @param parameters Scope connection to be created/updated. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + networkManagerName: string, + scopeConnectionName: string, + parameters: ScopeConnection, + options?: ScopeConnectionsCreateOrUpdateOptionalParams + ): Promise; + /** + * Get specified scope connection created by this Network Manager. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param scopeConnectionName Name for the cross-tenant connection. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + scopeConnectionName: string, + options?: ScopeConnectionsGetOptionalParams + ): Promise; + /** + * Delete the pending scope connection created by this network manager. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param scopeConnectionName Name for the cross-tenant connection. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + networkManagerName: string, + scopeConnectionName: string, + options?: ScopeConnectionsDeleteOptionalParams + ): Promise; +} diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/securityAdminConfigurations.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/securityAdminConfigurations.ts new file mode 100644 index 0000000000..2f4d76480f --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/securityAdminConfigurations.ts @@ -0,0 +1,90 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + SecurityAdminConfiguration, + SecurityAdminConfigurationsListOptionalParams, + SecurityAdminConfigurationsGetOptionalParams, + SecurityAdminConfigurationsGetResponse, + SecurityAdminConfigurationsCreateOrUpdateOptionalParams, + SecurityAdminConfigurationsCreateOrUpdateResponse, + SecurityAdminConfigurationsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a SecurityAdminConfigurations. */ +export interface SecurityAdminConfigurations { + /** + * Lists all the network manager security admin configurations in a network manager, in a paginated + * format. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + networkManagerName: string, + options?: SecurityAdminConfigurationsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Retrieves a network manager security admin configuration. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + options?: SecurityAdminConfigurationsGetOptionalParams + ): Promise; + /** + * Creates or updates a network manager security admin configuration. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param securityAdminConfiguration The security admin configuration to create or update + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + securityAdminConfiguration: SecurityAdminConfiguration, + options?: SecurityAdminConfigurationsCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a network manager security admin configuration. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + options?: SecurityAdminConfigurationsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a network manager security admin configuration. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param configurationName The name of the network manager Security Configuration. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + networkManagerName: string, + configurationName: string, + options?: SecurityAdminConfigurationsDeleteOptionalParams + ): Promise; +} diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/staticMembers.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/staticMembers.ts new file mode 100644 index 0000000000..7fe9d035a1 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/staticMembers.ts @@ -0,0 +1,83 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + StaticMember, + StaticMembersListOptionalParams, + StaticMembersGetOptionalParams, + StaticMembersGetResponse, + StaticMembersCreateOrUpdateOptionalParams, + StaticMembersCreateOrUpdateResponse, + StaticMembersDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a StaticMembers. */ +export interface StaticMembers { + /** + * Lists the specified static member. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param networkGroupName The name of the network group. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + networkManagerName: string, + networkGroupName: string, + options?: StaticMembersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the specified static member. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param networkGroupName The name of the network group. + * @param staticMemberName The name of the static member. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkManagerName: string, + networkGroupName: string, + staticMemberName: string, + options?: StaticMembersGetOptionalParams + ): Promise; + /** + * Creates or updates a static member. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param networkGroupName The name of the network group. + * @param staticMemberName The name of the static member. + * @param parameters Parameters supplied to the specify the static member to create + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + networkManagerName: string, + networkGroupName: string, + staticMemberName: string, + parameters: StaticMember, + options?: StaticMembersCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a static member. + * @param resourceGroupName The name of the resource group. + * @param networkManagerName The name of the network manager. + * @param networkGroupName The name of the network group. + * @param staticMemberName The name of the static member. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + networkManagerName: string, + networkGroupName: string, + staticMemberName: string, + options?: StaticMembersDeleteOptionalParams + ): Promise; +} diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/subscriptionNetworkManagerConnections.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/subscriptionNetworkManagerConnections.ts new file mode 100644 index 0000000000..c885f89662 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/subscriptionNetworkManagerConnections.ts @@ -0,0 +1,59 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + NetworkManagerConnection, + SubscriptionNetworkManagerConnectionsListOptionalParams, + SubscriptionNetworkManagerConnectionsCreateOrUpdateOptionalParams, + SubscriptionNetworkManagerConnectionsCreateOrUpdateResponse, + SubscriptionNetworkManagerConnectionsGetOptionalParams, + SubscriptionNetworkManagerConnectionsGetResponse, + SubscriptionNetworkManagerConnectionsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a SubscriptionNetworkManagerConnections. */ +export interface SubscriptionNetworkManagerConnections { + /** + * List all network manager connections created by this subscription. + * @param options The options parameters. + */ + list( + options?: SubscriptionNetworkManagerConnectionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Create a network manager connection on this subscription. + * @param networkManagerConnectionName Name for the network manager connection. + * @param parameters Network manager connection to be created/updated. + * @param options The options parameters. + */ + createOrUpdate( + networkManagerConnectionName: string, + parameters: NetworkManagerConnection, + options?: SubscriptionNetworkManagerConnectionsCreateOrUpdateOptionalParams + ): Promise; + /** + * Get a specified connection created by this subscription. + * @param networkManagerConnectionName Name for the network manager connection. + * @param options The options parameters. + */ + get( + networkManagerConnectionName: string, + options?: SubscriptionNetworkManagerConnectionsGetOptionalParams + ): Promise; + /** + * Delete specified connection created by this subscription. + * @param networkManagerConnectionName Name for the network manager connection. + * @param options The options parameters. + */ + delete( + networkManagerConnectionName: string, + options?: SubscriptionNetworkManagerConnectionsDeleteOptionalParams + ): Promise; +} diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/vipSwap.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/vipSwap.ts new file mode 100644 index 0000000000..51accab1c5 --- /dev/null +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/vipSwap.ts @@ -0,0 +1,73 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + VipSwapGetOptionalParams, + VipSwapGetResponse, + SwapResource, + VipSwapCreateOptionalParams, + VipSwapListOptionalParams, + VipSwapListResponse +} from "../models"; + +/** Interface representing a VipSwap. */ +export interface VipSwap { + /** + * Gets the SwapResource which identifies the slot type for the specified cloud service. The slot type + * on a cloud service can either be Staging or Production + * @param groupName The name of the resource group. + * @param resourceName The name of the cloud service. + * @param options The options parameters. + */ + get( + groupName: string, + resourceName: string, + options?: VipSwapGetOptionalParams + ): Promise; + /** + * Performs vip swap operation on swappable cloud services. + * @param groupName The name of the resource group. + * @param resourceName The name of the cloud service. + * @param parameters SwapResource object where slot type should be the target slot after vip swap for + * the specified cloud service. + * @param options The options parameters. + */ + beginCreate( + groupName: string, + resourceName: string, + parameters: SwapResource, + options?: VipSwapCreateOptionalParams + ): Promise, void>>; + /** + * Performs vip swap operation on swappable cloud services. + * @param groupName The name of the resource group. + * @param resourceName The name of the cloud service. + * @param parameters SwapResource object where slot type should be the target slot after vip swap for + * the specified cloud service. + * @param options The options parameters. + */ + beginCreateAndWait( + groupName: string, + resourceName: string, + parameters: SwapResource, + options?: VipSwapCreateOptionalParams + ): Promise; + /** + * Gets the list of SwapResource which identifies the slot type for the specified cloud service. The + * slot type on a cloud service can either be Staging or Production + * @param groupName The name of the resource group. + * @param resourceName The name of the cloud service. + * @param options The options parameters. + */ + list( + groupName: string, + resourceName: string, + options?: VipSwapListOptionalParams + ): Promise; +} diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/virtualHubs.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/virtualHubs.ts index 80066bafc8..999a9d5aa9 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/virtualHubs.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/virtualHubs.ts @@ -20,7 +20,11 @@ import { VirtualHubsUpdateTagsOptionalParams, VirtualHubsUpdateTagsResponse, VirtualHubsDeleteOptionalParams, - VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams + VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams, + GetInboundRoutesParameters, + VirtualHubsGetInboundRoutesOptionalParams, + GetOutboundRoutesParameters, + VirtualHubsGetOutboundRoutesOptionalParams } from "../models"; /// @@ -141,4 +145,60 @@ export interface VirtualHubs { virtualHubName: string, options?: VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams ): Promise; + /** + * Gets the inbound routes configured for the Virtual Hub on a particular connection. + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection + * resource. + * @param options The options parameters. + */ + beginGetInboundRoutes( + resourceGroupName: string, + virtualHubName: string, + getInboundRoutesParameters: GetInboundRoutesParameters, + options?: VirtualHubsGetInboundRoutesOptionalParams + ): Promise, void>>; + /** + * Gets the inbound routes configured for the Virtual Hub on a particular connection. + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection + * resource. + * @param options The options parameters. + */ + beginGetInboundRoutesAndWait( + resourceGroupName: string, + virtualHubName: string, + getInboundRoutesParameters: GetInboundRoutesParameters, + options?: VirtualHubsGetInboundRoutesOptionalParams + ): Promise; + /** + * Gets the outbound routes configured for the Virtual Hub on a particular connection. + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection + * resource. + * @param options The options parameters. + */ + beginGetOutboundRoutes( + resourceGroupName: string, + virtualHubName: string, + getOutboundRoutesParameters: GetOutboundRoutesParameters, + options?: VirtualHubsGetOutboundRoutesOptionalParams + ): Promise, void>>; + /** + * Gets the outbound routes configured for the Virtual Hub on a particular connection. + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection + * resource. + * @param options The options parameters. + */ + beginGetOutboundRoutesAndWait( + resourceGroupName: string, + virtualHubName: string, + getOutboundRoutesParameters: GetOutboundRoutesParameters, + options?: VirtualHubsGetOutboundRoutesOptionalParams + ): Promise; } diff --git a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/virtualNetworks.ts b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/virtualNetworks.ts index 5e2b3d0212..d813bb7ba1 100644 --- a/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/virtualNetworks.ts +++ b/packages/autorest.typescript/test/smoke/generated/network-resource-manager/src/operationsInterfaces/virtualNetworks.ts @@ -14,6 +14,8 @@ import { VirtualNetworksListOptionalParams, VirtualNetworkUsage, VirtualNetworksListUsageOptionalParams, + PublicIpDdosProtectionStatusResult, + VirtualNetworksListDdosProtectionStatusOptionalParams, VirtualNetworksDeleteOptionalParams, VirtualNetworksGetOptionalParams, VirtualNetworksGetResponse, @@ -56,6 +58,17 @@ export interface VirtualNetworks { virtualNetworkName: string, options?: VirtualNetworksListUsageOptionalParams ): PagedAsyncIterableIterator; + /** + * Gets the Ddos Protection Status of all IP Addresses under the Virtual Network + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param options The options parameters. + */ + beginListDdosProtectionStatusAndWait( + resourceGroupName: string, + virtualNetworkName: string, + options?: VirtualNetworksListDdosProtectionStatusOptionalParams + ): PagedAsyncIterableIterator; /** * Deletes the specified virtual network. * @param resourceGroupName The name of the resource group.