From d3f08b84906016b03979a18090cd4cbc0642604f Mon Sep 17 00:00:00 2001 From: Joanna-Yang-Art <137839107+Joanna-Yang-Art@users.noreply.github.com> Date: Sun, 30 Jul 2023 23:11:23 -0700 Subject: [PATCH 01/54] Add sdk change for nrp version 2023-04-01 (#37784) --- .vscode/cspell.json | 5 +- .../CHANGELOG.md | 48 +++--- ....ResourceManager.Network.netstandard2.0.cs | 45 +++++- .../Azure.ResourceManager.Network/assets.json | 2 +- .../Sample_AdminRuleGroupCollection.cs | 8 +- .../Samples/Sample_AdminRuleGroupResource.cs | 6 +- .../Sample_ApplicationGatewayCollection.cs | 8 +- ...ewayPrivateEndpointConnectionCollection.cs | 8 +- ...atewayPrivateEndpointConnectionResource.cs | 6 +- .../Sample_ApplicationGatewayResource.cs | 32 ++-- ...tionGatewayWafDynamicManifestCollection.cs | 6 +- ...cationGatewayWafDynamicManifestResource.cs | 2 +- ...mple_ApplicationSecurityGroupCollection.cs | 8 +- ...Sample_ApplicationSecurityGroupResource.cs | 8 +- .../Samples/Sample_AzureFirewallCollection.cs | 34 ++--- .../Samples/Sample_AzureFirewallResource.cs | 20 +-- .../Sample_AzureWebCategoryCollection.cs | 6 +- .../Sample_AzureWebCategoryResource.cs | 2 +- .../Sample_BackendAddressPoolCollection.cs | 14 +- .../Sample_BackendAddressPoolResource.cs | 10 +- .../Samples/Sample_BaseAdminRuleCollection.cs | 14 +- .../Samples/Sample_BaseAdminRuleResource.cs | 10 +- .../Samples/Sample_BastionHostCollection.cs | 8 +- .../Samples/Sample_BastionHostResource.cs | 8 +- .../Samples/Sample_BgpConnectionCollection.cs | 8 +- .../Samples/Sample_BgpConnectionResource.cs | 10 +- .../Sample_CloudServiceSwapCollection.cs | 8 +- .../Sample_CloudServiceSwapResource.cs | 4 +- .../Sample_ConnectionMonitorCollection.cs | 10 +- .../Sample_ConnectionMonitorResource.cs | 12 +- ...ple_ConnectivityConfigurationCollection.cs | 8 +- ...ample_ConnectivityConfigurationResource.cs | 6 +- .../Sample_CustomIPPrefixCollection.cs | 8 +- .../Samples/Sample_CustomIPPrefixResource.cs | 8 +- .../Sample_DdosCustomPolicyCollection.cs | 6 +- .../Sample_DdosCustomPolicyResource.cs | 6 +- .../Sample_DdosProtectionPlanCollection.cs | 8 +- .../Sample_DdosProtectionPlanResource.cs | 8 +- .../Sample_DefaultSecurityRuleCollection.cs | 6 +- .../Sample_DefaultSecurityRuleResource.cs | 2 +- .../Sample_DscpConfigurationCollection.cs | 8 +- .../Sample_DscpConfigurationResource.cs | 8 +- ...ressRouteCircuitAuthorizationCollection.cs | 8 +- ...xpressRouteCircuitAuthorizationResource.cs | 6 +- .../Sample_ExpressRouteCircuitCollection.cs | 10 +- ...ExpressRouteCircuitConnectionCollection.cs | 8 +- ...e_ExpressRouteCircuitConnectionResource.cs | 6 +- ...le_ExpressRouteCircuitPeeringCollection.cs | 8 +- ...mple_ExpressRouteCircuitPeeringResource.cs | 14 +- .../Sample_ExpressRouteCircuitResource.cs | 10 +- ...Sample_ExpressRouteConnectionCollection.cs | 8 +- .../Sample_ExpressRouteConnectionResource.cs | 6 +- ...e_ExpressRouteCrossConnectionCollection.cs | 8 +- ...ssRouteCrossConnectionPeeringCollection.cs | 8 +- ...ressRouteCrossConnectionPeeringResource.cs | 12 +- ...ple_ExpressRouteCrossConnectionResource.cs | 6 +- .../Sample_ExpressRouteGatewayCollection.cs | 8 +- .../Sample_ExpressRouteGatewayResource.cs | 8 +- .../Sample_ExpressRouteLinkCollection.cs | 6 +- .../Sample_ExpressRouteLinkResource.cs | 2 +- ...ExpressRoutePortAuthorizationCollection.cs | 8 +- ...e_ExpressRoutePortAuthorizationResource.cs | 6 +- .../Sample_ExpressRoutePortCollection.cs | 10 +- .../Sample_ExpressRoutePortResource.cs | 10 +- ...ple_ExpressRoutePortsLocationCollection.cs | 6 +- ...ample_ExpressRoutePortsLocationResource.cs | 2 +- ...mple_ExpressRouteProviderPortCollection.cs | 6 +- ...Sample_ExpressRouteProviderPortResource.cs | 4 +- .../Sample_FirewallPolicyCollection.cs | 8 +- .../Samples/Sample_FirewallPolicyResource.cs | 12 +- ...wallPolicyRuleCollectionGroupCollection.cs | 32 ++-- ...rewallPolicyRuleCollectionGroupResource.cs | 20 +-- .../Samples/Sample_FlowLogCollection.cs | 8 +- .../Samples/Sample_FlowLogResource.cs | 6 +- ...ample_FrontendIPConfigurationCollection.cs | 6 +- .../Sample_FrontendIPConfigurationResource.cs | 2 +- .../Sample_HubIPConfigurationCollection.cs | 8 +- .../Sample_HubIPConfigurationResource.cs | 6 +- .../Samples/Sample_HubRouteTableCollection.cs | 8 +- .../Samples/Sample_HubRouteTableResource.cs | 6 +- ...e_HubVirtualNetworkConnectionCollection.cs | 8 +- ...ple_HubVirtualNetworkConnectionResource.cs | 6 +- .../Samples/Sample_IPAllocationCollection.cs | 8 +- .../Samples/Sample_IPAllocationResource.cs | 8 +- .../Samples/Sample_IPGroupCollection.cs | 8 +- .../Samples/Sample_IPGroupResource.cs | 8 +- .../Sample_InboundNatRuleCollection.cs | 8 +- .../Samples/Sample_InboundNatRuleResource.cs | 6 +- .../Samples/Sample_LoadBalancerCollection.cs | 139 ++++++++++++++++-- .../Samples/Sample_LoadBalancerResource.cs | 50 ++++++- .../Sample_LoadBalancingRuleCollection.cs | 6 +- .../Sample_LoadBalancingRuleResource.cs | 2 +- .../Sample_LocalNetworkGatewayCollection.cs | 8 +- .../Sample_LocalNetworkGatewayResource.cs | 6 +- ...GroupNetworkManagerConnectionCollection.cs | 8 +- ...ntGroupNetworkManagerConnectionResource.cs | 6 +- .../Samples/Sample_NatGatewayCollection.cs | 8 +- .../Samples/Sample_NatGatewayResource.cs | 8 +- .../Samples/Sample_NetworkGroupCollection.cs | 8 +- .../Samples/Sample_NetworkGroupResource.cs | 6 +- ...mple_NetworkGroupStaticMemberCollection.cs | 8 +- ...Sample_NetworkGroupStaticMemberResource.cs | 6 +- .../Sample_NetworkInterfaceCollection.cs | 10 +- ...tworkInterfaceIPConfigurationCollection.cs | 6 +- ...NetworkInterfaceIPConfigurationResource.cs | 2 +- .../Sample_NetworkInterfaceResource.cs | 14 +- ...workInterfaceTapConfigurationCollection.cs | 8 +- ...etworkInterfaceTapConfigurationResource.cs | 6 +- .../Sample_NetworkManagerCollection.cs | 8 +- .../Samples/Sample_NetworkManagerResource.cs | 16 +- ...workPrivateEndpointConnectionCollection.cs | 8 +- ...etworkPrivateEndpointConnectionResource.cs | 6 +- .../Sample_NetworkProfileCollection.cs | 12 +- .../Samples/Sample_NetworkProfileResource.cs | 10 +- .../Sample_NetworkSecurityGroupCollection.cs | 10 +- .../Sample_NetworkSecurityGroupResource.cs | 8 +- ...ample_NetworkVirtualApplianceCollection.cs | 10 +- ...orkVirtualApplianceConnectionCollection.cs | 8 +- ...tworkVirtualApplianceConnectionResource.cs | 6 +- .../Sample_NetworkVirtualApplianceResource.cs | 10 +- ...le_NetworkVirtualApplianceSkuCollection.cs | 6 +- ...mple_NetworkVirtualApplianceSkuResource.cs | 2 +- .../Sample_NetworkWatcherCollection.cs | 8 +- .../Samples/Sample_NetworkWatcherResource.cs | 32 ++-- .../Samples/Sample_OutboundRuleCollection.cs | 6 +- .../Samples/Sample_OutboundRuleResource.cs | 2 +- .../Samples/Sample_P2SVpnGatewayCollection.cs | 8 +- .../Samples/Sample_P2SVpnGatewayResource.cs | 18 +-- .../Samples/Sample_PacketCaptureCollection.cs | 8 +- .../Samples/Sample_PacketCaptureResource.cs | 10 +- ...ExpressRouteCircuitConnectionCollection.cs | 6 +- ...erExpressRouteCircuitConnectionResource.cs | 2 +- ...olicySignaturesOverridesForIdpsResource.cs | 6 +- .../Sample_PrivateDnsZoneGroupCollection.cs | 8 +- .../Sample_PrivateDnsZoneGroupResource.cs | 6 +- .../Sample_PrivateEndpointCollection.cs | 20 +-- .../Samples/Sample_PrivateEndpointResource.cs | 16 +- .../Sample_PrivateLinkServiceCollection.cs | 8 +- .../Sample_PrivateLinkServiceResource.cs | 8 +- .../Samples/Sample_ProbeCollection.cs | 6 +- .../Generated/Samples/Sample_ProbeResource.cs | 2 +- .../Sample_PublicIPAddressCollection.cs | 14 +- .../Samples/Sample_PublicIPAddressResource.cs | 10 +- .../Sample_PublicIPPrefixCollection.cs | 10 +- .../Samples/Sample_PublicIPPrefixResource.cs | 8 +- .../Sample_ResourceGroupResourceExtensions.cs | 10 +- .../Samples/Sample_RouteCollection.cs | 8 +- .../Samples/Sample_RouteFilterCollection.cs | 8 +- .../Samples/Sample_RouteFilterResource.cs | 8 +- .../Sample_RouteFilterRuleCollection.cs | 8 +- .../Samples/Sample_RouteFilterRuleResource.cs | 6 +- .../Samples/Sample_RouteMapCollection.cs | 8 +- .../Samples/Sample_RouteMapResource.cs | 6 +- .../Generated/Samples/Sample_RouteResource.cs | 6 +- .../Samples/Sample_RouteTableCollection.cs | 10 +- .../Samples/Sample_RouteTableResource.cs | 8 +- .../Samples/Sample_RoutingIntentCollection.cs | 8 +- .../Samples/Sample_RoutingIntentResource.cs | 6 +- .../Sample_ScopeConnectionCollection.cs | 8 +- .../Samples/Sample_ScopeConnectionResource.cs | 6 +- ...le_SecurityAdminConfigurationCollection.cs | 8 +- ...mple_SecurityAdminConfigurationResource.cs | 6 +- ...ample_SecurityPartnerProviderCollection.cs | 8 +- .../Sample_SecurityPartnerProviderResource.cs | 8 +- .../Samples/Sample_SecurityRuleCollection.cs | 8 +- .../Samples/Sample_SecurityRuleResource.cs | 6 +- .../Sample_ServiceEndpointPolicyCollection.cs | 10 +- ...rviceEndpointPolicyDefinitionCollection.cs | 8 +- ...ServiceEndpointPolicyDefinitionResource.cs | 6 +- .../Sample_ServiceEndpointPolicyResource.cs | 8 +- .../Samples/Sample_SubnetCollection.cs | 16 +- .../Samples/Sample_SubnetResource.cs | 20 +-- ...ptionNetworkManagerConnectionCollection.cs | 8 +- ...riptionNetworkManagerConnectionResource.cs | 6 +- .../Sample_SubscriptionResourceExtensions.cs | 30 ++-- .../Sample_VirtualApplianceSiteCollection.cs | 8 +- .../Sample_VirtualApplianceSiteResource.cs | 6 +- .../Samples/Sample_VirtualHubCollection.cs | 8 +- .../Samples/Sample_VirtualHubResource.cs | 18 +-- ...Sample_VirtualHubRouteTableV2Collection.cs | 8 +- .../Sample_VirtualHubRouteTableV2Resource.cs | 6 +- .../Sample_VirtualNetworkCollection.cs | 30 ++-- .../Sample_VirtualNetworkGatewayCollection.cs | 8 +- ...rtualNetworkGatewayConnectionCollection.cs | 8 +- ...VirtualNetworkGatewayConnectionResource.cs | 24 +-- ..._VirtualNetworkGatewayNatRuleCollection.cs | 8 +- ...le_VirtualNetworkGatewayNatRuleResource.cs | 6 +- .../Sample_VirtualNetworkGatewayResource.cs | 40 ++--- .../Sample_VirtualNetworkPeeringCollection.cs | 18 +-- .../Sample_VirtualNetworkPeeringResource.cs | 12 +- .../Samples/Sample_VirtualNetworkResource.cs | 20 +-- .../Sample_VirtualNetworkTapCollection.cs | 8 +- .../Sample_VirtualNetworkTapResource.cs | 8 +- .../Samples/Sample_VirtualRouterCollection.cs | 8 +- .../Sample_VirtualRouterPeeringCollection.cs | 8 +- .../Sample_VirtualRouterPeeringResource.cs | 6 +- .../Samples/Sample_VirtualRouterResource.cs | 8 +- .../Samples/Sample_VirtualWanCollection.cs | 8 +- .../Samples/Sample_VirtualWanResource.cs | 20 +-- .../Samples/Sample_VpnConnectionCollection.cs | 8 +- .../Samples/Sample_VpnConnectionResource.cs | 12 +- .../Samples/Sample_VpnGatewayCollection.cs | 8 +- .../Sample_VpnGatewayNatRuleCollection.cs | 8 +- .../Sample_VpnGatewayNatRuleResource.cs | 6 +- .../Samples/Sample_VpnGatewayResource.cs | 16 +- ...Sample_VpnServerConfigurationCollection.cs | 8 +- ...erverConfigurationPolicyGroupCollection.cs | 8 +- ...nServerConfigurationPolicyGroupResource.cs | 6 +- .../Sample_VpnServerConfigurationResource.cs | 8 +- .../Samples/Sample_VpnSiteCollection.cs | 8 +- .../Samples/Sample_VpnSiteLinkCollection.cs | 6 +- .../Sample_VpnSiteLinkConnectionCollection.cs | 6 +- .../Sample_VpnSiteLinkConnectionResource.cs | 6 +- .../Samples/Sample_VpnSiteLinkResource.cs | 2 +- .../Samples/Sample_VpnSiteResource.cs | 8 +- ..._WebApplicationFirewallPolicyCollection.cs | 8 +- ...le_WebApplicationFirewallPolicyResource.cs | 8 +- .../src/Azure.ResourceManager.Network.csproj | 2 +- .../Customization/ArmNetworkModelFactory.cs | 57 +++++++ .../src/Customization/VirtualWanResource.cs | 66 +++++++++ .../src/Generated/ArmNetworkModelFactory.cs | 34 ++--- .../src/Generated/BackendAddressPoolData.cs | 7 +- .../src/Generated/LoadBalancerResource.cs | 62 ++++++++ .../Models/ApplicationGatewayProbe.cs | 4 +- .../Models/ApplicationGatewaySkuName.cs | 3 + .../Models/ApplicationGatewayTier.cs | 3 + .../BackendAddressPoolData.Serialization.cs | 17 ++- .../Models/BackendAddressSyncMode.cs | 51 +++++++ ...dBalancerToIPBasedContent.Serialization.cs | 31 ++++ .../MigrateLoadBalancerToIPBasedContent.cs | 25 ++++ ...adBalancerToIPBasedResult.Serialization.cs | 43 ++++++ .../MigrateLoadBalancerToIPBasedResult.cs | 32 ++++ .../AdminRuleCollectionsRestOperations.cs | 2 +- .../AdminRulesRestOperations.cs | 2 +- ...rivateEndpointConnectionsRestOperations.cs | 2 +- ...tewayPrivateLinkResourcesRestOperations.cs | 2 +- ...afDynamicManifestsDefaultRestOperations.cs | 2 +- ...atewayWafDynamicManifestsRestOperations.cs | 2 +- .../ApplicationGatewaysRestOperations.cs | 2 +- ...ApplicationSecurityGroupsRestOperations.cs | 2 +- .../AvailableDelegationsRestOperations.cs | 2 +- ...AvailableEndpointServicesRestOperations.cs | 2 +- ...lablePrivateEndpointTypesRestOperations.cs | 2 +- ...eResourceGroupDelegationsRestOperations.cs | 2 +- .../AvailableServiceAliasesRestOperations.cs | 2 +- .../AzureFirewallFqdnTagsRestOperations.cs | 2 +- .../AzureFirewallsRestOperations.cs | 2 +- .../BastionHostsRestOperations.cs | 2 +- .../BgpServiceCommunitiesRestOperations.cs | 2 +- ...ConfigurationPolicyGroupsRestOperations.cs | 2 +- .../ConnectionMonitorsRestOperations.cs | 2 +- ...onnectivityConfigurationsRestOperations.cs | 2 +- .../CustomIPPrefixesRestOperations.cs | 2 +- .../DdosCustomPoliciesRestOperations.cs | 2 +- .../DdosProtectionPlansRestOperations.cs | 2 +- .../DefaultSecurityRulesRestOperations.cs | 2 +- .../DscpConfigurationRestOperations.cs | 2 +- ...outeCircuitAuthorizationsRestOperations.cs | 2 +- ...ssRouteCircuitConnectionsRestOperations.cs | 2 +- ...pressRouteCircuitPeeringsRestOperations.cs | 2 +- .../ExpressRouteCircuitsRestOperations.cs | 2 +- .../ExpressRouteConnectionsRestOperations.cs | 2 +- ...teCrossConnectionPeeringsRestOperations.cs | 2 +- ...ressRouteCrossConnectionsRestOperations.cs | 2 +- .../ExpressRouteGatewaysRestOperations.cs | 2 +- .../ExpressRouteLinksRestOperations.cs | 2 +- ...ssRoutePortAuthorizationsRestOperations.cs | 2 +- ...xpressRoutePortsLocationsRestOperations.cs | 2 +- .../ExpressRoutePortsRestOperations.cs | 2 +- ...outeProviderPortsLocationRestOperations.cs | 2 +- ...ressRouteServiceProvidersRestOperations.cs | 2 +- .../FirewallPoliciesRestOperations.cs | 2 +- ...dpsSignaturesFilterValuesRestOperations.cs | 2 +- ...cyIdpsSignaturesOverridesRestOperations.cs | 2 +- ...ewallPolicyIdpsSignaturesRestOperations.cs | 2 +- ...olicyRuleCollectionGroupsRestOperations.cs | 2 +- .../RestOperations/FlowLogsRestOperations.cs | 2 +- .../HubRouteTablesRestOperations.cs | 2 +- ...VirtualNetworkConnectionsRestOperations.cs | 2 +- .../InboundNatRulesRestOperations.cs | 2 +- .../InboundSecurityRuleRestOperations.cs | 2 +- .../IpAllocationsRestOperations.cs | 2 +- .../RestOperations/IpGroupsRestOperations.cs | 2 +- ...lancerBackendAddressPoolsRestOperations.cs | 2 +- ...rFrontendIPConfigurationsRestOperations.cs | 2 +- ...alancerLoadBalancingRulesRestOperations.cs | 2 +- ...BalancerNetworkInterfacesRestOperations.cs | 2 +- ...LoadBalancerOutboundRulesRestOperations.cs | 2 +- .../LoadBalancerProbesRestOperations.cs | 2 +- .../LoadBalancersRestOperations.cs | 90 +++++++++++- .../LocalNetworkGatewaysRestOperations.cs | 2 +- ...NetworkManagerConnectionsRestOperations.cs | 2 +- .../NatGatewaysRestOperations.cs | 2 +- .../RestOperations/NatRulesRestOperations.cs | 2 +- .../NetworkGroupsRestOperations.cs | 2 +- ...InterfaceIPConfigurationsRestOperations.cs | 2 +- ...orkInterfaceLoadBalancersRestOperations.cs | 2 +- ...nterfaceTapConfigurationsRestOperations.cs | 2 +- .../NetworkInterfacesRestOperations.cs | 2 +- .../NetworkManagementRestOperations.cs | 2 +- .../NetworkManagerCommitsRestOperations.cs | 2 +- ...rkManagerDeploymentStatusRestOperations.cs | 2 +- .../NetworkManagersRestOperations.cs | 2 +- .../NetworkProfilesRestOperations.cs | 2 +- .../NetworkSecurityGroupsRestOperations.cs | 2 +- ...rtualApplianceConnectionsRestOperations.cs | 2 +- .../NetworkVirtualAppliancesRestOperations.cs | 2 +- .../NetworkWatchersRestOperations.cs | 2 +- .../P2SVpnGatewaysRestOperations.cs | 2 +- .../PacketCapturesRestOperations.cs | 2 +- ...ssRouteCircuitConnectionsRestOperations.cs | 2 +- .../PrivateDnsZoneGroupsRestOperations.cs | 2 +- .../PrivateEndpointsRestOperations.cs | 2 +- .../PrivateLinkServicesRestOperations.cs | 2 +- .../PublicIPAddressesRestOperations.cs | 2 +- .../PublicIPPrefixesRestOperations.cs | 2 +- .../ResourceNavigationLinksRestOperations.cs | 2 +- .../RouteFilterRulesRestOperations.cs | 2 +- .../RouteFiltersRestOperations.cs | 2 +- .../RestOperations/RouteMapsRestOperations.cs | 2 +- .../RouteTablesRestOperations.cs | 2 +- .../RestOperations/RoutesRestOperations.cs | 2 +- .../RoutingIntentRestOperations.cs | 2 +- .../ScopeConnectionsRestOperations.cs | 2 +- ...curityAdminConfigurationsRestOperations.cs | 2 +- .../SecurityPartnerProvidersRestOperations.cs | 2 +- .../SecurityRulesRestOperations.cs | 2 +- .../ServiceAssociationLinksRestOperations.cs | 2 +- .../ServiceEndpointPoliciesRestOperations.cs | 2 +- ...EndpointPolicyDefinitionsRestOperations.cs | 2 +- .../ServiceTagInformationRestOperations.cs | 2 +- .../ServiceTagsRestOperations.cs | 2 +- .../StaticMembersRestOperations.cs | 2 +- .../RestOperations/SubnetsRestOperations.cs | 2 +- ...NetworkManagerConnectionsRestOperations.cs | 2 +- .../RestOperations/UsagesRestOperations.cs | 2 +- .../RestOperations/VipSwapRestOperations.cs | 2 +- .../VirtualApplianceSitesRestOperations.cs | 2 +- .../VirtualApplianceSkusRestOperations.cs | 2 +- .../VirtualHubBgpConnectionRestOperations.cs | 2 +- .../VirtualHubBgpConnectionsRestOperations.cs | 2 +- ...VirtualHubIpConfigurationRestOperations.cs | 2 +- .../VirtualHubRouteTableV2SRestOperations.cs | 2 +- .../VirtualHubsRestOperations.cs | 2 +- ...NetworkGatewayConnectionsRestOperations.cs | 2 +- ...ualNetworkGatewayNatRulesRestOperations.cs | 2 +- .../VirtualNetworkGatewaysRestOperations.cs | 2 +- .../VirtualNetworkPeeringsRestOperations.cs | 2 +- .../VirtualNetworkTapsRestOperations.cs | 2 +- .../VirtualNetworksRestOperations.cs | 2 +- .../VirtualRouterPeeringsRestOperations.cs | 2 +- .../VirtualRoutersRestOperations.cs | 2 +- .../VirtualWansRestOperations.cs | 2 +- .../VpnConnectionsRestOperations.cs | 2 +- .../VpnGatewaysRestOperations.cs | 2 +- .../VpnLinkConnectionsRestOperations.cs | 2 +- ...sAssociatedWithVirtualWanRestOperations.cs | 2 +- .../VpnServerConfigurationsRestOperations.cs | 2 +- .../VpnSiteLinkConnectionsRestOperations.cs | 2 +- .../VpnSiteLinksRestOperations.cs | 2 +- .../VpnSitesConfigurationRestOperations.cs | 2 +- .../RestOperations/VpnSitesRestOperations.cs | 2 +- ...plicationFirewallPoliciesRestOperations.cs | 2 +- .../WebCategoriesRestOperations.cs | 2 +- .../src/Generated/VirtualWanResource.cs | 8 +- .../src/autorest.md | 7 +- .../Helpers/NetworkServiceClientTestBase.cs | 24 +++ .../tests/Tests/ApplicationGatewayTests.cs | 30 ++-- 368 files changed, 1878 insertions(+), 1177 deletions(-) create mode 100644 sdk/network/Azure.ResourceManager.Network/src/Customization/ArmNetworkModelFactory.cs create mode 100644 sdk/network/Azure.ResourceManager.Network/src/Customization/VirtualWanResource.cs create mode 100644 sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BackendAddressSyncMode.cs create mode 100644 sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedContent.Serialization.cs create mode 100644 sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedContent.cs create mode 100644 sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedResult.Serialization.cs create mode 100644 sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedResult.cs diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 298daac8e1af..2aaf62684d1d 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -585,13 +585,13 @@ "words": [ "Azfw", "Conditon", + "Diffie", "Ddos", - "ddos", "Dnat", "Dscp", - "dscp", "Eapmscha", "Eaptls", + "Fips", "Fqdns", "Gcmaes", "Generatevirtualwanvpnserverconfigurationvpnprofile", @@ -612,7 +612,6 @@ "WAFV", "Wans", "Idps", - "idps", "Ocsp", "Afri", "Apac", diff --git a/sdk/network/Azure.ResourceManager.Network/CHANGELOG.md b/sdk/network/Azure.ResourceManager.Network/CHANGELOG.md index 536aa27e99ff..c7169f0d2e9c 100644 --- a/sdk/network/Azure.ResourceManager.Network/CHANGELOG.md +++ b/sdk/network/Azure.ResourceManager.Network/CHANGELOG.md @@ -1,35 +1,41 @@ # Release History -## 1.4.0-beta.1 (Unreleased) +## 1.4.0 (2023-07-31) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Upgraded api-version tag from 'package-2023-02' to 'package-2023-04'. Tag detail available at https://github.com/Azure/azure-rest-api-specs/blob/f5cb37608399dd19760b9ef985a707294e32fbda/specification/network/resource-manager/readme.md. ### Other Changes +- Upgraded Azure.Core from 1.33.0 to 1.34.0. +- Upgraded Azure.ResourceManager from 1.6.0 to 1.7.0. +- Obsoleted method 'ArmOperation Generatevirtualwanvpnserverconfigurationvpnprofile(WaitUntil waitUntil, VirtualWanVpnProfileContent content, CancellationToken cancellationToken)' in type Azure.ResourceManager.Network.VirtualWanResource. +- Obsoleted method 'Task> GeneratevirtualwanvpnserverconfigurationvpnprofileAsync(WaitUntil waitUntil, VirtualWanVpnProfileContent content, CancellationToken cancellationToken)' in type Azure.ResourceManager.Network.VirtualWanResource. + ## 1.3.0 (2023-06-30) +### Features Added + +- Upgraded api-version tag from 'package-2022-09' to 'package-2023-02'. Tag detail available at https://github.com/Azure/azure-rest-api-specs/blob/0b4a0a3f4bfc198df608f373784505e42e248c2c/specification/network/resource-manager/readme.md. + ### Other Changes -- Upgraded api-version tag from 'package-2022-09' to 'package-2023-02'. Tag detail available at https://github.com/Azure/azure-rest-api-specs/blob/0b4a0a3f4bfc198df608f373784505e42e248c2c/specification/network/resource-manager/readme.md -- Upgraded Azure.Core from 1.31.0 to 1.33.0 -- Upgraded Azure.ResourceManager from 1.5.0 to 1.6.0 -- Obsoleted method 'ArmOperation GetAdvertisedRoutesVirtualHubBgpConnection(WaitUntil waitUntil, CancellationToken cancellationToken)' in type Azure.ResourceManager.Network.BgpConnectionResource -- Obsoleted method 'Task> GetAdvertisedRoutesVirtualHubBgpConnectionAsync(WaitUntil waitUntil, CancellationToken cancellationToken)' in type Azure.ResourceManager.Network.BgpConnectionResource -- Obsoleted method 'ArmOperation GetLearnedRoutesVirtualHubBgpConnection(WaitUntil waitUntil, CancellationToken cancellationToken)' in type Azure.ResourceManager.Network.BgpConnectionResource -- Obsoleted method 'Task> GetLearnedRoutesVirtualHubBgpConnectionAsync(WaitUntil waitUntil, CancellationToken cancellationToken)' in type Azure.ResourceManager.Network.BgpConnectionResource -- Obsoleted method 'ArmOperation GetEffectiveVirtualHubRoutes(WaitUntil waitUntil, EffectiveRoutesContent content, CancellationToken cancellationToken)' in type Azure.ResourceManager.Network.VirtualHubResource -- Obsoleted method 'Task GetEffectiveVirtualHubRoutesAsync(WaitUntil waitUntil, EffectiveRoutesContent content, CancellationToken cancellationToken)' in type Azure.ResourceManager.Network.VirtualHubResource -- Obsoleted method 'ArmOperation GetInboundRoutes(WaitUntil waitUntil, VirtualHubInboundRoutesContent content, CancellationToken cancellationToken)' in type Azure.ResourceManager.Network.VirtualHubResource -- Obsoleted method 'Task GetInboundRoutesAsync(WaitUntil waitUntil, VirtualHubInboundRoutesContent content, CancellationToken cancellationToken)' in type Azure.ResourceManager.Network.VirtualHubResource -- Obsoleted method 'ArmOperation GetOutboundRoutes(WaitUntil waitUntil, VirtualHubOutboundRoutesContent content, CancellationToken cancellationToken)' in type Azure.ResourceManager.Network.VirtualHubResource -- Obsoleted method 'Task GetOutboundRoutesAsync(WaitUntil waitUntil, VirtualHubOutboundRoutesContent content, CancellationToken cancellationToken)' in type Azure.ResourceManager.Network.VirtualHubResource -- Obsoleted property 'ApplicationGatewayCustomErrorStatusCode HttpStatus499' in type Azure.ResourceManager.Network.Models.ApplicationGatewayCustomErrorStatusCode -- Obsoleted property 'LoadBalancerBackendAddressAdminState Drain' in type Azure.ResourceManager.Network.Models.LoadBalancerBackendAddressAdminState -- Obsoleted type 'Azure.ResourceManager.Network.Models.PeerRouteList' +- Upgraded Azure.Core from 1.31.0 to 1.33.0. +- Upgraded Azure.ResourceManager from 1.5.0 to 1.6.0. +- Obsoleted method 'ArmOperation GetAdvertisedRoutesVirtualHubBgpConnection(WaitUntil waitUntil, CancellationToken cancellationToken)' in type Azure.ResourceManager.Network.BgpConnectionResource. +- Obsoleted method 'Task> GetAdvertisedRoutesVirtualHubBgpConnectionAsync(WaitUntil waitUntil, CancellationToken cancellationToken)' in type Azure.ResourceManager.Network.BgpConnectionResource. +- Obsoleted method 'ArmOperation GetLearnedRoutesVirtualHubBgpConnection(WaitUntil waitUntil, CancellationToken cancellationToken)' in type Azure.ResourceManager.Network.BgpConnectionResource. +- Obsoleted method 'Task> GetLearnedRoutesVirtualHubBgpConnectionAsync(WaitUntil waitUntil, CancellationToken cancellationToken)' in type Azure.ResourceManager.Network.BgpConnectionResource. +- Obsoleted method 'ArmOperation GetEffectiveVirtualHubRoutes(WaitUntil waitUntil, EffectiveRoutesContent content, CancellationToken cancellationToken)' in type Azure.ResourceManager.Network.VirtualHubResource. +- Obsoleted method 'Task GetEffectiveVirtualHubRoutesAsync(WaitUntil waitUntil, EffectiveRoutesContent content, CancellationToken cancellationToken)' in type Azure.ResourceManager.Network.VirtualHubResource. +- Obsoleted method 'ArmOperation GetInboundRoutes(WaitUntil waitUntil, VirtualHubInboundRoutesContent content, CancellationToken cancellationToken)' in type Azure.ResourceManager.Network.VirtualHubResource. +- Obsoleted method 'Task GetInboundRoutesAsync(WaitUntil waitUntil, VirtualHubInboundRoutesContent content, CancellationToken cancellationToken)' in type Azure.ResourceManager.Network.VirtualHubResource. +- Obsoleted method 'ArmOperation GetOutboundRoutes(WaitUntil waitUntil, VirtualHubOutboundRoutesContent content, CancellationToken cancellationToken)' in type Azure.ResourceManager.Network.VirtualHubResource. +- Obsoleted method 'Task GetOutboundRoutesAsync(WaitUntil waitUntil, VirtualHubOutboundRoutesContent content, CancellationToken cancellationToken)' in type Azure.ResourceManager.Network.VirtualHubResource. +- Obsoleted property 'ApplicationGatewayCustomErrorStatusCode HttpStatus499' in type Azure.ResourceManager.Network.Models.ApplicationGatewayCustomErrorStatusCode. +- Obsoleted property 'LoadBalancerBackendAddressAdminState Drain' in type Azure.ResourceManager.Network.Models.LoadBalancerBackendAddressAdminState. +- Obsoleted type 'Azure.ResourceManager.Network.Models.PeerRouteList'. ## 1.3.0-beta.1 (2023-05-30) @@ -317,4 +323,4 @@ IPsecPolicy policy = new IPsecPolicy( IkeIntegrity.Sha1, DHGroup.DHGroup2, PfsGroup.Pfs1); -``` +``` \ No newline at end of file diff --git a/sdk/network/Azure.ResourceManager.Network/api/Azure.ResourceManager.Network.netstandard2.0.cs b/sdk/network/Azure.ResourceManager.Network/api/Azure.ResourceManager.Network.netstandard2.0.cs index 7146757e670b..4beaef3b8f92 100644 --- a/sdk/network/Azure.ResourceManager.Network/api/Azure.ResourceManager.Network.netstandard2.0.cs +++ b/sdk/network/Azure.ResourceManager.Network/api/Azure.ResourceManager.Network.netstandard2.0.cs @@ -357,6 +357,7 @@ public BackendAddressPoolData() { } public Azure.Core.ResourceIdentifier OutboundRuleId { get { throw null; } } public System.Collections.Generic.IReadOnlyList OutboundRules { get { throw null; } } public Azure.ResourceManager.Network.Models.NetworkProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.Network.Models.BackendAddressSyncMode? SyncMode { get { throw null; } set { } } public System.Collections.Generic.IList TunnelInterfaces { get { throw null; } } public Azure.Core.ResourceIdentifier VirtualNetworkId { get { throw null; } set { } } } @@ -2030,6 +2031,8 @@ protected LoadBalancerResource() { } public virtual Azure.Response GetProbe(string probeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetProbeAsync(string probeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Network.ProbeCollection GetProbes() { throw null; } + public virtual Azure.Response MigrateToIPBased(Azure.ResourceManager.Network.Models.MigrateLoadBalancerToIPBasedContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> MigrateToIPBasedAsync(Azure.ResourceManager.Network.Models.MigrateLoadBalancerToIPBasedContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -5093,8 +5096,14 @@ protected VirtualWanResource() { } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation DownloadVpnSitesConfiguration(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.GetVpnSitesConfigurationContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DownloadVpnSitesConfigurationAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.GetVpnSitesConfigurationContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This method is obsolete and will be removed in a future release", false)] public virtual Azure.ResourceManager.ArmOperation Generatevirtualwanvpnserverconfigurationvpnprofile(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.VirtualWanVpnProfileContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation GenerateVirtualWanVpnServerConfigurationVpnProfile(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.VirtualWanVpnProfileContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This method is obsolete and will be removed in a future release", false)] public virtual System.Threading.Tasks.Task> GeneratevirtualwanvpnserverconfigurationvpnprofileAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.VirtualWanVpnProfileContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GenerateVirtualWanVpnServerConfigurationVpnProfileAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.VirtualWanVpnProfileContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation GetVpnServerConfigurationsAssociatedWithVirtualWan(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -6297,6 +6306,7 @@ public ApplicationGatewaySku() { } private readonly object _dummy; private readonly int _dummyPrimitive; public ApplicationGatewaySkuName(string value) { throw null; } + public static Azure.ResourceManager.Network.Models.ApplicationGatewaySkuName Basic { get { throw null; } } public static Azure.ResourceManager.Network.Models.ApplicationGatewaySkuName StandardLarge { get { throw null; } } public static Azure.ResourceManager.Network.Models.ApplicationGatewaySkuName StandardMedium { get { throw null; } } public static Azure.ResourceManager.Network.Models.ApplicationGatewaySkuName StandardSmall { get { throw null; } } @@ -6461,6 +6471,7 @@ public ApplicationGatewaySslProfile() { } private readonly object _dummy; private readonly int _dummyPrimitive; public ApplicationGatewayTier(string value) { throw null; } + public static Azure.ResourceManager.Network.Models.ApplicationGatewayTier Basic { get { throw null; } } public static Azure.ResourceManager.Network.Models.ApplicationGatewayTier Standard { get { throw null; } } public static Azure.ResourceManager.Network.Models.ApplicationGatewayTier StandardV2 { get { throw null; } } public static Azure.ResourceManager.Network.Models.ApplicationGatewayTier WAF { get { throw null; } } @@ -6618,7 +6629,7 @@ public static partial class ArmNetworkModelFactory public static Azure.ResourceManager.Network.ApplicationGatewayData ApplicationGatewayData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, Azure.ETag? etag = default(Azure.ETag?), System.Collections.Generic.IEnumerable availabilityZones = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Network.Models.ApplicationGatewaySku sku = null, Azure.ResourceManager.Network.Models.ApplicationGatewaySslPolicy sslPolicy = null, Azure.ResourceManager.Network.Models.ApplicationGatewayOperationalState? operationalState = default(Azure.ResourceManager.Network.Models.ApplicationGatewayOperationalState?), System.Collections.Generic.IEnumerable gatewayIPConfigurations = null, System.Collections.Generic.IEnumerable authenticationCertificates = null, System.Collections.Generic.IEnumerable trustedRootCertificates = null, System.Collections.Generic.IEnumerable trustedClientCertificates = null, System.Collections.Generic.IEnumerable sslCertificates = null, System.Collections.Generic.IEnumerable frontendIPConfigurations = null, System.Collections.Generic.IEnumerable frontendPorts = null, System.Collections.Generic.IEnumerable probes = null, System.Collections.Generic.IEnumerable backendAddressPools = null, System.Collections.Generic.IEnumerable backendHttpSettingsCollection = null, System.Collections.Generic.IEnumerable backendSettingsCollection = null, System.Collections.Generic.IEnumerable httpListeners = null, System.Collections.Generic.IEnumerable listeners = null, System.Collections.Generic.IEnumerable sslProfiles = null, System.Collections.Generic.IEnumerable urlPathMaps = null, System.Collections.Generic.IEnumerable requestRoutingRules = null, System.Collections.Generic.IEnumerable routingRules = null, System.Collections.Generic.IEnumerable rewriteRuleSets = null, System.Collections.Generic.IEnumerable redirectConfigurations = null, Azure.ResourceManager.Network.Models.ApplicationGatewayWebApplicationFirewallConfiguration webApplicationFirewallConfiguration = null, Azure.Core.ResourceIdentifier firewallPolicyId = null, bool? enableHttp2 = default(bool?), bool? enableFips = default(bool?), Azure.ResourceManager.Network.Models.ApplicationGatewayAutoscaleConfiguration autoscaleConfiguration = null, System.Collections.Generic.IEnumerable privateLinkConfigurations = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, System.Guid? resourceGuid = default(System.Guid?), Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), System.Collections.Generic.IEnumerable customErrorConfigurations = null, bool? forceFirewallPolicyAssociation = default(bool?), System.Collections.Generic.IEnumerable loadDistributionPolicies = null, Azure.ResourceManager.Network.Models.ApplicationGatewayGlobalConfiguration globalConfiguration = null, Azure.ResourceManager.Network.Models.ApplicationGatewaySslPolicyName? defaultPredefinedSslPolicy = default(Azure.ResourceManager.Network.Models.ApplicationGatewaySslPolicyName?)) { throw null; } public static Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallManifestRuleSet ApplicationGatewayFirewallManifestRuleSet(string ruleSetType = null, string ruleSetVersion = null, Azure.ResourceManager.Network.Models.ApplicationGatewayRuleSetStatusOption? status = default(Azure.ResourceManager.Network.Models.ApplicationGatewayRuleSetStatusOption?), System.Collections.Generic.IEnumerable tiers = null, System.Collections.Generic.IEnumerable ruleGroups = null) { throw null; } public static Azure.ResourceManager.Network.Models.ApplicationGatewayFirewallRuleSet ApplicationGatewayFirewallRuleSet(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), string ruleSetType = null, string ruleSetVersion = null, System.Collections.Generic.IEnumerable ruleGroups = null, System.Collections.Generic.IEnumerable tiers = null) { throw null; } - public static Azure.ResourceManager.Network.Models.ApplicationGatewayFrontendIPConfiguration ApplicationGatewayFrontendIPConfiguration(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ETag? etag = default(Azure.ETag?), string privateIPAddress = null, Azure.ResourceManager.Network.Models.NetworkIPAllocationMethod? privateIPAllocationMethod = default(Azure.ResourceManager.Network.Models.NetworkIPAllocationMethod?), Azure.Core.ResourceIdentifier subnetId = null, Azure.Core.ResourceIdentifier publicIPAddressId = null, Azure.Core.ResourceIdentifier privateLinkConfigurationId = null, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?)) { throw null; } + public static Azure.ResourceManager.Network.Models.ApplicationGatewayFrontendIPConfiguration ApplicationGatewayFrontendIPConfiguration(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType? resourceType, Azure.ETag? etag, string privateIPAddress, Azure.ResourceManager.Network.Models.NetworkIPAllocationMethod? privateIPAllocationMethod, Azure.Core.ResourceIdentifier subnetId, Azure.Core.ResourceIdentifier publicIPAddressId, Azure.Core.ResourceIdentifier privateLinkConfigurationId, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState) { throw null; } public static Azure.ResourceManager.Network.Models.ApplicationGatewayFrontendPort ApplicationGatewayFrontendPort(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ETag? etag = default(Azure.ETag?), int? port = default(int?), Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?)) { throw null; } public static Azure.ResourceManager.Network.Models.ApplicationGatewayHttpListener ApplicationGatewayHttpListener(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ETag? etag = default(Azure.ETag?), Azure.Core.ResourceIdentifier frontendIPConfigurationId = null, Azure.Core.ResourceIdentifier frontendPortId = null, Azure.ResourceManager.Network.Models.ApplicationGatewayProtocol? protocol = default(Azure.ResourceManager.Network.Models.ApplicationGatewayProtocol?), string hostName = null, Azure.Core.ResourceIdentifier sslCertificateId = null, Azure.Core.ResourceIdentifier sslProfileId = null, bool? requireServerNameIndication = default(bool?), Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), System.Collections.Generic.IEnumerable customErrorConfigurations = null, Azure.Core.ResourceIdentifier firewallPolicyId = null, System.Collections.Generic.IEnumerable hostNames = null) { throw null; } public static Azure.ResourceManager.Network.Models.ApplicationGatewayIPConfiguration ApplicationGatewayIPConfiguration(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ETag? etag = default(Azure.ETag?), Azure.Core.ResourceIdentifier subnetId = null, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?)) { throw null; } @@ -6663,7 +6674,8 @@ public static partial class ArmNetworkModelFactory public static Azure.ResourceManager.Network.Models.AzureReachabilityReportLatencyInfo AzureReachabilityReportLatencyInfo(System.DateTimeOffset? timeStamp = default(System.DateTimeOffset?), int? score = default(int?)) { throw null; } public static Azure.ResourceManager.Network.AzureWebCategoryData AzureWebCategoryData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? etag = default(Azure.ETag?), string group = null) { throw null; } public static Azure.ResourceManager.Network.Models.BackendAddressInboundNatRulePortMappings BackendAddressInboundNatRulePortMappings(System.Collections.Generic.IEnumerable inboundNatRulePortMappings = null) { throw null; } - public static Azure.ResourceManager.Network.BackendAddressPoolData BackendAddressPoolData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ETag? etag = default(Azure.ETag?), Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IEnumerable tunnelInterfaces = null, System.Collections.Generic.IEnumerable loadBalancerBackendAddresses = null, System.Collections.Generic.IEnumerable backendIPConfigurations = null, System.Collections.Generic.IEnumerable loadBalancingRules = null, Azure.Core.ResourceIdentifier outboundRuleId = null, System.Collections.Generic.IEnumerable outboundRules = null, System.Collections.Generic.IEnumerable inboundNatRules = null, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), int? drainPeriodInSeconds = default(int?), Azure.Core.ResourceIdentifier virtualNetworkId = null) { throw null; } + public static Azure.ResourceManager.Network.BackendAddressPoolData BackendAddressPoolData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType? resourceType, Azure.ETag? etag, Azure.Core.AzureLocation? location, System.Collections.Generic.IEnumerable tunnelInterfaces, System.Collections.Generic.IEnumerable loadBalancerBackendAddresses, System.Collections.Generic.IEnumerable backendIPConfigurations, System.Collections.Generic.IEnumerable loadBalancingRules, Azure.Core.ResourceIdentifier outboundRuleId, System.Collections.Generic.IEnumerable outboundRules, System.Collections.Generic.IEnumerable inboundNatRules, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState, int? drainPeriodInSeconds, Azure.Core.ResourceIdentifier virtualNetworkId) { throw null; } + public static Azure.ResourceManager.Network.BackendAddressPoolData BackendAddressPoolData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ETag? etag = default(Azure.ETag?), Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IEnumerable tunnelInterfaces = null, System.Collections.Generic.IEnumerable loadBalancerBackendAddresses = null, System.Collections.Generic.IEnumerable backendIPConfigurations = null, System.Collections.Generic.IEnumerable loadBalancingRules = null, Azure.Core.ResourceIdentifier outboundRuleId = null, System.Collections.Generic.IEnumerable outboundRules = null, System.Collections.Generic.IEnumerable inboundNatRules = null, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), int? drainPeriodInSeconds = default(int?), Azure.Core.ResourceIdentifier virtualNetworkId = null, Azure.ResourceManager.Network.Models.BackendAddressSyncMode? syncMode = default(Azure.ResourceManager.Network.Models.BackendAddressSyncMode?)) { throw null; } public static Azure.ResourceManager.Network.BaseAdminRuleData BaseAdminRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string kind = "Unknown", Azure.ETag? etag = default(Azure.ETag?)) { throw null; } public static Azure.ResourceManager.Network.BastionHostData BastionHostData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.Network.Models.BastionHostSkuName? skuName = default(Azure.ResourceManager.Network.Models.BastionHostSkuName?), System.Collections.Generic.IEnumerable ipConfigurations = null, string dnsName = null, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), int? scaleUnits = default(int?), bool? disableCopyPaste = default(bool?), bool? enableFileCopy = default(bool?), bool? enableIPConnect = default(bool?), bool? enableShareableLink = default(bool?), bool? enableTunneling = default(bool?), bool? enableKerberos = default(bool?)) { throw null; } public static Azure.ResourceManager.Network.Models.BastionHostIPConfiguration BastionHostIPConfiguration(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ETag? etag = default(Azure.ETag?), Azure.Core.ResourceIdentifier subnetId = null, Azure.Core.ResourceIdentifier publicIPAddressId = null, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), Azure.ResourceManager.Network.Models.NetworkIPAllocationMethod? privateIPAllocationMethod = default(Azure.ResourceManager.Network.Models.NetworkIPAllocationMethod?)) { throw null; } @@ -6753,6 +6765,7 @@ public static partial class ArmNetworkModelFactory public static Azure.ResourceManager.Network.LoadBalancingRuleData LoadBalancingRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ETag? etag = default(Azure.ETag?), Azure.Core.ResourceIdentifier frontendIPConfigurationId = null, Azure.Core.ResourceIdentifier backendAddressPoolId = null, System.Collections.Generic.IEnumerable backendAddressPools = null, Azure.Core.ResourceIdentifier probeId = null, Azure.ResourceManager.Network.Models.LoadBalancingTransportProtocol? protocol = default(Azure.ResourceManager.Network.Models.LoadBalancingTransportProtocol?), Azure.ResourceManager.Network.Models.LoadDistribution? loadDistribution = default(Azure.ResourceManager.Network.Models.LoadDistribution?), int? frontendPort = default(int?), int? backendPort = default(int?), int? idleTimeoutInMinutes = default(int?), bool? enableFloatingIP = default(bool?), bool? enableTcpReset = default(bool?), bool? disableOutboundSnat = default(bool?), Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?)) { throw null; } public static Azure.ResourceManager.Network.LocalNetworkGatewayData LocalNetworkGatewayData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, Azure.ETag? etag = default(Azure.ETag?), System.Collections.Generic.IEnumerable localNetworkAddressPrefixes = null, string gatewayIPAddress = null, string fqdn = null, Azure.ResourceManager.Network.Models.BgpSettings bgpSettings = null, System.Guid? resourceGuid = default(System.Guid?), Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?)) { throw null; } public static Azure.ResourceManager.Network.Models.MatchedRule MatchedRule(string ruleName = null, string action = null) { throw null; } + public static Azure.ResourceManager.Network.Models.MigrateLoadBalancerToIPBasedResult MigrateLoadBalancerToIPBasedResult(System.Collections.Generic.IEnumerable migratedPools = null) { throw null; } public static Azure.ResourceManager.Network.NatGatewayData NatGatewayData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Network.Models.NatGatewaySkuName? skuName = default(Azure.ResourceManager.Network.Models.NatGatewaySkuName?), System.Collections.Generic.IEnumerable zones = null, Azure.ETag? etag = default(Azure.ETag?), int? idleTimeoutInMinutes = default(int?), System.Collections.Generic.IEnumerable publicIPAddresses = null, System.Collections.Generic.IEnumerable publicIPPrefixes = null, System.Collections.Generic.IEnumerable subnets = null, System.Guid? resourceGuid = default(System.Guid?), Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?)) { throw null; } public static Azure.ResourceManager.Network.Models.NatRulePortMapping NatRulePortMapping(string inboundNatRuleName = null, int? frontendPort = default(int?), int? backendPort = default(int?)) { throw null; } public static Azure.ResourceManager.Network.Models.NetworkAdminRule NetworkAdminRule(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? etag = default(Azure.ETag?), string description = null, Azure.ResourceManager.Network.Models.SecurityConfigurationRuleProtocol? protocol = default(Azure.ResourceManager.Network.Models.SecurityConfigurationRuleProtocol?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable destinations = null, System.Collections.Generic.IEnumerable sourcePortRanges = null, System.Collections.Generic.IEnumerable destinationPortRanges = null, Azure.ResourceManager.Network.Models.SecurityConfigurationRuleAccess? access = default(Azure.ResourceManager.Network.Models.SecurityConfigurationRuleAccess?), int? priority = default(int?), Azure.ResourceManager.Network.Models.SecurityConfigurationRuleDirection? direction = default(Azure.ResourceManager.Network.Models.SecurityConfigurationRuleDirection?), Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.Network.Models.NetworkProvisioningState?), System.Guid? resourceGuid = default(System.Guid?)) { throw null; } @@ -7313,6 +7326,24 @@ public partial class BackendAddressInboundNatRulePortMappings internal BackendAddressInboundNatRulePortMappings() { } public System.Collections.Generic.IReadOnlyList InboundNatRulePortMappings { get { throw null; } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct BackendAddressSyncMode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public BackendAddressSyncMode(string value) { throw null; } + public static Azure.ResourceManager.Network.Models.BackendAddressSyncMode Automatic { get { throw null; } } + public static Azure.ResourceManager.Network.Models.BackendAddressSyncMode Manual { get { throw null; } } + public bool Equals(Azure.ResourceManager.Network.Models.BackendAddressSyncMode other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Network.Models.BackendAddressSyncMode left, Azure.ResourceManager.Network.Models.BackendAddressSyncMode right) { throw null; } + public static implicit operator Azure.ResourceManager.Network.Models.BackendAddressSyncMode (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Network.Models.BackendAddressSyncMode left, Azure.ResourceManager.Network.Models.BackendAddressSyncMode right) { throw null; } + public override string ToString() { throw null; } + } public partial class BastionHostIPConfiguration : Azure.ResourceManager.Network.Models.NetworkResourceData { public BastionHostIPConfiguration() { } @@ -9803,6 +9834,16 @@ public MatchVariable(Azure.ResourceManager.Network.Models.WebApplicationFirewall public string Selector { get { throw null; } set { } } public Azure.ResourceManager.Network.Models.WebApplicationFirewallMatchVariable VariableName { get { throw null; } set { } } } + public partial class MigrateLoadBalancerToIPBasedContent + { + public MigrateLoadBalancerToIPBasedContent() { } + public System.Collections.Generic.IList Pools { get { throw null; } } + } + public partial class MigrateLoadBalancerToIPBasedResult + { + internal MigrateLoadBalancerToIPBasedResult() { } + public System.Collections.Generic.IReadOnlyList MigratedPools { get { throw null; } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct NatGatewaySkuName : System.IEquatable { diff --git a/sdk/network/Azure.ResourceManager.Network/assets.json b/sdk/network/Azure.ResourceManager.Network/assets.json index 5a1df45512ad..001b45b03121 100644 --- a/sdk/network/Azure.ResourceManager.Network/assets.json +++ b/sdk/network/Azure.ResourceManager.Network/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/network/Azure.ResourceManager.Network", - "Tag": "net/network/Azure.ResourceManager.Network_12f61fc196" + "Tag": "net/network/Azure.ResourceManager.Network_0050b4dbf5" } diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupCollection.cs index c7b80e9f7f1a..c666b7ed0a2e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_AdminRuleGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListSecurityAdminRuleCollections() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerAdminRuleCollectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerAdminRuleCollectionList.json // this example is just showing the usage of "AdminRuleCollections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task GetAll_ListSecurityAdminRuleCollections() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsSecurityAdminRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerAdminRuleCollectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerAdminRuleCollectionGet.json // this example is just showing the usage of "AdminRuleCollections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,7 +97,7 @@ public async Task Get_GetsSecurityAdminRuleCollection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetsSecurityAdminRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerAdminRuleCollectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerAdminRuleCollectionGet.json // this example is just showing the usage of "AdminRuleCollections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task Exists_GetsSecurityAdminRuleCollection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateAnAdminRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerAdminRuleCollectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerAdminRuleCollectionPut.json // this example is just showing the usage of "AdminRuleCollections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupResource.cs index 24591d7201ff..fd64a08f9d3b 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupResource.cs @@ -23,7 +23,7 @@ public partial class Sample_AdminRuleGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsSecurityAdminRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerAdminRuleCollectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerAdminRuleCollectionGet.json // this example is just showing the usage of "AdminRuleCollections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task Get_GetsSecurityAdminRuleCollection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateAnAdminRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerAdminRuleCollectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerAdminRuleCollectionPut.json // this example is just showing the usage of "AdminRuleCollections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Update_CreateOrUpdateAnAdminRuleCollection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletesAnAdminRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerAdminRuleCollectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerAdminRuleCollectionDelete.json // this example is just showing the usage of "AdminRuleCollections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayCollection.cs index c739def0d8a2..fdc384d64f48 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayCollection.cs @@ -26,7 +26,7 @@ public partial class Sample_ApplicationGatewayCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayGet.json // this example is just showing the usage of "ApplicationGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task Get_GetApplicationGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayGet.json // this example is just showing the usage of "ApplicationGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task Exists_GetApplicationGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayCreate.json // this example is just showing the usage of "ApplicationGateways_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -357,7 +357,7 @@ public async Task CreateOrUpdate_CreateApplicationGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListsAllApplicationGatewaysInAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayList.json // this example is just showing the usage of "ApplicationGateways_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionCollection.cs index c7cad32dceb2..21f68b40f847 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ApplicationGatewayPrivateEndpointConnectionCollectio [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_UpdateApplicationGatewayPrivateEndpointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayPrivateEndpointConnectionUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayPrivateEndpointConnectionUpdate.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -68,7 +68,7 @@ public async Task CreateOrUpdate_UpdateApplicationGatewayPrivateEndpointConnecti [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetApplicationGatewayPrivateEndpointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -103,7 +103,7 @@ public async Task Get_GetApplicationGatewayPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetApplicationGatewayPrivateEndpointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -134,7 +134,7 @@ public async Task Exists_GetApplicationGatewayPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListsAllPrivateEndpointConnectionsOnApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayPrivateEndpointConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayPrivateEndpointConnectionList.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionResource.cs index bb97cabb5f29..0739d44565ca 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ApplicationGatewayPrivateEndpointConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteApplicationGatewayPrivateEndpointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayPrivateEndpointConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayPrivateEndpointConnectionDelete.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteApplicationGatewayPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateApplicationGatewayPrivateEndpointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayPrivateEndpointConnectionUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayPrivateEndpointConnectionUpdate.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Update_UpdateApplicationGatewayPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetApplicationGatewayPrivateEndpointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayResource.cs index 51ec0922081d..6222a4a68b1e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayResource.cs @@ -24,7 +24,7 @@ public partial class Sample_ApplicationGatewayResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayDelete.json // this example is just showing the usage of "ApplicationGateways_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteApplicationGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayGet.json // this example is just showing the usage of "ApplicationGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetApplicationGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateApplicationGatewayTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayUpdateTags.json // this example is just showing the usage of "ApplicationGateways_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Update_UpdateApplicationGatewayTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetApplicationGateways_ListsAllApplicationGatewaysInASubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayListAll.json // this example is just showing the usage of "ApplicationGateways_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -153,7 +153,7 @@ public async Task GetApplicationGateways_ListsAllApplicationGatewaysInASubscript [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Start_StartApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayStart.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayStart.json // this example is just showing the usage of "ApplicationGateways_Start" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -180,7 +180,7 @@ public async Task Start_StartApplicationGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Stop_StopApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayStop.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayStop.json // this example is just showing the usage of "ApplicationGateways_Stop" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -207,7 +207,7 @@ public async Task Stop_StopApplicationGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task BackendHealth_GetBackendHealth() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayBackendHealthGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayBackendHealthGet.json // this example is just showing the usage of "ApplicationGateways_BackendHealth" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -235,7 +235,7 @@ public async Task BackendHealth_GetBackendHealth() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task BackendHealthOnDemand_TestBackendHealth() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayBackendHealthTest.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayBackendHealthTest.json // this example is just showing the usage of "ApplicationGateways_BackendHealthOnDemand" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -272,7 +272,7 @@ public async Task BackendHealthOnDemand_TestBackendHealth() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableServerVariablesApplicationGateways_GetAvailableServerVariables() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayAvailableServerVariablesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayAvailableServerVariablesGet.json // this example is just showing the usage of "ApplicationGateways_ListAvailableServerVariables" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -300,7 +300,7 @@ public async Task GetAvailableServerVariablesApplicationGateways_GetAvailableSer [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableRequestHeadersApplicationGateways_GetAvailableRequestHeaders() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayAvailableRequestHeadersGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayAvailableRequestHeadersGet.json // this example is just showing the usage of "ApplicationGateways_ListAvailableRequestHeaders" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -328,7 +328,7 @@ public async Task GetAvailableRequestHeadersApplicationGateways_GetAvailableRequ [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableResponseHeadersApplicationGateways_GetAvailableResponseHeaders() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayAvailableResponseHeadersGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayAvailableResponseHeadersGet.json // this example is just showing the usage of "ApplicationGateways_ListAvailableResponseHeaders" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -356,7 +356,7 @@ public async Task GetAvailableResponseHeadersApplicationGateways_GetAvailableRes [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAppGatewayAvailableWafRuleSets_GetAvailableWafRuleSets() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayAvailableWafRuleSetsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayAvailableWafRuleSetsGet.json // this example is just showing the usage of "ApplicationGateways_ListAvailableWafRuleSets" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -384,7 +384,7 @@ public async Task GetAppGatewayAvailableWafRuleSets_GetAvailableWafRuleSets() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetApplicationGatewayAvailableSslOptions_GetAvailableSslOptions() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayAvailableSslOptionsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayAvailableSslOptionsGet.json // this example is just showing the usage of "ApplicationGateways_ListAvailableSslOptions" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -409,7 +409,7 @@ public async Task GetApplicationGatewayAvailableSslOptions_GetAvailableSslOption [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetApplicationGatewayAvailableSslPredefinedPolicies_GetAvailableSslPredefinedPolicies() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json // this example is just showing the usage of "ApplicationGateways_ListAvailableSslPredefinedPolicies" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -437,7 +437,7 @@ public async Task GetApplicationGatewayAvailableSslPredefinedPolicies_GetAvailab [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetApplicationGatewaySslPredefinedPolicy_GetAvailableSslPredefinedPolicyByName() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json // this example is just showing the usage of "ApplicationGateways_GetSslPredefinedPolicy" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -463,7 +463,7 @@ public async Task GetApplicationGatewaySslPredefinedPolicy_GetAvailableSslPredef [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetApplicationGatewayPrivateLinkResources_ListsAllPrivateLinkResourcesOnApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationGatewayPrivateLinkResourceList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationGatewayPrivateLinkResourceList.json // this example is just showing the usage of "ApplicationGatewayPrivateLinkResources_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestCollection.cs index 8678b9d422c1..8ab2704a2270 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_ApplicationGatewayWafDynamicManifestCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsWAFDefaultManifest() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json // this example is just showing the usage of "ApplicationGatewayWafDynamicManifestsDefault_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetsWAFDefaultManifest() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetsWAFDefaultManifest() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json // this example is just showing the usage of "ApplicationGatewayWafDynamicManifestsDefault_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Exists_GetsWAFDefaultManifest() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetsWAFManifests() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/GetApplicationGatewayWafDynamicManifests.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/GetApplicationGatewayWafDynamicManifests.json // this example is just showing the usage of "ApplicationGatewayWafDynamicManifests_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestResource.cs index 40c9ef001411..85ab94fe3247 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ApplicationGatewayWafDynamicManifestResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsWAFDefaultManifest() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json // this example is just showing the usage of "ApplicationGatewayWafDynamicManifestsDefault_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupCollection.cs index 6560488e6777..a20dff249b23 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ApplicationSecurityGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetApplicationSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationSecurityGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationSecurityGroupGet.json // this example is just showing the usage of "ApplicationSecurityGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetApplicationSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetApplicationSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationSecurityGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationSecurityGroupGet.json // this example is just showing the usage of "ApplicationSecurityGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Exists_GetApplicationSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateApplicationSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationSecurityGroupCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationSecurityGroupCreate.json // this example is just showing the usage of "ApplicationSecurityGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task CreateOrUpdate_CreateApplicationSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListLoadBalancersInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationSecurityGroupList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationSecurityGroupList.json // this example is just showing the usage of "ApplicationSecurityGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupResource.cs index f98a56475af2..9afadda78346 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupResource.cs @@ -24,7 +24,7 @@ public partial class Sample_ApplicationSecurityGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteApplicationSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationSecurityGroupDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationSecurityGroupDelete.json // this example is just showing the usage of "ApplicationSecurityGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteApplicationSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetApplicationSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationSecurityGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationSecurityGroupGet.json // this example is just showing the usage of "ApplicationSecurityGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetApplicationSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateApplicationSecurityGroupTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationSecurityGroupUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationSecurityGroupUpdateTags.json // this example is just showing the usage of "ApplicationSecurityGroups_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Update_UpdateApplicationSecurityGroupTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetApplicationSecurityGroups_ListAllApplicationSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ApplicationSecurityGroupListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ApplicationSecurityGroupListAll.json // this example is just showing the usage of "ApplicationSecurityGroups_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallCollection.cs index 80bc8315c307..7c8219dfbda2 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_AzureFirewallCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureFirewall() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallGet.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetAzureFirewall() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAzureFirewall() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallGet.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_GetAzureFirewall() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureFirewallWithAdditionalProperties() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallGetWithAdditionalProperties.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallGetWithAdditionalProperties.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Get_GetAzureFirewallWithAdditionalProperties() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAzureFirewallWithAdditionalProperties() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallGetWithAdditionalProperties.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallGetWithAdditionalProperties.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -152,7 +152,7 @@ public async Task Exists_GetAzureFirewallWithAdditionalProperties() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureFirewallWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallGetWithIpGroups.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallGetWithIpGroups.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -186,7 +186,7 @@ public async Task Get_GetAzureFirewallWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAzureFirewallWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallGetWithIpGroups.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallGetWithIpGroups.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -216,7 +216,7 @@ public async Task Exists_GetAzureFirewallWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureFirewallWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallGetWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallGetWithZones.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -250,7 +250,7 @@ public async Task Get_GetAzureFirewallWithZones() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAzureFirewallWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallGetWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallGetWithZones.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -280,7 +280,7 @@ public async Task Exists_GetAzureFirewallWithZones() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureFirewallWithManagementSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallGetWithMgmtSubnet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallGetWithMgmtSubnet.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -314,7 +314,7 @@ public async Task Get_GetAzureFirewallWithManagementSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAzureFirewallWithManagementSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallGetWithMgmtSubnet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallGetWithMgmtSubnet.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -344,7 +344,7 @@ public async Task Exists_GetAzureFirewallWithManagementSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAzureFirewall() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallPut.json // this example is just showing the usage of "AzureFirewalls_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -548,7 +548,7 @@ public async Task CreateOrUpdate_CreateAzureFirewall() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAzureFirewallWithAdditionalProperties() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallPutWithAdditionalProperties.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallPutWithAdditionalProperties.json // this example is just showing the usage of "AzureFirewalls_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -757,7 +757,7 @@ public async Task CreateOrUpdate_CreateAzureFirewallWithAdditionalProperties() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAzureFirewallWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallPutWithIpGroups.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallPutWithIpGroups.json // this example is just showing the usage of "AzureFirewalls_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -961,7 +961,7 @@ public async Task CreateOrUpdate_CreateAzureFirewallWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAzureFirewallWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallPutWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallPutWithZones.json // this example is just showing the usage of "AzureFirewalls_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1166,7 +1166,7 @@ public async Task CreateOrUpdate_CreateAzureFirewallWithZones() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAzureFirewallWithManagementSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallPutWithMgmtSubnet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallPutWithMgmtSubnet.json // this example is just showing the usage of "AzureFirewalls_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1376,7 +1376,7 @@ public async Task CreateOrUpdate_CreateAzureFirewallWithManagementSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAzureFirewallInVirtualHub() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallPutInHub.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallPutInHub.json // this example is just showing the usage of "AzureFirewalls_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1440,7 +1440,7 @@ public async Task CreateOrUpdate_CreateAzureFirewallInVirtualHub() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllAzureFirewallsForAGivenResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallListByResourceGroup.json // this example is just showing the usage of "AzureFirewalls_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallResource.cs index ef9ae2a19930..5e2456a060e9 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallResource.cs @@ -24,7 +24,7 @@ public partial class Sample_AzureFirewallResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAzureFirewall() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallDelete.json // this example is just showing the usage of "AzureFirewalls_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteAzureFirewall() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureFirewall() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallGet.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetAzureFirewall() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureFirewallWithAdditionalProperties() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallGetWithAdditionalProperties.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallGetWithAdditionalProperties.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -113,7 +113,7 @@ public async Task Get_GetAzureFirewallWithAdditionalProperties() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureFirewallWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallGetWithIpGroups.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallGetWithIpGroups.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -144,7 +144,7 @@ public async Task Get_GetAzureFirewallWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureFirewallWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallGetWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallGetWithZones.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -175,7 +175,7 @@ public async Task Get_GetAzureFirewallWithZones() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureFirewallWithManagementSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallGetWithMgmtSubnet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallGetWithMgmtSubnet.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -206,7 +206,7 @@ public async Task Get_GetAzureFirewallWithManagementSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateAzureFirewallTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallUpdateTags.json // this example is just showing the usage of "AzureFirewalls_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -246,7 +246,7 @@ public async Task Update_UpdateAzureFirewallTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAzureFirewalls_ListAllAzureFirewallsForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallListBySubscription.json // this example is just showing the usage of "AzureFirewalls_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -278,7 +278,7 @@ public async Task GetAzureFirewalls_ListAllAzureFirewallsForAGivenSubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetLearnedPrefixes_AzureFirewallListLearnedPrefixes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallListLearnedIPPrefixes.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallListLearnedIPPrefixes.json // this example is just showing the usage of "AzureFirewalls_ListLearnedPrefixes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -306,7 +306,7 @@ public async Task GetLearnedPrefixes_AzureFirewallListLearnedPrefixes() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task PacketCapture_AzureFirewallPacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallPacketCapture.json // this example is just showing the usage of "AzureFirewalls_PacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryCollection.cs index 76679ee41d10..9b591cf7518f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_AzureWebCategoryCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureWebCategoryByName() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureWebCategoryGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureWebCategoryGet.json // this example is just showing the usage of "WebCategories_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetAzureWebCategoryByName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAzureWebCategoryByName() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureWebCategoryGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureWebCategoryGet.json // this example is just showing the usage of "WebCategories_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Exists_GetAzureWebCategoryByName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllAzureWebCategoriesForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureWebCategoriesListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureWebCategoriesListBySubscription.json // this example is just showing the usage of "WebCategories_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryResource.cs index cdc962847fde..2d0ba7c0ca68 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryResource.cs @@ -21,7 +21,7 @@ public partial class Sample_AzureWebCategoryResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureWebCategoryByName() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureWebCategoryGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureWebCategoryGet.json // this example is just showing the usage of "WebCategories_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolCollection.cs index b578b7f71e12..70b282a58143 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_BackendAddressPoolCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_LoadBalancerWithBackendAddressPoolContainingBackendAddresses() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LBBackendAddressPoolListWithBackendAddressesPoolType.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LBBackendAddressPoolListWithBackendAddressesPoolType.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_LoadBalancerWithBackendAddressPoolContainingBackendAddr [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_LoadBalancerBackendAddressPoolList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerBackendAddressPoolList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerBackendAddressPoolList.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,7 +97,7 @@ public async Task GetAll_LoadBalancerBackendAddressPoolList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerWithBackendAddressPoolWithBackendAddresses() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -132,7 +132,7 @@ public async Task Get_LoadBalancerWithBackendAddressPoolWithBackendAddresses() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_LoadBalancerWithBackendAddressPoolWithBackendAddresses() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -163,7 +163,7 @@ public async Task Exists_LoadBalancerWithBackendAddressPoolWithBackendAddresses( [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerBackendAddressPoolGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerBackendAddressPoolGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerBackendAddressPoolGet.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -198,7 +198,7 @@ public async Task Get_LoadBalancerBackendAddressPoolGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_LoadBalancerBackendAddressPoolGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerBackendAddressPoolGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerBackendAddressPoolGet.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -229,7 +229,7 @@ public async Task Exists_LoadBalancerBackendAddressPoolGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_UpdateLoadBalancerBackendPoolWithBackendAddressesContainingVirtualNetworkAndIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LBBackendAddressPoolWithBackendAddressesPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LBBackendAddressPoolWithBackendAddressesPut.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolResource.cs index ba150b1662c3..c76a1d9721de 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolResource.cs @@ -23,7 +23,7 @@ public partial class Sample_BackendAddressPoolResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetInboundNatRulePortMappingsLoadBalancer_QueryInboundNATRulePortMapping() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/QueryInboundNatRulePortMapping.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/QueryInboundNatRulePortMapping.json // this example is just showing the usage of "LoadBalancers_ListInboundNatRulePortMappings" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetInboundNatRulePortMappingsLoadBalancer_QueryInboundNATRuleP [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerWithBackendAddressPoolWithBackendAddresses() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Get_LoadBalancerWithBackendAddressPoolWithBackendAddresses() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerBackendAddressPoolGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerBackendAddressPoolGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerBackendAddressPoolGet.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,7 +120,7 @@ public async Task Get_LoadBalancerBackendAddressPoolGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateLoadBalancerBackendPoolWithBackendAddressesContainingVirtualNetworkAndIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LBBackendAddressPoolWithBackendAddressesPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LBBackendAddressPoolWithBackendAddressesPut.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -170,7 +170,7 @@ public async Task Update_UpdateLoadBalancerBackendPoolWithBackendAddressesContai [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_BackendAddressPoolDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerBackendAddressPoolDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerBackendAddressPoolDelete.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleCollection.cs index d12590d62955..31e22cb405eb 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_BaseAdminRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListSecurityAdminRules() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerAdminRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerAdminRuleList.json // this example is just showing the usage of "AdminRules_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -62,7 +62,7 @@ public async Task GetAll_ListSecurityAdminRules() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsSecurityAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerAdminRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerAdminRuleGet.json // this example is just showing the usage of "AdminRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -99,7 +99,7 @@ public async Task Get_GetsSecurityAdminRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetsSecurityAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerAdminRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerAdminRuleGet.json // this example is just showing the usage of "AdminRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -132,7 +132,7 @@ public async Task Exists_GetsSecurityAdminRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsSecurityDefaultAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerDefaultAdminRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerDefaultAdminRuleGet.json // this example is just showing the usage of "AdminRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -169,7 +169,7 @@ public async Task Get_GetsSecurityDefaultAdminRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetsSecurityDefaultAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerDefaultAdminRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerDefaultAdminRuleGet.json // this example is just showing the usage of "AdminRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -202,7 +202,7 @@ public async Task Exists_GetsSecurityDefaultAdminRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateADefaultAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerDefaultAdminRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerDefaultAdminRulePut.json // this example is just showing the usage of "AdminRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -244,7 +244,7 @@ public async Task CreateOrUpdate_CreateADefaultAdminRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateAnAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerAdminRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerAdminRulePut.json // this example is just showing the usage of "AdminRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleResource.cs index 7fc49454b89f..4628047c1f46 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleResource.cs @@ -23,7 +23,7 @@ public partial class Sample_BaseAdminRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsSecurityAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerAdminRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerAdminRuleGet.json // this example is just showing the usage of "AdminRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetsSecurityAdminRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsSecurityDefaultAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerDefaultAdminRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerDefaultAdminRuleGet.json // this example is just showing the usage of "AdminRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_GetsSecurityDefaultAdminRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateADefaultAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerDefaultAdminRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerDefaultAdminRulePut.json // this example is just showing the usage of "AdminRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -130,7 +130,7 @@ public async Task Update_CreateADefaultAdminRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateAnAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerAdminRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerAdminRulePut.json // this example is just showing the usage of "AdminRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -197,7 +197,7 @@ public async Task Update_CreateAnAdminRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletesAnAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerAdminRuleDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerAdminRuleDelete.json // this example is just showing the usage of "AdminRules_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostCollection.cs index ea9be3fde6de..f14d3a99dba6 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_BastionHostCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/BastionHostGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/BastionHostGet.json // this example is just showing the usage of "BastionHosts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetBastionHost() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/BastionHostGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/BastionHostGet.json // this example is just showing the usage of "BastionHosts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_GetBastionHost() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/BastionHostPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/BastionHostPut.json // this example is just showing the usage of "BastionHosts_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -135,7 +135,7 @@ public async Task CreateOrUpdate_CreateBastionHost() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllBastionHostsForAGivenResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/BastionHostListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/BastionHostListByResourceGroup.json // this example is just showing the usage of "BastionHosts_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostResource.cs index 28999b03329c..35c787073f07 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostResource.cs @@ -24,7 +24,7 @@ public partial class Sample_BastionHostResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/BastionHostDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/BastionHostDelete.json // this example is just showing the usage of "BastionHosts_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteBastionHost() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/BastionHostGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/BastionHostGet.json // this example is just showing the usage of "BastionHosts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetBastionHost() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PatchBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/BastionHostPatch.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/BastionHostPatch.json // this example is just showing the usage of "BastionHosts_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Update_PatchBastionHost() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetBastionHosts_ListAllBastionHostsForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/BastionHostListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/BastionHostListBySubscription.json // this example is just showing the usage of "BastionHosts_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionCollection.cs index 9aedd99b056b..9c51a1432a29 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_BgpConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubBgpConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubBgpConnectionGet.json // this example is just showing the usage of "VirtualHubBgpConnection_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_VirtualHubVirtualHubRouteTableV2Get() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubBgpConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubBgpConnectionGet.json // this example is just showing the usage of "VirtualHubBgpConnection_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_VirtualHubVirtualHubRouteTableV2Get() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VirtualHubRouteTableV2Put() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubBgpConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubBgpConnectionPut.json // this example is just showing the usage of "VirtualHubBgpConnection_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -130,7 +130,7 @@ public async Task CreateOrUpdate_VirtualHubRouteTableV2Put() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VirtualHubRouteTableV2List() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubBgpConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubBgpConnectionList.json // this example is just showing the usage of "VirtualHubBgpConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionResource.cs index 83f81c77f975..df519fcde196 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionResource.cs @@ -24,7 +24,7 @@ public partial class Sample_BgpConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubBgpConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubBgpConnectionGet.json // this example is just showing the usage of "VirtualHubBgpConnection_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task Get_VirtualHubVirtualHubRouteTableV2Get() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VirtualHubRouteTableV2Put() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubBgpConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubBgpConnectionPut.json // this example is just showing the usage of "VirtualHubBgpConnection_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Update_VirtualHubRouteTableV2Put() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VirtualHubRouteTableV2Delete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubBgpConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubBgpConnectionDelete.json // this example is just showing the usage of "VirtualHubBgpConnection_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Delete_VirtualHubRouteTableV2Delete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualHubBgpConnectionLearnedRoutes_VirtualRouterPeerListLearnedRoutes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualRouterPeerListLearnedRoute.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualRouterPeerListLearnedRoute.json // this example is just showing the usage of "VirtualHubBgpConnections_ListLearnedRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -152,7 +152,7 @@ public async Task GetVirtualHubBgpConnectionLearnedRoutes_VirtualRouterPeerListL [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualHubBgpConnectionAdvertisedRoutes_VirtualRouterPeerListAdvertisedRoutes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualRouterPeerListAdvertisedRoute.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualRouterPeerListAdvertisedRoute.json // this example is just showing the usage of "VirtualHubBgpConnections_ListAdvertisedRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapCollection.cs index 30ccdb2c942f..b30f94bcb0bb 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_CloudServiceSwapCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSwapResource() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/CloudServiceSwapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/CloudServiceSwapGet.json // this example is just showing the usage of "VipSwap_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetSwapResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetSwapResource() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/CloudServiceSwapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/CloudServiceSwapGet.json // this example is just showing the usage of "VipSwap_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_GetSwapResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_PutVipSwapOperation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/CloudServiceSwapPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/CloudServiceSwapPut.json // this example is just showing the usage of "VipSwap_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task CreateOrUpdate_PutVipSwapOperation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetSwapResourceList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/CloudServiceSwapList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/CloudServiceSwapList.json // this example is just showing the usage of "VipSwap_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapResource.cs index 034af189505b..6ebbb7fcb5da 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapResource.cs @@ -23,7 +23,7 @@ public partial class Sample_CloudServiceSwapResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSwapResource() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/CloudServiceSwapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/CloudServiceSwapGet.json // this example is just showing the usage of "VipSwap_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetSwapResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PutVipSwapOperation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/CloudServiceSwapPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/CloudServiceSwapPut.json // this example is just showing the usage of "VipSwap_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorCollection.cs index 6e94405c0190..8ce0e6cb15a4 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ConnectionMonitorCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateConnectionMonitorV1() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherConnectionMonitorCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherConnectionMonitorCreate.json // this example is just showing the usage of "ConnectionMonitors_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,7 +97,7 @@ public async Task CreateOrUpdate_CreateConnectionMonitorV1() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateConnectionMonitorV2() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherConnectionMonitorV2Create.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherConnectionMonitorV2Create.json // this example is just showing the usage of "ConnectionMonitors_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -195,7 +195,7 @@ public async Task CreateOrUpdate_CreateConnectionMonitorV2() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherConnectionMonitorGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherConnectionMonitorGet.json // this example is just showing the usage of "ConnectionMonitors_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -230,7 +230,7 @@ public async Task Get_GetConnectionMonitor() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherConnectionMonitorGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherConnectionMonitorGet.json // this example is just showing the usage of "ConnectionMonitors_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -261,7 +261,7 @@ public async Task Exists_GetConnectionMonitor() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListConnectionMonitors() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherConnectionMonitorList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherConnectionMonitorList.json // this example is just showing the usage of "ConnectionMonitors_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorResource.cs index acdeedaa25c4..fd96fc025b04 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ConnectionMonitorResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherConnectionMonitorGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherConnectionMonitorGet.json // this example is just showing the usage of "ConnectionMonitors_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetConnectionMonitor() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherConnectionMonitorDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherConnectionMonitorDelete.json // this example is just showing the usage of "ConnectionMonitors_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Delete_DeleteConnectionMonitor() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateConnectionMonitorTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherConnectionMonitorUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherConnectionMonitorUpdateTags.json // this example is just showing the usage of "ConnectionMonitors_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Update_UpdateConnectionMonitorTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Stop_StopConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherConnectionMonitorStop.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherConnectionMonitorStop.json // this example is just showing the usage of "ConnectionMonitors_Stop" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -151,7 +151,7 @@ public async Task Stop_StopConnectionMonitor() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Start_StartConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherConnectionMonitorStart.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherConnectionMonitorStart.json // this example is just showing the usage of "ConnectionMonitors_Start" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -179,7 +179,7 @@ public async Task Start_StartConnectionMonitor() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Query_QueryConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherConnectionMonitorQuery.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherConnectionMonitorQuery.json // this example is just showing the usage of "ConnectionMonitors_Query" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationCollection.cs index bdffe07c6ff5..7ae33d26375d 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ConnectivityConfigurationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ConnectivityConfigurationsGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerConnectivityConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerConnectivityConfigurationGet.json // this example is just showing the usage of "ConnectivityConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_ConnectivityConfigurationsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ConnectivityConfigurationsGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerConnectivityConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerConnectivityConfigurationGet.json // this example is just showing the usage of "ConnectivityConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_ConnectivityConfigurationsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ConnectivityConfigurationsPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerConnectivityConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerConnectivityConfigurationPut.json // this example is just showing the usage of "ConnectivityConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -148,7 +148,7 @@ public async Task CreateOrUpdate_ConnectivityConfigurationsPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ConnectivityConfigurationsList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerConnectivityConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerConnectivityConfigurationList.json // this example is just showing the usage of "ConnectivityConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationResource.cs index f8466b1ef487..2e70bc71f345 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ConnectivityConfigurationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ConnectivityConfigurationsGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerConnectivityConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerConnectivityConfigurationGet.json // this example is just showing the usage of "ConnectivityConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_ConnectivityConfigurationsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ConnectivityConfigurationsPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerConnectivityConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerConnectivityConfigurationPut.json // this example is just showing the usage of "ConnectivityConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -111,7 +111,7 @@ public async Task Update_ConnectivityConfigurationsPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ConnectivityConfigurationsDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerConnectivityConfigurationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerConnectivityConfigurationDelete.json // this example is just showing the usage of "ConnectivityConfigurations_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixCollection.cs index cf9fb4b93db6..e32101cdeea1 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_CustomIPPrefixCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetCustomIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/CustomIpPrefixGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/CustomIpPrefixGet.json // this example is just showing the usage of "CustomIPPrefixes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetCustomIPPrefix() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetCustomIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/CustomIpPrefixGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/CustomIpPrefixGet.json // this example is just showing the usage of "CustomIPPrefixes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Exists_GetCustomIPPrefix() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateCustomIPPrefixAllocationMethod() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/CustomIpPrefixCreateCustomizedValues.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/CustomIpPrefixCreateCustomizedValues.json // this example is just showing the usage of "CustomIPPrefixes_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task CreateOrUpdate_CreateCustomIPPrefixAllocationMethod() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListResourceGroupCustomIPPrefixes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/CustomIpPrefixList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/CustomIpPrefixList.json // this example is just showing the usage of "CustomIPPrefixes_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixResource.cs index 3108240cd90d..289974794dee 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixResource.cs @@ -24,7 +24,7 @@ public partial class Sample_CustomIPPrefixResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteCustomIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/CustomIpPrefixDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/CustomIpPrefixDelete.json // this example is just showing the usage of "CustomIPPrefixes_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteCustomIPPrefix() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetCustomIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/CustomIpPrefixGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/CustomIpPrefixGet.json // this example is just showing the usage of "CustomIPPrefixes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetCustomIPPrefix() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdatePublicIPAddressTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/CustomIpPrefixUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/CustomIpPrefixUpdateTags.json // this example is just showing the usage of "CustomIPPrefixes_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Update_UpdatePublicIPAddressTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetCustomIPPrefixes_ListAllCustomIPPrefixes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/CustomIpPrefixListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/CustomIpPrefixListAll.json // this example is just showing the usage of "CustomIPPrefixes_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyCollection.cs index 91ccc991ee39..3afa21b5f5cf 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_DdosCustomPolicyCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDDoSCustomPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DdosCustomPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DdosCustomPolicyGet.json // this example is just showing the usage of "DdosCustomPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetDDoSCustomPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetDDoSCustomPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DdosCustomPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DdosCustomPolicyGet.json // this example is just showing the usage of "DdosCustomPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Exists_GetDDoSCustomPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateDDoSCustomPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DdosCustomPolicyCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DdosCustomPolicyCreate.json // this example is just showing the usage of "DdosCustomPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyResource.cs index 294fdb6917f9..0bbbfe849efa 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyResource.cs @@ -23,7 +23,7 @@ public partial class Sample_DdosCustomPolicyResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteDDoSCustomPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DdosCustomPolicyDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DdosCustomPolicyDelete.json // this example is just showing the usage of "DdosCustomPolicies_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Delete_DeleteDDoSCustomPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDDoSCustomPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DdosCustomPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DdosCustomPolicyGet.json // this example is just showing the usage of "DdosCustomPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -81,7 +81,7 @@ public async Task Get_GetDDoSCustomPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_DDoSCustomPolicyUpdateTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DdosCustomPolicyUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DdosCustomPolicyUpdateTags.json // this example is just showing the usage of "DdosCustomPolicies_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanCollection.cs index f58958dfe5ad..6ab569375904 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_DdosProtectionPlanCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDDoSProtectionPlan() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DdosProtectionPlanGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DdosProtectionPlanGet.json // this example is just showing the usage of "DdosProtectionPlans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetDDoSProtectionPlan() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetDDoSProtectionPlan() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DdosProtectionPlanGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DdosProtectionPlanGet.json // this example is just showing the usage of "DdosProtectionPlans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Exists_GetDDoSProtectionPlan() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateDDoSProtectionPlan() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DdosProtectionPlanCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DdosProtectionPlanCreate.json // this example is just showing the usage of "DdosProtectionPlans_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task CreateOrUpdate_CreateDDoSProtectionPlan() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListDDoSProtectionPlansInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DdosProtectionPlanList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DdosProtectionPlanList.json // this example is just showing the usage of "DdosProtectionPlans_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanResource.cs index b7dc867fbc32..8ce7e600c4d6 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanResource.cs @@ -24,7 +24,7 @@ public partial class Sample_DdosProtectionPlanResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteDDoSProtectionPlan() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DdosProtectionPlanDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DdosProtectionPlanDelete.json // this example is just showing the usage of "DdosProtectionPlans_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteDDoSProtectionPlan() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDDoSProtectionPlan() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DdosProtectionPlanGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DdosProtectionPlanGet.json // this example is just showing the usage of "DdosProtectionPlans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetDDoSProtectionPlan() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_DDoSProtectionPlanUpdateTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DdosProtectionPlanUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DdosProtectionPlanUpdateTags.json // this example is just showing the usage of "DdosProtectionPlans_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Update_DDoSProtectionPlanUpdateTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetDdosProtectionPlans_ListAllDDoSProtectionPlans() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DdosProtectionPlanListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DdosProtectionPlanListAll.json // this example is just showing the usage of "DdosProtectionPlans_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleCollection.cs index 4dec43030523..06a84e35d765 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_DefaultSecurityRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_DefaultSecurityRuleList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DefaultSecurityRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DefaultSecurityRuleList.json // this example is just showing the usage of "DefaultSecurityRules_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task GetAll_DefaultSecurityRuleList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_DefaultSecurityRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DefaultSecurityRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DefaultSecurityRuleGet.json // this example is just showing the usage of "DefaultSecurityRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_DefaultSecurityRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_DefaultSecurityRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DefaultSecurityRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DefaultSecurityRuleGet.json // this example is just showing the usage of "DefaultSecurityRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleResource.cs index 9bc5efb61340..d41bd4475281 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleResource.cs @@ -21,7 +21,7 @@ public partial class Sample_DefaultSecurityRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_DefaultSecurityRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DefaultSecurityRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DefaultSecurityRuleGet.json // this example is just showing the usage of "DefaultSecurityRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationCollection.cs index cdddc16c20b6..94a247197c6c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_DscpConfigurationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateDSCPConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DscpConfigurationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DscpConfigurationCreate.json // this example is just showing the usage of "DscpConfiguration_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -149,7 +149,7 @@ public async Task CreateOrUpdate_CreateDSCPConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDscpConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DscpConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DscpConfigurationGet.json // this example is just showing the usage of "DscpConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -183,7 +183,7 @@ public async Task Get_GetDscpConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetDscpConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DscpConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DscpConfigurationGet.json // this example is just showing the usage of "DscpConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -213,7 +213,7 @@ public async Task Exists_GetDscpConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetDscpConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DscpConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DscpConfigurationList.json // this example is just showing the usage of "DscpConfiguration_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationResource.cs index 07b1855100e2..6125f59b9fd2 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationResource.cs @@ -24,7 +24,7 @@ public partial class Sample_DscpConfigurationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateDSCPConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DscpConfigurationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DscpConfigurationCreate.json // this example is just showing the usage of "DscpConfiguration_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -146,7 +146,7 @@ public async Task Update_CreateDSCPConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteDSCPConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DscpConfigurationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DscpConfigurationDelete.json // this example is just showing the usage of "DscpConfiguration_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -173,7 +173,7 @@ public async Task Delete_DeleteDSCPConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDscpConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DscpConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DscpConfigurationGet.json // this example is just showing the usage of "DscpConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -204,7 +204,7 @@ public async Task Get_GetDscpConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetDscpConfigurations_ListAllNetworkInterfaces() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/DscpConfigurationListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/DscpConfigurationListAll.json // this example is just showing the usage of "DscpConfiguration_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationCollection.cs index de67963c8e2d..8e2216192bfc 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_ExpressRouteCircuitAuthorizationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitAuthorizationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitAuthorizationGet.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetExpressRouteCircuitAuthorization() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitAuthorizationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitAuthorizationGet.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_GetExpressRouteCircuitAuthorization() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitAuthorizationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitAuthorizationCreate.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task CreateOrUpdate_CreateExpressRouteCircuitAuthorization() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitAuthorizationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitAuthorizationList.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationResource.cs index a2635afeca56..ac069a264d8a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationResource.cs @@ -22,7 +22,7 @@ public partial class Sample_ExpressRouteCircuitAuthorizationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitAuthorizationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitAuthorizationDelete.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Delete_DeleteExpressRouteCircuitAuthorization() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitAuthorizationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitAuthorizationGet.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetExpressRouteCircuitAuthorization() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitAuthorizationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitAuthorizationCreate.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitCollection.cs index 4ba68e6f3a34..f2e52fe7fdee 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_ExpressRouteCircuitCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRouteCircuit() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitGet.json // this example is just showing the usage of "ExpressRouteCircuits_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetExpressRouteCircuit() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetExpressRouteCircuit() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitGet.json // this example is just showing the usage of "ExpressRouteCircuits_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_GetExpressRouteCircuit() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateExpressRouteCircuit() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitCreate.json // this example is just showing the usage of "ExpressRouteCircuits_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -146,7 +146,7 @@ public async Task CreateOrUpdate_CreateExpressRouteCircuit() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateExpressRouteCircuitOnExpressRoutePort() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json // this example is just showing the usage of "ExpressRouteCircuits_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -194,7 +194,7 @@ public async Task CreateOrUpdate_CreateExpressRouteCircuitOnExpressRoutePort() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListExpressRouteCircuitsInAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitListByResourceGroup.json // this example is just showing the usage of "ExpressRouteCircuits_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionCollection.cs index 8bdda176f265..407f1212674e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ExpressRouteCircuitConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRouteCircuitConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitConnectionGet.json // this example is just showing the usage of "ExpressRouteCircuitConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task Get_ExpressRouteCircuitConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ExpressRouteCircuitConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitConnectionGet.json // this example is just showing the usage of "ExpressRouteCircuitConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Exists_ExpressRouteCircuitConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ExpressRouteCircuitConnectionCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitConnectionCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitConnectionCreate.json // this example is just showing the usage of "ExpressRouteCircuitConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -139,7 +139,7 @@ public async Task CreateOrUpdate_ExpressRouteCircuitConnectionCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListExpressRouteCircuitConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitConnectionList.json // this example is just showing the usage of "ExpressRouteCircuitConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionResource.cs index 58aa918a351a..0e26d1d310f4 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ExpressRouteCircuitConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteExpressRouteCircuit() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitConnectionDelete.json // this example is just showing the usage of "ExpressRouteCircuitConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Delete_DeleteExpressRouteCircuit() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRouteCircuitConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitConnectionGet.json // this example is just showing the usage of "ExpressRouteCircuitConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Get_ExpressRouteCircuitConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ExpressRouteCircuitConnectionCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitConnectionCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitConnectionCreate.json // this example is just showing the usage of "ExpressRouteCircuitConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringCollection.cs index f74c79ec2499..0b5f437d60e0 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_ExpressRouteCircuitPeeringCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRouteCircuitPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitPeeringGet.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetExpressRouteCircuitPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetExpressRouteCircuitPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitPeeringGet.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_GetExpressRouteCircuitPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateExpressRouteCircuitPeerings() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitPeeringCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitPeeringCreate.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task CreateOrUpdate_CreateExpressRouteCircuitPeerings() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListExpressRouteCircuitPeerings() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitPeeringList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitPeeringList.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringResource.cs index 2212e7c14477..07c2b27bae3b 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ExpressRouteCircuitPeeringResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteExpressRouteCircuitPeerings() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitPeeringDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitPeeringDelete.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteExpressRouteCircuitPeerings() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRouteCircuitPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitPeeringGet.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Get_GetExpressRouteCircuitPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateExpressRouteCircuitPeerings() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitPeeringCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitPeeringCreate.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Update_CreateExpressRouteCircuitPeerings() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetArpTableExpressRouteCircuit_ListARPTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitARPTableList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitARPTableList.json // this example is just showing the usage of "ExpressRouteCircuits_ListArpTable" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -153,7 +153,7 @@ public async Task GetArpTableExpressRouteCircuit_ListARPTable() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetRoutesTableExpressRouteCircuit_ListRouteTables() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitRouteTableList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitRouteTableList.json // this example is just showing the usage of "ExpressRouteCircuits_ListRoutesTable" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -183,7 +183,7 @@ public async Task GetRoutesTableExpressRouteCircuit_ListRouteTables() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetRoutesTableSummaryExpressRouteCircuit_ListRouteTableSummary() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitRouteTableSummaryList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitRouteTableSummaryList.json // this example is just showing the usage of "ExpressRouteCircuits_ListRoutesTableSummary" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -213,7 +213,7 @@ public async Task GetRoutesTableSummaryExpressRouteCircuit_ListRouteTableSummary [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetPeeringStatsExpressRouteCircuit_GetExpressRouteCircuitPeeringTrafficStats() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitPeeringStats.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitPeeringStats.json // this example is just showing the usage of "ExpressRouteCircuits_GetPeeringStats" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitResource.cs index 9cdb2762c38f..897e2ba1f0fd 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitResource.cs @@ -24,7 +24,7 @@ public partial class Sample_ExpressRouteCircuitResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteExpressRouteCircuit() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitDelete.json // this example is just showing the usage of "ExpressRouteCircuits_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteExpressRouteCircuit() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRouteCircuit() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitGet.json // this example is just showing the usage of "ExpressRouteCircuits_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetExpressRouteCircuit() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateExpressRouteCircuitTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitUpdateTags.json // this example is just showing the usage of "ExpressRouteCircuits_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Update_UpdateExpressRouteCircuitTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetStats_GetExpressRouteCircuitTrafficStats() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitStats.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitStats.json // this example is just showing the usage of "ExpressRouteCircuits_GetStats" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -148,7 +148,7 @@ public async Task GetStats_GetExpressRouteCircuitTrafficStats() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetExpressRouteCircuits_ListExpressRouteCircuitsInASubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCircuitListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCircuitListBySubscription.json // this example is just showing the usage of "ExpressRouteCircuits_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionCollection.cs index 85059c5269c4..8ac404486c66 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_ExpressRouteConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ExpressRouteConnectionCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteConnectionCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteConnectionCreate.json // this example is just showing the usage of "ExpressRouteConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task CreateOrUpdate_ExpressRouteConnectionCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRouteConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteConnectionGet.json // this example is just showing the usage of "ExpressRouteConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task Get_ExpressRouteConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ExpressRouteConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteConnectionGet.json // this example is just showing the usage of "ExpressRouteConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -160,7 +160,7 @@ public async Task Exists_ExpressRouteConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ExpressRouteConnectionList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteConnectionList.json // this example is just showing the usage of "ExpressRouteConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionResource.cs index 61ec7c4ef678..73ba452c7ef9 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionResource.cs @@ -24,7 +24,7 @@ public partial class Sample_ExpressRouteConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ExpressRouteConnectionCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteConnectionCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteConnectionCreate.json // this example is just showing the usage of "ExpressRouteConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Update_ExpressRouteConnectionCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRouteConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteConnectionGet.json // this example is just showing the usage of "ExpressRouteConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Get_ExpressRouteConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ExpressRouteConnectionDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteConnectionDelete.json // this example is just showing the usage of "ExpressRouteConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionCollection.cs index b1665a5e9cab..5e5fd6f85bd1 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_ExpressRouteCrossConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ExpressRouteCrossConnectionListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCrossConnectionListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCrossConnectionListByResourceGroup.json // this example is just showing the usage of "ExpressRouteCrossConnections_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ExpressRouteCrossConnectionListByResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRouteCrossConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCrossConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCrossConnectionGet.json // this example is just showing the usage of "ExpressRouteCrossConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Get_GetExpressRouteCrossConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetExpressRouteCrossConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCrossConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCrossConnectionGet.json // this example is just showing the usage of "ExpressRouteCrossConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -124,7 +124,7 @@ public async Task Exists_GetExpressRouteCrossConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_UpdateExpressRouteCrossConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCrossConnectionUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCrossConnectionUpdate.json // this example is just showing the usage of "ExpressRouteCrossConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringCollection.cs index 44b788db3a23..5300acdb91ed 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ExpressRouteCrossConnectionPeeringCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ExpressRouteCrossConnectionBgpPeeringList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCrossConnectionBgpPeeringList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCrossConnectionBgpPeeringList.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ExpressRouteCrossConnectionBgpPeeringList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRouteCrossConnectionBgpPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetExpressRouteCrossConnectionBgpPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetExpressRouteCrossConnectionBgpPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetExpressRouteCrossConnectionBgpPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ExpressRouteCrossConnectionBgpPeeringCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCrossConnectionBgpPeeringCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCrossConnectionBgpPeeringCreate.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringResource.cs index 347fdda0bb27..7acbb208f3a9 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ExpressRouteCrossConnectionPeeringResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetArpTableExpressRouteCrossConnection_GetExpressRouteCrossConnectionsArpTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCrossConnectionsArpTable.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCrossConnectionsArpTable.json // this example is just showing the usage of "ExpressRouteCrossConnections_ListArpTable" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task GetArpTableExpressRouteCrossConnection_GetExpressRouteCrossCon [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetRoutesTableSummaryExpressRouteCrossConnection_GetExpressRouteCrossConnectionsRouteTableSummary() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCrossConnectionsRouteTableSummary.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCrossConnectionsRouteTableSummary.json // this example is just showing the usage of "ExpressRouteCrossConnections_ListRoutesTableSummary" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task GetRoutesTableSummaryExpressRouteCrossConnection_GetExpressRou [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetRoutesTableExpressRouteCrossConnection_GetExpressRouteCrossConnectionsRouteTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCrossConnectionsRouteTable.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCrossConnectionsRouteTable.json // this example is just showing the usage of "ExpressRouteCrossConnections_ListRoutesTable" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -113,7 +113,7 @@ public async Task GetRoutesTableExpressRouteCrossConnection_GetExpressRouteCross [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteExpressRouteCrossConnectionBgpPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCrossConnectionBgpPeeringDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCrossConnectionBgpPeeringDelete.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -141,7 +141,7 @@ public async Task Delete_DeleteExpressRouteCrossConnectionBgpPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRouteCrossConnectionBgpPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -173,7 +173,7 @@ public async Task Get_GetExpressRouteCrossConnectionBgpPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ExpressRouteCrossConnectionBgpPeeringCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCrossConnectionBgpPeeringCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCrossConnectionBgpPeeringCreate.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionResource.cs index 09e926df999c..bb1f0f6bdcd8 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ExpressRouteCrossConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetExpressRouteCrossConnections_ExpressRouteCrossConnectionList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCrossConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCrossConnectionList.json // this example is just showing the usage of "ExpressRouteCrossConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task GetExpressRouteCrossConnections_ExpressRouteCrossConnectionLis [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRouteCrossConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCrossConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCrossConnectionGet.json // this example is just showing the usage of "ExpressRouteCrossConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Get_GetExpressRouteCrossConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateExpressRouteCrossConnectionTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteCrossConnectionUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteCrossConnectionUpdateTags.json // this example is just showing the usage of "ExpressRouteCrossConnections_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayCollection.cs index 7cfe1ae2b62f..e38159c096f3 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_ExpressRouteGatewayCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ExpressRouteGatewayListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteGatewayListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteGatewayListByResourceGroup.json // this example is just showing the usage of "ExpressRouteGateways_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ExpressRouteGatewayListByResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ExpressRouteGatewayCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteGatewayCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteGatewayCreate.json // this example is just showing the usage of "ExpressRouteGateways_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -105,7 +105,7 @@ public async Task CreateOrUpdate_ExpressRouteGatewayCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRouteGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteGatewayGet.json // this example is just showing the usage of "ExpressRouteGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -139,7 +139,7 @@ public async Task Get_ExpressRouteGatewayGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ExpressRouteGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteGatewayGet.json // this example is just showing the usage of "ExpressRouteGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayResource.cs index d11b6a21111b..f1279ed0e570 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayResource.cs @@ -24,7 +24,7 @@ public partial class Sample_ExpressRouteGatewayResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetExpressRouteGateways_ExpressRouteGatewayListBySubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteGatewayListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteGatewayListBySubscription.json // this example is just showing the usage of "ExpressRouteGateways_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetExpressRouteGateways_ExpressRouteGatewayListBySubscription( [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ExpressRouteGatewayUpdate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteGatewayUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteGatewayUpdateTags.json // this example is just showing the usage of "ExpressRouteGateways_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task Update_ExpressRouteGatewayUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRouteGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteGatewayGet.json // this example is just showing the usage of "ExpressRouteGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task Get_ExpressRouteGatewayGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ExpressRouteGatewayDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteGatewayDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteGatewayDelete.json // this example is just showing the usage of "ExpressRouteGateways_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkCollection.cs index 6b7f5905ad8b..c1a0a1677b95 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRouteLinkCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRouteLinkGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteLinkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteLinkGet.json // this example is just showing the usage of "ExpressRouteLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task Get_ExpressRouteLinkGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ExpressRouteLinkGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteLinkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteLinkGet.json // this example is just showing the usage of "ExpressRouteLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Exists_ExpressRouteLinkGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ExpressRouteLinkGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteLinkList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteLinkList.json // this example is just showing the usage of "ExpressRouteLinks_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkResource.cs index 0b9b6872aa80..ead22258cb3e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRouteLinkResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRouteLinkGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteLinkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteLinkGet.json // this example is just showing the usage of "ExpressRouteLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationCollection.cs index 33c749cde5ab..09edb3e1464d 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_ExpressRoutePortAuthorizationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRoutePortAuthorizationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRoutePortAuthorizationGet.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetExpressRoutePortAuthorization() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRoutePortAuthorizationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRoutePortAuthorizationGet.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_GetExpressRoutePortAuthorization() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRoutePortAuthorizationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRoutePortAuthorizationCreate.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task CreateOrUpdate_CreateExpressRoutePortAuthorization() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRoutePortAuthorizationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRoutePortAuthorizationList.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationResource.cs index d936f8d8c196..d400a0c2d8f1 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationResource.cs @@ -22,7 +22,7 @@ public partial class Sample_ExpressRoutePortAuthorizationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRoutePortAuthorizationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRoutePortAuthorizationDelete.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Delete_DeleteExpressRoutePortAuthorization() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRoutePortAuthorizationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRoutePortAuthorizationGet.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetExpressRoutePortAuthorization() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRoutePortAuthorizationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRoutePortAuthorizationCreate.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortCollection.cs index fef640746a87..f93888b3e187 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_ExpressRoutePortCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRoutePortGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRoutePortGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRoutePortGet.json // this example is just showing the usage of "ExpressRoutePorts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_ExpressRoutePortGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ExpressRoutePortGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRoutePortGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRoutePortGet.json // this example is just showing the usage of "ExpressRoutePorts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_ExpressRoutePortGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ExpressRoutePortCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRoutePortCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRoutePortCreate.json // this example is just showing the usage of "ExpressRoutePorts_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task CreateOrUpdate_ExpressRoutePortCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ExpressRoutePortUpdateLink() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRoutePortUpdateLink.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRoutePortUpdateLink.json // this example is just showing the usage of "ExpressRoutePorts_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -182,7 +182,7 @@ public async Task CreateOrUpdate_ExpressRoutePortUpdateLink() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ExpressRoutePortListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRoutePortListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRoutePortListByResourceGroup.json // this example is just showing the usage of "ExpressRoutePorts_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortResource.cs index 0611def7da49..6b1d640816e1 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortResource.cs @@ -24,7 +24,7 @@ public partial class Sample_ExpressRoutePortResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ExpressRoutePortDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRoutePortDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRoutePortDelete.json // this example is just showing the usage of "ExpressRoutePorts_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_ExpressRoutePortDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRoutePortGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRoutePortGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRoutePortGet.json // this example is just showing the usage of "ExpressRoutePorts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_ExpressRoutePortGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ExpressRoutePortUpdateTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRoutePortUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRoutePortUpdateTags.json // this example is just showing the usage of "ExpressRoutePorts_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Update_ExpressRoutePortUpdateTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetExpressRoutePorts_ExpressRoutePortList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRoutePortList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRoutePortList.json // this example is just showing the usage of "ExpressRoutePorts_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -153,7 +153,7 @@ public async Task GetExpressRoutePorts_ExpressRoutePortList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GenerateLoa_GenerateExpressRoutePortLOA() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/GenerateExpressRoutePortsLOA.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/GenerateExpressRoutePortsLOA.json // this example is just showing the usage of "ExpressRoutePorts_GenerateLOA" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationCollection.cs index 477b9dbb0aa7..cc904207072c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_ExpressRoutePortsLocationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ExpressRoutePortsLocationList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRoutePortsLocationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRoutePortsLocationList.json // this example is just showing the usage of "ExpressRoutePortsLocations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_ExpressRoutePortsLocationList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRoutePortsLocationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRoutePortsLocationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRoutePortsLocationGet.json // this example is just showing the usage of "ExpressRoutePortsLocations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task Get_ExpressRoutePortsLocationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ExpressRoutePortsLocationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRoutePortsLocationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRoutePortsLocationGet.json // this example is just showing the usage of "ExpressRoutePortsLocations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationResource.cs index f2f2ccedcd51..d8210f6663f3 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRoutePortsLocationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRoutePortsLocationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRoutePortsLocationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRoutePortsLocationGet.json // this example is just showing the usage of "ExpressRoutePortsLocations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortCollection.cs index c1027af4893e..f8c51ddbd965 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_ExpressRouteProviderPortCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRouteProviderPort() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/expressRouteProviderPort.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/expressRouteProviderPort.json // this example is just showing the usage of "ExpressRouteProviderPort" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_ExpressRouteProviderPort() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ExpressRouteProviderPort() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/expressRouteProviderPort.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/expressRouteProviderPort.json // this example is just showing the usage of "ExpressRouteProviderPort" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Exists_ExpressRouteProviderPort() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ExpressRouteProviderPortList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/expressRouteProviderPortList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/expressRouteProviderPortList.json // this example is just showing the usage of "ExpressRouteProviderPortsLocation_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortResource.cs index 2af7444db709..a97fdabd68f3 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ExpressRouteProviderPortResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckDnsNameAvailability_CheckDnsNameAvailability() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/CheckDnsNameAvailability.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/CheckDnsNameAvailability.json // this example is just showing the usage of "CheckDnsNameAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task CheckDnsNameAvailability_CheckDnsNameAvailability() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ExpressRouteProviderPort() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/expressRouteProviderPort.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/expressRouteProviderPort.json // this example is just showing the usage of "ExpressRouteProviderPort" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyCollection.cs index fc0bc5cc3ffa..42572827b6c4 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_FirewallPolicyCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyGet.json // this example is just showing the usage of "FirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyGet.json // this example is just showing the usage of "FirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_GetFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyPut.json // this example is just showing the usage of "FirewallPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -232,7 +232,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllFirewallPoliciesForAGivenResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyListByResourceGroup.json // this example is just showing the usage of "FirewallPolicies_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyResource.cs index 31d34637fb5f..b2a5ddd2f9e3 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyResource.cs @@ -24,7 +24,7 @@ public partial class Sample_FirewallPolicyResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyDelete.json // this example is just showing the usage of "FirewallPolicies_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyGet.json // this example is just showing the usage of "FirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateFirewallPolicyTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyPatch.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyPatch.json // this example is just showing the usage of "FirewallPolicies_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Update_UpdateFirewallPolicyTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetFirewallPolicies_ListAllFirewallPoliciesForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyListBySubscription.json // this example is just showing the usage of "FirewallPolicies_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -153,7 +153,7 @@ public async Task GetFirewallPolicies_ListAllFirewallPoliciesForAGivenSubscripti [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetFirewallPolicyIdpsSignature_QuerySignatureOverrides() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyQuerySignatureOverrides.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyQuerySignatureOverrides.json // this example is just showing the usage of "FirewallPolicyIdpsSignatures_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -202,7 +202,7 @@ public async Task GetFirewallPolicyIdpsSignature_QuerySignatureOverrides() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetFirewallPolicyIdpsSignaturesFilterValue_QuerySignatureOverrides() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyQuerySignatureOverridesFilterValues.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyQuerySignatureOverridesFilterValues.json // this example is just showing the usage of "FirewallPolicyIdpsSignaturesFilterValues_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupCollection.cs index 888ba3407a8e..d2638c612cf4 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_FirewallPolicyRuleCollectionGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetFirewallPolicyNatRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_GetFirewallPolicyNatRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyRuleCollectionGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -124,7 +124,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyRuleCollectionGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -155,7 +155,7 @@ public async Task Exists_GetFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -190,7 +190,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroupWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -221,7 +221,7 @@ public async Task Exists_GetFirewallPolicyRuleCollectionGroupWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -256,7 +256,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroupWithWebCategories() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -287,7 +287,7 @@ public async Task Exists_GetFirewallPolicyRuleCollectionGroupWithWebCategories() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyNatRuleCollectionGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyNatRuleCollectionGroupPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -364,7 +364,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyNatRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyRuleCollectionGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyRuleCollectionGroupPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -436,7 +436,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -507,7 +507,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithIpGr [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -579,7 +579,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithWebC [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithHttpHeaderToInsert() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyRuleCollectionGroupWithHttpHeadersToInsert.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyRuleCollectionGroupWithHttpHeadersToInsert.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -659,7 +659,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithHttp [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesList.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -696,7 +696,7 @@ public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupWithWebCategori [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupsForAGivenFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyRuleCollectionGroupList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyRuleCollectionGroupList.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -733,7 +733,7 @@ public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupsForAGivenFirew [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupsWithIpGroupsForAGivenFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsList.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupResource.cs index 27cf0fabf451..b3b7c5588805 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupResource.cs @@ -23,7 +23,7 @@ public partial class Sample_FirewallPolicyRuleCollectionGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyRuleCollectionGroupDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyRuleCollectionGroupDelete.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Get_GetFirewallPolicyNatRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyRuleCollectionGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -147,7 +147,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroupWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -179,7 +179,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroupWithWebCategories() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyNatRuleCollectionGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyNatRuleCollectionGroupPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -253,7 +253,7 @@ public async Task Update_CreateFirewallPolicyNatRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyRuleCollectionGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyRuleCollectionGroupPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -322,7 +322,7 @@ public async Task Update_CreateFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -390,7 +390,7 @@ public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -459,7 +459,7 @@ public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithWebCategorie [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithHttpHeaderToInsert() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicyRuleCollectionGroupWithHttpHeadersToInsert.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicyRuleCollectionGroupWithHttpHeadersToInsert.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogCollection.cs index 7dd01fc95c10..26afb60a80d8 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_FlowLogCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateFlowLog() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherFlowLogCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherFlowLogCreate.json // this example is just showing the usage of "FlowLogs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -71,7 +71,7 @@ public async Task CreateOrUpdate_CreateOrUpdateFlowLog() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFlowLog() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherFlowLogGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherFlowLogGet.json // this example is just showing the usage of "FlowLogs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -106,7 +106,7 @@ public async Task Get_GetFlowLog() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFlowLog() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherFlowLogGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherFlowLogGet.json // this example is just showing the usage of "FlowLogs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -137,7 +137,7 @@ public async Task Exists_GetFlowLog() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListConnectionMonitors() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherFlowLogList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherFlowLogList.json // this example is just showing the usage of "FlowLogs_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogResource.cs index 4829438c2e1b..261d1711e466 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogResource.cs @@ -23,7 +23,7 @@ public partial class Sample_FlowLogResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateFlowLogTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherFlowLogUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherFlowLogUpdateTags.json // this example is just showing the usage of "FlowLogs_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -63,7 +63,7 @@ public async Task Update_UpdateFlowLogTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFlowLog() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherFlowLogGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherFlowLogGet.json // this example is just showing the usage of "FlowLogs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetFlowLog() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteFlowLog() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherFlowLogDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherFlowLogDelete.json // this example is just showing the usage of "FlowLogs_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationCollection.cs index ffe857cadb4b..128a33352079 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_FrontendIPConfigurationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_LoadBalancerFrontendIPConfigurationList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerFrontendIPConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerFrontendIPConfigurationList.json // this example is just showing the usage of "LoadBalancerFrontendIPConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task GetAll_LoadBalancerFrontendIPConfigurationList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerFrontendIPConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerFrontendIPConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerFrontendIPConfigurationGet.json // this example is just showing the usage of "LoadBalancerFrontendIPConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_LoadBalancerFrontendIPConfigurationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_LoadBalancerFrontendIPConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerFrontendIPConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerFrontendIPConfigurationGet.json // this example is just showing the usage of "LoadBalancerFrontendIPConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationResource.cs index 3e5ce4a63ca6..8d5d75a87a79 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationResource.cs @@ -21,7 +21,7 @@ public partial class Sample_FrontendIPConfigurationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerFrontendIPConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerFrontendIPConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerFrontendIPConfigurationGet.json // this example is just showing the usage of "LoadBalancerFrontendIPConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationCollection.cs index 96777cfe50e9..24f4d275fad8 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_HubIPConfigurationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubIpConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubIpConfigurationGet.json // this example is just showing the usage of "VirtualHubIpConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_VirtualHubVirtualHubRouteTableV2Get() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubIpConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubIpConfigurationGet.json // this example is just showing the usage of "VirtualHubIpConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_VirtualHubVirtualHubRouteTableV2Get() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VirtualHubIpConfigurationPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubIpConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubIpConfigurationPut.json // this example is just showing the usage of "VirtualHubIpConfiguration_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task CreateOrUpdate_VirtualHubIpConfigurationPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VirtualHubRouteTableV2List() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubIpConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubIpConfigurationList.json // this example is just showing the usage of "VirtualHubIpConfiguration_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationResource.cs index 3c73b67078e9..a8c07a0a4ddd 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationResource.cs @@ -22,7 +22,7 @@ public partial class Sample_HubIPConfigurationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubIpConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubIpConfigurationGet.json // this example is just showing the usage of "VirtualHubIpConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_VirtualHubVirtualHubRouteTableV2Get() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VirtualHubIpConfigurationPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubIpConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubIpConfigurationPut.json // this example is just showing the usage of "VirtualHubIpConfiguration_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Update_VirtualHubIpConfigurationPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VirtualHubIpConfigurationDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubIpConfigurationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubIpConfigurationDelete.json // this example is just showing the usage of "VirtualHubIpConfiguration_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableCollection.cs index 00a800419823..80ab627e4083 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_HubRouteTableCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_RouteTablePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/HubRouteTablePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/HubRouteTablePut.json // this example is just showing the usage of "HubRouteTables_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -73,7 +73,7 @@ public async Task CreateOrUpdate_RouteTablePut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RouteTableGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/HubRouteTableGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/HubRouteTableGet.json // this example is just showing the usage of "HubRouteTables_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -108,7 +108,7 @@ public async Task Get_RouteTableGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_RouteTableGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/HubRouteTableGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/HubRouteTableGet.json // this example is just showing the usage of "HubRouteTables_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -139,7 +139,7 @@ public async Task Exists_RouteTableGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_RouteTableList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/HubRouteTableList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/HubRouteTableList.json // this example is just showing the usage of "HubRouteTables_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableResource.cs index d2984ecb10b5..9dbae72ff6f7 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableResource.cs @@ -23,7 +23,7 @@ public partial class Sample_HubRouteTableResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_RouteTablePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/HubRouteTablePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/HubRouteTablePut.json // this example is just showing the usage of "HubRouteTables_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -70,7 +70,7 @@ public async Task Update_RouteTablePut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RouteTableGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/HubRouteTableGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/HubRouteTableGet.json // this example is just showing the usage of "HubRouteTables_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -102,7 +102,7 @@ public async Task Get_RouteTableGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_RouteTableDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/HubRouteTableDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/HubRouteTableDelete.json // this example is just showing the usage of "HubRouteTables_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionCollection.cs index 5a7a0c966044..4863cd27e004 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_HubVirtualNetworkConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_HubVirtualNetworkConnectionPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/HubVirtualNetworkConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/HubVirtualNetworkConnectionPut.json // this example is just showing the usage of "HubVirtualNetworkConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -112,7 +112,7 @@ public async Task CreateOrUpdate_HubVirtualNetworkConnectionPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_HubVirtualNetworkConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/HubVirtualNetworkConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/HubVirtualNetworkConnectionGet.json // this example is just showing the usage of "HubVirtualNetworkConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -147,7 +147,7 @@ public async Task Get_HubVirtualNetworkConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_HubVirtualNetworkConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/HubVirtualNetworkConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/HubVirtualNetworkConnectionGet.json // this example is just showing the usage of "HubVirtualNetworkConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -178,7 +178,7 @@ public async Task Exists_HubVirtualNetworkConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_HubVirtualNetworkConnectionList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/HubVirtualNetworkConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/HubVirtualNetworkConnectionList.json // this example is just showing the usage of "HubVirtualNetworkConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionResource.cs index aca449454f18..02ef6f28b095 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionResource.cs @@ -24,7 +24,7 @@ public partial class Sample_HubVirtualNetworkConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_HubVirtualNetworkConnectionPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/HubVirtualNetworkConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/HubVirtualNetworkConnectionPut.json // this example is just showing the usage of "HubVirtualNetworkConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -109,7 +109,7 @@ public async Task Update_HubVirtualNetworkConnectionPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_HubVirtualNetworkConnectionDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/HubVirtualNetworkConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/HubVirtualNetworkConnectionDelete.json // this example is just showing the usage of "HubVirtualNetworkConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -137,7 +137,7 @@ public async Task Delete_HubVirtualNetworkConnectionDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_HubVirtualNetworkConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/HubVirtualNetworkConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/HubVirtualNetworkConnectionGet.json // this example is just showing the usage of "HubVirtualNetworkConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationCollection.cs index c04dd8b00f73..0404f055e6dc 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_IPAllocationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetIpAllocation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/IpAllocationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/IpAllocationGet.json // this example is just showing the usage of "IpAllocations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetIpAllocation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetIpAllocation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/IpAllocationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/IpAllocationGet.json // this example is just showing the usage of "IpAllocations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_GetIpAllocation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateIpAllocation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/IpAllocationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/IpAllocationCreate.json // this example is just showing the usage of "IpAllocations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -133,7 +133,7 @@ public async Task CreateOrUpdate_CreateIpAllocation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListIpAllocationsInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/IpAllocationListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/IpAllocationListByResourceGroup.json // this example is just showing the usage of "IpAllocations_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationResource.cs index 53149585cae6..336b1e6fb409 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationResource.cs @@ -24,7 +24,7 @@ public partial class Sample_IPAllocationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteIpAllocation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/IpAllocationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/IpAllocationDelete.json // this example is just showing the usage of "IpAllocations_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteIpAllocation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetIpAllocation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/IpAllocationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/IpAllocationGet.json // this example is just showing the usage of "IpAllocations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetIpAllocation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateVirtualNetworkTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/IpAllocationUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/IpAllocationUpdateTags.json // this example is just showing the usage of "IpAllocations_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Update_UpdateVirtualNetworkTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIPAllocations_ListAllIpAllocations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/IpAllocationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/IpAllocationList.json // this example is just showing the usage of "IpAllocations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupCollection.cs index f4cf133033d0..a25069a1346c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_IPGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/IpGroupsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/IpGroupsGet.json // this example is just showing the usage of "IpGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/IpGroupsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/IpGroupsGet.json // this example is just showing the usage of "IpGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Exists_GetIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/IpGroupsCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/IpGroupsCreate.json // this example is just showing the usage of "IpGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -134,7 +134,7 @@ public async Task CreateOrUpdate_CreateOrUpdateIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListByResourceGroupIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/IpGroupsListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/IpGroupsListByResourceGroup.json // this example is just showing the usage of "IpGroups_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupResource.cs index 0b5376e3797a..dc47430624e7 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupResource.cs @@ -24,7 +24,7 @@ public partial class Sample_IPGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/IpGroupsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/IpGroupsGet.json // this example is just showing the usage of "IpGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/IpGroupsUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/IpGroupsUpdateTags.json // this example is just showing the usage of "IpGroups_UpdateGroups" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Update_UpdateIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/IpGroupsDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/IpGroupsDelete.json // this example is just showing the usage of "IpGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Delete_DeleteIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIPGroups_ListIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/IpGroupsListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/IpGroupsListBySubscription.json // this example is just showing the usage of "IpGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleCollection.cs index 626a2d93f0ba..b9ed8913bb78 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_InboundNatRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_InboundNatRuleList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/InboundNatRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/InboundNatRuleList.json // this example is just showing the usage of "InboundNatRules_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_InboundNatRuleList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_InboundNatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/InboundNatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/InboundNatRuleGet.json // this example is just showing the usage of "InboundNatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_InboundNatRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_InboundNatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/InboundNatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/InboundNatRuleGet.json // this example is just showing the usage of "InboundNatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_InboundNatRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_InboundNatRuleCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/InboundNatRuleCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/InboundNatRuleCreate.json // this example is just showing the usage of "InboundNatRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleResource.cs index 25377cee9980..bf2f4d9b4a6f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleResource.cs @@ -23,7 +23,7 @@ public partial class Sample_InboundNatRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_InboundNatRuleDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/InboundNatRuleDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/InboundNatRuleDelete.json // this example is just showing the usage of "InboundNatRules_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_InboundNatRuleDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_InboundNatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/InboundNatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/InboundNatRuleGet.json // this example is just showing the usage of "InboundNatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Get_InboundNatRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_InboundNatRuleCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/InboundNatRuleCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/InboundNatRuleCreate.json // this example is just showing the usage of "InboundNatRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerCollection.cs index 72190b317d25..dcbf6f8259df 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerCollection.cs @@ -25,7 +25,7 @@ public partial class Sample_LoadBalancerCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetLoadBalancer() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerGet.json // this example is just showing the usage of "LoadBalancers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task Get_GetLoadBalancer() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetLoadBalancer() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerGet.json // this example is just showing the usage of "LoadBalancers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_GetLoadBalancer() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetLoadBalancerWithInboundNATRulePortMapping() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerGetInboundNatRulePortMapping.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerGetInboundNatRulePortMapping.json // this example is just showing the usage of "LoadBalancers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Get_GetLoadBalancerWithInboundNATRulePortMapping() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetLoadBalancerWithInboundNATRulePortMapping() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerGetInboundNatRulePortMapping.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerGetInboundNatRulePortMapping.json // this example is just showing the usage of "LoadBalancers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -153,7 +153,7 @@ public async Task Exists_GetLoadBalancerWithInboundNATRulePortMapping() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateLoadBalancer() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerCreate.json // this example is just showing the usage of "LoadBalancers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -257,7 +257,7 @@ public async Task CreateOrUpdate_CreateLoadBalancer() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateLoadBalancerWithFrontendIPInZone1() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerCreateWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerCreateWithZones.json // this example is just showing the usage of "LoadBalancers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -370,7 +370,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithFrontendIPInZone1() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateLoadBalancerWithGatewayLoadBalancerConsumerConfigured() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerCreateGatewayLoadBalancerConsumer.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerCreateGatewayLoadBalancerConsumer.json // this example is just showing the usage of "LoadBalancers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -480,7 +480,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithGatewayLoadBalancerConsum [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateLoadBalancerWithGatewayLoadBalancerProviderConfiguredWithOneBackendPool() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerCreateGatewayLoadBalancerProviderWithOneBackendPool.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerCreateGatewayLoadBalancerProviderWithOneBackendPool.json // this example is just showing the usage of "LoadBalancers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -598,7 +598,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithGatewayLoadBalancerProvid [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateLoadBalancerWithGatewayLoadBalancerProviderConfiguredWithTwoBackendPool() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerCreateGatewayLoadBalancerProviderWithTwoBackendPool.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerCreateGatewayLoadBalancerProviderWithTwoBackendPool.json // this example is just showing the usage of "LoadBalancers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -706,7 +706,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithGatewayLoadBalancerProvid [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateLoadBalancerWithGlobalTierAndOneRegionalLoadBalancerInItsBackendPool() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerCreateGlobalTier.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerCreateGlobalTier.json // this example is just showing the usage of "LoadBalancers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -805,7 +805,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithGlobalTierAndOneRegionalL [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateLoadBalancerWithStandardSKU() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerCreateStandardSku.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerCreateStandardSku.json // this example is just showing the usage of "LoadBalancers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -909,12 +909,123 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithStandardSKU() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + // Create load balancer with Sync Mode Property on Pool + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateLoadBalancerWithSyncModePropertyOnPool() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerCreateWithSyncModePropertyOnPool.json + // this example is just showing the usage of "LoadBalancers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "subid"; + string resourceGroupName = "rg1"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this LoadBalancerResource + LoadBalancerCollection collection = resourceGroupResource.GetLoadBalancers(); + + // invoke the operation + string loadBalancerName = "lb"; + LoadBalancerData data = new LoadBalancerData() + { + Sku = new LoadBalancerSku() + { + Name = LoadBalancerSkuName.Standard, + }, + FrontendIPConfigurations = +{ +new FrontendIPConfigurationData() +{ +Subnet = new SubnetData() +{ +Id = new ResourceIdentifier("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb"), +}, +Name = "fe-lb", +} +}, + BackendAddressPools = +{ +new BackendAddressPoolData() +{ +VirtualNetworkId = new ResourceIdentifier("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb"), +SyncMode = BackendAddressSyncMode.Automatic, +Name = "be-lb", +} +}, + LoadBalancingRules = +{ +new LoadBalancingRuleData() +{ +FrontendIPConfigurationId = new ResourceIdentifier("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb"), +BackendAddressPoolId = new ResourceIdentifier("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb"), +ProbeId = new ResourceIdentifier("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb"), +Protocol = LoadBalancingTransportProtocol.Tcp, +LoadDistribution = LoadDistribution.Default, +FrontendPort = 80, +BackendPort = 80, +IdleTimeoutInMinutes = 15, +EnableFloatingIP = true, +Name = "rulelb", +} +}, + Probes = +{ +new ProbeData() +{ +Protocol = ProbeProtocol.Http, +Port = 80, +IntervalInSeconds = 15, +NumberOfProbes = 2, +ProbeThreshold = 1, +RequestPath = "healthcheck.aspx", +Name = "probe-lb", +} +}, + InboundNatRules = +{ +new InboundNatRuleData() +{ +FrontendIPConfigurationId = new ResourceIdentifier("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb"), +Protocol = LoadBalancingTransportProtocol.Tcp, +FrontendPort = 3389, +BackendPort = 3389, +IdleTimeoutInMinutes = 15, +EnableFloatingIP = true, +Name = "in-nat-rule", +} +}, + InboundNatPools = +{ +}, + OutboundRules = +{ +}, + Location = new AzureLocation("eastus"), + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, loadBalancerName, data); + LoadBalancerResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + LoadBalancerData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + // Create load balancer with inbound nat pool [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateLoadBalancerWithInboundNatPool() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerCreateWithInboundNatPool.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerCreateWithInboundNatPool.json // this example is just showing the usage of "LoadBalancers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1004,7 +1115,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithInboundNatPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateLoadBalancerWithOutboundRules() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerCreateWithOutboundRules.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerCreateWithOutboundRules.json // this example is just showing the usage of "LoadBalancers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1127,7 +1238,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithOutboundRules() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListLoadBalancersInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerList.json // this example is just showing the usage of "LoadBalancers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerResource.cs index 5ba0977228eb..8e20d3baacea 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerResource.cs @@ -24,7 +24,7 @@ public partial class Sample_LoadBalancerResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteLoadBalancer() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerDelete.json // this example is just showing the usage of "LoadBalancers_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteLoadBalancer() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetLoadBalancer() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerGet.json // this example is just showing the usage of "LoadBalancers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetLoadBalancer() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetLoadBalancerWithInboundNATRulePortMapping() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerGetInboundNatRulePortMapping.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerGetInboundNatRulePortMapping.json // this example is just showing the usage of "LoadBalancers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -113,7 +113,7 @@ public async Task Get_GetLoadBalancerWithInboundNATRulePortMapping() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateLoadBalancerTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerUpdateTags.json // this example is just showing the usage of "LoadBalancers_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -152,7 +152,7 @@ public async Task Update_UpdateLoadBalancerTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetLoadBalancers_ListAllLoadBalancers() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerListAll.json // this example is just showing the usage of "LoadBalancers_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -184,7 +184,7 @@ public async Task GetLoadBalancers_ListAllLoadBalancers() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task SwapPublicIPAddressesLoadBalancer_SwapVIPsBetweenTwoLoadBalancers() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancersSwapPublicIpAddresses.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancersSwapPublicIpAddresses.json // this example is just showing the usage of "LoadBalancers_SwapPublicIpAddresses" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -220,12 +220,46 @@ public async Task SwapPublicIPAddressesLoadBalancer_SwapVIPsBetweenTwoLoadBalanc Console.WriteLine($"Succeeded"); } + // Migrate load balancer to IP Based + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task MigrateToIPBased_MigrateLoadBalancerToIPBased() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/MigrateLoadBalancerToIPBased.json + // this example is just showing the usage of "LoadBalancers_MigrateToIpBased" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this LoadBalancerResource created on azure + // for more information of creating LoadBalancerResource, please refer to the document of LoadBalancerResource + string subscriptionId = "subid"; + string groupName = "rg1"; + string loadBalancerName = "lb1"; + ResourceIdentifier loadBalancerResourceId = LoadBalancerResource.CreateResourceIdentifier(subscriptionId, groupName, loadBalancerName); + LoadBalancerResource loadBalancer = client.GetLoadBalancerResource(loadBalancerResourceId); + + // invoke the operation + MigrateLoadBalancerToIPBasedContent content = new MigrateLoadBalancerToIPBasedContent() + { + Pools = +{ +"pool1","pool2" +}, + }; + MigrateLoadBalancerToIPBasedResult result = await loadBalancer.MigrateToIPBasedAsync(content: content); + + Console.WriteLine($"Succeeded: {result}"); + } + // LoadBalancerNetworkInterfaceListSimple [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetLoadBalancerNetworkInterfaces_LoadBalancerNetworkInterfaceListSimple() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerNetworkInterfaceListSimple.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerNetworkInterfaceListSimple.json // this example is just showing the usage of "LoadBalancerNetworkInterfaces_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -259,7 +293,7 @@ public async Task GetLoadBalancerNetworkInterfaces_LoadBalancerNetworkInterfaceL [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetLoadBalancerNetworkInterfaces_LoadBalancerNetworkInterfaceListVmss() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerNetworkInterfaceListVmss.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerNetworkInterfaceListVmss.json // this example is just showing the usage of "LoadBalancerNetworkInterfaces_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleCollection.cs index 583aa5df8f50..be11cf8c6c23 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_LoadBalancingRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_LoadBalancerLoadBalancingRuleList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerLoadBalancingRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerLoadBalancingRuleList.json // this example is just showing the usage of "LoadBalancerLoadBalancingRules_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task GetAll_LoadBalancerLoadBalancingRuleList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerLoadBalancingRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerLoadBalancingRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerLoadBalancingRuleGet.json // this example is just showing the usage of "LoadBalancerLoadBalancingRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_LoadBalancerLoadBalancingRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_LoadBalancerLoadBalancingRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerLoadBalancingRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerLoadBalancingRuleGet.json // this example is just showing the usage of "LoadBalancerLoadBalancingRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleResource.cs index d5fab6ace7fd..4b3ce2440e43 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleResource.cs @@ -21,7 +21,7 @@ public partial class Sample_LoadBalancingRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerLoadBalancingRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerLoadBalancingRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerLoadBalancingRuleGet.json // this example is just showing the usage of "LoadBalancerLoadBalancingRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayCollection.cs index 925e8afbb61a..d724ef7bf385 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_LocalNetworkGatewayCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateLocalNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LocalNetworkGatewayCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LocalNetworkGatewayCreate.json // this example is just showing the usage of "LocalNetworkGateways_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -68,7 +68,7 @@ public async Task CreateOrUpdate_CreateLocalNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetLocalNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LocalNetworkGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LocalNetworkGatewayGet.json // this example is just showing the usage of "LocalNetworkGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -102,7 +102,7 @@ public async Task Get_GetLocalNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetLocalNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LocalNetworkGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LocalNetworkGatewayGet.json // this example is just showing the usage of "LocalNetworkGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -132,7 +132,7 @@ public async Task Exists_GetLocalNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListLocalNetworkGateways() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LocalNetworkGatewayList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LocalNetworkGatewayList.json // this example is just showing the usage of "LocalNetworkGateways_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayResource.cs index 4dc0c4dbae53..199a9835cfbd 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayResource.cs @@ -23,7 +23,7 @@ public partial class Sample_LocalNetworkGatewayResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetLocalNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LocalNetworkGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LocalNetworkGatewayGet.json // this example is just showing the usage of "LocalNetworkGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetLocalNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteLocalNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LocalNetworkGatewayDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LocalNetworkGatewayDelete.json // this example is just showing the usage of "LocalNetworkGateways_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -81,7 +81,7 @@ public async Task Delete_DeleteLocalNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateLocalNetworkGatewayTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LocalNetworkGatewayUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LocalNetworkGatewayUpdateTags.json // this example is just showing the usage of "LocalNetworkGateways_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionCollection.cs index 46cff964c22e..024c24b22e07 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ManagementGroupNetworkManagerConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerConnectionManagementGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerConnectionManagementGroupPut.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task CreateOrUpdate_CreateOrUpdateManagementGroupNetworkManagerConn [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerConnectionManagementGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerConnectionManagementGroupGet.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Get_GetManagementGroupNetworkManagerConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerConnectionManagementGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerConnectionManagementGroupGet.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Exists_GetManagementGroupNetworkManagerConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerConnectionManagementGroupList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerConnectionManagementGroupList.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionResource.cs index c3731708cdf3..b00a97e1b1b5 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionResource.cs @@ -22,7 +22,7 @@ public partial class Sample_ManagementGroupNetworkManagerConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerConnectionManagementGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerConnectionManagementGroupPut.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Update_CreateOrUpdateManagementGroupNetworkManagerConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerConnectionManagementGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerConnectionManagementGroupGet.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Get_GetManagementGroupNetworkManagerConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerConnectionManagementGroupDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerConnectionManagementGroupDelete.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayCollection.cs index 8c4896b96cd1..246101311691 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayCollection.cs @@ -25,7 +25,7 @@ public partial class Sample_NatGatewayCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNatGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NatGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NatGatewayGet.json // this example is just showing the usage of "NatGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task Get_GetNatGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetNatGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NatGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NatGatewayGet.json // this example is just showing the usage of "NatGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_GetNatGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNatGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NatGatewayCreateOrUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NatGatewayCreateOrUpdate.json // this example is just showing the usage of "NatGateways_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -143,7 +143,7 @@ public async Task CreateOrUpdate_CreateNatGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListNatGatewaysInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NatGatewayList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NatGatewayList.json // this example is just showing the usage of "NatGateways_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayResource.cs index 30ef28dc58d8..ef368dd30f11 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayResource.cs @@ -24,7 +24,7 @@ public partial class Sample_NatGatewayResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteNatGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NatGatewayDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NatGatewayDelete.json // this example is just showing the usage of "NatGateways_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteNatGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNatGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NatGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NatGatewayGet.json // this example is just showing the usage of "NatGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetNatGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateNatGatewayTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NatGatewayUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NatGatewayUpdateTags.json // this example is just showing the usage of "NatGateways_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Update_UpdateNatGatewayTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNatGateways_ListAllNatGateways() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NatGatewayListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NatGatewayListAll.json // this example is just showing the usage of "NatGateways_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupCollection.cs index 79e6539e8c15..b8dc083e038b 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_NetworkGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NetworkGroupsGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerGroupGet.json // this example is just showing the usage of "NetworkGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_NetworkGroupsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_NetworkGroupsGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerGroupGet.json // this example is just showing the usage of "NetworkGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_NetworkGroupsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_NetworkGroupsPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerGroupPut.json // this example is just showing the usage of "NetworkGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task CreateOrUpdate_NetworkGroupsPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_NetworkGroupsList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerGroupList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerGroupList.json // this example is just showing the usage of "NetworkGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupResource.cs index f118e42873fa..9e8b2db06f54 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupResource.cs @@ -22,7 +22,7 @@ public partial class Sample_NetworkGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NetworkGroupsGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerGroupGet.json // this example is just showing the usage of "NetworkGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_NetworkGroupsGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_NetworkGroupsPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerGroupPut.json // this example is just showing the usage of "NetworkGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Update_NetworkGroupsPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_NetworkGroupsDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerGroupDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerGroupDelete.json // this example is just showing the usage of "NetworkGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberCollection.cs index cded6efefc7c..d04c3b8cf09d 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_NetworkGroupStaticMemberCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_StaticMembersGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerStaticMemberGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerStaticMemberGet.json // this example is just showing the usage of "StaticMembers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_StaticMembersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_StaticMembersGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerStaticMemberGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerStaticMemberGet.json // this example is just showing the usage of "StaticMembers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task Exists_StaticMembersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_StaticMemberPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerStaticMemberPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerStaticMemberPut.json // this example is just showing the usage of "StaticMembers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task CreateOrUpdate_StaticMemberPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_StaticMembersList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerStaticMemberList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerStaticMemberList.json // this example is just showing the usage of "StaticMembers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberResource.cs index 2f1b531b88b0..ed055a67f460 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberResource.cs @@ -22,7 +22,7 @@ public partial class Sample_NetworkGroupStaticMemberResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_StaticMembersGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerStaticMemberGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerStaticMemberGet.json // this example is just showing the usage of "StaticMembers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_StaticMembersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_StaticMemberPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerStaticMemberPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerStaticMemberPut.json // this example is just showing the usage of "StaticMembers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Update_StaticMemberPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_StaticMembersDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerStaticMemberDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerStaticMemberDelete.json // this example is just showing the usage of "StaticMembers_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceCollection.cs index b89a009e6cc3..e7749f669879 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_NetworkInterfaceCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkInterface() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceGet.json // this example is just showing the usage of "NetworkInterfaces_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetNetworkInterface() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetNetworkInterface() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceGet.json // this example is just showing the usage of "NetworkInterfaces_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Exists_GetNetworkInterface() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNetworkInterface() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceCreate.json // this example is just showing the usage of "NetworkInterfaces_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -143,7 +143,7 @@ public async Task CreateOrUpdate_CreateNetworkInterface() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNetworkInterfaceWithGatewayLoadBalancerConsumerConfigured() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceCreateGatewayLoadBalancerConsumer.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceCreateGatewayLoadBalancerConsumer.json // this example is just showing the usage of "NetworkInterfaces_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -199,7 +199,7 @@ public async Task CreateOrUpdate_CreateNetworkInterfaceWithGatewayLoadBalancerCo [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListNetworkInterfacesInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceList.json // this example is just showing the usage of "NetworkInterfaces_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationCollection.cs index 1db8d53ebb61..9e7ce8230b8e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkInterfaceIPConfigurationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_NetworkInterfaceIPConfigurationList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceIPConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceIPConfigurationList.json // this example is just showing the usage of "NetworkInterfaceIPConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task GetAll_NetworkInterfaceIPConfigurationList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NetworkInterfaceIPConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceIPConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceIPConfigurationGet.json // this example is just showing the usage of "NetworkInterfaceIPConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_NetworkInterfaceIPConfigurationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_NetworkInterfaceIPConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceIPConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceIPConfigurationGet.json // this example is just showing the usage of "NetworkInterfaceIPConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationResource.cs index 49ae474220d5..4d517752009a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationResource.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkInterfaceIPConfigurationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NetworkInterfaceIPConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceIPConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceIPConfigurationGet.json // this example is just showing the usage of "NetworkInterfaceIPConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceResource.cs index 9b5de4dc26a6..6770a7b43e69 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceResource.cs @@ -24,7 +24,7 @@ public partial class Sample_NetworkInterfaceResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteNetworkInterface() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceDelete.json // this example is just showing the usage of "NetworkInterfaces_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteNetworkInterface() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkInterface() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceGet.json // this example is just showing the usage of "NetworkInterfaces_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetNetworkInterface() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateNetworkInterfaceTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceUpdateTags.json // this example is just showing the usage of "NetworkInterfaces_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Update_UpdateNetworkInterfaceTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkInterfaces_ListAllNetworkInterfaces() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceListAll.json // this example is just showing the usage of "NetworkInterfaces_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -153,7 +153,7 @@ public async Task GetNetworkInterfaces_ListAllNetworkInterfaces() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetEffectiveRouteTable_ShowNetworkInterfaceEffectiveRouteTables() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceEffectiveRouteTableList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceEffectiveRouteTableList.json // this example is just showing the usage of "NetworkInterfaces_GetEffectiveRouteTable" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -181,7 +181,7 @@ public async Task GetEffectiveRouteTable_ShowNetworkInterfaceEffectiveRouteTable [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetEffectiveNetworkSecurityGroups_ListNetworkInterfaceEffectiveNetworkSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceEffectiveNSGList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceEffectiveNSGList.json // this example is just showing the usage of "NetworkInterfaces_ListEffectiveNetworkSecurityGroups" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -209,7 +209,7 @@ public async Task GetEffectiveNetworkSecurityGroups_ListNetworkInterfaceEffectiv [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkInterfaceLoadBalancers_NetworkInterfaceLoadBalancerList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceLoadBalancerList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceLoadBalancerList.json // this example is just showing the usage of "NetworkInterfaceLoadBalancers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationCollection.cs index f673812380b3..2a565e0a5f44 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_NetworkInterfaceTapConfigurationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkInterfaceTapConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceTapConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceTapConfigurationGet.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetNetworkInterfaceTapConfigurations() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetNetworkInterfaceTapConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceTapConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceTapConfigurationGet.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_GetNetworkInterfaceTapConfigurations() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNetworkInterfaceTapConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceTapConfigurationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceTapConfigurationCreate.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task CreateOrUpdate_CreateNetworkInterfaceTapConfigurations() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListVirtualNetworkTapConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceTapConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceTapConfigurationList.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationResource.cs index 03546641fb3c..415e0e6cee2d 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationResource.cs @@ -22,7 +22,7 @@ public partial class Sample_NetworkInterfaceTapConfigurationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteTapConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceTapConfigurationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceTapConfigurationDelete.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Delete_DeleteTapConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkInterfaceTapConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceTapConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceTapConfigurationGet.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetNetworkInterfaceTapConfigurations() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateNetworkInterfaceTapConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkInterfaceTapConfigurationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkInterfaceTapConfigurationCreate.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerCollection.cs index cc8ea483f3ef..08246431ce02 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_NetworkManagerCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NetworkManagersGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerGet.json // this example is just showing the usage of "NetworkManagers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_NetworkManagersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_NetworkManagersGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerGet.json // this example is just showing the usage of "NetworkManagers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_NetworkManagersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_PutNetworkManager() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerPut.json // this example is just showing the usage of "NetworkManagers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -142,7 +142,7 @@ public async Task CreateOrUpdate_PutNetworkManager() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListNetworkManager() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerList.json // this example is just showing the usage of "NetworkManagers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerResource.cs index f3f93ada0290..7d1d425b70a6 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerResource.cs @@ -24,7 +24,7 @@ public partial class Sample_NetworkManagerResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetActiveConnectivityConfigurations_ListActiveConnectivityConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerActiveConnectivityConfigurationsList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerActiveConnectivityConfigurationsList.json // this example is just showing the usage of "ListActiveConnectivityConfigurations" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -62,7 +62,7 @@ public async Task GetActiveConnectivityConfigurations_ListActiveConnectivityConf [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetActiveSecurityAdminRules_ListActiveSecurityAdminRules() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerActiveSecurityAdminRulesList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerActiveSecurityAdminRulesList.json // this example is just showing the usage of "ListActiveSecurityAdminRules" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -100,7 +100,7 @@ public async Task GetActiveSecurityAdminRules_ListActiveSecurityAdminRules() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NetworkManagersGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerGet.json // this example is just showing the usage of "NetworkManagers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task Get_NetworkManagersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_NetworkManagersDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerDelete.json // this example is just showing the usage of "NetworkManagers_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -159,7 +159,7 @@ public async Task Delete_NetworkManagersDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_NetworkManagesPatch() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerPatch.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerPatch.json // this example is just showing the usage of "NetworkManagers_Patch" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -198,7 +198,7 @@ public async Task Update_NetworkManagesPatch() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkManagers_NetworkManagersList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerListAll.json // this example is just showing the usage of "NetworkManagers_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -230,7 +230,7 @@ public async Task GetNetworkManagers_NetworkManagersList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task PostNetworkManagerCommit_NetworkManageCommitPost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerCommitPost.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerCommitPost.json // this example is just showing the usage of "NetworkManagerCommits_Post" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -268,7 +268,7 @@ public async Task PostNetworkManagerCommit_NetworkManageCommitPost() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkManagerDeploymentStatus_NetworkManagerDeploymentStatusList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerDeploymentStatusList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerDeploymentStatusList.json // this example is just showing the usage of "NetworkManagerDeploymentStatus_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionCollection.cs index 10b8bfbbb393..7b3d2c24f4c8 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_NetworkPrivateEndpointConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateEndPointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetPrivateEndPointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPrivateEndPointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_GetPrivateEndPointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ApproveOrRejectPrivateEndPointConnectionForAPrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_UpdatePrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -134,7 +134,7 @@ public async Task CreateOrUpdate_ApproveOrRejectPrivateEndPointConnectionForAPri [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPrivateLinkServiceInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateLinkServiceListPrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateLinkServiceListPrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_ListPrivateEndpointConnections" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionResource.cs index bb482d9cbe63..17e4a080fb95 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionResource.cs @@ -23,7 +23,7 @@ public partial class Sample_NetworkPrivateEndpointConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateEndPointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetPrivateEndPointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ApproveOrRejectPrivateEndPointConnectionForAPrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_UpdatePrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,7 +97,7 @@ public async Task Update_ApproveOrRejectPrivateEndPointConnectionForAPrivateLink [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletePrivateEndPointConnectionForAPrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateLinkServiceDeletePrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateLinkServiceDeletePrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_DeletePrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileCollection.cs index 1df8b01f6e08..7a5d9c67da1a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_NetworkProfileCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkProfileGetConfigOnly.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkProfileGetConfigOnly.json // this example is just showing the usage of "NetworkProfiles_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetNetworkProfile() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetNetworkProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkProfileGetConfigOnly.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkProfileGetConfigOnly.json // this example is just showing the usage of "NetworkProfiles_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_GetNetworkProfile() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkProfileWithContainerNetworkInterfaces() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkProfileGetWithContainerNic.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkProfileGetWithContainerNic.json // this example is just showing the usage of "NetworkProfiles_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Get_GetNetworkProfileWithContainerNetworkInterfaces() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetNetworkProfileWithContainerNetworkInterfaces() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkProfileGetWithContainerNic.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkProfileGetWithContainerNic.json // this example is just showing the usage of "NetworkProfiles_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -152,7 +152,7 @@ public async Task Exists_GetNetworkProfileWithContainerNetworkInterfaces() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNetworkProfileDefaults() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkProfileCreateConfigOnly.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkProfileCreateConfigOnly.json // this example is just showing the usage of "NetworkProfiles_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -209,7 +209,7 @@ public async Task CreateOrUpdate_CreateNetworkProfileDefaults() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListResourceGroupNetworkProfiles() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkProfileList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkProfileList.json // this example is just showing the usage of "NetworkProfiles_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileResource.cs index aefc9130cbda..f9c589974d24 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileResource.cs @@ -24,7 +24,7 @@ public partial class Sample_NetworkProfileResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteNetworkProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkProfileDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkProfileDelete.json // this example is just showing the usage of "NetworkProfiles_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteNetworkProfile() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkProfileGetConfigOnly.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkProfileGetConfigOnly.json // this example is just showing the usage of "NetworkProfiles_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetNetworkProfile() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkProfileWithContainerNetworkInterfaces() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkProfileGetWithContainerNic.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkProfileGetWithContainerNic.json // this example is just showing the usage of "NetworkProfiles_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -113,7 +113,7 @@ public async Task Get_GetNetworkProfileWithContainerNetworkInterfaces() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateNetworkProfileTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkProfileUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkProfileUpdateTags.json // this example is just showing the usage of "NetworkProfiles_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -152,7 +152,7 @@ public async Task Update_UpdateNetworkProfileTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkProfiles_ListAllNetworkProfiles() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkProfileListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkProfileListAll.json // this example is just showing the usage of "NetworkProfiles_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupCollection.cs index 039f9186ea46..de75f19af452 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_NetworkSecurityGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkSecurityGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkSecurityGroupGet.json // this example is just showing the usage of "NetworkSecurityGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetNetworkSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkSecurityGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkSecurityGroupGet.json // this example is just showing the usage of "NetworkSecurityGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_GetNetworkSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkSecurityGroupCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkSecurityGroupCreate.json // this example is just showing the usage of "NetworkSecurityGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task CreateOrUpdate_CreateNetworkSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNetworkSecurityGroupWithRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkSecurityGroupCreateWithRule.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkSecurityGroupCreateWithRule.json // this example is just showing the usage of "NetworkSecurityGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -181,7 +181,7 @@ public async Task CreateOrUpdate_CreateNetworkSecurityGroupWithRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListNetworkSecurityGroupsInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkSecurityGroupList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkSecurityGroupList.json // this example is just showing the usage of "NetworkSecurityGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupResource.cs index 60474ebdabd4..3fe2b47746b5 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupResource.cs @@ -24,7 +24,7 @@ public partial class Sample_NetworkSecurityGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkSecurityGroupDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkSecurityGroupDelete.json // this example is just showing the usage of "NetworkSecurityGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteNetworkSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkSecurityGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkSecurityGroupGet.json // this example is just showing the usage of "NetworkSecurityGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetNetworkSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateNetworkSecurityGroupTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkSecurityGroupUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkSecurityGroupUpdateTags.json // this example is just showing the usage of "NetworkSecurityGroups_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Update_UpdateNetworkSecurityGroupTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkSecurityGroups_ListAllNetworkSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkSecurityGroupListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkSecurityGroupListAll.json // this example is just showing the usage of "NetworkSecurityGroups_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceCollection.cs index 86cff5b7d083..c80a03ad53fa 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceCollection.cs @@ -25,7 +25,7 @@ public partial class Sample_NetworkVirtualApplianceCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceGet.json // this example is just showing the usage of "NetworkVirtualAppliances_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task Get_GetNetworkVirtualAppliance() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceGet.json // this example is just showing the usage of "NetworkVirtualAppliances_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_GetNetworkVirtualAppliance() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualAppliancePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualAppliancePut.json // this example is just showing the usage of "NetworkVirtualAppliances_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -163,7 +163,7 @@ public async Task CreateOrUpdate_CreateNetworkVirtualAppliance() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateSaaSNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceSaaSPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceSaaSPut.json // this example is just showing the usage of "NetworkVirtualAppliances_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -211,7 +211,7 @@ public async Task CreateOrUpdate_CreateSaaSNetworkVirtualAppliance() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllNetworkVirtualApplianceForAGivenResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceListByResourceGroup.json // this example is just showing the usage of "NetworkVirtualAppliances_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionCollection.cs index 6739b0e8a68e..c09ad7499210 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_NetworkVirtualApplianceConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_NetworkVirtualApplianceConnectionPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceConnectionPut.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task CreateOrUpdate_NetworkVirtualApplianceConnectionPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NetworkVirtualApplianceConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceConnectionGet.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Get_NetworkVirtualApplianceConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_NetworkVirtualApplianceConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceConnectionGet.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -157,7 +157,7 @@ public async Task Exists_NetworkVirtualApplianceConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_NetworkVirtualApplianceConnectionList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceConnectionList.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionResource.cs index 231e70f2d892..4d39047320cb 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionResource.cs @@ -23,7 +23,7 @@ public partial class Sample_NetworkVirtualApplianceConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_NetworkVirtualApplianceConnectionPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceConnectionPut.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Update_NetworkVirtualApplianceConnectionPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NetworkVirtualApplianceConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceConnectionGet.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,7 +120,7 @@ public async Task Get_NetworkVirtualApplianceConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_NetworkVirtualApplianceConnectionDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceConnectionDelete.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceResource.cs index 8d653f730422..ee480516574c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceResource.cs @@ -24,7 +24,7 @@ public partial class Sample_NetworkVirtualApplianceResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceDelete.json // this example is just showing the usage of "NetworkVirtualAppliances_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteNetworkVirtualAppliance() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceGet.json // this example is just showing the usage of "NetworkVirtualAppliances_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetNetworkVirtualAppliance() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceUpdateTags.json // this example is just showing the usage of "NetworkVirtualAppliances_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Update_UpdateNetworkVirtualAppliance() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkVirtualAppliances_ListAllNetworkVirtualAppliancesForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceListBySubscription.json // this example is just showing the usage of "NetworkVirtualAppliances_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -153,7 +153,7 @@ public async Task GetNetworkVirtualAppliances_ListAllNetworkVirtualAppliancesFor [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdateInboundSecurityRule_CreateNetworkVirtualApplianceInboundSecurityRules() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/InboundSecurityRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/InboundSecurityRulePut.json // this example is just showing the usage of "InboundSecurityRule_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuCollection.cs index 000d4f161495..a2847952d6f3 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_NetworkVirtualApplianceSkuCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_NetworkVirtualApplianceSkuListResult() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceSkuList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceSkuList.json // this example is just showing the usage of "VirtualApplianceSkus_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_NetworkVirtualApplianceSkuListResult() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NetworkVirtualApplianceSkuGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceSkuGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceSkuGet.json // this example is just showing the usage of "VirtualApplianceSkus_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task Get_NetworkVirtualApplianceSkuGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_NetworkVirtualApplianceSkuGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceSkuGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceSkuGet.json // this example is just showing the usage of "VirtualApplianceSkus_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuResource.cs index a29a7f42f931..79e4d17436fe 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuResource.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkVirtualApplianceSkuResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NetworkVirtualApplianceSkuGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceSkuGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceSkuGet.json // this example is just showing the usage of "VirtualApplianceSkus_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherCollection.cs index 5f585029a647..f01fc7559bab 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_NetworkWatcherCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNetworkWatcher() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherCreate.json // this example is just showing the usage of "NetworkWatchers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -62,7 +62,7 @@ public async Task CreateOrUpdate_CreateNetworkWatcher() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkWatcher() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherGet.json // this example is just showing the usage of "NetworkWatchers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task Get_GetNetworkWatcher() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetNetworkWatcher() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherGet.json // this example is just showing the usage of "NetworkWatchers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetNetworkWatcher() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListNetworkWatchers() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherList.json // this example is just showing the usage of "NetworkWatchers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherResource.cs index 85d84158089c..ed0fe86cbfa6 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherResource.cs @@ -24,7 +24,7 @@ public partial class Sample_NetworkWatcherResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkWatcher() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherGet.json // this example is just showing the usage of "NetworkWatchers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetNetworkWatcher() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteNetworkWatcher() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherDelete.json // this example is just showing the usage of "NetworkWatchers_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Delete_DeleteNetworkWatcher() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateNetworkWatcherTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherUpdateTags.json // this example is just showing the usage of "NetworkWatchers_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Update_UpdateNetworkWatcherTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkWatchers_ListAllNetworkWatchers() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherListAll.json // this example is just showing the usage of "NetworkWatchers_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -153,7 +153,7 @@ public async Task GetNetworkWatchers_ListAllNetworkWatchers() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetTopology_GetTopology() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherTopologyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherTopologyGet.json // this example is just showing the usage of "NetworkWatchers_GetTopology" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -184,7 +184,7 @@ public async Task GetTopology_GetTopology() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task VerifyIPFlow_IpFlowVerify() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherIpFlowVerify.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherIpFlowVerify.json // this example is just showing the usage of "NetworkWatchers_VerifyIPFlow" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -213,7 +213,7 @@ public async Task VerifyIPFlow_IpFlowVerify() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNextHop_GetNextHop() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherNextHopGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherNextHopGet.json // this example is just showing the usage of "NetworkWatchers_GetNextHop" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -245,7 +245,7 @@ public async Task GetNextHop_GetNextHop() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVmSecurityRules_GetSecurityGroupView() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherSecurityGroupViewGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherSecurityGroupViewGet.json // this example is just showing the usage of "NetworkWatchers_GetVMSecurityRules" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -274,7 +274,7 @@ public async Task GetVmSecurityRules_GetSecurityGroupView() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetTroubleshooting_GetTroubleshooting() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherTroubleshootGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherTroubleshootGet.json // this example is just showing the usage of "NetworkWatchers_GetTroubleshooting" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -303,7 +303,7 @@ public async Task GetTroubleshooting_GetTroubleshooting() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetTroubleshootingResult_GetTroubleshootResult() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherTroubleshootResultQuery.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherTroubleshootResultQuery.json // this example is just showing the usage of "NetworkWatchers_GetTroubleshootingResult" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -332,7 +332,7 @@ public async Task GetTroubleshootingResult_GetTroubleshootResult() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task SetFlowLogConfiguration_ConfigureFlowLog() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherFlowLogConfigure.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherFlowLogConfigure.json // this example is just showing the usage of "NetworkWatchers_SetFlowLogConfiguration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -361,7 +361,7 @@ public async Task SetFlowLogConfiguration_ConfigureFlowLog() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetFlowLogStatus_GetFlowLogStatus() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherFlowLogStatusQuery.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherFlowLogStatusQuery.json // this example is just showing the usage of "NetworkWatchers_GetFlowLogStatus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -390,7 +390,7 @@ public async Task GetFlowLogStatus_GetFlowLogStatus() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckConnectivity_CheckConnectivity() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherConnectivityCheck.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherConnectivityCheck.json // this example is just showing the usage of "NetworkWatchers_CheckConnectivity" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -426,7 +426,7 @@ public async Task CheckConnectivity_CheckConnectivity() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAzureReachabilityReport_GetAzureReachabilityReport() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherAzureReachabilityReportGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherAzureReachabilityReportGet.json // this example is just showing the usage of "NetworkWatchers_GetAzureReachabilityReport" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -468,7 +468,7 @@ public async Task GetAzureReachabilityReport_GetAzureReachabilityReport() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableProviders_GetAvailableProvidersList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherAvailableProvidersListGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherAvailableProvidersListGet.json // this example is just showing the usage of "NetworkWatchers_ListAvailableProviders" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -506,7 +506,7 @@ public async Task GetAvailableProviders_GetAvailableProvidersList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkConfigurationDiagnostic_NetworkConfigurationDiagnostic() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherNetworkConfigurationDiagnostic.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherNetworkConfigurationDiagnostic.json // this example is just showing the usage of "NetworkWatchers_GetNetworkConfigurationDiagnostic" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleCollection.cs index a9424838f5cc..ae39adb32111 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_OutboundRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_LoadBalancerOutboundRuleList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerOutboundRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerOutboundRuleList.json // this example is just showing the usage of "LoadBalancerOutboundRules_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task GetAll_LoadBalancerOutboundRuleList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerOutboundRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerOutboundRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerOutboundRuleGet.json // this example is just showing the usage of "LoadBalancerOutboundRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_LoadBalancerOutboundRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_LoadBalancerOutboundRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerOutboundRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerOutboundRuleGet.json // this example is just showing the usage of "LoadBalancerOutboundRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleResource.cs index d31f839c98ee..6872dea706ee 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleResource.cs @@ -21,7 +21,7 @@ public partial class Sample_OutboundRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerOutboundRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerOutboundRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerOutboundRuleGet.json // this example is just showing the usage of "LoadBalancerOutboundRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayCollection.cs index 378a40b7fa03..04c796aefd01 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayCollection.cs @@ -25,7 +25,7 @@ public partial class Sample_P2SVpnGatewayCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_P2SVpnGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/P2SVpnGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/P2SVpnGatewayGet.json // this example is just showing the usage of "P2sVpnGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task Get_P2SVpnGatewayGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_P2SVpnGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/P2SVpnGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/P2SVpnGatewayGet.json // this example is just showing the usage of "P2sVpnGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_P2SVpnGatewayGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_P2SVpnGatewayPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/P2SVpnGatewayPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/P2SVpnGatewayPut.json // this example is just showing the usage of "P2sVpnGateways_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -182,7 +182,7 @@ public async Task CreateOrUpdate_P2SVpnGatewayPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_P2SVpnGatewayListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/P2SVpnGatewayListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/P2SVpnGatewayListByResourceGroup.json // this example is just showing the usage of "P2sVpnGateways_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayResource.cs index f28ed2aae62c..e87302c15b4f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayResource.cs @@ -24,7 +24,7 @@ public partial class Sample_P2SVpnGatewayResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_P2SVpnGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/P2SVpnGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/P2SVpnGatewayGet.json // this example is just showing the usage of "P2sVpnGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_P2SVpnGatewayGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_P2SVpnGatewayUpdate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/P2SVpnGatewayUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/P2SVpnGatewayUpdateTags.json // this example is just showing the usage of "P2sVpnGateways_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Update_P2SVpnGatewayUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_P2SVpnGatewayDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/P2SVpnGatewayDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/P2SVpnGatewayDelete.json // this example is just showing the usage of "P2sVpnGateways_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Delete_P2SVpnGatewayDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetP2SVpnGateways_P2SVpnGatewayListBySubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/P2SVpnGatewayList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/P2SVpnGatewayList.json // this example is just showing the usage of "P2sVpnGateways_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -154,7 +154,7 @@ public async Task GetP2SVpnGateways_P2SVpnGatewayListBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Reset_ResetP2SVpnGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/P2SVpnGatewayReset.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/P2SVpnGatewayReset.json // this example is just showing the usage of "P2SVpnGateways_Reset" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -186,7 +186,7 @@ public async Task Reset_ResetP2SVpnGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GenerateVpnProfile_GenerateP2SVpnGatewayVPNProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/P2SVpnGatewayGenerateVpnProfile.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/P2SVpnGatewayGenerateVpnProfile.json // this example is just showing the usage of "P2sVpnGateways_GenerateVpnProfile" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -218,7 +218,7 @@ public async Task GenerateVpnProfile_GenerateP2SVpnGatewayVPNProfile() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetP2SVpnConnectionHealth_P2SVpnGatewayGetConnectionHealth() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/P2SVpnGatewayGetConnectionHealth.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/P2SVpnGatewayGetConnectionHealth.json // this example is just showing the usage of "P2sVpnGateways_GetP2sVpnConnectionHealth" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -250,7 +250,7 @@ public async Task GetP2SVpnConnectionHealth_P2SVpnGatewayGetConnectionHealth() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetP2SVpnConnectionHealthDetailed_P2SVpnGatewayGetConnectionHealthDetailed() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/P2SVpnGatewayGetConnectionHealthDetailed.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/P2SVpnGatewayGetConnectionHealthDetailed.json // this example is just showing the usage of "P2sVpnGateways_GetP2sVpnConnectionHealthDetailed" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -286,7 +286,7 @@ public async Task GetP2SVpnConnectionHealthDetailed_P2SVpnGatewayGetConnectionHe [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task DisconnectP2SVpnConnections_DisconnectVpnConnectionsFromP2sVpnGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/P2sVpnGatewaysDisconnectP2sVpnConnections.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/P2sVpnGatewaysDisconnectP2sVpnConnections.json // this example is just showing the usage of "P2sVpnGateways_DisconnectP2sVpnConnections" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureCollection.cs index 317fd55a7e41..cabc3357ef69 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_PacketCaptureCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherPacketCaptureCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherPacketCaptureCreate.json // this example is just showing the usage of "PacketCaptures_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task CreateOrUpdate_CreatePacketCapture() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherPacketCaptureGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherPacketCaptureGet.json // this example is just showing the usage of "PacketCaptures_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Get_GetPacketCapture() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherPacketCaptureGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherPacketCaptureGet.json // this example is just showing the usage of "PacketCaptures_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -145,7 +145,7 @@ public async Task Exists_GetPacketCapture() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPacketCaptures() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherPacketCapturesList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherPacketCapturesList.json // this example is just showing the usage of "PacketCaptures_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureResource.cs index 519dfc399f2c..d31ebf44d733 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureResource.cs @@ -23,7 +23,7 @@ public partial class Sample_PacketCaptureResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreatePacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherPacketCaptureCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherPacketCaptureCreate.json // this example is just showing the usage of "PacketCaptures_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -76,7 +76,7 @@ public async Task Update_CreatePacketCapture() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherPacketCaptureGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherPacketCaptureGet.json // this example is just showing the usage of "PacketCaptures_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -108,7 +108,7 @@ public async Task Get_GetPacketCapture() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletePacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherPacketCaptureDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherPacketCaptureDelete.json // this example is just showing the usage of "PacketCaptures_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -136,7 +136,7 @@ public async Task Delete_DeletePacketCapture() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Stop_StopPacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherPacketCaptureStop.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherPacketCaptureStop.json // this example is just showing the usage of "PacketCaptures_Stop" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -164,7 +164,7 @@ public async Task Stop_StopPacketCapture() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetStatus_QueryPacketCaptureStatus() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkWatcherPacketCaptureQueryStatus.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkWatcherPacketCaptureQueryStatus.json // this example is just showing the usage of "PacketCaptures_GetStatus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionCollection.cs index f20427822712..781ac2369fd0 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_PeerExpressRouteCircuitConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_PeerExpressRouteCircuitConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PeerExpressRouteCircuitConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PeerExpressRouteCircuitConnectionGet.json // this example is just showing the usage of "PeerExpressRouteCircuitConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_PeerExpressRouteCircuitConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_PeerExpressRouteCircuitConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PeerExpressRouteCircuitConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PeerExpressRouteCircuitConnectionGet.json // this example is just showing the usage of "PeerExpressRouteCircuitConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_PeerExpressRouteCircuitConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPeerExpressRouteCircuitConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PeerExpressRouteCircuitConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PeerExpressRouteCircuitConnectionList.json // this example is just showing the usage of "PeerExpressRouteCircuitConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionResource.cs index 960d10c526c9..4b9f6e370da1 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionResource.cs @@ -21,7 +21,7 @@ public partial class Sample_PeerExpressRouteCircuitConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_PeerExpressRouteCircuitConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PeerExpressRouteCircuitConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PeerExpressRouteCircuitConnectionGet.json // this example is just showing the usage of "PeerExpressRouteCircuitConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PolicySignaturesOverridesForIdpsResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PolicySignaturesOverridesForIdpsResource.cs index ddc951937fc3..d3a269ccc4b9 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PolicySignaturesOverridesForIdpsResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PolicySignaturesOverridesForIdpsResource.cs @@ -22,7 +22,7 @@ public partial class Sample_PolicySignaturesOverridesForIdpsResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PatchSignatureOverrides() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicySignatureOverridesPatch.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicySignatureOverridesPatch.json // this example is just showing the usage of "FirewallPolicyIdpsSignaturesOverrides_Patch" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -64,7 +64,7 @@ public async Task Update_PatchSignatureOverrides() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_PutSignatureOverrides() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicySignatureOverridesPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicySignatureOverridesPut.json // this example is just showing the usage of "FirewallPolicyIdpsSignaturesOverrides_Put" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -107,7 +107,7 @@ public async Task CreateOrUpdate_PutSignatureOverrides() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSignatureOverrides() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/FirewallPolicySignatureOverridesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/FirewallPolicySignatureOverridesGet.json // this example is just showing the usage of "FirewallPolicyIdpsSignaturesOverrides_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupCollection.cs index 9d7fbf722515..fb91fae80902 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_PrivateDnsZoneGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateDnsZoneGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointDnsZoneGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointDnsZoneGroupGet.json // this example is just showing the usage of "PrivateDnsZoneGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetPrivateDnsZoneGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPrivateDnsZoneGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointDnsZoneGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointDnsZoneGroupGet.json // this example is just showing the usage of "PrivateDnsZoneGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_GetPrivateDnsZoneGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePrivateDnsZoneGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointDnsZoneGroupCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointDnsZoneGroupCreate.json // this example is just showing the usage of "PrivateDnsZoneGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -135,7 +135,7 @@ public async Task CreateOrUpdate_CreatePrivateDnsZoneGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPrivateEndpointsInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointDnsZoneGroupList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointDnsZoneGroupList.json // this example is just showing the usage of "PrivateDnsZoneGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupResource.cs index 6d0bbb28f804..874967a33737 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupResource.cs @@ -23,7 +23,7 @@ public partial class Sample_PrivateDnsZoneGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletePrivateDnsZoneGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointDnsZoneGroupDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointDnsZoneGroupDelete.json // this example is just showing the usage of "PrivateDnsZoneGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeletePrivateDnsZoneGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateDnsZoneGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointDnsZoneGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointDnsZoneGroupGet.json // this example is just showing the usage of "PrivateDnsZoneGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Get_GetPrivateDnsZoneGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreatePrivateDnsZoneGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointDnsZoneGroupCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointDnsZoneGroupCreate.json // this example is just showing the usage of "PrivateDnsZoneGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointCollection.cs index aae36546b8a4..39c8247c60ef 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointCollection.cs @@ -25,7 +25,7 @@ public partial class Sample_PrivateEndpointCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateEndpoint() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointGet.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task Get_GetPrivateEndpoint() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPrivateEndpoint() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointGet.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_GetPrivateEndpoint() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateEndpointWithApplicationSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointGetWithASG.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointGetWithASG.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Get_GetPrivateEndpointWithApplicationSecurityGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPrivateEndpointWithApplicationSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointGetWithASG.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointGetWithASG.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -153,7 +153,7 @@ public async Task Exists_GetPrivateEndpointWithApplicationSecurityGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateEndpointWithManualApprovalConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointGetForManualApproval.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointGetForManualApproval.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -187,7 +187,7 @@ public async Task Get_GetPrivateEndpointWithManualApprovalConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPrivateEndpointWithManualApprovalConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointGetForManualApproval.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointGetForManualApproval.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -217,7 +217,7 @@ public async Task Exists_GetPrivateEndpointWithManualApprovalConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePrivateEndpoint() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointCreate.json // this example is just showing the usage of "PrivateEndpoints_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -283,7 +283,7 @@ public async Task CreateOrUpdate_CreatePrivateEndpoint() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePrivateEndpointWithApplicationSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointCreateWithASG.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointCreateWithASG.json // this example is just showing the usage of "PrivateEndpoints_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -345,7 +345,7 @@ public async Task CreateOrUpdate_CreatePrivateEndpointWithApplicationSecurityGro [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePrivateEndpointWithManualApprovalConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointCreateForManualApproval.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointCreateForManualApproval.json // this example is just showing the usage of "PrivateEndpoints_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -411,7 +411,7 @@ public async Task CreateOrUpdate_CreatePrivateEndpointWithManualApprovalConnecti [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPrivateEndpointsInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointList.json // this example is just showing the usage of "PrivateEndpoints_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointResource.cs index ec4fd5a709a3..a66da06a89d7 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointResource.cs @@ -25,7 +25,7 @@ public partial class Sample_PrivateEndpointResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletePrivateEndpoint() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointDelete.json // this example is just showing the usage of "PrivateEndpoints_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Delete_DeletePrivateEndpoint() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateEndpoint() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointGet.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Get_GetPrivateEndpoint() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateEndpointWithApplicationSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointGetWithASG.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointGetWithASG.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Get_GetPrivateEndpointWithApplicationSecurityGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateEndpointWithManualApprovalConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointGetForManualApproval.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointGetForManualApproval.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -145,7 +145,7 @@ public async Task Get_GetPrivateEndpointWithManualApprovalConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreatePrivateEndpoint() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointCreate.json // this example is just showing the usage of "PrivateEndpoints_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -208,7 +208,7 @@ public async Task Update_CreatePrivateEndpoint() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreatePrivateEndpointWithApplicationSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointCreateWithASG.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointCreateWithASG.json // this example is just showing the usage of "PrivateEndpoints_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -267,7 +267,7 @@ public async Task Update_CreatePrivateEndpointWithApplicationSecurityGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreatePrivateEndpointWithManualApprovalConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointCreateForManualApproval.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointCreateForManualApproval.json // this example is just showing the usage of "PrivateEndpoints_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -330,7 +330,7 @@ public async Task Update_CreatePrivateEndpointWithManualApprovalConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetPrivateEndpoints_ListAllPrivateEndpoints() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateEndpointListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateEndpointListAll.json // this example is just showing the usage of "PrivateEndpoints_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceCollection.cs index c02b674a2079..916031175a40 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_PrivateLinkServiceCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateLinkServiceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateLinkServiceGet.json // this example is just showing the usage of "PrivateLinkServices_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetPrivateLinkService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateLinkServiceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateLinkServiceGet.json // this example is just showing the usage of "PrivateLinkServices_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_GetPrivateLinkService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateLinkServiceCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateLinkServiceCreate.json // this example is just showing the usage of "PrivateLinkServices_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -160,7 +160,7 @@ public async Task CreateOrUpdate_CreatePrivateLinkService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPrivateLinkServiceInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateLinkServiceList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateLinkServiceList.json // this example is just showing the usage of "PrivateLinkServices_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceResource.cs index e7a8c46bcecd..a9e97fdc5986 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceResource.cs @@ -24,7 +24,7 @@ public partial class Sample_PrivateLinkServiceResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletePrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateLinkServiceDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateLinkServiceDelete.json // this example is just showing the usage of "PrivateLinkServices_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeletePrivateLinkService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateLinkServiceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateLinkServiceGet.json // this example is just showing the usage of "PrivateLinkServices_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetPrivateLinkService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreatePrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateLinkServiceCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateLinkServiceCreate.json // this example is just showing the usage of "PrivateLinkServices_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -151,7 +151,7 @@ public async Task Update_CreatePrivateLinkService() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetPrivateLinkServices_ListAllPrivateListService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PrivateLinkServiceListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PrivateLinkServiceListAll.json // this example is just showing the usage of "PrivateLinkServices_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeCollection.cs index 2e0c88f86f75..a93014de6c75 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ProbeCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_LoadBalancerProbeList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerProbeList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerProbeList.json // this example is just showing the usage of "LoadBalancerProbes_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task GetAll_LoadBalancerProbeList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerProbeGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerProbeGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerProbeGet.json // this example is just showing the usage of "LoadBalancerProbes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_LoadBalancerProbeGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_LoadBalancerProbeGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerProbeGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerProbeGet.json // this example is just showing the usage of "LoadBalancerProbes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeResource.cs index 5dc50160a641..ccce6c33e155 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ProbeResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_LoadBalancerProbeGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/LoadBalancerProbeGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/LoadBalancerProbeGet.json // this example is just showing the usage of "LoadBalancerProbes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressCollection.cs index 32841a2bf0a0..7476d4501ccd 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_PublicIPAddressCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPublicIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PublicIpAddressGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PublicIpAddressGet.json // this example is just showing the usage of "PublicIPAddresses_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetPublicIPAddress() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPublicIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PublicIpAddressGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PublicIpAddressGet.json // this example is just showing the usage of "PublicIPAddresses_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_GetPublicIPAddress() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePublicIPAddressDNS() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PublicIpAddressCreateDns.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PublicIpAddressCreateDns.json // this example is just showing the usage of "PublicIPAddresses_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task CreateOrUpdate_CreatePublicIPAddressDNS() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePublicIPAddressDNSWithDomainNameLabelScope() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PublicIpAddressCreateDnsWithDomainNameLabelScope.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PublicIpAddressCreateDnsWithDomainNameLabelScope.json // this example is just showing the usage of "PublicIPAddresses_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -175,7 +175,7 @@ public async Task CreateOrUpdate_CreatePublicIPAddressDNSWithDomainNameLabelScop [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePublicIPAddressAllocationMethod() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PublicIpAddressCreateCustomizedValues.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PublicIpAddressCreateCustomizedValues.json // this example is just showing the usage of "PublicIPAddresses_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -222,7 +222,7 @@ public async Task CreateOrUpdate_CreatePublicIPAddressAllocationMethod() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePublicIPAddressDefaults() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PublicIpAddressCreateDefaults.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PublicIpAddressCreateDefaults.json // this example is just showing the usage of "PublicIPAddresses_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -261,7 +261,7 @@ public async Task CreateOrUpdate_CreatePublicIPAddressDefaults() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListResourceGroupPublicIPAddresses() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PublicIpAddressList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PublicIpAddressList.json // this example is just showing the usage of "PublicIPAddresses_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressResource.cs index a2dd9b3933a1..a8774785dac7 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressResource.cs @@ -24,7 +24,7 @@ public partial class Sample_PublicIPAddressResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletePublicIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PublicIpAddressDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PublicIpAddressDelete.json // this example is just showing the usage of "PublicIPAddresses_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeletePublicIPAddress() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPublicIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PublicIpAddressGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PublicIpAddressGet.json // this example is just showing the usage of "PublicIPAddresses_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetPublicIPAddress() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdatePublicIPAddressTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PublicIpAddressUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PublicIpAddressUpdateTags.json // this example is just showing the usage of "PublicIPAddresses_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Update_UpdatePublicIPAddressTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetPublicIPAddresses_ListAllPublicIPAddresses() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PublicIpAddressListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PublicIpAddressListAll.json // this example is just showing the usage of "PublicIPAddresses_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -153,7 +153,7 @@ public async Task GetPublicIPAddresses_ListAllPublicIPAddresses() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task DdosProtectionStatus_GetDdosProtectionStatusOfAPublicIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PublicIpAddressGetDdosProtectionStatus.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PublicIpAddressGetDdosProtectionStatus.json // this example is just showing the usage of "PublicIPAddresses_DdosProtectionStatus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixCollection.cs index 277e8ac3eb42..f2dd9896a719 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_PublicIPPrefixCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPublicIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PublicIpPrefixGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PublicIpPrefixGet.json // this example is just showing the usage of "PublicIPPrefixes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetPublicIPPrefix() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPublicIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PublicIpPrefixGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PublicIpPrefixGet.json // this example is just showing the usage of "PublicIPPrefixes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_GetPublicIPPrefix() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePublicIPPrefixAllocationMethod() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PublicIpPrefixCreateCustomizedValues.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PublicIpPrefixCreateCustomizedValues.json // this example is just showing the usage of "PublicIPPrefixes_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -134,7 +134,7 @@ public async Task CreateOrUpdate_CreatePublicIPPrefixAllocationMethod() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePublicIPPrefixDefaults() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PublicIpPrefixCreateDefaults.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PublicIpPrefixCreateDefaults.json // this example is just showing the usage of "PublicIPPrefixes_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -178,7 +178,7 @@ public async Task CreateOrUpdate_CreatePublicIPPrefixDefaults() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListResourceGroupPublicIPPrefixes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PublicIpPrefixList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PublicIpPrefixList.json // this example is just showing the usage of "PublicIPPrefixes_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixResource.cs index 138af602a3af..2dd05f1be4b0 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixResource.cs @@ -24,7 +24,7 @@ public partial class Sample_PublicIPPrefixResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletePublicIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PublicIpPrefixDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PublicIpPrefixDelete.json // this example is just showing the usage of "PublicIPPrefixes_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeletePublicIPPrefix() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPublicIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PublicIpPrefixGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PublicIpPrefixGet.json // this example is just showing the usage of "PublicIPPrefixes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetPublicIPPrefix() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdatePublicIPPrefixTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PublicIpPrefixUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PublicIpPrefixUpdateTags.json // this example is just showing the usage of "PublicIPPrefixes_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Update_UpdatePublicIPPrefixTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetPublicIPPrefixes_ListAllPublicIPPrefixes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/PublicIpPrefixListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/PublicIpPrefixListAll.json // this example is just showing the usage of "PublicIPPrefixes_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs index b3925eaa3c05..6ef9c9f09105 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs @@ -24,7 +24,7 @@ public partial class Sample_ResourceGroupResourceExtensions [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableResourceGroupDelegations_GetAvailableDelegationsInTheResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AvailableDelegationsResourceGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AvailableDelegationsResourceGroupGet.json // this example is just showing the usage of "AvailableResourceGroupDelegations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task GetAvailableResourceGroupDelegations_GetAvailableDelegationsIn [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableServiceAliasesByResourceGroup_GetAvailableServiceAliasesInTheResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AvailableServiceAliasesListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AvailableServiceAliasesListByResourceGroup.json // this example is just showing the usage of "AvailableServiceAliases_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task GetAvailableServiceAliasesByResourceGroup_GetAvailableServiceA [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailablePrivateEndpointTypesByResourceGroup_GetAvailablePrivateEndpointTypesInTheResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AvailablePrivateEndpointTypesResourceGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AvailablePrivateEndpointTypesResourceGroupGet.json // this example is just showing the usage of "AvailablePrivateEndpointTypes_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task GetAvailablePrivateEndpointTypesByResourceGroup_GetAvailablePr [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckPrivateLinkServiceVisibilityByResourceGroupPrivateLinkService_CheckPrivateLinkServiceVisibility() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/CheckPrivateLinkServiceVisibilityByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/CheckPrivateLinkServiceVisibilityByResourceGroup.json // this example is just showing the usage of "PrivateLinkServices_CheckPrivateLinkServiceVisibilityByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -146,7 +146,7 @@ public async Task CheckPrivateLinkServiceVisibilityByResourceGroupPrivateLinkSer [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAutoApprovedPrivateLinkServicesByResourceGroupPrivateLinkServices_GetListOfPrivateLinkServiceIdThatCanBeLinkedToAPrivateEndPointWithAutoApproved() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AutoApprovedPrivateLinkServicesResourceGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AutoApprovedPrivateLinkServicesResourceGroupGet.json // this example is just showing the usage of "PrivateLinkServices_ListAutoApprovedPrivateLinkServicesByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteCollection.cs index 7c63bce776a6..8db9b5932245 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_RouteCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteTableRouteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteTableRouteGet.json // this example is just showing the usage of "Routes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetRoute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteTableRouteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteTableRouteGet.json // this example is just showing the usage of "Routes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_GetRoute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteTableRouteCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteTableRouteCreate.json // this example is just showing the usage of "Routes_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -130,7 +130,7 @@ public async Task CreateOrUpdate_CreateRoute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListRoutes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteTableRouteList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteTableRouteList.json // this example is just showing the usage of "Routes_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterCollection.cs index 511b86bec4c6..7bc71e8227c0 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_RouteFilterCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RouteFilterGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteFilterGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteFilterGet.json // this example is just showing the usage of "RouteFilters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_RouteFilterGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_RouteFilterGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteFilterGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteFilterGet.json // this example is just showing the usage of "RouteFilters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_RouteFilterGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_RouteFilterCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteFilterCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteFilterCreate.json // this example is just showing the usage of "RouteFilters_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -144,7 +144,7 @@ public async Task CreateOrUpdate_RouteFilterCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_RouteFilterListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteFilterListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteFilterListByResourceGroup.json // this example is just showing the usage of "RouteFilters_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterResource.cs index 0ca527a7aaba..ff99dc7acf13 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterResource.cs @@ -24,7 +24,7 @@ public partial class Sample_RouteFilterResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_RouteFilterDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteFilterDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteFilterDelete.json // this example is just showing the usage of "RouteFilters_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_RouteFilterDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RouteFilterGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteFilterGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteFilterGet.json // this example is just showing the usage of "RouteFilters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_RouteFilterGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateRouteFilterTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteFilterUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteFilterUpdateTags.json // this example is just showing the usage of "RouteFilters_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,7 +120,7 @@ public async Task Update_UpdateRouteFilterTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetRouteFilters_RouteFilterList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteFilterList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteFilterList.json // this example is just showing the usage of "RouteFilters_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleCollection.cs index f9ee33fbe03f..bdcafbf5904b 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_RouteFilterRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RouteFilterRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteFilterRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteFilterRuleGet.json // this example is just showing the usage of "RouteFilterRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_RouteFilterRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_RouteFilterRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteFilterRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteFilterRuleGet.json // this example is just showing the usage of "RouteFilterRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_RouteFilterRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_RouteFilterRuleCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteFilterRuleCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteFilterRuleCreate.json // this example is just showing the usage of "RouteFilterRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -134,7 +134,7 @@ public async Task CreateOrUpdate_RouteFilterRuleCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_RouteFilterRuleListByRouteFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteFilterRuleListByRouteFilter.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteFilterRuleListByRouteFilter.json // this example is just showing the usage of "RouteFilterRules_ListByRouteFilter" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleResource.cs index cea20baf6e0e..a9b00604b04e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleResource.cs @@ -23,7 +23,7 @@ public partial class Sample_RouteFilterRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_RouteFilterRuleDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteFilterRuleDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteFilterRuleDelete.json // this example is just showing the usage of "RouteFilterRules_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_RouteFilterRuleDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RouteFilterRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteFilterRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteFilterRuleGet.json // this example is just showing the usage of "RouteFilterRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Get_RouteFilterRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_RouteFilterRuleCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteFilterRuleCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteFilterRuleCreate.json // this example is just showing the usage of "RouteFilterRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapCollection.cs index 32907de14319..f405b1e7c4ec 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_RouteMapCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RouteMapGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteMapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteMapGet.json // this example is just showing the usage of "RouteMaps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_RouteMapGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_RouteMapGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteMapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteMapGet.json // this example is just showing the usage of "RouteMaps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_RouteMapGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_RouteMapPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteMapPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteMapPut.json // this example is just showing the usage of "RouteMaps_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -183,7 +183,7 @@ public async Task CreateOrUpdate_RouteMapPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_RouteMapList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteMapList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteMapList.json // this example is just showing the usage of "RouteMaps_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapResource.cs index b293173186c4..8ff3434a6424 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapResource.cs @@ -23,7 +23,7 @@ public partial class Sample_RouteMapResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RouteMapGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteMapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteMapGet.json // this example is just showing the usage of "RouteMaps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_RouteMapGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_RouteMapPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteMapPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteMapPut.json // this example is just showing the usage of "RouteMaps_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -146,7 +146,7 @@ public async Task Update_RouteMapPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_RouteMapDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteMapDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteMapDelete.json // this example is just showing the usage of "RouteMaps_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteResource.cs index 2f11494541e4..c5cf4977e4a4 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteResource.cs @@ -23,7 +23,7 @@ public partial class Sample_RouteResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteTableRouteDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteTableRouteDelete.json // this example is just showing the usage of "Routes_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteRoute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteTableRouteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteTableRouteGet.json // this example is just showing the usage of "Routes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Get_GetRoute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteTableRouteCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteTableRouteCreate.json // this example is just showing the usage of "Routes_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableCollection.cs index a9ef81453794..f9c392cff474 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_RouteTableCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetRouteTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteTableGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteTableGet.json // this example is just showing the usage of "RouteTables_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetRouteTable() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetRouteTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteTableGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteTableGet.json // this example is just showing the usage of "RouteTables_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_GetRouteTable() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateRouteTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteTableCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteTableCreate.json // this example is just showing the usage of "RouteTables_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task CreateOrUpdate_CreateRouteTable() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateRouteTableWithRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteTableCreateWithRoute.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteTableCreateWithRoute.json // this example is just showing the usage of "RouteTables_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -176,7 +176,7 @@ public async Task CreateOrUpdate_CreateRouteTableWithRoute() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListRouteTablesInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteTableList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteTableList.json // this example is just showing the usage of "RouteTables_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableResource.cs index 437db5d6ae74..219a2c49be88 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableResource.cs @@ -24,7 +24,7 @@ public partial class Sample_RouteTableResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteRouteTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteTableDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteTableDelete.json // this example is just showing the usage of "RouteTables_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteRouteTable() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetRouteTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteTableGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteTableGet.json // this example is just showing the usage of "RouteTables_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetRouteTable() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateRouteTableTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteTableUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteTableUpdateTags.json // this example is just showing the usage of "RouteTables_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Update_UpdateRouteTableTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetRouteTables_ListAllRouteTables() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RouteTableListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RouteTableListAll.json // this example is just showing the usage of "RouteTables_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentCollection.cs index fd6cf938a311..629811722f13 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_RoutingIntentCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_RouteTablePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RoutingIntentPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RoutingIntentPut.json // this example is just showing the usage of "RoutingIntent_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -72,7 +72,7 @@ public async Task CreateOrUpdate_RouteTablePut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RouteTableGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RoutingIntentGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RoutingIntentGet.json // this example is just showing the usage of "RoutingIntent_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -107,7 +107,7 @@ public async Task Get_RouteTableGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_RouteTableGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RoutingIntentGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RoutingIntentGet.json // this example is just showing the usage of "RoutingIntent_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -138,7 +138,7 @@ public async Task Exists_RouteTableGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_RoutingIntentList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RoutingIntentList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RoutingIntentList.json // this example is just showing the usage of "RoutingIntent_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentResource.cs index a7d01d45fa13..403bfb79b491 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentResource.cs @@ -23,7 +23,7 @@ public partial class Sample_RoutingIntentResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_RouteTablePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RoutingIntentPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RoutingIntentPut.json // this example is just showing the usage of "RoutingIntent_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -69,7 +69,7 @@ public async Task Update_RouteTablePut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RouteTableGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RoutingIntentGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RoutingIntentGet.json // this example is just showing the usage of "RoutingIntent_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -101,7 +101,7 @@ public async Task Get_RouteTableGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_RouteTableDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/RoutingIntentDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/RoutingIntentDelete.json // this example is just showing the usage of "RoutingIntent_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionCollection.cs index 7dc26f843bb3..ac13f7939102 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_ScopeConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerScopeConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerScopeConnectionPut.json // this example is just showing the usage of "ScopeConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -64,7 +64,7 @@ public async Task CreateOrUpdate_CreateOrUpdateNetworkManagerScopeConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerScopeConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerScopeConnectionGet.json // this example is just showing the usage of "ScopeConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -99,7 +99,7 @@ public async Task Get_GetNetworkManagerScopeConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerScopeConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerScopeConnectionGet.json // this example is just showing the usage of "ScopeConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -130,7 +130,7 @@ public async Task Exists_GetNetworkManagerScopeConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerScopeConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerScopeConnectionList.json // this example is just showing the usage of "ScopeConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionResource.cs index 76a70861d58b..30bb03f49d2e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionResource.cs @@ -22,7 +22,7 @@ public partial class Sample_ScopeConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerScopeConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerScopeConnectionPut.json // this example is just showing the usage of "ScopeConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task Update_CreateOrUpdateNetworkManagerScopeConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerScopeConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerScopeConnectionGet.json // this example is just showing the usage of "ScopeConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_GetNetworkManagerScopeConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerScopeConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerScopeConnectionDelete.json // this example is just showing the usage of "ScopeConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationCollection.cs index 0bf57d98689a..55d17764fd67 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_SecurityAdminConfigurationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListSecurityAdminConfigurationsInANetworkManager() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerSecurityAdminConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerSecurityAdminConfigurationList.json // this example is just showing the usage of "SecurityAdminConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListSecurityAdminConfigurationsInANetworkManager() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSecurityAdminConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerSecurityAdminConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerSecurityAdminConfigurationGet.json // this example is just showing the usage of "SecurityAdminConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetSecurityAdminConfigurations() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetSecurityAdminConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerSecurityAdminConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerSecurityAdminConfigurationGet.json // this example is just showing the usage of "SecurityAdminConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetSecurityAdminConfigurations() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNetworkManagerSecurityAdminConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerSecurityAdminConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerSecurityAdminConfigurationPut.json // this example is just showing the usage of "SecurityAdminConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationResource.cs index 04af2d64c79b..cbdf75800057 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationResource.cs @@ -23,7 +23,7 @@ public partial class Sample_SecurityAdminConfigurationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSecurityAdminConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerSecurityAdminConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerSecurityAdminConfigurationGet.json // this example is just showing the usage of "SecurityAdminConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetSecurityAdminConfigurations() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateNetworkManagerSecurityAdminConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerSecurityAdminConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerSecurityAdminConfigurationPut.json // this example is just showing the usage of "SecurityAdminConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task Update_CreateNetworkManagerSecurityAdminConfiguration() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteNetworkManagerSecurityAdminConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerSecurityAdminConfigurationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerSecurityAdminConfigurationDelete.json // this example is just showing the usage of "SecurityAdminConfigurations_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderCollection.cs index 2a71a5947223..da053e90dca9 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_SecurityPartnerProviderCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSecurityPartnerProvider() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SecurityPartnerProviderGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SecurityPartnerProviderGet.json // this example is just showing the usage of "SecurityPartnerProviders_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetSecurityPartnerProvider() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetSecurityPartnerProvider() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SecurityPartnerProviderGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SecurityPartnerProviderGet.json // this example is just showing the usage of "SecurityPartnerProviders_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_GetSecurityPartnerProvider() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateSecurityPartnerProvider() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SecurityPartnerProviderPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SecurityPartnerProviderPut.json // this example is just showing the usage of "SecurityPartnerProviders_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -133,7 +133,7 @@ public async Task CreateOrUpdate_CreateSecurityPartnerProvider() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllSecurityPartnerProvidersForAGivenResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SecurityPartnerProviderListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SecurityPartnerProviderListByResourceGroup.json // this example is just showing the usage of "SecurityPartnerProviders_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderResource.cs index 924e505fa5cc..72f0eb4a7be1 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderResource.cs @@ -24,7 +24,7 @@ public partial class Sample_SecurityPartnerProviderResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteSecurityPartnerProvider() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SecurityPartnerProviderDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SecurityPartnerProviderDelete.json // this example is just showing the usage of "SecurityPartnerProviders_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteSecurityPartnerProvider() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSecurityPartnerProvider() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SecurityPartnerProviderGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SecurityPartnerProviderGet.json // this example is just showing the usage of "SecurityPartnerProviders_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetSecurityPartnerProvider() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateSecurityPartnerProviderTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SecurityPartnerProviderUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SecurityPartnerProviderUpdateTags.json // this example is just showing the usage of "SecurityPartnerProviders_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Update_UpdateSecurityPartnerProviderTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSecurityPartnerProviders_ListAllSecurityPartnerProvidersForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SecurityPartnerProviderListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SecurityPartnerProviderListBySubscription.json // this example is just showing the usage of "SecurityPartnerProviders_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleCollection.cs index dee00c3db977..367cd5faa374 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_SecurityRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkSecurityRuleInNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkSecurityGroupRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkSecurityGroupRuleGet.json // this example is just showing the usage of "SecurityRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetNetworkSecurityRuleInNetworkSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetNetworkSecurityRuleInNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkSecurityGroupRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkSecurityGroupRuleGet.json // this example is just showing the usage of "SecurityRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_GetNetworkSecurityRuleInNetworkSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateSecurityRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkSecurityGroupRuleCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkSecurityGroupRuleCreate.json // this example is just showing the usage of "SecurityRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -136,7 +136,7 @@ public async Task CreateOrUpdate_CreateSecurityRule() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListNetworkSecurityRulesInNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkSecurityGroupRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkSecurityGroupRuleList.json // this example is just showing the usage of "SecurityRules_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleResource.cs index efc6f85282ed..c78cc0d08022 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleResource.cs @@ -23,7 +23,7 @@ public partial class Sample_SecurityRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteNetworkSecurityRuleFromNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkSecurityGroupRuleDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkSecurityGroupRuleDelete.json // this example is just showing the usage of "SecurityRules_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteNetworkSecurityRuleFromNetworkSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkSecurityRuleInNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkSecurityGroupRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkSecurityGroupRuleGet.json // this example is just showing the usage of "SecurityRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Get_GetNetworkSecurityRuleInNetworkSecurityGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateSecurityRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkSecurityGroupRuleCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkSecurityGroupRuleCreate.json // this example is just showing the usage of "SecurityRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyCollection.cs index b8a9338114c5..510f9ae87da3 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ServiceEndpointPolicyCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetServiceEndPointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ServiceEndpointPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ServiceEndpointPolicyGet.json // this example is just showing the usage of "ServiceEndpointPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetServiceEndPointPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetServiceEndPointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ServiceEndpointPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ServiceEndpointPolicyGet.json // this example is just showing the usage of "ServiceEndpointPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Exists_GetServiceEndPointPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ServiceEndpointPolicyCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ServiceEndpointPolicyCreate.json // this example is just showing the usage of "ServiceEndpointPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task CreateOrUpdate_CreateServiceEndpointPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateServiceEndpointPolicyWithDefinition() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ServiceEndpointPolicyCreateWithDefinition.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ServiceEndpointPolicyCreateWithDefinition.json // this example is just showing the usage of "ServiceEndpointPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -178,7 +178,7 @@ public async Task CreateOrUpdate_CreateServiceEndpointPolicyWithDefinition() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListResourceGroupServiceEndpointPolicies() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ServiceEndpointPolicyList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ServiceEndpointPolicyList.json // this example is just showing the usage of "ServiceEndpointPolicies_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionCollection.cs index 21f96171a9f5..ababe3b615c1 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_ServiceEndpointPolicyDefinitionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetServiceEndpointDefinitionInServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ServiceEndpointPolicyDefinitionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ServiceEndpointPolicyDefinitionGet.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetServiceEndpointDefinitionInServiceEndpointPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetServiceEndpointDefinitionInServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ServiceEndpointPolicyDefinitionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ServiceEndpointPolicyDefinitionGet.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_GetServiceEndpointDefinitionInServiceEndpointPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateServiceEndpointPolicyDefinition() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ServiceEndpointPolicyDefinitionCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ServiceEndpointPolicyDefinitionCreate.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -133,7 +133,7 @@ public async Task CreateOrUpdate_CreateServiceEndpointPolicyDefinition() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListServiceEndpointDefinitionsInServiceEndPointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ServiceEndpointPolicyDefinitionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ServiceEndpointPolicyDefinitionList.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionResource.cs index 468ef7b3b3e3..851fc5a89a41 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionResource.cs @@ -22,7 +22,7 @@ public partial class Sample_ServiceEndpointPolicyDefinitionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteServiceEndpointPolicyDefinitionsFromServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ServiceEndpointPolicyDefinitionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ServiceEndpointPolicyDefinitionDelete.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Delete_DeleteServiceEndpointPolicyDefinitionsFromServiceEndpoi [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetServiceEndpointDefinitionInServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ServiceEndpointPolicyDefinitionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ServiceEndpointPolicyDefinitionGet.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetServiceEndpointDefinitionInServiceEndpointPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateServiceEndpointPolicyDefinition() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ServiceEndpointPolicyDefinitionCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ServiceEndpointPolicyDefinitionCreate.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyResource.cs index d2c33b0ce6f0..0ee5c7ee739e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyResource.cs @@ -24,7 +24,7 @@ public partial class Sample_ServiceEndpointPolicyResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ServiceEndpointPolicyDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ServiceEndpointPolicyDelete.json // this example is just showing the usage of "ServiceEndpointPolicies_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteServiceEndpointPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetServiceEndPointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ServiceEndpointPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ServiceEndpointPolicyGet.json // this example is just showing the usage of "ServiceEndpointPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetServiceEndPointPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateServiceEndpointPolicyTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ServiceEndpointPolicyUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ServiceEndpointPolicyUpdateTags.json // this example is just showing the usage of "ServiceEndpointPolicies_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Update_UpdateServiceEndpointPolicyTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetServiceEndpointPoliciesByServiceEndpointPolicy_ListAllServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ServiceEndpointPolicyListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ServiceEndpointPolicyListAll.json // this example is just showing the usage of "ServiceEndpointPolicies_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetCollection.cs index a12625b0a4d6..f67a476acdd8 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_SubnetCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SubnetGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SubnetGet.json // this example is just showing the usage of "Subnets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SubnetGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SubnetGet.json // this example is just showing the usage of "Subnets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_GetSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSubnetWithADelegation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SubnetGetWithDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SubnetGetWithDelegation.json // this example is just showing the usage of "Subnets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -124,7 +124,7 @@ public async Task Get_GetSubnetWithADelegation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetSubnetWithADelegation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SubnetGetWithDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SubnetGetWithDelegation.json // this example is just showing the usage of "Subnets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -155,7 +155,7 @@ public async Task Exists_GetSubnetWithADelegation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SubnetCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SubnetCreate.json // this example is just showing the usage of "Subnets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -195,7 +195,7 @@ public async Task CreateOrUpdate_CreateSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateSubnetWithADelegation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SubnetCreateWithDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SubnetCreateWithDelegation.json // this example is just showing the usage of "Subnets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -235,7 +235,7 @@ public async Task CreateOrUpdate_CreateSubnetWithADelegation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateSubnetWithServiceEndpoints() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SubnetCreateServiceEndpoint.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SubnetCreateServiceEndpoint.json // this example is just showing the usage of "Subnets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -282,7 +282,7 @@ public async Task CreateOrUpdate_CreateSubnetWithServiceEndpoints() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListSubnets() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SubnetList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SubnetList.json // this example is just showing the usage of "Subnets_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetResource.cs index cc47abc89c12..034d022b6536 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetResource.cs @@ -23,7 +23,7 @@ public partial class Sample_SubnetResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SubnetDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SubnetDelete.json // this example is just showing the usage of "Subnets_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SubnetGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SubnetGet.json // this example is just showing the usage of "Subnets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Get_GetSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSubnetWithADelegation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SubnetGetWithDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SubnetGetWithDelegation.json // this example is just showing the usage of "Subnets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Get_GetSubnetWithADelegation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SubnetCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SubnetCreate.json // this example is just showing the usage of "Subnets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -152,7 +152,7 @@ public async Task Update_CreateSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateSubnetWithADelegation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SubnetCreateWithDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SubnetCreateWithDelegation.json // this example is just showing the usage of "Subnets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -189,7 +189,7 @@ public async Task Update_CreateSubnetWithADelegation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateSubnetWithServiceEndpoints() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SubnetCreateServiceEndpoint.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SubnetCreateServiceEndpoint.json // this example is just showing the usage of "Subnets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -233,7 +233,7 @@ public async Task Update_CreateSubnetWithServiceEndpoints() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task PrepareNetworkPolicies_PrepareNetworkPolicies() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SubnetPrepareNetworkPolicies.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SubnetPrepareNetworkPolicies.json // this example is just showing the usage of "Subnets_PrepareNetworkPolicies" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -265,7 +265,7 @@ public async Task PrepareNetworkPolicies_PrepareNetworkPolicies() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task UnprepareNetworkPolicies_UnprepareNetworkPolicies() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/SubnetUnprepareNetworkPolicies.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/SubnetUnprepareNetworkPolicies.json // this example is just showing the usage of "Subnets_UnprepareNetworkPolicies" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -297,7 +297,7 @@ public async Task UnprepareNetworkPolicies_UnprepareNetworkPolicies() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetResourceNavigationLinks_GetResourceNavigationLinks() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGetResourceNavigationLinks.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGetResourceNavigationLinks.json // this example is just showing the usage of "ResourceNavigationLinks_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -328,7 +328,7 @@ public async Task GetResourceNavigationLinks_GetResourceNavigationLinks() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetServiceAssociationLinks_GetServiceAssociationLinks() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGetServiceAssociationLinks.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGetServiceAssociationLinks.json // this example is just showing the usage of "ServiceAssociationLinks_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionCollection.cs index 23ba858f5f84..1df8d2d480c8 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_SubscriptionNetworkManagerConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerConnectionSubscriptionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerConnectionSubscriptionPut.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task CreateOrUpdate_CreateOrUpdateSubscriptionNetworkManagerConnect [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerConnectionSubscriptionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerConnectionSubscriptionGet.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Get_GetSubscriptionNetworkManagerConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerConnectionSubscriptionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerConnectionSubscriptionGet.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Exists_GetSubscriptionNetworkManagerConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerConnectionSubscriptionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerConnectionSubscriptionList.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionResource.cs index 007af6aaa236..a49f8ecc51e4 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionResource.cs @@ -22,7 +22,7 @@ public partial class Sample_SubscriptionNetworkManagerConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerConnectionSubscriptionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerConnectionSubscriptionPut.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Update_CreateOrUpdateSubscriptionNetworkManagerConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerConnectionSubscriptionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerConnectionSubscriptionGet.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Get_GetSubscriptionNetworkManagerConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerConnectionSubscriptionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerConnectionSubscriptionDelete.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index d3b87ab41e11..4f37c14bf294 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -24,7 +24,7 @@ public partial class Sample_SubscriptionResourceExtensions [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableDelegations_GetAvailableDelegations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AvailableDelegationsSubscriptionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AvailableDelegationsSubscriptionGet.json // this example is just showing the usage of "AvailableDelegations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task GetAvailableDelegations_GetAvailableDelegations() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableServiceAliases_GetAvailableServiceAliases() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AvailableServiceAliasesList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AvailableServiceAliasesList.json // this example is just showing the usage of "AvailableServiceAliases_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task GetAvailableServiceAliases_GetAvailableServiceAliases() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAzureFirewallFqdnTags_ListAllAzureFirewallFQDNTagsForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AzureFirewallFqdnTagsListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AzureFirewallFqdnTagsListBySubscription.json // this example is just showing the usage of "AzureFirewallFqdnTags_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -110,7 +110,7 @@ public async Task GetAzureFirewallFqdnTags_ListAllAzureFirewallFQDNTagsForAGiven [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableEndpointServices_EndpointServicesList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/EndpointServicesList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/EndpointServicesList.json // this example is just showing the usage of "AvailableEndpointServices_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -139,7 +139,7 @@ public async Task GetAvailableEndpointServices_EndpointServicesList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetExpressRouteServiceProviders_ListExpressRouteProviders() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ExpressRouteProviderList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ExpressRouteProviderList.json // this example is just showing the usage of "ExpressRouteServiceProviders_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -167,7 +167,7 @@ public async Task GetExpressRouteServiceProviders_ListExpressRouteProviders() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailablePrivateEndpointTypes_GetAvailablePrivateEndpointTypes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AvailablePrivateEndpointTypesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AvailablePrivateEndpointTypesGet.json // this example is just showing the usage of "AvailablePrivateEndpointTypes_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -196,7 +196,7 @@ public async Task GetAvailablePrivateEndpointTypes_GetAvailablePrivateEndpointTy [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckPrivateLinkServiceVisibilityPrivateLinkService_CheckPrivateLinkServiceVisibility() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/CheckPrivateLinkServiceVisibility.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/CheckPrivateLinkServiceVisibility.json // this example is just showing the usage of "PrivateLinkServices_CheckPrivateLinkServiceVisibility" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -227,7 +227,7 @@ public async Task CheckPrivateLinkServiceVisibilityPrivateLinkService_CheckPriva [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAutoApprovedPrivateLinkServicesPrivateLinkServices_GetListOfPrivateLinkServiceIdThatCanBeLinkedToAPrivateEndPointWithAutoApproved() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/AutoApprovedPrivateLinkServicesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/AutoApprovedPrivateLinkServicesGet.json // this example is just showing the usage of "PrivateLinkServices_ListAutoApprovedPrivateLinkServices" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -256,7 +256,7 @@ public async Task GetAutoApprovedPrivateLinkServicesPrivateLinkServices_GetListO [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetBgpServiceCommunities_ServiceCommunityList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ServiceCommunityList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ServiceCommunityList.json // this example is just showing the usage of "BgpServiceCommunities_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -284,7 +284,7 @@ public async Task GetBgpServiceCommunities_ServiceCommunityList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetServiceTag_GetListOfServiceTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ServiceTagsList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ServiceTagsList.json // this example is just showing the usage of "ServiceTags_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -310,7 +310,7 @@ public async Task GetServiceTag_GetListOfServiceTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAllServiceTagInformation_GetListOfServiceTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ServiceTagInformationListResult.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ServiceTagInformationListResult.json // this example is just showing the usage of "ServiceTagInformation_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -339,7 +339,7 @@ public async Task GetAllServiceTagInformation_GetListOfServiceTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAllServiceTagInformation_GetListOfServiceTagsWithNoAddressPrefixes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ServiceTagInformationListResultWithNoAddressPrefixes.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ServiceTagInformationListResultWithNoAddressPrefixes.json // this example is just showing the usage of "ServiceTagInformation_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -369,7 +369,7 @@ public async Task GetAllServiceTagInformation_GetListOfServiceTagsWithNoAddressP [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAllServiceTagInformation_GetListOfServiceTagsWithTagName() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ServiceTagInformationListResultWithTagname.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ServiceTagInformationListResultWithTagname.json // this example is just showing the usage of "ServiceTagInformation_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -399,7 +399,7 @@ public async Task GetAllServiceTagInformation_GetListOfServiceTagsWithTagName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetUsages_ListUsages() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/UsageList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/UsageList.json // this example is just showing the usage of "Usages_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -428,7 +428,7 @@ public async Task GetUsages_ListUsages() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetUsages_ListUsagesSpacedLocation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/UsageListSpacedLocation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/UsageListSpacedLocation.json // this example is just showing the usage of "Usages_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteCollection.cs index bfa9b6408d8d..cbb8b1244890 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_VirtualApplianceSiteCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkVirtualApplianceSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceSiteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceSiteGet.json // this example is just showing the usage of "VirtualApplianceSites_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetNetworkVirtualApplianceSite() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetNetworkVirtualApplianceSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceSiteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceSiteGet.json // this example is just showing the usage of "VirtualApplianceSites_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_GetNetworkVirtualApplianceSite() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateNetworkVirtualApplianceSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceSitePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceSitePut.json // this example is just showing the usage of "VirtualApplianceSites_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -135,7 +135,7 @@ public async Task CreateOrUpdate_CreateNetworkVirtualApplianceSite() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllNetworkVirtualApplianceSitesForAGivenNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceSiteList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceSiteList.json // this example is just showing the usage of "VirtualApplianceSites_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteResource.cs index e9a810a6991c..fe7614ace279 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteResource.cs @@ -23,7 +23,7 @@ public partial class Sample_VirtualApplianceSiteResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteNetworkVirtualApplianceSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceSiteDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceSiteDelete.json // this example is just showing the usage of "VirtualApplianceSites_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteNetworkVirtualApplianceSite() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetNetworkVirtualApplianceSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceSiteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceSiteGet.json // this example is just showing the usage of "VirtualApplianceSites_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Get_GetNetworkVirtualApplianceSite() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateNetworkVirtualApplianceSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkVirtualApplianceSitePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkVirtualApplianceSitePut.json // this example is just showing the usage of "VirtualApplianceSites_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubCollection.cs index aee9b2c46a06..dc01310b5e9a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_VirtualHubCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualHubGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubGet.json // this example is just showing the usage of "VirtualHubs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_VirtualHubGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VirtualHubGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubGet.json // this example is just showing the usage of "VirtualHubs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Exists_VirtualHubGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VirtualHubPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubPut.json // this example is just showing the usage of "VirtualHubs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -133,7 +133,7 @@ public async Task CreateOrUpdate_VirtualHubPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VirtualHubListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubListByResourceGroup.json // this example is just showing the usage of "VirtualHubs_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubResource.cs index 5d894ab92682..938f7c5f6eb6 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubResource.cs @@ -24,7 +24,7 @@ public partial class Sample_VirtualHubResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualHubGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubGet.json // this example is just showing the usage of "VirtualHubs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_VirtualHubGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VirtualHubUpdate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubUpdateTags.json // this example is just showing the usage of "VirtualHubs_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Update_VirtualHubUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VirtualHubDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubDelete.json // this example is just showing the usage of "VirtualHubs_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Delete_VirtualHubDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualHubs_VirtualHubList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubList.json // this example is just showing the usage of "VirtualHubs_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -153,7 +153,7 @@ public async Task GetVirtualHubs_VirtualHubList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualHubEffectiveRoutes_EffectiveRoutesForAConnectionResource() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/EffectiveRoutesListForConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/EffectiveRoutesListForConnection.json // this example is just showing the usage of "VirtualHubs_GetEffectiveVirtualHubRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -186,7 +186,7 @@ public async Task GetVirtualHubEffectiveRoutes_EffectiveRoutesForAConnectionReso [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualHubEffectiveRoutes_EffectiveRoutesForARouteTableResource() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/EffectiveRoutesListForRouteTable.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/EffectiveRoutesListForRouteTable.json // this example is just showing the usage of "VirtualHubs_GetEffectiveVirtualHubRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -219,7 +219,7 @@ public async Task GetVirtualHubEffectiveRoutes_EffectiveRoutesForARouteTableReso [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualHubEffectiveRoutes_EffectiveRoutesForTheVirtualHub() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/EffectiveRoutesListForVirtualHub.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/EffectiveRoutesListForVirtualHub.json // this example is just showing the usage of "VirtualHubs_GetEffectiveVirtualHubRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -248,7 +248,7 @@ public async Task GetVirtualHubEffectiveRoutes_EffectiveRoutesForTheVirtualHub() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualHubInboundRoutes_InboundRoutesForTheVirtualHubOnAParticularConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/GetInboundRoutes.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/GetInboundRoutes.json // this example is just showing the usage of "VirtualHubs_GetInboundRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -281,7 +281,7 @@ public async Task GetVirtualHubInboundRoutes_InboundRoutesForTheVirtualHubOnAPar [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualHubOutboundRoutes_OutboundRoutesForTheVirtualHubOnAParticularConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/GetOutboundRoutes.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/GetOutboundRoutes.json // this example is just showing the usage of "VirtualHubs_GetOutboundRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Collection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Collection.cs index 489a25683259..84f787868d30 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Collection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Collection.cs @@ -23,7 +23,7 @@ public partial class Sample_VirtualHubRouteTableV2Collection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubRouteTableV2Get.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubRouteTableV2Get.json // this example is just showing the usage of "VirtualHubRouteTableV2s_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_VirtualHubVirtualHubRouteTableV2Get() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubRouteTableV2Get.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubRouteTableV2Get.json // this example is just showing the usage of "VirtualHubRouteTableV2s_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_VirtualHubVirtualHubRouteTableV2Get() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VirtualHubRouteTableV2Put() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubRouteTableV2Put.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubRouteTableV2Put.json // this example is just showing the usage of "VirtualHubRouteTableV2s_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -160,7 +160,7 @@ public async Task CreateOrUpdate_VirtualHubRouteTableV2Put() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VirtualHubRouteTableV2List() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubRouteTableV2List.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubRouteTableV2List.json // this example is just showing the usage of "VirtualHubRouteTableV2s_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Resource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Resource.cs index 8a63e05a60ee..573264841336 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Resource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Resource.cs @@ -23,7 +23,7 @@ public partial class Sample_VirtualHubRouteTableV2Resource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubRouteTableV2Get.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubRouteTableV2Get.json // this example is just showing the usage of "VirtualHubRouteTableV2s_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_VirtualHubVirtualHubRouteTableV2Get() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VirtualHubRouteTableV2Put() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubRouteTableV2Put.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubRouteTableV2Put.json // this example is just showing the usage of "VirtualHubRouteTableV2s_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Update_VirtualHubRouteTableV2Put() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VirtualHubRouteTableV2Delete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualHubRouteTableV2Delete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualHubRouteTableV2Delete.json // this example is just showing the usage of "VirtualHubRouteTableV2s_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkCollection.cs index f7895036f0f6..5f1d0f4613b9 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_VirtualNetworkCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetwork() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGet.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetVirtualNetwork() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetVirtualNetwork() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGet.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_GetVirtualNetwork() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetworkWithADelegatedSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGetWithSubnetDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGetWithSubnetDelegation.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Get_GetVirtualNetworkWithADelegatedSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetVirtualNetworkWithADelegatedSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGetWithSubnetDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGetWithSubnetDelegation.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -152,7 +152,7 @@ public async Task Exists_GetVirtualNetworkWithADelegatedSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetworkWithServiceAssociationLinks() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGetWithServiceAssociationLink.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGetWithServiceAssociationLink.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -186,7 +186,7 @@ public async Task Get_GetVirtualNetworkWithServiceAssociationLinks() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetVirtualNetworkWithServiceAssociationLinks() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGetWithServiceAssociationLink.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGetWithServiceAssociationLink.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -216,7 +216,7 @@ public async Task Exists_GetVirtualNetworkWithServiceAssociationLinks() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualNetwork() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkCreate.json // this example is just showing the usage of "VirtualNetworks_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -260,7 +260,7 @@ public async Task CreateOrUpdate_CreateVirtualNetwork() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualNetworkWithBgpCommunities() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkCreateWithBgpCommunities.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkCreateWithBgpCommunities.json // this example is just showing the usage of "VirtualNetworks_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -312,7 +312,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithBgpCommunities() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualNetworkWithDelegatedSubnets() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkCreateSubnetWithDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkCreateSubnetWithDelegation.json // this example is just showing the usage of "VirtualNetworks_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -371,7 +371,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithDelegatedSubnets() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualNetworkWithEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkCreateWithEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkCreateWithEncryption.json // this example is just showing the usage of "VirtualNetworks_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -426,7 +426,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithEncryption() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualNetworkWithServiceEndpoints() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkCreateServiceEndpoints.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkCreateServiceEndpoints.json // this example is just showing the usage of "VirtualNetworks_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -484,7 +484,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithServiceEndpoints() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualNetworkWithServiceEndpointsAndServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkCreateServiceEndpointPolicy.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkCreateServiceEndpointPolicy.json // this example is just showing the usage of "VirtualNetworks_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -549,7 +549,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithServiceEndpointsAndServ [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualNetworkWithSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkCreateSubnet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkCreateSubnet.json // this example is just showing the usage of "VirtualNetworks_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -600,7 +600,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualNetworkWithSubnetContainingAddressPrefixes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkCreateSubnetWithAddressPrefixes.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkCreateSubnetWithAddressPrefixes.json // this example is just showing the usage of "VirtualNetworks_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -654,7 +654,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithSubnetContainingAddress [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListVirtualNetworksInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkList.json // this example is just showing the usage of "VirtualNetworks_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayCollection.cs index 66182dc125d6..3705198984b8 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_VirtualNetworkGatewayCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_UpdateVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayUpdate.json // this example is just showing the usage of "VirtualNetworkGateways_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -164,7 +164,7 @@ public async Task CreateOrUpdate_UpdateVirtualNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayGet.json // this example is just showing the usage of "VirtualNetworkGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -198,7 +198,7 @@ public async Task Get_GetVirtualNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayGet.json // this example is just showing the usage of "VirtualNetworkGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -228,7 +228,7 @@ public async Task Exists_GetVirtualNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListVirtualNetworkGatewaysinResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayList.json // this example is just showing the usage of "VirtualNetworkGateways_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionCollection.cs index 9d0a448d47c7..84b79fca7cfd 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionCollection.cs @@ -25,7 +25,7 @@ public partial class Sample_VirtualNetworkGatewayConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualNetworkGatewayConnectionS2S() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayConnectionCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayConnectionCreate.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -141,7 +141,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkGatewayConnectionS2S() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetworkGatewayConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayConnectionGet.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -175,7 +175,7 @@ public async Task Get_GetVirtualNetworkGatewayConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetVirtualNetworkGatewayConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayConnectionGet.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -205,7 +205,7 @@ public async Task Exists_GetVirtualNetworkGatewayConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListVirtualNetworkGatewayConnectionsinResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayConnectionsList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayConnectionsList.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionResource.cs index 62d03e403660..1d772c9eecc7 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionResource.cs @@ -23,7 +23,7 @@ public partial class Sample_VirtualNetworkGatewayConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task VpnDeviceConfigurationScript_GetVPNDeviceConfigurationScript() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayVpnDeviceConfigurationScript.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayVpnDeviceConfigurationScript.json // this example is just showing the usage of "VirtualNetworkGateways_VpnDeviceConfigurationScript" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task VpnDeviceConfigurationScript_GetVPNDeviceConfigurationScript() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetworkGatewayConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayConnectionGet.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Get_GetVirtualNetworkGatewayConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteVirtualNetworkGatewayConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayConnectionDelete.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Delete_DeleteVirtualNetworkGatewayConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateVirtualNetworkGatewayConnectionTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayConnectionUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayConnectionUpdateTags.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -154,7 +154,7 @@ public async Task Update_UpdateVirtualNetworkGatewayConnectionTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task SetSharedKey_SetVirtualNetworkGatewayConnectionSharedKey() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayConnectionSetSharedKey.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayConnectionSetSharedKey.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_SetSharedKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -183,7 +183,7 @@ public async Task SetSharedKey_SetVirtualNetworkGatewayConnectionSharedKey() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSharedKey_GetVirtualNetworkGatewayConnectionSharedKey() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayConnectionGetSharedKey.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayConnectionGetSharedKey.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_GetSharedKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -210,7 +210,7 @@ public async Task GetSharedKey_GetVirtualNetworkGatewayConnectionSharedKey() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ResetSharedKey_ResetVirtualNetworkGatewayConnectionSharedKey() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayConnectionResetSharedKey.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayConnectionResetSharedKey.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_ResetSharedKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -239,7 +239,7 @@ public async Task ResetSharedKey_ResetVirtualNetworkGatewayConnectionSharedKey() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayConnectionWithFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayConnectionStartPacketCaptureFilterData.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayConnectionStartPacketCaptureFilterData.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -271,7 +271,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayCo [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayConnectionWithoutFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayConnectionStartPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayConnectionStartPacketCapture.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -299,7 +299,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayCo [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StopPacketCapture_StopPacketCaptureOnVirtualNetworkGatewayConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayConnectionStopPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayConnectionStopPacketCapture.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_StopPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -331,7 +331,7 @@ public async Task StopPacketCapture_StopPacketCaptureOnVirtualNetworkGatewayConn [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIkeSas_GetVirtualNetworkGatewayConnectionIkeSa() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayConnectionGetIkeSas.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayConnectionGetIkeSas.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_GetIkeSas" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -359,7 +359,7 @@ public async Task GetIkeSas_GetVirtualNetworkGatewayConnectionIkeSa() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ResetConnection_ResetVirtualNetworkGatewayConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayConnectionReset.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayConnectionReset.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_ResetConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleCollection.cs index 2cb28e9d3f36..4178baa4b7ed 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_VirtualNetworkGatewayNatRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualNetworkGatewayNatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayNatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayNatRuleGet.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_VirtualNetworkGatewayNatRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VirtualNetworkGatewayNatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayNatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayNatRuleGet.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_VirtualNetworkGatewayNatRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VirtualNetworkGatewayNatRulePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayNatRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayNatRulePut.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -147,7 +147,7 @@ public async Task CreateOrUpdate_VirtualNetworkGatewayNatRulePut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VirtualNetworkGatewayNatRuleList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayNatRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayNatRuleList.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_ListByVirtualNetworkGateway" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleResource.cs index 8ca121d01381..ca57998b6ec9 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleResource.cs @@ -23,7 +23,7 @@ public partial class Sample_VirtualNetworkGatewayNatRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualNetworkGatewayNatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayNatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayNatRuleGet.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_VirtualNetworkGatewayNatRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VirtualNetworkGatewayNatRulePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayNatRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayNatRulePut.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -110,7 +110,7 @@ public async Task Update_VirtualNetworkGatewayNatRulePut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VirtualNetworkGatewayNatRuleDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayNatRuleDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayNatRuleDelete.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayResource.cs index 3e57452f30f8..9c4a66f5d351 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayResource.cs @@ -23,7 +23,7 @@ public partial class Sample_VirtualNetworkGatewayResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayGet.json // this example is just showing the usage of "VirtualNetworkGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetVirtualNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayDelete.json // this example is just showing the usage of "VirtualNetworkGateways_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -81,7 +81,7 @@ public async Task Delete_DeleteVirtualNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateVirtualNetworkGatewayTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayUpdateTags.json // this example is just showing the usage of "VirtualNetworkGateways_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Update_UpdateVirtualNetworkGatewayTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetConnections_VirtualNetworkGatewaysListConnections() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewaysListConnections.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewaysListConnections.json // this example is just showing the usage of "VirtualNetworkGateways_ListConnections" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -151,7 +151,7 @@ public async Task GetConnections_VirtualNetworkGatewaysListConnections() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Reset_ResetVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayReset.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayReset.json // this example is just showing the usage of "VirtualNetworkGateways_Reset" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -183,7 +183,7 @@ public async Task Reset_ResetVirtualNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ResetVpnClientSharedKey_ResetVpnClientSharedKey() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayResetVpnClientSharedKey.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayResetVpnClientSharedKey.json // this example is just showing the usage of "VirtualNetworkGateways_ResetVpnClientSharedKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -210,7 +210,7 @@ public async Task ResetVpnClientSharedKey_ResetVpnClientSharedKey() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GenerateVpnClientPackage_GenerateVPNClientPackage() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayGenerateVpnClientPackage.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayGenerateVpnClientPackage.json // this example is just showing the usage of "VirtualNetworkGateways_Generatevpnclientpackage" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -239,7 +239,7 @@ public async Task GenerateVpnClientPackage_GenerateVPNClientPackage() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GenerateVpnProfile_GenerateVirtualNetworkGatewayVPNProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayGenerateVpnProfile.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayGenerateVpnProfile.json // this example is just showing the usage of "VirtualNetworkGateways_GenerateVpnProfile" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -268,7 +268,7 @@ public async Task GenerateVpnProfile_GenerateVirtualNetworkGatewayVPNProfile() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVpnProfilePackageUrl_GetVirtualNetworkGatewayVPNProfilePackageURL() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayGetVpnProfilePackageUrl.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayGetVpnProfilePackageUrl.json // this example is just showing the usage of "VirtualNetworkGateways_GetVpnProfilePackageUrl" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -296,7 +296,7 @@ public async Task GetVpnProfilePackageUrl_GetVirtualNetworkGatewayVPNProfilePack [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetBgpPeerStatus_GetVirtualNetworkGatewayBGPPeerStatus() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayGetBGPPeerStatus.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayGetBGPPeerStatus.json // this example is just showing the usage of "VirtualNetworkGateways_GetBgpPeerStatus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -324,7 +324,7 @@ public async Task GetBgpPeerStatus_GetVirtualNetworkGatewayBGPPeerStatus() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task SupportedVpnDevices_ListVirtualNetworkGatewaySupportedVPNDevices() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewaySupportedVpnDevice.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewaySupportedVpnDevice.json // this example is just showing the usage of "VirtualNetworkGateways_SupportedVpnDevices" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -351,7 +351,7 @@ public async Task SupportedVpnDevices_ListVirtualNetworkGatewaySupportedVPNDevic [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetLearnedRoutes_GetVirtualNetworkGatewayLearnedRoutes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayLearnedRoutes.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayLearnedRoutes.json // this example is just showing the usage of "VirtualNetworkGateways_GetLearnedRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -379,7 +379,7 @@ public async Task GetLearnedRoutes_GetVirtualNetworkGatewayLearnedRoutes() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAdvertisedRoutes_GetVirtualNetworkGatewayAdvertisedRoutes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayGetAdvertisedRoutes.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayGetAdvertisedRoutes.json // this example is just showing the usage of "VirtualNetworkGateways_GetAdvertisedRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -408,7 +408,7 @@ public async Task GetAdvertisedRoutes_GetVirtualNetworkGatewayAdvertisedRoutes() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task SetVpnclientIPsecParameters_SetVirtualNetworkGatewayVpnClientIpsecParameters() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewaySetVpnClientIpsecParameters.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewaySetVpnClientIpsecParameters.json // this example is just showing the usage of "VirtualNetworkGateways_SetVpnclientIpsecParameters" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -437,7 +437,7 @@ public async Task SetVpnclientIPsecParameters_SetVirtualNetworkGatewayVpnClientI [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVpnclientIPsecParameters_GetVirtualNetworkGatewayVpnClientIpsecParameters() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json // this example is just showing the usage of "VirtualNetworkGateways_GetVpnclientIpsecParameters" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -465,7 +465,7 @@ public async Task GetVpnclientIPsecParameters_GetVirtualNetworkGatewayVpnClientI [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayWithFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayStartPacketCaptureFilterData.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayStartPacketCaptureFilterData.json // this example is just showing the usage of "VirtualNetworkGateways_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -497,7 +497,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayWi [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayWithoutFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayStartPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayStartPacketCapture.json // this example is just showing the usage of "VirtualNetworkGateways_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -525,7 +525,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayWi [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StopPacketCapture_StopPacketCaptureOnVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayStopPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayStopPacketCapture.json // this example is just showing the usage of "VirtualNetworkGateways_StopPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -557,7 +557,7 @@ public async Task StopPacketCapture_StopPacketCaptureOnVirtualNetworkGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVpnclientConnectionHealth_GetVirtualNetworkGatewayVpnclientConnectionHealth() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewayGetVpnclientConnectionHealth.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewayGetVpnclientConnectionHealth.json // this example is just showing the usage of "VirtualNetworkGateways_GetVpnclientConnectionHealth" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -585,7 +585,7 @@ public async Task GetVpnclientConnectionHealth_GetVirtualNetworkGatewayVpnclient [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task DisconnectVirtualNetworkGatewayVpnConnections_DisconnectVpnConnectionsFromVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGatewaysDisconnectP2sVpnConnections.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGatewaysDisconnectP2sVpnConnections.json // this example is just showing the usage of "VirtualNetworkGateways_DisconnectVirtualNetworkGatewayVpnConnections" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringCollection.cs index 8516531d9e49..eee1d4d9dbee 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_VirtualNetworkPeeringCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkPeeringGet.json // this example is just showing the usage of "VirtualNetworkPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkPeeringGet.json // this example is just showing the usage of "VirtualNetworkPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_GetPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPeeringWithRemoteVirtualNetworkEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json // this example is just showing the usage of "VirtualNetworkPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -124,7 +124,7 @@ public async Task Get_GetPeeringWithRemoteVirtualNetworkEncryption() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetPeeringWithRemoteVirtualNetworkEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json // this example is just showing the usage of "VirtualNetworkPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -155,7 +155,7 @@ public async Task Exists_GetPeeringWithRemoteVirtualNetworkEncryption() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkPeeringCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkPeeringCreate.json // this example is just showing the usage of "VirtualNetworkPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -199,7 +199,7 @@ public async Task CreateOrUpdate_CreatePeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatePeeringWithRemoteVirtualNetworkEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkPeeringCreateWithRemoteVirtualNetworkEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkPeeringCreateWithRemoteVirtualNetworkEncryption.json // this example is just showing the usage of "VirtualNetworkPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -243,7 +243,7 @@ public async Task CreateOrUpdate_CreatePeeringWithRemoteVirtualNetworkEncryption [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_SyncPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkPeeringSync.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkPeeringSync.json // this example is just showing the usage of "VirtualNetworkPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -288,7 +288,7 @@ public async Task CreateOrUpdate_SyncPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPeerings() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkPeeringList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkPeeringList.json // this example is just showing the usage of "VirtualNetworkPeerings_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -325,7 +325,7 @@ public async Task GetAll_ListPeerings() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListPeeringsWithRemoteVirtualNetworkEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkPeeringListWithRemoteVirtualNetworkEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkPeeringListWithRemoteVirtualNetworkEncryption.json // this example is just showing the usage of "VirtualNetworkPeerings_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringResource.cs index 006ed225494e..94ce1fe0dae9 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringResource.cs @@ -23,7 +23,7 @@ public partial class Sample_VirtualNetworkPeeringResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletePeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkPeeringDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkPeeringDelete.json // this example is just showing the usage of "VirtualNetworkPeerings_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeletePeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkPeeringGet.json // this example is just showing the usage of "VirtualNetworkPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Get_GetPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetPeeringWithRemoteVirtualNetworkEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json // this example is just showing the usage of "VirtualNetworkPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Get_GetPeeringWithRemoteVirtualNetworkEncryption() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreatePeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkPeeringCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkPeeringCreate.json // this example is just showing the usage of "VirtualNetworkPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -156,7 +156,7 @@ public async Task Update_CreatePeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreatePeeringWithRemoteVirtualNetworkEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkPeeringCreateWithRemoteVirtualNetworkEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkPeeringCreateWithRemoteVirtualNetworkEncryption.json // this example is just showing the usage of "VirtualNetworkPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -197,7 +197,7 @@ public async Task Update_CreatePeeringWithRemoteVirtualNetworkEncryption() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_SyncPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkPeeringSync.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkPeeringSync.json // this example is just showing the usage of "VirtualNetworkPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkResource.cs index 3053370c07a6..087bf8db9b64 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkResource.cs @@ -24,7 +24,7 @@ public partial class Sample_VirtualNetworkResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkManagerEffectiveConnectivityConfigurations_ListEffectiveConnectivityConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerEffectiveConnectivityConfigurationsList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerEffectiveConnectivityConfigurationsList.json // this example is just showing the usage of "ListNetworkManagerEffectiveConnectivityConfigurations" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task GetNetworkManagerEffectiveConnectivityConfigurations_ListEffec [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetNetworkManagerEffectiveSecurityAdminRules_ListEffectiveSecurityAdminRules() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NetworkManagerEffectiveSecurityAdminRulesList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NetworkManagerEffectiveSecurityAdminRulesList.json // this example is just showing the usage of "ListNetworkManagerEffectiveSecurityAdminRules" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task GetNetworkManagerEffectiveSecurityAdminRules_ListEffectiveSecu [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteVirtualNetwork() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkDelete.json // this example is just showing the usage of "VirtualNetworks_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -119,7 +119,7 @@ public async Task Delete_DeleteVirtualNetwork() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetwork() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGet.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -150,7 +150,7 @@ public async Task Get_GetVirtualNetwork() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetworkWithADelegatedSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGetWithSubnetDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGetWithSubnetDelegation.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -181,7 +181,7 @@ public async Task Get_GetVirtualNetworkWithADelegatedSubnet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetworkWithServiceAssociationLinks() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkGetWithServiceAssociationLink.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkGetWithServiceAssociationLink.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -212,7 +212,7 @@ public async Task Get_GetVirtualNetworkWithServiceAssociationLinks() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateVirtualNetworkTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkUpdateTags.json // this example is just showing the usage of "VirtualNetworks_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -251,7 +251,7 @@ public async Task Update_UpdateVirtualNetworkTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualNetworks_ListAllVirtualNetworks() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkListAll.json // this example is just showing the usage of "VirtualNetworks_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -283,7 +283,7 @@ public async Task GetVirtualNetworks_ListAllVirtualNetworks() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckIPAddressAvailability_CheckIPAddressAvailability() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkCheckIPAddressAvailability.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkCheckIPAddressAvailability.json // this example is just showing the usage of "VirtualNetworks_CheckIPAddressAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -311,7 +311,7 @@ public async Task CheckIPAddressAvailability_CheckIPAddressAvailability() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetUsage_VnetGetUsage() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkListUsage.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkListUsage.json // this example is just showing the usage of "VirtualNetworks_ListUsage" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapCollection.cs index 427d8f757720..deb805be8873 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_VirtualNetworkTapCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetworkTap() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkTapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkTapGet.json // this example is just showing the usage of "VirtualNetworkTaps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetVirtualNetworkTap() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetVirtualNetworkTap() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkTapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkTapGet.json // this example is just showing the usage of "VirtualNetworkTaps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Exists_GetVirtualNetworkTap() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualNetworkTap() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkTapCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkTapCreate.json // this example is just showing the usage of "VirtualNetworkTaps_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -130,7 +130,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkTap() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListVirtualNetworkTapsInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkTapList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkTapList.json // this example is just showing the usage of "VirtualNetworkTaps_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapResource.cs index 465d64959f99..d95be096a243 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapResource.cs @@ -24,7 +24,7 @@ public partial class Sample_VirtualNetworkTapResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteVirtualNetworkTapResource() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkTapDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkTapDelete.json // this example is just showing the usage of "VirtualNetworkTaps_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteVirtualNetworkTapResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualNetworkTap() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkTapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkTapGet.json // this example is just showing the usage of "VirtualNetworkTaps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetVirtualNetworkTap() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateVirtualNetworkTapTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkTapUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkTapUpdateTags.json // this example is just showing the usage of "VirtualNetworkTaps_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Update_UpdateVirtualNetworkTapTags() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualNetworkTaps_ListAllVirtualNetworkTaps() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualNetworkTapListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualNetworkTapListAll.json // this example is just showing the usage of "VirtualNetworkTaps_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterCollection.cs index a01f9608c437..e306539ac8c5 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_VirtualRouterCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualRouterGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualRouterGet.json // this example is just showing the usage of "VirtualRouters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetVirtualRouter() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualRouterGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualRouterGet.json // this example is just showing the usage of "VirtualRouters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Exists_GetVirtualRouter() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualRouterPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualRouterPut.json // this example is just showing the usage of "VirtualRouters_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task CreateOrUpdate_CreateVirtualRouter() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllVirtualRouterForAGivenResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualRouterListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualRouterListByResourceGroup.json // this example is just showing the usage of "VirtualRouters_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringCollection.cs index 2df5c5dd3b37..fae328c3d16a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_VirtualRouterPeeringCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualRouterPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualRouterPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualRouterPeeringGet.json // this example is just showing the usage of "VirtualRouterPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetVirtualRouterPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetVirtualRouterPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualRouterPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualRouterPeeringGet.json // this example is just showing the usage of "VirtualRouterPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_GetVirtualRouterPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateVirtualRouterPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualRouterPeeringPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualRouterPeeringPut.json // this example is just showing the usage of "VirtualRouterPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task CreateOrUpdate_CreateVirtualRouterPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllVirtualRouterPeeringsForAGivenVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualRouterPeeringList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualRouterPeeringList.json // this example is just showing the usage of "VirtualRouterPeerings_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringResource.cs index 30c45e626da3..e3604ae764c6 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringResource.cs @@ -22,7 +22,7 @@ public partial class Sample_VirtualRouterPeeringResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteVirtualRouterPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualRouterPeeringDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualRouterPeeringDelete.json // this example is just showing the usage of "VirtualRouterPeerings_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Delete_DeleteVirtualRouterPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualRouterPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualRouterPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualRouterPeeringGet.json // this example is just showing the usage of "VirtualRouterPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetVirtualRouterPeering() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateVirtualRouterPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualRouterPeeringPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualRouterPeeringPut.json // this example is just showing the usage of "VirtualRouterPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterResource.cs index 02caea47428f..ec6dd9c0642c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterResource.cs @@ -23,7 +23,7 @@ public partial class Sample_VirtualRouterResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualRouterDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualRouterDelete.json // this example is just showing the usage of "VirtualRouters_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Delete_DeleteVirtualRouter() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualRouterGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualRouterGet.json // this example is just showing the usage of "VirtualRouters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -81,7 +81,7 @@ public async Task Get_GetVirtualRouter() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualRouterPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualRouterPut.json // this example is just showing the usage of "VirtualRouters_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Update_CreateVirtualRouter() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualRouters_ListAllVirtualRoutersForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualRouterListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualRouterListBySubscription.json // this example is just showing the usage of "VirtualRouters_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanCollection.cs index 3b177b097987..77a77abae849 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_VirtualWanCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualWANGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualWANGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualWANGet.json // this example is just showing the usage of "VirtualWans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_VirtualWANGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VirtualWANGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualWANGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualWANGet.json // this example is just showing the usage of "VirtualWans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Exists_VirtualWANGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VirtualWANCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualWANPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualWANPut.json // this example is just showing the usage of "VirtualWans_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -132,7 +132,7 @@ public async Task CreateOrUpdate_VirtualWANCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VirtualWANListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualWANListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualWANListByResourceGroup.json // this example is just showing the usage of "VirtualWans_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanResource.cs index 7a26e8a11e74..65855bf09348 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanResource.cs @@ -24,7 +24,7 @@ public partial class Sample_VirtualWanResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task SupportedSecurityProviders_SupportedSecurityProviders() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualWanSupportedSecurityProviders.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualWanSupportedSecurityProviders.json // this example is just showing the usage of "SupportedSecurityProviders" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -49,9 +49,9 @@ public async Task SupportedSecurityProviders_SupportedSecurityProviders() // GenerateVirtualWanVpnServerConfigurationVpnProfile [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Generatevirtualwanvpnserverconfigurationvpnprofile_GenerateVirtualWanVpnServerConfigurationVpnProfile() + public async Task GenerateVirtualWanVpnServerConfigurationVpnProfile_GenerateVirtualWanVpnServerConfigurationVpnProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/GenerateVirtualWanVpnServerConfigurationVpnProfile.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/GenerateVirtualWanVpnServerConfigurationVpnProfile.json // this example is just showing the usage of "generatevirtualwanvpnserverconfigurationvpnprofile" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -73,7 +73,7 @@ public async Task Generatevirtualwanvpnserverconfigurationvpnprofile_GenerateVir VpnServerConfigurationResourceId = new ResourceIdentifier("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnServerConfigurations/vpnconfig1"), AuthenticationMethod = NetworkAuthenticationMethod.Eaptls, }; - ArmOperation lro = await virtualWan.GeneratevirtualwanvpnserverconfigurationvpnprofileAsync(WaitUntil.Completed, content); + ArmOperation lro = await virtualWan.GenerateVirtualWanVpnServerConfigurationVpnProfileAsync(WaitUntil.Completed, content); VpnProfileResponse result = lro.Value; Console.WriteLine($"Succeeded: {result}"); @@ -84,7 +84,7 @@ public async Task Generatevirtualwanvpnserverconfigurationvpnprofile_GenerateVir [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualWANGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualWANGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualWANGet.json // this example is just showing the usage of "VirtualWans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Get_VirtualWANGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VirtualWANUpdate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualWANUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualWANUpdateTags.json // this example is just showing the usage of "VirtualWans_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -154,7 +154,7 @@ public async Task Update_VirtualWANUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VirtualWANDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualWANDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualWANDelete.json // this example is just showing the usage of "VirtualWans_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -181,7 +181,7 @@ public async Task Delete_VirtualWANDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVirtualWans_VirtualWANList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VirtualWANList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VirtualWANList.json // this example is just showing the usage of "VirtualWans_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -213,7 +213,7 @@ public async Task GetVirtualWans_VirtualWANList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task DownloadVpnSitesConfiguration_VpnSitesConfigurationDownload() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnSitesConfigurationDownload.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnSitesConfigurationDownload.json // this example is just showing the usage of "VpnSitesConfiguration_Download" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -247,7 +247,7 @@ public async Task DownloadVpnSitesConfiguration_VpnSitesConfigurationDownload() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVpnServerConfigurationsAssociatedWithVirtualWan_GetVirtualWanVpnServerConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/GetVirtualWanVpnServerConfigurations.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/GetVirtualWanVpnServerConfigurations.json // this example is just showing the usage of "VpnServerConfigurationsAssociatedWithVirtualWan_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionCollection.cs index f47bfdff6dc7..55971e7d1eea 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_VpnConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnConnectionGet.json // this example is just showing the usage of "VpnConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task Get_VpnConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VpnConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnConnectionGet.json // this example is just showing the usage of "VpnConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task Exists_VpnConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VpnConnectionPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnConnectionPut.json // this example is just showing the usage of "VpnConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -172,7 +172,7 @@ public async Task CreateOrUpdate_VpnConnectionPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VpnConnectionList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnConnectionList.json // this example is just showing the usage of "VpnConnections_ListByVpnGateway" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionResource.cs index 1f546ca29cda..ec84ab4bcad2 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionResource.cs @@ -24,7 +24,7 @@ public partial class Sample_VpnConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnConnectionGet.json // this example is just showing the usage of "VpnConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task Get_VpnConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VpnConnectionPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnConnectionPut.json // this example is just showing the usage of "VpnConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -135,7 +135,7 @@ public async Task Update_VpnConnectionPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VpnConnectionDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnConnectionDelete.json // this example is just showing the usage of "VpnConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -163,7 +163,7 @@ public async Task Delete_VpnConnectionDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StartPacketCapture_StartPacketCaptureOnVpnConnectionWithFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnConnectionStartPacketCaptureFilterData.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnConnectionStartPacketCaptureFilterData.json // this example is just showing the usage of "VpnConnections_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -200,7 +200,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVpnConnectionWithFilter [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StartPacketCapture_StartPacketCaptureOnVpnConnectionWithoutFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnConnectionStartPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnConnectionStartPacketCapture.json // this example is just showing the usage of "VpnConnections_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -236,7 +236,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVpnConnectionWithoutFil [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StopPacketCapture_StartPacketCaptureOnVpnConnectionWithoutFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnConnectionStopPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnConnectionStopPacketCapture.json // this example is just showing the usage of "VpnConnections_StopPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayCollection.cs index 16e22f3e3b19..271574cafb2c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayCollection.cs @@ -25,7 +25,7 @@ public partial class Sample_VpnGatewayCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnGatewayGet.json // this example is just showing the usage of "VpnGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task Get_VpnGatewayGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VpnGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnGatewayGet.json // this example is just showing the usage of "VpnGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_VpnGatewayGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VpnGatewayPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnGatewayPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnGatewayPut.json // this example is just showing the usage of "VpnGateways_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -208,7 +208,7 @@ public async Task CreateOrUpdate_VpnGatewayPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VpnGatewayListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnGatewayListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnGatewayListByResourceGroup.json // this example is just showing the usage of "VpnGateways_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleCollection.cs index 43301c32ed8f..b4c43d5d800d 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_VpnGatewayNatRuleCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NatRuleGet.json // this example is just showing the usage of "NatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_NatRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_NatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NatRuleGet.json // this example is just showing the usage of "NatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_NatRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_NatRulePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NatRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NatRulePut.json // this example is just showing the usage of "NatRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -145,7 +145,7 @@ public async Task CreateOrUpdate_NatRulePut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_NatRuleList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NatRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NatRuleList.json // this example is just showing the usage of "NatRules_ListByVpnGateway" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleResource.cs index cb447ae94875..2dd1f7fc68dd 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleResource.cs @@ -23,7 +23,7 @@ public partial class Sample_VpnGatewayNatRuleResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_NatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NatRuleGet.json // this example is just showing the usage of "NatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_NatRuleGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_NatRulePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NatRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NatRulePut.json // this example is just showing the usage of "NatRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -108,7 +108,7 @@ public async Task Update_NatRulePut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_NatRuleDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/NatRuleDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/NatRuleDelete.json // this example is just showing the usage of "NatRules_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayResource.cs index e45946536a39..fff606b3ee24 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayResource.cs @@ -24,7 +24,7 @@ public partial class Sample_VpnGatewayResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnGatewayGet.json // this example is just showing the usage of "VpnGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_VpnGatewayGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VpnGatewayUpdate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnGatewayUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnGatewayUpdateTags.json // this example is just showing the usage of "VpnGateways_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Update_VpnGatewayUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VpnGatewayDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnGatewayDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnGatewayDelete.json // this example is just showing the usage of "VpnGateways_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Delete_VpnGatewayDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Reset_ResetVpnGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnGatewayReset.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnGatewayReset.json // this example is just showing the usage of "VpnGateways_Reset" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -154,7 +154,7 @@ public async Task Reset_ResetVpnGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StartPacketCapture_StartPacketCaptureOnVpnGatewayWithFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnGatewayStartPacketCaptureFilterData.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnGatewayStartPacketCaptureFilterData.json // this example is just showing the usage of "VpnGateways_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -186,7 +186,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVpnGatewayWithFilter() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StartPacketCapture_StartPacketCaptureOnVpnGatewayWithoutFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnGatewayStartPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnGatewayStartPacketCapture.json // this example is just showing the usage of "VpnGateways_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -214,7 +214,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVpnGatewayWithoutFilter [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StopPacketCapture_StopPacketCaptureOnVpnGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnGatewayStopPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnGatewayStopPacketCapture.json // this example is just showing the usage of "VpnGateways_StopPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -246,7 +246,7 @@ public async Task StopPacketCapture_StopPacketCaptureOnVpnGateway() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVpnGateways_VpnGatewayListBySubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnGatewayList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnGatewayList.json // this example is just showing the usage of "VpnGateways_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationCollection.cs index 4eb751125159..f2346198cde0 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_VpnServerConfigurationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnServerConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnServerConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnServerConfigurationGet.json // this example is just showing the usage of "VpnServerConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_VpnServerConfigurationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VpnServerConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnServerConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnServerConfigurationGet.json // this example is just showing the usage of "VpnServerConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_VpnServerConfigurationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VpnServerConfigurationCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnServerConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnServerConfigurationPut.json // this example is just showing the usage of "VpnServerConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -213,7 +213,7 @@ public async Task CreateOrUpdate_VpnServerConfigurationCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VpnServerConfigurationListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnServerConfigurationListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnServerConfigurationListByResourceGroup.json // this example is just showing the usage of "VpnServerConfigurations_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupCollection.cs index d314a841a841..cca4e394b133 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_VpnServerConfigurationPolicyGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ConfigurationPolicyGroupPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ConfigurationPolicyGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ConfigurationPolicyGroupPut.json // this example is just showing the usage of "ConfigurationPolicyGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task CreateOrUpdate_ConfigurationPolicyGroupPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ConfigurationPolicyGroupGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ConfigurationPolicyGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ConfigurationPolicyGroupGet.json // this example is just showing the usage of "ConfigurationPolicyGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -113,7 +113,7 @@ public async Task Get_ConfigurationPolicyGroupGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ConfigurationPolicyGroupGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ConfigurationPolicyGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ConfigurationPolicyGroupGet.json // this example is just showing the usage of "ConfigurationPolicyGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -144,7 +144,7 @@ public async Task Exists_ConfigurationPolicyGroupGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ConfigurationPolicyGroupListByVpnServerConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ConfigurationPolicyGroupListByVpnServerConfiguration.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ConfigurationPolicyGroupListByVpnServerConfiguration.json // this example is just showing the usage of "configurationPolicyGroups_ListByVpnServerConfiguration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupResource.cs index 368b37cd1e29..8a04796e7dc3 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupResource.cs @@ -23,7 +23,7 @@ public partial class Sample_VpnServerConfigurationPolicyGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ConfigurationPolicyGroupPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ConfigurationPolicyGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ConfigurationPolicyGroupPut.json // this example is just showing the usage of "ConfigurationPolicyGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -75,7 +75,7 @@ public async Task Update_ConfigurationPolicyGroupPut() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ConfigurationPolicyGroupDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ConfigurationPolicyGroupDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ConfigurationPolicyGroupDelete.json // this example is just showing the usage of "ConfigurationPolicyGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -103,7 +103,7 @@ public async Task Delete_ConfigurationPolicyGroupDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ConfigurationPolicyGroupGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/ConfigurationPolicyGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/ConfigurationPolicyGroupGet.json // this example is just showing the usage of "ConfigurationPolicyGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationResource.cs index 3676e108ef3d..6a9db5c6d39a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationResource.cs @@ -24,7 +24,7 @@ public partial class Sample_VpnServerConfigurationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnServerConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnServerConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnServerConfigurationGet.json // this example is just showing the usage of "VpnServerConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_VpnServerConfigurationGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VpnServerConfigurationUpdate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnServerConfigurationUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnServerConfigurationUpdateTags.json // this example is just showing the usage of "VpnServerConfigurations_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Update_VpnServerConfigurationUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VpnServerConfigurationDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnServerConfigurationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnServerConfigurationDelete.json // this example is just showing the usage of "VpnServerConfigurations_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Delete_VpnServerConfigurationDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVpnServerConfigurations_VpnServerConfigurationList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnServerConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnServerConfigurationList.json // this example is just showing the usage of "VpnServerConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteCollection.cs index 0127de3998a8..d969f0ede58e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_VpnSiteCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnSiteGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnSiteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnSiteGet.json // this example is just showing the usage of "VpnSites_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_VpnSiteGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VpnSiteGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnSiteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnSiteGet.json // this example is just showing the usage of "VpnSites_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Exists_VpnSiteGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_VpnSiteCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnSitePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnSitePut.json // this example is just showing the usage of "VpnSites_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -162,7 +162,7 @@ public async Task CreateOrUpdate_VpnSiteCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VpnSiteListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnSiteListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnSiteListByResourceGroup.json // this example is just showing the usage of "VpnSites_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkCollection.cs index 03ff932d8387..91230c7311a5 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_VpnSiteLinkCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnSiteGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnSiteLinkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnSiteLinkGet.json // this example is just showing the usage of "VpnSiteLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task Get_VpnSiteGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VpnSiteGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnSiteLinkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnSiteLinkGet.json // this example is just showing the usage of "VpnSiteLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Exists_VpnSiteGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VpnSiteLinkListByVpnSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnSiteLinkListByVpnSite.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnSiteLinkListByVpnSite.json // this example is just showing the usage of "VpnSiteLinks_ListByVpnSite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionCollection.cs index 77734bfd436d..cc54dc99017a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_VpnSiteLinkConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VpnSiteLinkConnectionList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnSiteLinkConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnSiteLinkConnectionList.json // this example is just showing the usage of "VpnLinkConnections_ListByVpnConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task GetAll_VpnSiteLinkConnectionList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnSiteLinkConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnSiteLinkConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnSiteLinkConnectionGet.json // this example is just showing the usage of "VpnSiteLinkConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_VpnSiteLinkConnectionGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VpnSiteLinkConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnSiteLinkConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnSiteLinkConnectionGet.json // this example is just showing the usage of "VpnSiteLinkConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionResource.cs index 95eae78d3a02..c2a1c32d4d2a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionResource.cs @@ -22,7 +22,7 @@ public partial class Sample_VpnSiteLinkConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ResetConnectionVpnLinkConnection_ResetVpnLinkConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnSiteLinkConnectionReset.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnSiteLinkConnectionReset.json // this example is just showing the usage of "VpnLinkConnections_ResetConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task ResetConnectionVpnLinkConnection_ResetVpnLinkConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIkeSasVpnLinkConnection_GetVpnLinkConnectionIkeSa() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnSiteLinkConnectionGetIkeSas.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnSiteLinkConnectionGetIkeSas.json // this example is just showing the usage of "VpnLinkConnections_GetIkeSas" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -81,7 +81,7 @@ public async Task GetIkeSasVpnLinkConnection_GetVpnLinkConnectionIkeSa() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnSiteLinkConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnSiteLinkConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnSiteLinkConnectionGet.json // this example is just showing the usage of "VpnSiteLinkConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkResource.cs index ac734c7ee799..8c2ad95f6611 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkResource.cs @@ -21,7 +21,7 @@ public partial class Sample_VpnSiteLinkResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnSiteGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnSiteLinkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnSiteLinkGet.json // this example is just showing the usage of "VpnSiteLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteResource.cs index b60dee5c5577..fad664cd1876 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteResource.cs @@ -24,7 +24,7 @@ public partial class Sample_VpnSiteResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VpnSiteGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnSiteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnSiteGet.json // this example is just showing the usage of "VpnSites_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_VpnSiteGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_VpnSiteUpdate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnSiteUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnSiteUpdateTags.json // this example is just showing the usage of "VpnSites_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Update_VpnSiteUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_VpnSiteDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnSiteDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnSiteDelete.json // this example is just showing the usage of "VpnSites_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Delete_VpnSiteDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVpnSites_VpnSiteList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/VpnSiteList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/VpnSiteList.json // this example is just showing the usage of "VpnSites_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyCollection.cs index 8a0d1d8d43c6..734ffe7236da 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_WebApplicationFirewallPolicyCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListsAllWAFPoliciesInAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/WafListPolicies.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/WafListPolicies.json // this example is just showing the usage of "WebApplicationFirewallPolicies_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListsAllWAFPoliciesInAResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsAWAFPolicyWithinAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/WafPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/WafPolicyGet.json // this example is just showing the usage of "WebApplicationFirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Get_GetsAWAFPolicyWithinAResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetsAWAFPolicyWithinAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/WafPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/WafPolicyGet.json // this example is just showing the usage of "WebApplicationFirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -124,7 +124,7 @@ public async Task Exists_GetsAWAFPolicyWithinAResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreatesOrUpdatesAWAFPolicyWithinAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/WafPolicyCreateOrUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/WafPolicyCreateOrUpdate.json // this example is just showing the usage of "WebApplicationFirewallPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyResource.cs index dbf926ea9cae..55a3e4d0166d 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyResource.cs @@ -24,7 +24,7 @@ public partial class Sample_WebApplicationFirewallPolicyResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetWebApplicationFirewallPolicies_ListsAllWAFPoliciesInASubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/WafListAllPolicies.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/WafListAllPolicies.json // this example is just showing the usage of "WebApplicationFirewallPolicies_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetWebApplicationFirewallPolicies_ListsAllWAFPoliciesInASubscr [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetsAWAFPolicyWithinAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/WafPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/WafPolicyGet.json // this example is just showing the usage of "WebApplicationFirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Get_GetsAWAFPolicyWithinAResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreatesOrUpdatesAWAFPolicyWithinAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/WafPolicyCreateOrUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/WafPolicyCreateOrUpdate.json // this example is just showing the usage of "WebApplicationFirewallPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -270,7 +270,7 @@ public async Task Update_CreatesOrUpdatesAWAFPolicyWithinAResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeletesAWAFPolicyWithinAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/examples/WafPolicyDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2023-04-01/examples/WafPolicyDelete.json // this example is just showing the usage of "WebApplicationFirewallPolicies_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/src/Azure.ResourceManager.Network.csproj b/sdk/network/Azure.ResourceManager.Network/src/Azure.ResourceManager.Network.csproj index 224ff648ec7d..38510acaaf61 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Azure.ResourceManager.Network.csproj +++ b/sdk/network/Azure.ResourceManager.Network/src/Azure.ResourceManager.Network.csproj @@ -1,6 +1,6 @@ - 1.4.0-beta.1 + 1.4.0 1.3.0 Azure.ResourceManager.Network diff --git a/sdk/network/Azure.ResourceManager.Network/src/Customization/ArmNetworkModelFactory.cs b/sdk/network/Azure.ResourceManager.Network/src/Customization/ArmNetworkModelFactory.cs new file mode 100644 index 000000000000..c211532c5d1b --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Customization/ArmNetworkModelFactory.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using Azure; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network; +using Azure.ResourceManager.Resources.Models; + +namespace Azure.ResourceManager.Network.Models +{ + /// Model factory for models. + public static partial class ArmNetworkModelFactory + { + /// Initializes a new instance of ApplicationGatewayFrontendIPConfiguration. + /// Resource ID. + /// Resource name. + /// Resource type. + /// A unique read-only string that changes whenever the resource is updated. + /// PrivateIPAddress of the network interface IP Configuration. + /// The private IP address allocation method. + /// Reference to the subnet resource. + /// Reference to the PublicIP resource. + /// Reference to the application gateway private link configuration. + /// The provisioning state of the frontend IP configuration resource. + /// A new instance for mocking. + public static ApplicationGatewayFrontendIPConfiguration ApplicationGatewayFrontendIPConfiguration(ResourceIdentifier id, string name, ResourceType? resourceType, ETag? etag, string privateIPAddress, NetworkIPAllocationMethod? privateIPAllocationMethod, ResourceIdentifier subnetId, ResourceIdentifier publicIPAddressId, ResourceIdentifier privateLinkConfigurationId, NetworkProvisioningState? provisioningState) + => ApplicationGatewayFrontendIPConfiguration(id, name, resourceType, etag, privateIPAddress, privateIPAllocationMethod, subnetId, publicIPAddressId, privateLinkConfigurationId, provisioningState); + + /// Initializes a new instance of BackendAddressPoolData. + /// Resource ID. + /// Resource name. + /// Resource type. + /// A unique read-only string that changes whenever the resource is updated. + /// The location of the backend address pool. + /// An array of gateway load balancer tunnel interfaces. + /// An array of backend addresses. + /// An array of references to IP addresses defined in network interfaces. + /// An array of references to load balancing rules that use this backend address pool. + /// A reference to an outbound rule that uses this backend address pool. + /// An array of references to outbound rules that use this backend address pool. + /// An array of references to inbound NAT rules that use this backend address pool. + /// The provisioning state of the backend address pool resource. + /// Amount of seconds Load Balancer waits for before sending RESET to client and backend address. + /// A reference to a virtual network. + public static BackendAddressPoolData BackendAddressPoolData(ResourceIdentifier id, string name, ResourceType? resourceType, ETag? etag, AzureLocation? location, IEnumerable tunnelInterfaces, IEnumerable loadBalancerBackendAddresses, IEnumerable backendIPConfigurations, IEnumerable loadBalancingRules, ResourceIdentifier outboundRuleId, IEnumerable outboundRules, IEnumerable inboundNatRules, NetworkProvisioningState? provisioningState, int? drainPeriodInSeconds, ResourceIdentifier virtualNetworkId) + => BackendAddressPoolData(id, name, resourceType, etag, location, tunnelInterfaces, loadBalancerBackendAddresses, backendIPConfigurations, loadBalancingRules, outboundRuleId, outboundRules, inboundNatRules, provisioningState, drainPeriodInSeconds, virtualNetworkId); + } +} \ No newline at end of file diff --git a/sdk/network/Azure.ResourceManager.Network/src/Customization/VirtualWanResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Customization/VirtualWanResource.cs new file mode 100644 index 000000000000..adfdfacd1d86 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Customization/VirtualWanResource.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.ComponentModel; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.ResourceManager.Network.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.Network +{ + /// + /// A Class representing a VirtualWan along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetVirtualWanResource method. + /// Otherwise you can get one from its parent resource using the GetVirtualWan method. + /// + public partial class VirtualWanResource : ArmResource + { + /// + /// Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination in the specified resource group. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/GenerateVpnProfile + /// + /// + /// Operation Id + /// generatevirtualwanvpnserverconfigurationvpnprofile + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Parameters supplied to the generate VirtualWan VPN profile generation operation. + /// The cancellation token to use. + /// is null. + [Obsolete("This method is obsolete and will be removed in a future release", false)] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual async Task> GeneratevirtualwanvpnserverconfigurationvpnprofileAsync(WaitUntil waitUntil, VirtualWanVpnProfileContent content, CancellationToken cancellationToken = default) => await GeneratevirtualwanvpnserverconfigurationvpnprofileAsync(waitUntil, content, cancellationToken).ConfigureAwait(false); + + /// + /// Generates a unique VPN profile for P2S clients for VirtualWan and associated VpnServerConfiguration combination in the specified resource group. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/GenerateVpnProfile + /// + /// + /// Operation Id + /// generatevirtualwanvpnserverconfigurationvpnprofile + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Parameters supplied to the generate VirtualWan VPN profile generation operation. + /// The cancellation token to use. + /// is null. + [Obsolete("This method is obsolete and will be removed in a future release", false)] + [EditorBrowsable(EditorBrowsableState.Never)] + public virtual ArmOperation Generatevirtualwanvpnserverconfigurationvpnprofile(WaitUntil waitUntil, VirtualWanVpnProfileContent content, CancellationToken cancellationToken = default) => Generatevirtualwanvpnserverconfigurationvpnprofile(waitUntil, content, cancellationToken); + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ArmNetworkModelFactory.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ArmNetworkModelFactory.cs index 5f56e0f4d5e9..e8dc5709f14c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ArmNetworkModelFactory.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ArmNetworkModelFactory.cs @@ -178,23 +178,6 @@ public static ApplicationGatewaySslCertificate ApplicationGatewaySslCertificate( return new ApplicationGatewaySslCertificate(id, name, resourceType, etag, data, password, publicCertData, keyVaultSecretId, provisioningState); } - /// Initializes a new instance of ApplicationGatewayFrontendIPConfiguration. - /// Resource ID. - /// Resource name. - /// Resource type. - /// A unique read-only string that changes whenever the resource is updated. - /// PrivateIPAddress of the network interface IP Configuration. - /// The private IP address allocation method. - /// Reference to the subnet resource. - /// Reference to the PublicIP resource. - /// Reference to the application gateway private link configuration. - /// The provisioning state of the frontend IP configuration resource. - /// A new instance for mocking. - public static ApplicationGatewayFrontendIPConfiguration ApplicationGatewayFrontendIPConfiguration(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, ETag? etag = null, string privateIPAddress = null, NetworkIPAllocationMethod? privateIPAllocationMethod = null, ResourceIdentifier subnetId = null, ResourceIdentifier publicIPAddressId = null, ResourceIdentifier privateLinkConfigurationId = null, NetworkProvisioningState? provisioningState = null) - { - return new ApplicationGatewayFrontendIPConfiguration(id, name, resourceType, etag, privateIPAddress, privateIPAllocationMethod, subnetId != null ? ResourceManagerModelFactory.WritableSubResource(subnetId) : null, publicIPAddressId != null ? ResourceManagerModelFactory.WritableSubResource(publicIPAddressId) : null, privateLinkConfigurationId != null ? ResourceManagerModelFactory.WritableSubResource(privateLinkConfigurationId) : null, provisioningState); - } - /// Initializes a new instance of ApplicationGatewayFrontendPort. /// Resource ID. /// Resource name. @@ -224,7 +207,7 @@ public static ApplicationGatewayFrontendPort ApplicationGatewayFrontendPort(Reso /// Minimum number of servers that are always marked healthy. Default value is 0. /// Criterion for classifying a healthy probe response. /// The provisioning state of the probe resource. - /// Custom port which will be used for probing the backend servers. The valid value ranges from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Standard_v2 and WAF_v2 only. + /// Custom port which will be used for probing the backend servers. The valid value ranges from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Basic, Standard_v2 and WAF_v2 only. /// A new instance for mocking. public static ApplicationGatewayProbe ApplicationGatewayProbe(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, ETag? etag = null, ApplicationGatewayProtocol? protocol = null, string host = null, string path = null, int? intervalInSeconds = null, int? timeoutInSeconds = null, int? unhealthyThreshold = null, bool? pickHostNameFromBackendHttpSettings = null, bool? pickHostNameFromBackendSettings = null, int? minServers = null, ApplicationGatewayProbeHealthResponseMatch match = null, NetworkProvisioningState? provisioningState = null, int? port = null) { @@ -934,8 +917,9 @@ public static ServiceDelegation ServiceDelegation(ResourceIdentifier id = null, /// The provisioning state of the backend address pool resource. /// Amount of seconds Load Balancer waits for before sending RESET to client and backend address. /// A reference to a virtual network. + /// Backend address synchronous mode for the backend pool. /// A new instance for mocking. - public static BackendAddressPoolData BackendAddressPoolData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, ETag? etag = null, AzureLocation? location = null, IEnumerable tunnelInterfaces = null, IEnumerable loadBalancerBackendAddresses = null, IEnumerable backendIPConfigurations = null, IEnumerable loadBalancingRules = null, ResourceIdentifier outboundRuleId = null, IEnumerable outboundRules = null, IEnumerable inboundNatRules = null, NetworkProvisioningState? provisioningState = null, int? drainPeriodInSeconds = null, ResourceIdentifier virtualNetworkId = null) + public static BackendAddressPoolData BackendAddressPoolData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, ETag? etag = null, AzureLocation? location = null, IEnumerable tunnelInterfaces = null, IEnumerable loadBalancerBackendAddresses = null, IEnumerable backendIPConfigurations = null, IEnumerable loadBalancingRules = null, ResourceIdentifier outboundRuleId = null, IEnumerable outboundRules = null, IEnumerable inboundNatRules = null, NetworkProvisioningState? provisioningState = null, int? drainPeriodInSeconds = null, ResourceIdentifier virtualNetworkId = null, BackendAddressSyncMode? syncMode = null) { tunnelInterfaces ??= new List(); loadBalancerBackendAddresses ??= new List(); @@ -944,7 +928,7 @@ public static BackendAddressPoolData BackendAddressPoolData(ResourceIdentifier i outboundRules ??= new List(); inboundNatRules ??= new List(); - return new BackendAddressPoolData(id, name, resourceType, etag, location, tunnelInterfaces?.ToList(), loadBalancerBackendAddresses?.ToList(), backendIPConfigurations?.ToList(), loadBalancingRules?.ToList(), outboundRuleId != null ? ResourceManagerModelFactory.WritableSubResource(outboundRuleId) : null, outboundRules?.ToList(), inboundNatRules?.ToList(), provisioningState, drainPeriodInSeconds, virtualNetworkId != null ? ResourceManagerModelFactory.WritableSubResource(virtualNetworkId) : null); + return new BackendAddressPoolData(id, name, resourceType, etag, location, tunnelInterfaces?.ToList(), loadBalancerBackendAddresses?.ToList(), backendIPConfigurations?.ToList(), loadBalancingRules?.ToList(), outboundRuleId != null ? ResourceManagerModelFactory.WritableSubResource(outboundRuleId) : null, outboundRules?.ToList(), inboundNatRules?.ToList(), provisioningState, drainPeriodInSeconds, virtualNetworkId != null ? ResourceManagerModelFactory.WritableSubResource(virtualNetworkId) : null, syncMode); } /// Initializes a new instance of LoadBalancerBackendAddress. @@ -2534,6 +2518,16 @@ public static InboundNatRulePortMapping InboundNatRulePortMapping(string inbound return new InboundNatRulePortMapping(inboundNatRuleName, protocol, frontendPort, backendPort); } + /// Initializes a new instance of MigrateLoadBalancerToIPBasedResult. + /// A list of pools migrated from Nic based to IP based pool. + /// A new instance for mocking. + public static MigrateLoadBalancerToIPBasedResult MigrateLoadBalancerToIPBasedResult(IEnumerable migratedPools = null) + { + migratedPools ??= new List(); + + return new MigrateLoadBalancerToIPBasedResult(migratedPools?.ToList()); + } + /// Initializes a new instance of EffectiveRouteListResult. /// A list of effective routes. /// The URL to get the next set of results. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolData.cs index c5f712f49037..7340f1beb2fd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolData.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolData.cs @@ -46,7 +46,8 @@ public BackendAddressPoolData() /// The provisioning state of the backend address pool resource. /// Amount of seconds Load Balancer waits for before sending RESET to client and backend address. /// A reference to a virtual network. - internal BackendAddressPoolData(ResourceIdentifier id, string name, ResourceType? resourceType, ETag? etag, AzureLocation? location, IList tunnelInterfaces, IList loadBalancerBackendAddresses, IReadOnlyList backendIPConfigurations, IReadOnlyList loadBalancingRules, WritableSubResource outboundRule, IReadOnlyList outboundRules, IReadOnlyList inboundNatRules, NetworkProvisioningState? provisioningState, int? drainPeriodInSeconds, WritableSubResource virtualNetwork) : base(id, name, resourceType) + /// Backend address synchronous mode for the backend pool. + internal BackendAddressPoolData(ResourceIdentifier id, string name, ResourceType? resourceType, ETag? etag, AzureLocation? location, IList tunnelInterfaces, IList loadBalancerBackendAddresses, IReadOnlyList backendIPConfigurations, IReadOnlyList loadBalancingRules, WritableSubResource outboundRule, IReadOnlyList outboundRules, IReadOnlyList inboundNatRules, NetworkProvisioningState? provisioningState, int? drainPeriodInSeconds, WritableSubResource virtualNetwork, BackendAddressSyncMode? syncMode) : base(id, name, resourceType) { ETag = etag; Location = location; @@ -60,6 +61,7 @@ internal BackendAddressPoolData(ResourceIdentifier id, string name, ResourceType ProvisioningState = provisioningState; DrainPeriodInSeconds = drainPeriodInSeconds; VirtualNetwork = virtualNetwork; + SyncMode = syncMode; } /// A unique read-only string that changes whenever the resource is updated. @@ -103,5 +105,8 @@ public ResourceIdentifier VirtualNetworkId VirtualNetwork.Id = value; } } + + /// Backend address synchronous mode for the backend pool. + public BackendAddressSyncMode? SyncMode { get; set; } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerResource.cs index 373a8ed279ee..50276d1682c4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerResource.cs @@ -615,6 +615,68 @@ public virtual Response Update(NetworkTagsObject networkTa } } + /// + /// Migrate load balancer to IP Based + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/migrateToIpBased + /// + /// + /// Operation Id + /// LoadBalancers_MigrateToIpBased + /// + /// + /// + /// Parameters supplied to the migrateToIpBased Api. + /// The cancellation token to use. + public virtual async Task> MigrateToIPBasedAsync(MigrateLoadBalancerToIPBasedContent content = null, CancellationToken cancellationToken = default) + { + using var scope = _loadBalancerClientDiagnostics.CreateScope("LoadBalancerResource.MigrateToIPBased"); + scope.Start(); + try + { + var response = await _loadBalancerRestClient.MigrateToIPBasedAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Migrate load balancer to IP Based + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/migrateToIpBased + /// + /// + /// Operation Id + /// LoadBalancers_MigrateToIpBased + /// + /// + /// + /// Parameters supplied to the migrateToIpBased Api. + /// The cancellation token to use. + public virtual Response MigrateToIPBased(MigrateLoadBalancerToIPBasedContent content = null, CancellationToken cancellationToken = default) + { + using var scope = _loadBalancerClientDiagnostics.CreateScope("LoadBalancerResource.MigrateToIPBased"); + scope.Start(); + try + { + var response = _loadBalancerRestClient.MigrateToIPBased(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Gets associated load balancer network interfaces. /// diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayProbe.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayProbe.cs index 9b953eb98b3d..7add58bc5d20 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayProbe.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayProbe.cs @@ -34,7 +34,7 @@ public ApplicationGatewayProbe() /// Minimum number of servers that are always marked healthy. Default value is 0. /// Criterion for classifying a healthy probe response. /// The provisioning state of the probe resource. - /// Custom port which will be used for probing the backend servers. The valid value ranges from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Standard_v2 and WAF_v2 only. + /// Custom port which will be used for probing the backend servers. The valid value ranges from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Basic, Standard_v2 and WAF_v2 only. internal ApplicationGatewayProbe(ResourceIdentifier id, string name, ResourceType? resourceType, ETag? etag, ApplicationGatewayProtocol? protocol, string host, string path, int? intervalInSeconds, int? timeoutInSeconds, int? unhealthyThreshold, bool? pickHostNameFromBackendHttpSettings, bool? pickHostNameFromBackendSettings, int? minServers, ApplicationGatewayProbeHealthResponseMatch match, NetworkProvisioningState? provisioningState, int? port) : base(id, name, resourceType) { ETag = etag; @@ -76,7 +76,7 @@ internal ApplicationGatewayProbe(ResourceIdentifier id, string name, ResourceTyp public ApplicationGatewayProbeHealthResponseMatch Match { get; set; } /// The provisioning state of the probe resource. public NetworkProvisioningState? ProvisioningState { get; } - /// Custom port which will be used for probing the backend servers. The valid value ranges from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Standard_v2 and WAF_v2 only. + /// Custom port which will be used for probing the backend servers. The valid value ranges from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Basic, Standard_v2 and WAF_v2 only. public int? Port { get; set; } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewaySkuName.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewaySkuName.cs index 66b7dcfcb48d..a38c6391537f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewaySkuName.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewaySkuName.cs @@ -29,6 +29,7 @@ public ApplicationGatewaySkuName(string value) private const string WAFLargeValue = "WAF_Large"; private const string StandardV2Value = "Standard_v2"; private const string WAFV2Value = "WAF_v2"; + private const string BasicValue = "Basic"; /// Standard_Small. public static ApplicationGatewaySkuName StandardSmall { get; } = new ApplicationGatewaySkuName(StandardSmallValue); @@ -44,6 +45,8 @@ public ApplicationGatewaySkuName(string value) public static ApplicationGatewaySkuName StandardV2 { get; } = new ApplicationGatewaySkuName(StandardV2Value); /// WAF_v2. public static ApplicationGatewaySkuName WAFV2 { get; } = new ApplicationGatewaySkuName(WAFV2Value); + /// Basic. + public static ApplicationGatewaySkuName Basic { get; } = new ApplicationGatewaySkuName(BasicValue); /// Determines if two values are the same. public static bool operator ==(ApplicationGatewaySkuName left, ApplicationGatewaySkuName right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayTier.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayTier.cs index fcebae6bbb0e..e25f13ea50d7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayTier.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayTier.cs @@ -26,6 +26,7 @@ public ApplicationGatewayTier(string value) private const string WAFValue = "WAF"; private const string StandardV2Value = "Standard_v2"; private const string WAFV2Value = "WAF_v2"; + private const string BasicValue = "Basic"; /// Standard. public static ApplicationGatewayTier Standard { get; } = new ApplicationGatewayTier(StandardValue); @@ -35,6 +36,8 @@ public ApplicationGatewayTier(string value) public static ApplicationGatewayTier StandardV2 { get; } = new ApplicationGatewayTier(StandardV2Value); /// WAF_v2. public static ApplicationGatewayTier WAFV2 { get; } = new ApplicationGatewayTier(WAFV2Value); + /// Basic. + public static ApplicationGatewayTier Basic { get; } = new ApplicationGatewayTier(BasicValue); /// Determines if two values are the same. public static bool operator ==(ApplicationGatewayTier left, ApplicationGatewayTier right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BackendAddressPoolData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BackendAddressPoolData.Serialization.cs index 309820d05410..251aec4e541e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BackendAddressPoolData.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BackendAddressPoolData.Serialization.cs @@ -66,6 +66,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("virtualNetwork"u8); JsonSerializer.Serialize(writer, VirtualNetwork); } + if (Optional.IsDefined(SyncMode)) + { + writer.WritePropertyName("syncMode"u8); + writer.WriteStringValue(SyncMode.Value.ToString()); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -91,6 +96,7 @@ internal static BackendAddressPoolData DeserializeBackendAddressPoolData(JsonEle Optional provisioningState = default; Optional drainPeriodInSeconds = default; Optional virtualNetwork = default; + Optional syncMode = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("etag"u8)) @@ -263,11 +269,20 @@ internal static BackendAddressPoolData DeserializeBackendAddressPoolData(JsonEle virtualNetwork = JsonSerializer.Deserialize(property0.Value.GetRawText()); continue; } + if (property0.NameEquals("syncMode"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + syncMode = new BackendAddressSyncMode(property0.Value.GetString()); + continue; + } } continue; } } - return new BackendAddressPoolData(id.Value, name.Value, Optional.ToNullable(type), Optional.ToNullable(etag), Optional.ToNullable(location), Optional.ToList(tunnelInterfaces), Optional.ToList(loadBalancerBackendAddresses), Optional.ToList(backendIPConfigurations), Optional.ToList(loadBalancingRules), outboundRule, Optional.ToList(outboundRules), Optional.ToList(inboundNatRules), Optional.ToNullable(provisioningState), Optional.ToNullable(drainPeriodInSeconds), virtualNetwork); + return new BackendAddressPoolData(id.Value, name.Value, Optional.ToNullable(type), Optional.ToNullable(etag), Optional.ToNullable(location), Optional.ToList(tunnelInterfaces), Optional.ToList(loadBalancerBackendAddresses), Optional.ToList(backendIPConfigurations), Optional.ToList(loadBalancingRules), outboundRule, Optional.ToList(outboundRules), Optional.ToList(inboundNatRules), Optional.ToNullable(provisioningState), Optional.ToNullable(drainPeriodInSeconds), virtualNetwork, Optional.ToNullable(syncMode)); } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BackendAddressSyncMode.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BackendAddressSyncMode.cs new file mode 100644 index 000000000000..22e0968862e9 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BackendAddressSyncMode.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Network.Models +{ + /// Backend address synchronous mode for the backend pool. + public readonly partial struct BackendAddressSyncMode : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public BackendAddressSyncMode(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AutomaticValue = "Automatic"; + private const string ManualValue = "Manual"; + + /// Automatic. + public static BackendAddressSyncMode Automatic { get; } = new BackendAddressSyncMode(AutomaticValue); + /// Manual. + public static BackendAddressSyncMode Manual { get; } = new BackendAddressSyncMode(ManualValue); + /// Determines if two values are the same. + public static bool operator ==(BackendAddressSyncMode left, BackendAddressSyncMode right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(BackendAddressSyncMode left, BackendAddressSyncMode right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator BackendAddressSyncMode(string value) => new BackendAddressSyncMode(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is BackendAddressSyncMode other && Equals(other); + /// + public bool Equals(BackendAddressSyncMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedContent.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedContent.Serialization.cs new file mode 100644 index 000000000000..5a3eca7b6b2c --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedContent.Serialization.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class MigrateLoadBalancerToIPBasedContent : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Pools)) + { + writer.WritePropertyName("pools"u8); + writer.WriteStartArray(); + foreach (var item in Pools) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedContent.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedContent.cs new file mode 100644 index 000000000000..6fe2acf04fa5 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedContent.cs @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + /// The request for a migrateToIpBased API. + public partial class MigrateLoadBalancerToIPBasedContent + { + /// Initializes a new instance of MigrateLoadBalancerToIPBasedContent. + public MigrateLoadBalancerToIPBasedContent() + { + Pools = new ChangeTrackingList(); + } + + /// A list of pool names that should be migrated from Nic based to IP based pool. + public IList Pools { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedResult.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedResult.Serialization.cs new file mode 100644 index 000000000000..f9ea453b1891 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedResult.Serialization.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class MigrateLoadBalancerToIPBasedResult + { + internal static MigrateLoadBalancerToIPBasedResult DeserializeMigrateLoadBalancerToIPBasedResult(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> migratedPools = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("migratedPools"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + migratedPools = array; + continue; + } + } + return new MigrateLoadBalancerToIPBasedResult(Optional.ToList(migratedPools)); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedResult.cs new file mode 100644 index 000000000000..d5496f39523f --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/MigrateLoadBalancerToIPBasedResult.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + /// The response for a migrateToIpBased API. + public partial class MigrateLoadBalancerToIPBasedResult + { + /// Initializes a new instance of MigrateLoadBalancerToIPBasedResult. + internal MigrateLoadBalancerToIPBasedResult() + { + MigratedPools = new ChangeTrackingList(); + } + + /// Initializes a new instance of MigrateLoadBalancerToIPBasedResult. + /// A list of pools migrated from Nic based to IP based pool. + internal MigrateLoadBalancerToIPBasedResult(IReadOnlyList migratedPools) + { + MigratedPools = migratedPools; + } + + /// A list of pools migrated from Nic based to IP based pool. + public IReadOnlyList MigratedPools { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRuleCollectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRuleCollectionsRestOperations.cs index 178950222363..8dad177117c0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRuleCollectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRuleCollectionsRestOperations.cs @@ -33,7 +33,7 @@ public AdminRuleCollectionsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRulesRestOperations.cs index 30b47807ee14..b1100c85f117 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRulesRestOperations.cs @@ -33,7 +33,7 @@ public AdminRulesRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs index 30e3287bfff0..04f85038dc19 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public ApplicationGatewayPrivateEndpointConnectionsRestOperations(HttpPipeline p { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateLinkResourcesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateLinkResourcesRestOperations.cs index afaf8c87a760..14a7ab678503 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateLinkResourcesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateLinkResourcesRestOperations.cs @@ -33,7 +33,7 @@ public ApplicationGatewayPrivateLinkResourcesRestOperations(HttpPipeline pipelin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsDefaultRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsDefaultRestOperations.cs index 471280ceb9f8..44506593e4c9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsDefaultRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsDefaultRestOperations.cs @@ -32,7 +32,7 @@ public ApplicationGatewayWafDynamicManifestsDefaultRestOperations(HttpPipeline p { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsRestOperations.cs index dbcd78be2314..0cd11622d9ea 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsRestOperations.cs @@ -33,7 +33,7 @@ public ApplicationGatewayWafDynamicManifestsRestOperations(HttpPipeline pipeline { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewaysRestOperations.cs index e96f2a79d723..041f85a040d9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewaysRestOperations.cs @@ -34,7 +34,7 @@ public ApplicationGatewaysRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationSecurityGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationSecurityGroupsRestOperations.cs index 75ebd5bb0d08..72b4c29226d6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationSecurityGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationSecurityGroupsRestOperations.cs @@ -33,7 +33,7 @@ public ApplicationSecurityGroupsRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableDelegationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableDelegationsRestOperations.cs index 50dd7e40c394..40fc37bc0dec 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableDelegationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableDelegationsRestOperations.cs @@ -33,7 +33,7 @@ public AvailableDelegationsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableEndpointServicesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableEndpointServicesRestOperations.cs index c471bb719907..3a03240c2454 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableEndpointServicesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableEndpointServicesRestOperations.cs @@ -33,7 +33,7 @@ public AvailableEndpointServicesRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailablePrivateEndpointTypesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailablePrivateEndpointTypesRestOperations.cs index 6daa8e28871f..e0678bfe285a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailablePrivateEndpointTypesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailablePrivateEndpointTypesRestOperations.cs @@ -33,7 +33,7 @@ public AvailablePrivateEndpointTypesRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableResourceGroupDelegationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableResourceGroupDelegationsRestOperations.cs index b1ad4894d428..8bd977353fd1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableResourceGroupDelegationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableResourceGroupDelegationsRestOperations.cs @@ -33,7 +33,7 @@ public AvailableResourceGroupDelegationsRestOperations(HttpPipeline pipeline, st { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableServiceAliasesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableServiceAliasesRestOperations.cs index f4d0f9839b94..e744704dc9db 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableServiceAliasesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableServiceAliasesRestOperations.cs @@ -33,7 +33,7 @@ public AvailableServiceAliasesRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallFqdnTagsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallFqdnTagsRestOperations.cs index e3259d87b159..a7600d6902fe 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallFqdnTagsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallFqdnTagsRestOperations.cs @@ -33,7 +33,7 @@ public AzureFirewallFqdnTagsRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallsRestOperations.cs index b9f13cd0de8d..8376a4ba6821 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallsRestOperations.cs @@ -33,7 +33,7 @@ public AzureFirewallsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BastionHostsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BastionHostsRestOperations.cs index cf2c6da0199d..c83b53dff37e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BastionHostsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BastionHostsRestOperations.cs @@ -33,7 +33,7 @@ public BastionHostsRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BgpServiceCommunitiesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BgpServiceCommunitiesRestOperations.cs index 9fc3038650dd..ebecda844e48 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BgpServiceCommunitiesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BgpServiceCommunitiesRestOperations.cs @@ -33,7 +33,7 @@ public BgpServiceCommunitiesRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConfigurationPolicyGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConfigurationPolicyGroupsRestOperations.cs index 15978be6c3b0..87317ec605c1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConfigurationPolicyGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConfigurationPolicyGroupsRestOperations.cs @@ -33,7 +33,7 @@ public ConfigurationPolicyGroupsRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectionMonitorsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectionMonitorsRestOperations.cs index 2f72c2ca3703..7dce23d5331c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectionMonitorsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectionMonitorsRestOperations.cs @@ -33,7 +33,7 @@ public ConnectionMonitorsRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectivityConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectivityConfigurationsRestOperations.cs index a7ffac254f28..aea4ceb23bcd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectivityConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectivityConfigurationsRestOperations.cs @@ -33,7 +33,7 @@ public ConnectivityConfigurationsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/CustomIPPrefixesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/CustomIPPrefixesRestOperations.cs index be2a66cf2760..88d6bbf5ab1c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/CustomIPPrefixesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/CustomIPPrefixesRestOperations.cs @@ -33,7 +33,7 @@ public CustomIPPrefixesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosCustomPoliciesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosCustomPoliciesRestOperations.cs index e35ad008436d..76f335d2ace9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosCustomPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosCustomPoliciesRestOperations.cs @@ -33,7 +33,7 @@ public DdosCustomPoliciesRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosProtectionPlansRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosProtectionPlansRestOperations.cs index b4e08669adc7..1f903b495ca1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosProtectionPlansRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosProtectionPlansRestOperations.cs @@ -33,7 +33,7 @@ public DdosProtectionPlansRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DefaultSecurityRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DefaultSecurityRulesRestOperations.cs index 4293c826ae58..1dcd7c46ee10 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DefaultSecurityRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DefaultSecurityRulesRestOperations.cs @@ -33,7 +33,7 @@ public DefaultSecurityRulesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DscpConfigurationRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DscpConfigurationRestOperations.cs index 0a137f49ad7b..ae482be8a303 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DscpConfigurationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DscpConfigurationRestOperations.cs @@ -33,7 +33,7 @@ public DscpConfigurationRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitAuthorizationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitAuthorizationsRestOperations.cs index f9f442e755bc..241fe9dc4a20 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitAuthorizationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitAuthorizationsRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRouteCircuitAuthorizationsRestOperations(HttpPipeline pipeline, st { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitConnectionsRestOperations.cs index fde5d1aa20b9..c8dc87e01807 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRouteCircuitConnectionsRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitPeeringsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitPeeringsRestOperations.cs index a4a7eb5a8292..089f626da36c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitPeeringsRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRouteCircuitPeeringsRestOperations(HttpPipeline pipeline, string a { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitsRestOperations.cs index 0ffd5c233b37..27434cdd6b72 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitsRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRouteCircuitsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteConnectionsRestOperations.cs index cf05a36f04a7..6f61a2eae283 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRouteConnectionsRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionPeeringsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionPeeringsRestOperations.cs index 2f96a5ee8d02..06d187d1713b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionPeeringsRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRouteCrossConnectionPeeringsRestOperations(HttpPipeline pipeline, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionsRestOperations.cs index 8b18376ab145..f0f6236258a7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRouteCrossConnectionsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteGatewaysRestOperations.cs index a98109074d59..450c43681f65 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteGatewaysRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRouteGatewaysRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteLinksRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteLinksRestOperations.cs index 6092d9677f60..3d7d731d4f26 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteLinksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteLinksRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRouteLinksRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortAuthorizationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortAuthorizationsRestOperations.cs index 62f31570c2e2..adca83a2bf4b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortAuthorizationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortAuthorizationsRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRoutePortAuthorizationsRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsLocationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsLocationsRestOperations.cs index 5e6807417f98..478639666dfb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsLocationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsLocationsRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRoutePortsLocationsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsRestOperations.cs index d625b830800f..64fd16b51212 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRoutePortsRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteProviderPortsLocationRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteProviderPortsLocationRestOperations.cs index 54d8392ae179..a9a8699ac456 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteProviderPortsLocationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteProviderPortsLocationRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRouteProviderPortsLocationRestOperations(HttpPipeline pipeline, st { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteServiceProvidersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteServiceProvidersRestOperations.cs index 52d28b86e3d3..21db7e6a3aef 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteServiceProvidersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteServiceProvidersRestOperations.cs @@ -33,7 +33,7 @@ public ExpressRouteServiceProvidersRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPoliciesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPoliciesRestOperations.cs index cc3ab3e7cc1f..303279734aa4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPoliciesRestOperations.cs @@ -33,7 +33,7 @@ public FirewallPoliciesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesFilterValuesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesFilterValuesRestOperations.cs index af0d56dd87d0..b6b333175e18 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesFilterValuesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesFilterValuesRestOperations.cs @@ -33,7 +33,7 @@ public FirewallPolicyIdpsSignaturesFilterValuesRestOperations(HttpPipeline pipel { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesOverridesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesOverridesRestOperations.cs index a4fc668bdac5..470492ea28b2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesOverridesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesOverridesRestOperations.cs @@ -33,7 +33,7 @@ public FirewallPolicyIdpsSignaturesOverridesRestOperations(HttpPipeline pipeline { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesRestOperations.cs index 32cf6eebf5e6..a1602f512f4c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesRestOperations.cs @@ -33,7 +33,7 @@ public FirewallPolicyIdpsSignaturesRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupsRestOperations.cs index e6f29a859a49..cb6dd10b79b0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupsRestOperations.cs @@ -33,7 +33,7 @@ public FirewallPolicyRuleCollectionGroupsRestOperations(HttpPipeline pipeline, s { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FlowLogsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FlowLogsRestOperations.cs index 49333207d9cb..d9ceb18fe2c4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FlowLogsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FlowLogsRestOperations.cs @@ -33,7 +33,7 @@ public FlowLogsRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubRouteTablesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubRouteTablesRestOperations.cs index 8711b5bc38a4..f552f17455b6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubRouteTablesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubRouteTablesRestOperations.cs @@ -33,7 +33,7 @@ public HubRouteTablesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubVirtualNetworkConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubVirtualNetworkConnectionsRestOperations.cs index 0a42dbc58cac..46313ec523df 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubVirtualNetworkConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubVirtualNetworkConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public HubVirtualNetworkConnectionsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundNatRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundNatRulesRestOperations.cs index be1074ceaf71..c59b674b48c9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundNatRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundNatRulesRestOperations.cs @@ -33,7 +33,7 @@ public InboundNatRulesRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundSecurityRuleRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundSecurityRuleRestOperations.cs index 42a73da2166e..6be4905840e9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundSecurityRuleRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundSecurityRuleRestOperations.cs @@ -32,7 +32,7 @@ public InboundSecurityRuleRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpAllocationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpAllocationsRestOperations.cs index 055cab3db583..6000749907b5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpAllocationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpAllocationsRestOperations.cs @@ -33,7 +33,7 @@ public IpAllocationsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpGroupsRestOperations.cs index 189e6465e31b..6e32cc0c57d1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpGroupsRestOperations.cs @@ -33,7 +33,7 @@ public IpGroupsRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs index cd520470e9b9..c1c5ec29918d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs @@ -33,7 +33,7 @@ public LoadBalancerBackendAddressPoolsRestOperations(HttpPipeline pipeline, stri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerFrontendIPConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerFrontendIPConfigurationsRestOperations.cs index d51f4b55267a..ef84b4a2cc76 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerFrontendIPConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerFrontendIPConfigurationsRestOperations.cs @@ -33,7 +33,7 @@ public LoadBalancerFrontendIPConfigurationsRestOperations(HttpPipeline pipeline, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerLoadBalancingRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerLoadBalancingRulesRestOperations.cs index 0d077ca0ecca..1ff408736b96 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerLoadBalancingRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerLoadBalancingRulesRestOperations.cs @@ -33,7 +33,7 @@ public LoadBalancerLoadBalancingRulesRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerNetworkInterfacesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerNetworkInterfacesRestOperations.cs index 676b1475f40a..7c9516527290 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerNetworkInterfacesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerNetworkInterfacesRestOperations.cs @@ -33,7 +33,7 @@ public LoadBalancerNetworkInterfacesRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerOutboundRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerOutboundRulesRestOperations.cs index b26a3f1aa3b7..f384a5913892 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerOutboundRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerOutboundRulesRestOperations.cs @@ -33,7 +33,7 @@ public LoadBalancerOutboundRulesRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerProbesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerProbesRestOperations.cs index 69f92c1df0b4..d92213529d32 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerProbesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerProbesRestOperations.cs @@ -33,7 +33,7 @@ public LoadBalancerProbesRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancersRestOperations.cs index d7c53fce3125..de70a7b55dc3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancersRestOperations.cs @@ -33,7 +33,7 @@ public LoadBalancersRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -657,6 +657,94 @@ public Response ListInboundNatRulePortMappings(string subscriptionId, string gro } } + internal HttpMessage CreateMigrateToIPBasedRequest(string subscriptionId, string groupName, string loadBalancerName, MigrateLoadBalancerToIPBasedContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendPath("/migrateToIpBased", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + if (content != null) + { + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; + } + _userAgent.Apply(message); + return message; + } + + /// Migrate load balancer to IP Based. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the load balancer. + /// Parameters supplied to the migrateToIpBased Api. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> MigrateToIPBasedAsync(string subscriptionId, string groupName, string loadBalancerName, MigrateLoadBalancerToIPBasedContent content = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); + Argument.AssertNotNullOrEmpty(loadBalancerName, nameof(loadBalancerName)); + + using var message = CreateMigrateToIPBasedRequest(subscriptionId, groupName, loadBalancerName, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + MigrateLoadBalancerToIPBasedResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = MigrateLoadBalancerToIPBasedResult.DeserializeMigrateLoadBalancerToIPBasedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Migrate load balancer to IP Based. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the load balancer. + /// Parameters supplied to the migrateToIpBased Api. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response MigrateToIPBased(string subscriptionId, string groupName, string loadBalancerName, MigrateLoadBalancerToIPBasedContent content = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); + Argument.AssertNotNullOrEmpty(loadBalancerName, nameof(loadBalancerName)); + + using var message = CreateMigrateToIPBasedRequest(subscriptionId, groupName, loadBalancerName, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + MigrateLoadBalancerToIPBasedResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = MigrateLoadBalancerToIPBasedResult.DeserializeMigrateLoadBalancerToIPBasedResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + internal HttpMessage CreateListAllNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LocalNetworkGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LocalNetworkGatewaysRestOperations.cs index 8de1c2e15b33..04a7c2c7fe93 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LocalNetworkGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LocalNetworkGatewaysRestOperations.cs @@ -33,7 +33,7 @@ public LocalNetworkGatewaysRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ManagementGroupNetworkManagerConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ManagementGroupNetworkManagerConnectionsRestOperations.cs index d99dfb8dc71f..5e445f2b9372 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ManagementGroupNetworkManagerConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ManagementGroupNetworkManagerConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public ManagementGroupNetworkManagerConnectionsRestOperations(HttpPipeline pipel { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatGatewaysRestOperations.cs index 52a0a2ccab47..d8e4ed51b18a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatGatewaysRestOperations.cs @@ -33,7 +33,7 @@ public NatGatewaysRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatRulesRestOperations.cs index f4cd39b5fdb1..a9c4494562b8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatRulesRestOperations.cs @@ -33,7 +33,7 @@ public NatRulesRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkGroupsRestOperations.cs index 4c97f1e5b5e1..68800f5565a2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkGroupsRestOperations.cs @@ -33,7 +33,7 @@ public NetworkGroupsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceIPConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceIPConfigurationsRestOperations.cs index cac5c6d9c4cc..0d7ba39de387 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceIPConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceIPConfigurationsRestOperations.cs @@ -33,7 +33,7 @@ public NetworkInterfaceIPConfigurationsRestOperations(HttpPipeline pipeline, str { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceLoadBalancersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceLoadBalancersRestOperations.cs index face4a033a38..493faab30d12 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceLoadBalancersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceLoadBalancersRestOperations.cs @@ -33,7 +33,7 @@ public NetworkInterfaceLoadBalancersRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceTapConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceTapConfigurationsRestOperations.cs index f409260a522b..dbfb6418b2e7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceTapConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceTapConfigurationsRestOperations.cs @@ -33,7 +33,7 @@ public NetworkInterfaceTapConfigurationsRestOperations(HttpPipeline pipeline, st { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs index 5423e3ed470f..1be8ab195cab 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs @@ -33,7 +33,7 @@ public NetworkInterfacesRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagementRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagementRestOperations.cs index 14f5048f3d87..e582bda2c7c9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagementRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagementRestOperations.cs @@ -33,7 +33,7 @@ public NetworkManagementRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerCommitsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerCommitsRestOperations.cs index f1d009e32885..3bb197e1bfe8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerCommitsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerCommitsRestOperations.cs @@ -32,7 +32,7 @@ public NetworkManagerCommitsRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerDeploymentStatusRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerDeploymentStatusRestOperations.cs index fec7bea79ed5..ef402d627eae 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerDeploymentStatusRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerDeploymentStatusRestOperations.cs @@ -33,7 +33,7 @@ public NetworkManagerDeploymentStatusRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagersRestOperations.cs index 808a20d35058..f5c56ad4b627 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagersRestOperations.cs @@ -33,7 +33,7 @@ public NetworkManagersRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkProfilesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkProfilesRestOperations.cs index 441977b7cd18..c4bbabf269f7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkProfilesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkProfilesRestOperations.cs @@ -33,7 +33,7 @@ public NetworkProfilesRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkSecurityGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkSecurityGroupsRestOperations.cs index ccf49b84d1bd..bf750e44d024 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkSecurityGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkSecurityGroupsRestOperations.cs @@ -33,7 +33,7 @@ public NetworkSecurityGroupsRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualApplianceConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualApplianceConnectionsRestOperations.cs index 1c46eb21524b..6d2d576dd6a3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualApplianceConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualApplianceConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public NetworkVirtualApplianceConnectionsRestOperations(HttpPipeline pipeline, s { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs index 652a3fc3e54b..761343edff79 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs @@ -33,7 +33,7 @@ public NetworkVirtualAppliancesRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkWatchersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkWatchersRestOperations.cs index 7c1f6f969aee..ab36ae9d4128 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkWatchersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkWatchersRestOperations.cs @@ -33,7 +33,7 @@ public NetworkWatchersRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/P2SVpnGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/P2SVpnGatewaysRestOperations.cs index e15f29063f10..57bb4abd68bf 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/P2SVpnGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/P2SVpnGatewaysRestOperations.cs @@ -33,7 +33,7 @@ public P2SVpnGatewaysRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PacketCapturesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PacketCapturesRestOperations.cs index 89589bbff823..f21b21605f0c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PacketCapturesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PacketCapturesRestOperations.cs @@ -33,7 +33,7 @@ public PacketCapturesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PeerExpressRouteCircuitConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PeerExpressRouteCircuitConnectionsRestOperations.cs index bcafc9f70c7f..fd07eb3ec7ed 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PeerExpressRouteCircuitConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PeerExpressRouteCircuitConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public PeerExpressRouteCircuitConnectionsRestOperations(HttpPipeline pipeline, s { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateDnsZoneGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateDnsZoneGroupsRestOperations.cs index a07d82c9a966..217df632ef3a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateDnsZoneGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateDnsZoneGroupsRestOperations.cs @@ -33,7 +33,7 @@ public PrivateDnsZoneGroupsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs index c598cc4cd670..dec328d12a8d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs @@ -33,7 +33,7 @@ public PrivateEndpointsRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateLinkServicesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateLinkServicesRestOperations.cs index cdfe30945fc6..406c39327c5f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateLinkServicesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateLinkServicesRestOperations.cs @@ -33,7 +33,7 @@ public PrivateLinkServicesRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPAddressesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPAddressesRestOperations.cs index cbc7ce3d750f..43d6700a63b2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPAddressesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPAddressesRestOperations.cs @@ -33,7 +33,7 @@ public PublicIPAddressesRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPPrefixesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPPrefixesRestOperations.cs index 4f87ff5cf4aa..02b2f67b6aed 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPPrefixesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPPrefixesRestOperations.cs @@ -33,7 +33,7 @@ public PublicIPPrefixesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ResourceNavigationLinksRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ResourceNavigationLinksRestOperations.cs index f8bad81a1925..edaaae271f26 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ResourceNavigationLinksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ResourceNavigationLinksRestOperations.cs @@ -33,7 +33,7 @@ public ResourceNavigationLinksRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFilterRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFilterRulesRestOperations.cs index fefda83464d6..e4d087b1f74d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFilterRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFilterRulesRestOperations.cs @@ -33,7 +33,7 @@ public RouteFilterRulesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFiltersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFiltersRestOperations.cs index a4f9cdc16592..91b67c14930c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFiltersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFiltersRestOperations.cs @@ -33,7 +33,7 @@ public RouteFiltersRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteMapsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteMapsRestOperations.cs index e0a6a621e8bb..6e675c2e1fb3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteMapsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteMapsRestOperations.cs @@ -33,7 +33,7 @@ public RouteMapsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteTablesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteTablesRestOperations.cs index 2ef7dd5fee3b..268a11350208 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteTablesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteTablesRestOperations.cs @@ -33,7 +33,7 @@ public RouteTablesRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutesRestOperations.cs index 90df1a02fc4c..e38226a1f519 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutesRestOperations.cs @@ -33,7 +33,7 @@ public RoutesRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingIntentRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingIntentRestOperations.cs index 6165e9983637..979a05118882 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingIntentRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingIntentRestOperations.cs @@ -33,7 +33,7 @@ public RoutingIntentRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ScopeConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ScopeConnectionsRestOperations.cs index 4434938e27a1..968e8090b1b8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ScopeConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ScopeConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public ScopeConnectionsRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityAdminConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityAdminConfigurationsRestOperations.cs index 3e0256bd747d..5ca5a80daf3c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityAdminConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityAdminConfigurationsRestOperations.cs @@ -33,7 +33,7 @@ public SecurityAdminConfigurationsRestOperations(HttpPipeline pipeline, string a { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityPartnerProvidersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityPartnerProvidersRestOperations.cs index 4cb4e01bf438..2e4ff37d1cd1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityPartnerProvidersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityPartnerProvidersRestOperations.cs @@ -33,7 +33,7 @@ public SecurityPartnerProvidersRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityRulesRestOperations.cs index aab31809c145..dd9fe066dfec 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityRulesRestOperations.cs @@ -33,7 +33,7 @@ public SecurityRulesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceAssociationLinksRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceAssociationLinksRestOperations.cs index 30438df36720..f769089fd0d3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceAssociationLinksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceAssociationLinksRestOperations.cs @@ -33,7 +33,7 @@ public ServiceAssociationLinksRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPoliciesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPoliciesRestOperations.cs index 3cac872b03ea..678af180e7bf 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPoliciesRestOperations.cs @@ -33,7 +33,7 @@ public ServiceEndpointPoliciesRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPolicyDefinitionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPolicyDefinitionsRestOperations.cs index 29d476a1c8cc..8efe71deac44 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPolicyDefinitionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPolicyDefinitionsRestOperations.cs @@ -33,7 +33,7 @@ public ServiceEndpointPolicyDefinitionsRestOperations(HttpPipeline pipeline, str { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagInformationRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagInformationRestOperations.cs index 7fcd87c1623a..aeed3d8695f3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagInformationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagInformationRestOperations.cs @@ -33,7 +33,7 @@ public ServiceTagInformationRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagsRestOperations.cs index ea9c5b3035d4..a99bebd58861 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagsRestOperations.cs @@ -33,7 +33,7 @@ public ServiceTagsRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/StaticMembersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/StaticMembersRestOperations.cs index 9e47d466dc4b..49bb822299e8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/StaticMembersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/StaticMembersRestOperations.cs @@ -33,7 +33,7 @@ public StaticMembersRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubnetsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubnetsRestOperations.cs index 7f922fd2999f..b1c237509912 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubnetsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubnetsRestOperations.cs @@ -33,7 +33,7 @@ public SubnetsRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubscriptionNetworkManagerConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubscriptionNetworkManagerConnectionsRestOperations.cs index e5bcf83dee02..5c7f7a493282 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubscriptionNetworkManagerConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubscriptionNetworkManagerConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public SubscriptionNetworkManagerConnectionsRestOperations(HttpPipeline pipeline { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/UsagesRestOperations.cs index bfd2ce56b782..19c91c0899fc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/UsagesRestOperations.cs @@ -33,7 +33,7 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VipSwapRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VipSwapRestOperations.cs index a84f02836cdd..8f8408faaebb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VipSwapRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VipSwapRestOperations.cs @@ -33,7 +33,7 @@ public VipSwapRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSitesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSitesRestOperations.cs index 42e539abc141..25d39d48a291 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSitesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSitesRestOperations.cs @@ -33,7 +33,7 @@ public VirtualApplianceSitesRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSkusRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSkusRestOperations.cs index eeb4d27c277d..e376e1b7067f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSkusRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSkusRestOperations.cs @@ -33,7 +33,7 @@ public VirtualApplianceSkusRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionRestOperations.cs index 3e27ad97946f..5a28b89c38b0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionRestOperations.cs @@ -32,7 +32,7 @@ public VirtualHubBgpConnectionRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionsRestOperations.cs index 8206d5553714..6c297562425e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualHubBgpConnectionsRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubIpConfigurationRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubIpConfigurationRestOperations.cs index 29edae0966b7..4ecbdf6cb548 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubIpConfigurationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubIpConfigurationRestOperations.cs @@ -33,7 +33,7 @@ public VirtualHubIpConfigurationRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubRouteTableV2SRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubRouteTableV2SRestOperations.cs index c058e384ca06..1349ea814adb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubRouteTableV2SRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubRouteTableV2SRestOperations.cs @@ -33,7 +33,7 @@ public VirtualHubRouteTableV2SRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubsRestOperations.cs index 4ed4fb997c32..cb8e94689f7c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualHubsRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs index 7c4a56f87b47..050158ea5a03 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualNetworkGatewayConnectionsRestOperations(HttpPipeline pipeline, str { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayNatRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayNatRulesRestOperations.cs index a1bdb5d606e8..14e87a4cf149 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayNatRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayNatRulesRestOperations.cs @@ -33,7 +33,7 @@ public VirtualNetworkGatewayNatRulesRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewaysRestOperations.cs index e008515836b4..b58f3f245f4b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewaysRestOperations.cs @@ -33,7 +33,7 @@ public VirtualNetworkGatewaysRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkPeeringsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkPeeringsRestOperations.cs index d4727a82742e..010a75d7fe4e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkPeeringsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualNetworkPeeringsRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkTapsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkTapsRestOperations.cs index 07d344041304..80d034944790 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkTapsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkTapsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualNetworkTapsRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworksRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworksRestOperations.cs index 4b5cc704a662..49f2563c4e1e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworksRestOperations.cs @@ -33,7 +33,7 @@ public VirtualNetworksRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRouterPeeringsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRouterPeeringsRestOperations.cs index dc50505735d3..5425c372c386 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRouterPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRouterPeeringsRestOperations.cs @@ -33,7 +33,7 @@ public VirtualRouterPeeringsRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRoutersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRoutersRestOperations.cs index d69b5f8ce85a..747f8a01060f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRoutersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRoutersRestOperations.cs @@ -33,7 +33,7 @@ public VirtualRoutersRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualWansRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualWansRestOperations.cs index c5f3271caa70..d47c27ab55d0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualWansRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualWansRestOperations.cs @@ -33,7 +33,7 @@ public VirtualWansRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnConnectionsRestOperations.cs index 7bd47d9a6b58..8b7b82048796 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public VpnConnectionsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnGatewaysRestOperations.cs index 91058e20671c..7c98cd16f654 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnGatewaysRestOperations.cs @@ -33,7 +33,7 @@ public VpnGatewaysRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnLinkConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnLinkConnectionsRestOperations.cs index 125e1beb9ec1..b1b54efa07e4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnLinkConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnLinkConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public VpnLinkConnectionsRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsAssociatedWithVirtualWanRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsAssociatedWithVirtualWanRestOperations.cs index 46832c7db6ef..43cfc3a140dc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsAssociatedWithVirtualWanRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsAssociatedWithVirtualWanRestOperations.cs @@ -31,7 +31,7 @@ public VpnServerConfigurationsAssociatedWithVirtualWanRestOperations(HttpPipelin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsRestOperations.cs index b4a6e5f44a93..423cba3ba936 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsRestOperations.cs @@ -33,7 +33,7 @@ public VpnServerConfigurationsRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinkConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinkConnectionsRestOperations.cs index 3294b7a7b902..ead5f30881e3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinkConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinkConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public VpnSiteLinkConnectionsRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinksRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinksRestOperations.cs index f9af227cb960..66ad273710b9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinksRestOperations.cs @@ -33,7 +33,7 @@ public VpnSiteLinksRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesConfigurationRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesConfigurationRestOperations.cs index fa777a258b8f..202471a02e31 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesConfigurationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesConfigurationRestOperations.cs @@ -32,7 +32,7 @@ public VpnSitesConfigurationRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesRestOperations.cs index 1861d880b0bd..fe70ba71cb76 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesRestOperations.cs @@ -33,7 +33,7 @@ public VpnSitesRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebApplicationFirewallPoliciesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebApplicationFirewallPoliciesRestOperations.cs index a74563d7b757..9e567a4c226f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebApplicationFirewallPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebApplicationFirewallPoliciesRestOperations.cs @@ -33,7 +33,7 @@ public WebApplicationFirewallPoliciesRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebCategoriesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebCategoriesRestOperations.cs index 6ec9ee0ed4a9..45570884d169 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebCategoriesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebCategoriesRestOperations.cs @@ -33,7 +33,7 @@ public WebCategoriesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-02-01"; + _apiVersion = apiVersion ?? "2023-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWanResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWanResource.cs index d0563fe06642..cc2bdcdd2234 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWanResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWanResource.cs @@ -379,11 +379,11 @@ public virtual Response SupportedSecurityProviders( /// Parameters supplied to the generate VirtualWan VPN profile generation operation. /// The cancellation token to use. /// is null. - public virtual async Task> GeneratevirtualwanvpnserverconfigurationvpnprofileAsync(WaitUntil waitUntil, VirtualWanVpnProfileContent content, CancellationToken cancellationToken = default) + public virtual async Task> GenerateVirtualWanVpnServerConfigurationVpnProfileAsync(WaitUntil waitUntil, VirtualWanVpnProfileContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _expressRouteProviderPortClientDiagnostics.CreateScope("VirtualWanResource.Generatevirtualwanvpnserverconfigurationvpnprofile"); + using var scope = _expressRouteProviderPortClientDiagnostics.CreateScope("VirtualWanResource.GenerateVirtualWanVpnServerConfigurationVpnProfile"); scope.Start(); try { @@ -417,11 +417,11 @@ public virtual async Task> Generatevirtualwanvp /// Parameters supplied to the generate VirtualWan VPN profile generation operation. /// The cancellation token to use. /// is null. - public virtual ArmOperation Generatevirtualwanvpnserverconfigurationvpnprofile(WaitUntil waitUntil, VirtualWanVpnProfileContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation GenerateVirtualWanVpnServerConfigurationVpnProfile(WaitUntil waitUntil, VirtualWanVpnProfileContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _expressRouteProviderPortClientDiagnostics.CreateScope("VirtualWanResource.Generatevirtualwanvpnserverconfigurationvpnprofile"); + using var scope = _expressRouteProviderPortClientDiagnostics.CreateScope("VirtualWanResource.GenerateVirtualWanVpnServerConfigurationVpnProfile"); scope.Start(); try { diff --git a/sdk/network/Azure.ResourceManager.Network/src/autorest.md b/sdk/network/Azure.ResourceManager.Network/src/autorest.md index 22ef1c179961..aadcd1c25979 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/autorest.md +++ b/sdk/network/Azure.ResourceManager.Network/src/autorest.md @@ -6,8 +6,8 @@ Run `dotnet build /t:GenerateCode` to generate code. azure-arm: true library-name: Network namespace: Azure.ResourceManager.Network -require: https://github.com/Azure/azure-rest-api-specs/blob/0b4a0a3f4bfc198df608f373784505e42e248c2c/specification/network/resource-manager/readme.md -# tag: package-2023-02 +require: https://github.com/Azure/azure-rest-api-specs/blob/f5cb37608399dd19760b9ef985a707294e32fbda/specification/network/resource-manager/readme.md +# tag: package-2023-04 output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true @@ -175,6 +175,8 @@ rename-mapping: VpnPacketCaptureStartParameters: VpnPacketCaptureStartContent ExpressRouteGateway.properties.expressRouteConnections: ExpressRouteConnectionList AdminState: ExpressRouteGatewayAdminState + SyncMode: BackendAddressSyncMode + MigratedPools: MigrateLoadBalancerToIPBasedResult keep-plural-resource-data: - PolicySignaturesOverridesForIdps @@ -266,6 +268,7 @@ override-operation-name: VirtualHubs_GetEffectiveVirtualHubRoutes: GetVirtualHubEffectiveRoutes VirtualHubs_GetOutboundRoutes: GetVirtualHubOutboundRoutes VirtualHubs_GetInboundRoutes: GetVirtualHubInboundRoutes + generatevirtualwanvpnserverconfigurationvpnprofile: GenerateVirtualWanVpnServerConfigurationVpnProfile directive: - remove-operation: 'PutBastionShareableLink' diff --git a/sdk/network/Azure.ResourceManager.Network/tests/Helpers/NetworkServiceClientTestBase.cs b/sdk/network/Azure.ResourceManager.Network/tests/Helpers/NetworkServiceClientTestBase.cs index a68c9c8ff5b3..eb73c50e8766 100644 --- a/sdk/network/Azure.ResourceManager.Network/tests/Helpers/NetworkServiceClientTestBase.cs +++ b/sdk/network/Azure.ResourceManager.Network/tests/Helpers/NetworkServiceClientTestBase.cs @@ -552,6 +552,30 @@ public async Task CreateDefaultPublicIpAddress(string n return getPublicIpAddressResponse; } + public async Task CreateStaticPublicIpAddress(string name, string domainNameLabel, string location, PublicIPAddressCollection publicIPAddressCollection) + { + var publicIp = new PublicIPAddressData() + { + Location = location, + Tags = { { "key", "value" } }, + Sku = new PublicIPAddressSku() + { + Name = PublicIPAddressSkuName.Standard, + Tier = PublicIPAddressSkuTier.Regional + }, + PublicIPAllocationMethod = NetworkIPAllocationMethod.Static, + DnsSettings = new PublicIPAddressDnsSettings() { DomainNameLabel = domainNameLabel } + }; + + // Put nic1PublicIpAddress + Operation putPublicIpAddressOperation = await publicIPAddressCollection.CreateOrUpdateAsync(WaitUntil.Completed, name, publicIp); + Response putPublicIpAddressResponse = await putPublicIpAddressOperation.WaitForCompletionAsync(); + Assert.AreEqual("Succeeded", putPublicIpAddressResponse.Value.Data.ProvisioningState.ToString()); + Response getPublicIpAddressResponse = await publicIPAddressCollection.GetAsync(name); + + return getPublicIpAddressResponse; + } + public async Task CreateDefaultPublicIpAddress(string name, string resourceGroupName, string domainNameLabel, string location) { var publicIp = new PublicIPAddressData() diff --git a/sdk/network/Azure.ResourceManager.Network/tests/Tests/ApplicationGatewayTests.cs b/sdk/network/Azure.ResourceManager.Network/tests/Tests/ApplicationGatewayTests.cs index a051154d48e9..cc7f67e896b1 100644 --- a/sdk/network/Azure.ResourceManager.Network/tests/Tests/ApplicationGatewayTests.cs +++ b/sdk/network/Azure.ResourceManager.Network/tests/Tests/ApplicationGatewayTests.cs @@ -111,8 +111,8 @@ private ApplicationGatewayData CreateApplicationGateway(string location, SubnetR Location = location, Sku = new ApplicationGatewaySku() { - Name = ApplicationGatewaySkuName.WAFMedium, - Tier = ApplicationGatewayTier.WAF, + Name = ApplicationGatewaySkuName.StandardV2, + Tier = ApplicationGatewayTier.StandardV2, Capacity = 2 }, GatewayIPConfigurations = { @@ -337,6 +337,7 @@ private ApplicationGatewayData CreateApplicationGateway(string location, SubnetR { Name = requestRoutingRule1Name, RuleType = ApplicationGatewayRequestRoutingRuleType.Basic, + Priority = 1, HttpListener = new WritableSubResource() { Id = GetChildAppGwResourceId(subscriptionId, @@ -357,6 +358,7 @@ private ApplicationGatewayData CreateApplicationGateway(string location, SubnetR { Name = requestRoutingRule2Name, RuleType = ApplicationGatewayRequestRoutingRuleType.Basic, + Priority = 1, HttpListener = new WritableSubResource() { Id = GetChildAppGwResourceId(subscriptionId, @@ -372,6 +374,7 @@ private ApplicationGatewayData CreateApplicationGateway(string location, SubnetR { Name = requestRoutingRule3Name, RuleType = ApplicationGatewayRequestRoutingRuleType.PathBasedRouting, + Priority = 1, HttpListener = new WritableSubResource() { Id = GetChildAppGwResourceId(subscriptionId, @@ -387,6 +390,7 @@ private ApplicationGatewayData CreateApplicationGateway(string location, SubnetR { Name = requestRoutingRule4Name, RuleType = ApplicationGatewayRequestRoutingRuleType.Basic, + Priority = 1, HttpListener = new WritableSubResource() { Id = GetChildAppGwResourceId(subscriptionId, @@ -445,7 +449,7 @@ private ApplicationGatewayData CreateApplicationGateway(string location, SubnetR return appGw; } - private ApplicationGatewayData CreateApplicationGatewayWithoutSsl(string location, SubnetResource subnet, string resourceGroupName, string appGwName, string subscriptionId, string[] ipAddresses) + private ApplicationGatewayData CreateApplicationGatewayWithoutSsl(string location, PublicIPAddressResource publicIP, SubnetResource subnet, string resourceGroupName, string appGwName, string subscriptionId, string[] ipAddresses) { string gatewayIPConfigName = Recording.GenerateAssetName("azsmnet"); string frontendIPConfigName = Recording.GenerateAssetName("azsmnet"); @@ -461,8 +465,8 @@ private ApplicationGatewayData CreateApplicationGatewayWithoutSsl(string locatio Location = location, Sku = new ApplicationGatewaySku() { - Name = ApplicationGatewaySkuName.WAFMedium, - Tier = ApplicationGatewayTier.WAF, + Name = ApplicationGatewaySkuName.StandardV2, + Tier = ApplicationGatewayTier.StandardV2, Capacity = 2 }, GatewayIPConfigurations = { @@ -479,11 +483,7 @@ private ApplicationGatewayData CreateApplicationGatewayWithoutSsl(string locatio new ApplicationGatewayFrontendIPConfiguration() { Name = frontendIPConfigName, - PrivateIPAllocationMethod = NetworkIPAllocationMethod.Dynamic, - Subnet = new WritableSubResource() - { - Id = subnet.Id - } + PublicIPAddressId = publicIP.Id } }, FrontendPorts = { @@ -550,6 +550,7 @@ private ApplicationGatewayData CreateApplicationGatewayWithoutSsl(string locatio { Name = requestRoutingRule1Name, RuleType = ApplicationGatewayRequestRoutingRuleType.Basic, + Priority = 1, HttpListener = new WritableSubResource() { Id = GetChildAppGwResourceId(subscriptionId, @@ -798,6 +799,13 @@ public async Task AppGatewayBackendHealthCheckTest() var putVnetResponseOperation = InstrumentOperation(await virtualNetworkCollection.CreateOrUpdateAsync(WaitUntil.Started, vnetName, vnetdata)); var vnet = await putVnetResponseOperation.WaitForCompletionAsync(); + // Create PublicIpAddress + string publicIpName = Recording.GenerateAssetName("azsmnet"); + string domainNameLabel = Recording.GenerateAssetName("azsmnet"); + + PublicIPAddressResource nic1publicIp = await CreateStaticPublicIpAddress(publicIpName, domainNameLabel, location, resourceGroup.GetPublicIPAddresses()); + Assert.IsNotNull(nic1publicIp.Data); + //create VMs string virtualMachineName1 = Recording.GenerateAssetName("azsmnet"); string virtualMachineName2 = Recording.GenerateAssetName("azsmnet"); @@ -819,7 +827,7 @@ public async Task AppGatewayBackendHealthCheckTest() Response getSubnetResponse = await getVnetResponse.Value.GetSubnets().GetAsync(AGSubnetName); Response agSubnet = getSubnetResponse; - ApplicationGatewayData appGw = CreateApplicationGatewayWithoutSsl(location, agSubnet, resourceGroupName, appGwName, TestEnvironment.SubscriptionId, ipAddresses); + ApplicationGatewayData appGw = CreateApplicationGatewayWithoutSsl(location, nic1publicIp, agSubnet, resourceGroupName, appGwName, TestEnvironment.SubscriptionId, ipAddresses); // Put AppGw var applicationGatewayCollection = resourceGroup.GetApplicationGateways(); From 2ab3b902b4fa935b3cd0514da4bb0a999263c11e Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Sun, 30 Jul 2023 23:26:13 -0700 Subject: [PATCH 02/54] Increment version for cosmosdb releases (#37923) --- .../Azure.ResourceManager.CosmosDB/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.CosmosDB.csproj | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/CHANGELOG.md b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/CHANGELOG.md index 332af7e93436..7028584ddeae 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/CHANGELOG.md +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.4.0-beta.4 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.4.0-beta.3 (2023-07-31) ### Features Added diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Azure.ResourceManager.CosmosDB.csproj b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Azure.ResourceManager.CosmosDB.csproj index c56bef472443..dbdb2066dc6f 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Azure.ResourceManager.CosmosDB.csproj +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Azure.ResourceManager.CosmosDB.csproj @@ -1,7 +1,7 @@ - 1.4.0-beta.3 + 1.4.0-beta.4 1.3.0 Azure.ResourceManager.CosmosDB From d7b132e2d5933e683caa4fe5528112cdcfe189ac Mon Sep 17 00:00:00 2001 From: Arthur Ma Date: Mon, 31 Jul 2023 15:05:50 +0800 Subject: [PATCH 03/54] Prepare for release ElasticSan 1.0.0-beta.4 (#37926) --- .../Azure.ResourceManager.ElasticSan/CHANGELOG.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/CHANGELOG.md b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/CHANGELOG.md index 10ac99284b4b..b93df729ea56 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/CHANGELOG.md +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/CHANGELOG.md @@ -1,17 +1,17 @@ # Release History -## 1.0.0-beta.4 (Unreleased) +## 1.0.0-beta.4 (2023-07-31) ### Features Added +- Upgraded api-version tag from 'package-2021-11-20-preview' to 'package-preview-2022-12'. Tag detail available at https://github.com/Azure/azure-rest-api-specs/blob/1af2861030243b06ee35172c95899f4809eedfc7/specification/elasticsan/resource-manager/readme.md - Supported private endpoints for ElasticSan -### Breaking Changes - -### Bugs Fixed - ### Other Changes +- Upgraded Azure.Core from 1.32.0 to 1.34.0 +- Upgraded Azure.ResourceManager from 1.6.0 to 1.7.0 + ## 1.0.0-beta.3 (2023-05-30) ### Features Added @@ -44,4 +44,4 @@ This package follows the [new Azure SDK guidelines](https://azure.github.io/azur This package is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). -> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). +> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). \ No newline at end of file From 3f1b8033366d8f603ab7f45e0022fce875f05099 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 31 Jul 2023 03:21:33 -0700 Subject: [PATCH 04/54] Increment package version after release of Azure.ResourceManager.ElasticSan (#37929) --- .../Azure.ResourceManager.ElasticSan/CHANGELOG.md | 12 +++++++++++- .../src/Azure.ResourceManager.ElasticSan.csproj | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/CHANGELOG.md b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/CHANGELOG.md index b93df729ea56..6b275e76061c 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/CHANGELOG.md +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.0.0-beta.5 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.0-beta.4 (2023-07-31) ### Features Added @@ -44,4 +54,4 @@ This package follows the [new Azure SDK guidelines](https://azure.github.io/azur This package is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). -> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). \ No newline at end of file +> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). diff --git a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Azure.ResourceManager.ElasticSan.csproj b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Azure.ResourceManager.ElasticSan.csproj index 863fc4ceae04..3ac9ce04c7be 100644 --- a/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Azure.ResourceManager.ElasticSan.csproj +++ b/sdk/elasticsan/Azure.ResourceManager.ElasticSan/src/Azure.ResourceManager.ElasticSan.csproj @@ -1,6 +1,6 @@ - 1.0.0-beta.4 + 1.0.0-beta.5 Azure.ResourceManager.ElasticSan Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.ElasticSan. azure;management;arm;resource manager;elasticsan From b186f1ce882741aece9b0937b0f923a56a3264f6 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 31 Jul 2023 03:22:00 -0700 Subject: [PATCH 05/54] Increment package version after release of Azure.Analytics.Synapse.Artifacts (#37924) --- .../Azure.Analytics.Synapse.Artifacts/CHANGELOG.md | 10 ++++++++++ .../src/Azure.Analytics.Synapse.Artifacts.csproj | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md index 510ebf497be6..63cbc0a37840 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.0.0-preview.19 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.0-preview.18 (2023-08-08) - Added `authenticationType`, `containerUri`, `sasUri` and `sasToken` properties to BlobService - Added `setSystemVariable` proprety to SetVariableActivityTypeProperties diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Azure.Analytics.Synapse.Artifacts.csproj b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Azure.Analytics.Synapse.Artifacts.csproj index b79a40d470de..87485aa2e282 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Azure.Analytics.Synapse.Artifacts.csproj +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Azure.Analytics.Synapse.Artifacts.csproj @@ -2,7 +2,7 @@ This is the Microsoft Azure Synapse Analytics Artifacts client library Azure.Analytics.Synapse.Artifacts - 1.0.0-preview.18 + 1.0.0-preview.19 Microsoft Azure Synapse Artifacts;$(PackageCommonTags) $(RequiredTargetFrameworks) From 975788761bffd7f22e0c617ee14b6d01ff2a5dbc Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 31 Jul 2023 03:22:21 -0700 Subject: [PATCH 06/54] Increment package version after release of Azure.ResourceManager.Sql (#37922) --- .../Azure.ResourceManager.Sql/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.Sql.csproj | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/CHANGELOG.md b/sdk/sqlmanagement/Azure.ResourceManager.Sql/CHANGELOG.md index f2292df907df..ed4eaae87a9c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/CHANGELOG.md +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.3.0-beta.3 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.3.0-beta.2 (2023-07-31) ### Features Added diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Azure.ResourceManager.Sql.csproj b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Azure.ResourceManager.Sql.csproj index 5af679d3e1b6..3d1362fba45c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Azure.ResourceManager.Sql.csproj +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Azure.ResourceManager.Sql.csproj @@ -1,6 +1,6 @@ - 1.3.0-beta.2 + 1.3.0-beta.3 1.2.0 Azure.ResourceManager.Sql From a3e057df2830147bc4cdb020f8b5d86d773fa50e Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 31 Jul 2023 03:38:45 -0700 Subject: [PATCH 07/54] Increment package version after release of Azure.ResourceManager.Network (#37931) --- .../Azure.ResourceManager.Network/CHANGELOG.md | 12 +++++++++++- .../src/Azure.ResourceManager.Network.csproj | 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/sdk/network/Azure.ResourceManager.Network/CHANGELOG.md b/sdk/network/Azure.ResourceManager.Network/CHANGELOG.md index c7169f0d2e9c..b4303bef2328 100644 --- a/sdk/network/Azure.ResourceManager.Network/CHANGELOG.md +++ b/sdk/network/Azure.ResourceManager.Network/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.5.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.4.0 (2023-07-31) ### Features Added @@ -323,4 +333,4 @@ IPsecPolicy policy = new IPsecPolicy( IkeIntegrity.Sha1, DHGroup.DHGroup2, PfsGroup.Pfs1); -``` \ No newline at end of file +``` diff --git a/sdk/network/Azure.ResourceManager.Network/src/Azure.ResourceManager.Network.csproj b/sdk/network/Azure.ResourceManager.Network/src/Azure.ResourceManager.Network.csproj index 38510acaaf61..4f4f0a396786 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Azure.ResourceManager.Network.csproj +++ b/sdk/network/Azure.ResourceManager.Network/src/Azure.ResourceManager.Network.csproj @@ -1,8 +1,8 @@ - 1.4.0 + 1.5.0-beta.1 - 1.3.0 + 1.4.0 Azure.ResourceManager.Network Microsoft Azure management client SDK for Azure resource provider Microsoft.Network. azure;management;network From 5ed6767a499b60da9613eb8d81b11348b4fd8274 Mon Sep 17 00:00:00 2001 From: Timothy Mothra Date: Mon, 31 Jul 2023 12:54:38 -0700 Subject: [PATCH 08/54] [AzureMonitorExporter] cleanup Todos (part2): add EventSource to AspNetCore (#37914) * add EventSource to AspNetCore and cleanup * update message --- ...re.Monitor.OpenTelemetry.AspNetCore.csproj | 5 ++ .../src/AzureMonitorAspNetCoreEventSource.cs | 56 +++++++++++++++++++ .../src/DefaultAzureMonitorOptions.cs | 4 +- ...itor.OpenTelemetry.AspNetCore.Tests.csproj | 5 ++ .../AzureMonitorAspNetCoreEventSourceTests.cs | 21 +++++++ .../AzureMonitorExporterEventSourceTests.cs | 3 - ...elemetry.Exporter.Integration.Tests.csproj | 2 +- 7 files changed, 90 insertions(+), 6 deletions(-) create mode 100644 sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/AzureMonitorAspNetCoreEventSource.cs create mode 100644 sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Tests/AzureMonitorAspNetCoreEventSourceTests.cs diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/Azure.Monitor.OpenTelemetry.AspNetCore.csproj b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/Azure.Monitor.OpenTelemetry.AspNetCore.csproj index 0b43f3c8680c..3a613943a4d6 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/Azure.Monitor.OpenTelemetry.AspNetCore.csproj +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/Azure.Monitor.OpenTelemetry.AspNetCore.csproj @@ -19,4 +19,9 @@ + + + + + diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/AzureMonitorAspNetCoreEventSource.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/AzureMonitorAspNetCoreEventSource.cs new file mode 100644 index 000000000000..0b45da414cf2 --- /dev/null +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/AzureMonitorAspNetCoreEventSource.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Diagnostics.Tracing; +using System.Runtime.CompilerServices; +using Azure.Monitor.OpenTelemetry.Exporter.Internals; + +namespace Azure.Monitor.OpenTelemetry.AspNetCore +{ + /// + /// EventSource for the AzureMonitor AspNetCore Distro. + /// EventSource Guid at Runtime: ????. + /// + /// + /// PerfView Instructions: + /// + /// To collect all events: PerfView.exe collect -MaxCollectSec:300 -NoGui /onlyProviders=*OpenTelemetry-AzureMonitor-AspNetCore + /// To collect events based on LogLevel: PerfView.exe collect -MaxCollectSec:300 -NoGui /onlyProviders:OpenTelemetry-AzureMonitor-AspNetCore::Verbose + /// + /// Dotnet-Trace Instructions: + /// + /// To collect all events: dotnet-trace collect --process-id PID --providers OpenTelemetry-AzureMonitor-AspNetCore + /// To collect events based on LogLevel: dotnet-trace collect --process-id PID --providers OpenTelemetry-AzureMonitor-AspNetCore::Verbose + /// + /// Logman Instructions: + /// + /// Create a text file containing providers: echo "{????}" > providers.txt + /// Start collecting: logman -start exporter -pf providers.txt -ets -bs 1024 -nb 100 256 + /// Stop collecting: logman -stop exporter -ets + /// + /// + [EventSource(Name = EventSourceName)] + internal sealed class AzureMonitorAspNetCoreEventSource : EventSource + { + internal const string EventSourceName = "OpenTelemetry-AzureMonitor-AspNetCore"; + + internal static readonly AzureMonitorAspNetCoreEventSource Log = new AzureMonitorAspNetCoreEventSource(); + + [NonEvent] + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private bool IsEnabled(EventLevel eventLevel) => IsEnabled(eventLevel, EventKeywords.All); + + [NonEvent] + public void ConfigureFailed(Exception ex) + { + if (IsEnabled(EventLevel.Error)) + { + ConfigureFailed(ex.FlattenException().ToInvariantString()); + } + } + + [Event(1, Message = "Failed to configure AzureMonitorOptions using the connection string from environment variables due to an exception: {0}", Level = EventLevel.Error)] + public void ConfigureFailed(string exceptionMessage) => WriteEvent(1, exceptionMessage); + } +} diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/DefaultAzureMonitorOptions.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/DefaultAzureMonitorOptions.cs index b5417e7a8207..e08f85e9be25 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/DefaultAzureMonitorOptions.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/DefaultAzureMonitorOptions.cs @@ -39,9 +39,9 @@ public void Configure(AzureMonitorOptions options) options.ConnectionString = connectionString; } } - catch + catch (Exception ex) { - // TODO: Log Error. + AzureMonitorAspNetCoreEventSource.Log.ConfigureFailed(ex); } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Tests/Azure.Monitor.OpenTelemetry.AspNetCore.Tests.csproj b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Tests/Azure.Monitor.OpenTelemetry.AspNetCore.Tests.csproj index 93c6de29aa42..816cc45d6f43 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Tests/Azure.Monitor.OpenTelemetry.AspNetCore.Tests.csproj +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Tests/Azure.Monitor.OpenTelemetry.AspNetCore.Tests.csproj @@ -16,6 +16,11 @@ + + + + + diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Tests/AzureMonitorAspNetCoreEventSourceTests.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Tests/AzureMonitorAspNetCoreEventSourceTests.cs new file mode 100644 index 000000000000..a910acb3a19a --- /dev/null +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/tests/Azure.Monitor.OpenTelemetry.AspNetCore.Tests/AzureMonitorAspNetCoreEventSourceTests.cs @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Xunit; +using Azure.Monitor.OpenTelemetry.Exporter.Tests.CommonTestFramework; + +namespace Azure.Monitor.OpenTelemetry.AspNetCore.Tests +{ + public class AzureMonitorAspNetCoreEventSourceTests + { + /// + /// This test uses reflection to invoke every Event method in our EventSource class. + /// This validates that parameters are logged and helps to confirm that EventIds are correct. + /// + [Fact] + public void EventSourceTest_AzureMonitorExporterEventSource() + { + EventSourceTestHelper.MethodsAreImplementedConsistentlyWithTheirAttributes(AzureMonitorAspNetCoreEventSource.Log); + } + } +} diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/AzureMonitorExporterEventSourceTests.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/AzureMonitorExporterEventSourceTests.cs index 2c250ba19087..5a8947d46394 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/AzureMonitorExporterEventSourceTests.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/AzureMonitorExporterEventSourceTests.cs @@ -7,9 +7,6 @@ namespace Azure.Monitor.OpenTelemetry.Exporter.Tests { - /// - /// These tests depend on the to subscribe to the and write events to the . - /// public class AzureMonitorExporterEventSourceTests { /// diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Integration.Tests/Azure.Monitor.OpenTelemetry.Exporter.Integration.Tests.csproj b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Integration.Tests/Azure.Monitor.OpenTelemetry.Exporter.Integration.Tests.csproj index d8e6277b8bc2..ecd1b3cd4605 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Integration.Tests/Azure.Monitor.OpenTelemetry.Exporter.Integration.Tests.csproj +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Integration.Tests/Azure.Monitor.OpenTelemetry.Exporter.Integration.Tests.csproj @@ -21,7 +21,7 @@ - + From b7feaa48d75f8295013e32c82c64b01576f54ea3 Mon Sep 17 00:00:00 2001 From: Vishwesh Bankwar Date: Mon, 31 Jul 2023 15:06:04 -0700 Subject: [PATCH 09/54] Add Standard metrics for messaging (#37940) * standard metrics for messaging * revert change --- .../Models/RemoteDependencyData.cs | 15 +- .../src/Internals/AzMonListExtensions.cs | 3 + .../StandardMetricsExtractionProcessor.cs | 17 +- .../src/Internals/TraceHelper.cs | 19 +++ .../StandardMetricTests.cs | 158 +++++++++++++++++- 5 files changed, 187 insertions(+), 25 deletions(-) diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Customizations/Models/RemoteDependencyData.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Customizations/Models/RemoteDependencyData.cs index 5d08c465e60e..2de3e51bdbf8 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Customizations/Models/RemoteDependencyData.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Customizations/Models/RemoteDependencyData.cs @@ -55,20 +55,7 @@ public RemoteDependencyData(int version, Activity activity, ref ActivityTagsProc if (activityTagsProcessor.AzureNamespace != null) { - if (activity.Kind == ActivityKind.Internal) - { - Type = $"InProc | {activityTagsProcessor.AzureNamespace}"; - } - else if (activity.Kind == ActivityKind.Producer) - { - Type = $"Queue Message | {activityTagsProcessor.AzureNamespace}"; - } - else - { - // The Azure SDK sets az.namespace with its resource provider information. - // When ActivityKind is not internal and az.namespace is present, set the value of Type to az.namespace. - Type = activityTagsProcessor.AzureNamespace ?? Type; - } + Type = TraceHelper.GetAzureSDKDependencyType(activity.Kind, activityTagsProcessor.AzureNamespace); } else if (activity.Kind == ActivityKind.Internal) { diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/AzMonListExtensions.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/AzMonListExtensions.cs index b6d546b2a7b1..77c86cb76ee1 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/AzMonListExtensions.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/AzMonListExtensions.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; +using System.Diagnostics; using System.Runtime.CompilerServices; using Azure.Monitor.OpenTelemetry.Exporter.Models; @@ -344,6 +345,8 @@ internal static (string? DbName, string? DbTarget) GetDbDependencyTargetAndName( return tagObjects.GetHttpDependencyTarget(); case OperationType.Db: return tagObjects.GetDbDependencyTargetAndName().DbTarget; + case OperationType.Messaging: + return tagObjects.GetMessagingUrlAndSourceOrTarget(ActivityKind.Producer).SourceOrTarget; default: return null; } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/StandardMetricsExtractionProcessor.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/StandardMetricsExtractionProcessor.cs index e30c78cfdf4f..8866e1202695 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/StandardMetricsExtractionProcessor.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/StandardMetricsExtractionProcessor.cs @@ -42,7 +42,7 @@ internal StandardMetricsExtractionProcessor(AzureMonitorMetricExporter metricExp public override void OnEnd(Activity activity) { - if (activity.Kind == ActivityKind.Server) + if (activity.Kind == ActivityKind.Server || activity.Kind == ActivityKind.Consumer) { if (_requestDuration.Enabled) { @@ -50,7 +50,7 @@ public override void OnEnd(Activity activity) ReportRequestDurationMetric(activity); } } - if (activity.Kind == ActivityKind.Client || activity.Kind == ActivityKind.Internal) + if (activity.Kind == ActivityKind.Client || activity.Kind == ActivityKind.Internal || activity.Kind == ActivityKind.Producer) { if (_dependencyDuration.Enabled) { @@ -58,9 +58,6 @@ public override void OnEnd(Activity activity) ReportDependencyDurationMetric(activity); } } - - // TODO: other activity kinds - // (2023-07) fix before GA } private void ReportRequestDurationMetric(Activity activity) @@ -110,7 +107,15 @@ private void ReportDependencyDurationMetric(Activity activity) statusCode = AzMonList.GetTagValue(ref activityTagsProcessor.MappedTags, SemanticConventions.AttributeHttpStatusCode)?.ToString(); } - var dependencyType = activityTagsProcessor.MappedTags.GetDependencyType(activityTagsProcessor.activityType); + string? dependencyType; + if (activityTagsProcessor.AzureNamespace != null) + { + dependencyType = TraceHelper.GetAzureSDKDependencyType(activity.Kind, activityTagsProcessor.AzureNamespace); + } + else + { + dependencyType = activity.Kind == ActivityKind.Internal ? "InProc" : activityTagsProcessor.MappedTags.GetDependencyType(activityTagsProcessor.activityType); + } TagList tags = default; tags.Add(new KeyValuePair(StandardMetricConstants.DependencyTargetKey, dependencyTarget)); diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TraceHelper.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TraceHelper.cs index 63e92667a6cc..59d3569905c4 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TraceHelper.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TraceHelper.cs @@ -404,5 +404,24 @@ private static void AddContextToMSLinks(StringBuilder linksJson, ActivityLink li linksJson .Append("},"); } + + internal static string GetAzureSDKDependencyType(ActivityKind kind, string azureNamespace) + { + // TODO: see if the values can be cached to avoid allocation. + if (kind == ActivityKind.Internal) + { + return $"InProc | {azureNamespace}"; + } + else if (kind == ActivityKind.Producer) + { + return $"Queue Message | {azureNamespace}"; + } + else + { + // The Azure SDK sets az.namespace with its resource provider information. + // When ActivityKind is not internal and az.namespace is present, set the value of Type to az.namespace. + return azureNamespace; + } + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/StandardMetricTests.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/StandardMetricTests.cs index 9d4a76d77d98..8bbb12c9d5cf 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/StandardMetricTests.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/StandardMetricTests.cs @@ -118,7 +118,61 @@ public void ValidateRequestDurationMetricNew() } [Fact] - public void ValidateDependencyDurationMetric() + public void ValidateRequestDurationMetricConsumerKind() + { + var activitySource = new ActivitySource(nameof(StandardMetricTests.ValidateRequestDurationMetricConsumerKind)); + var traceTelemetryItems = new List(); + var metricTelemetryItems = new List(); + + var standardMetricCustomProcessor = new StandardMetricsExtractionProcessor(new AzureMonitorMetricExporter(new MockTransmitter(metricTelemetryItems))); + + var traceServiceName = new KeyValuePair("service.name", "trace.service"); + var resourceAttributes = new KeyValuePair[] { traceServiceName }; + + using var tracerProvider = Sdk.CreateTracerProviderBuilder() + .SetSampler(new AlwaysOnSampler()) + .SetResourceBuilder(ResourceBuilder.CreateDefault().AddAttributes(resourceAttributes)) + .AddSource(nameof(StandardMetricTests.ValidateRequestDurationMetricConsumerKind)) + .AddProcessor(standardMetricCustomProcessor) + .AddProcessor(new BatchActivityExportProcessor(new AzureMonitorTraceExporter(new AzureMonitorExporterOptions(), new MockTransmitter(traceTelemetryItems)))) + .Build(); + + using (var activity = activitySource.StartActivity("Test", ActivityKind.Consumer)) + { + activity?.SetTag(SemanticConventions.AttributeMessagingSystem, "messagingsystem"); + activity?.SetTag(SemanticConventions.AttributeServerAddress, "localhost"); + activity?.SetTag(SemanticConventions.AttributeMessagingDestinationName, "destination"); + activity?.SetStatus(ActivityStatusCode.Ok); + } + + tracerProvider?.ForceFlush(); + + WaitForActivityExport(traceTelemetryItems); + + standardMetricCustomProcessor._meterProvider?.ForceFlush(); + + Assert.Single(metricTelemetryItems); + + var metricTelemetry = metricTelemetryItems.Last()!; + Assert.Equal("MetricData", metricTelemetry.Data.BaseType); + var metricData = (MetricsData)metricTelemetry.Data.BaseData; + Assert.True(metricData.Properties.TryGetValue(StandardMetricConstants.RequestSuccessKey, out var isSuccess)); + Assert.Equal("True", isSuccess); + Assert.True(metricData.Properties.TryGetValue(StandardMetricConstants.RequestResultCodeKey, out var resultCode)); + Assert.Equal("0", resultCode); + Assert.True(metricData.Properties.TryGetValue(StandardMetricConstants.IsAutoCollectedKey, out var isAutoCollectedFlag)); + Assert.Equal("True", isAutoCollectedFlag); + Assert.True(metricData.Properties.TryGetValue(StandardMetricConstants.CloudRoleInstanceKey, out _)); + Assert.True(metricData.Properties.TryGetValue(StandardMetricConstants.CloudRoleNameKey, out var cloudRoleName)); + Assert.Equal("trace.service", cloudRoleName); + Assert.True(metricData.Properties.TryGetValue(StandardMetricConstants.MetricIdKey, out var metricId)); + Assert.Equal(StandardMetricConstants.RequestDurationMetricIdValue, metricId); + } + + [Theory] + [InlineData(true)] + [InlineData(false)] + public void ValidateDependencyDurationMetric(bool isAzureSDK) { var activitySource = new ActivitySource(nameof(StandardMetricTests.ValidateDependencyDurationMetric)); var traceTelemetryItems = new List(); @@ -139,6 +193,10 @@ public void ValidateDependencyDurationMetric() using (var activity = activitySource.StartActivity("Test", ActivityKind.Client)) { + if (isAzureSDK) + { + activity?.SetTag(SemanticConventions.AttributeAzureNameSpace, "aznamespace"); + } activity?.SetTag(SemanticConventions.AttributeHttpStatusCode, 200); activity?.SetTag(SemanticConventions.AttributeHttpMethod, "Get"); activity?.SetTag(SemanticConventions.AttributeHttpUrl, "https://www.foo.com"); @@ -167,13 +225,91 @@ public void ValidateDependencyDurationMetric() Assert.True(metricData.Properties.TryGetValue(StandardMetricConstants.MetricIdKey, out var metricId)); Assert.Equal(StandardMetricConstants.DependencyDurationMetricIdValue, metricId); Assert.True(metricData.Properties.TryGetValue(StandardMetricConstants.DependencyTypeKey, out var dependencyType)); - Assert.Equal("Http", dependencyType); + if (isAzureSDK) + { + Assert.Equal("aznamespace", dependencyType); + } + else + { + Assert.Equal("Http", dependencyType); + } + Assert.True(metricData.Properties.TryGetValue(StandardMetricConstants.DependencyTargetKey, out var dependencyTarget)); Assert.Equal("www.foo.com", dependencyTarget); } - [Fact] - public void ValidateDependencyDurationMetricNew() + [Theory] + [InlineData(true)] + [InlineData(false)] + public void ValidateDependencyDurationMetricForProducerKind(bool isAzureSDKSpan) + { + var activitySource = new ActivitySource(nameof(StandardMetricTests.ValidateDependencyDurationMetricForProducerKind)); + var traceTelemetryItems = new List(); + var metricTelemetryItems = new List(); + + var standardMetricCustomProcessor = new StandardMetricsExtractionProcessor(new AzureMonitorMetricExporter(new MockTransmitter(metricTelemetryItems))); + + var traceServiceName = new KeyValuePair("service.name", "trace.service"); + var resourceAttributes = new KeyValuePair[] { traceServiceName }; + + using var tracerProvider = Sdk.CreateTracerProviderBuilder() + .SetSampler(new AlwaysOnSampler()) + .SetResourceBuilder(ResourceBuilder.CreateDefault().AddAttributes(resourceAttributes)) + .AddSource(nameof(StandardMetricTests.ValidateDependencyDurationMetricForProducerKind)) + .AddProcessor(standardMetricCustomProcessor) + .AddProcessor(new BatchActivityExportProcessor(new AzureMonitorTraceExporter(new AzureMonitorExporterOptions(), new MockTransmitter(traceTelemetryItems)))) + .Build(); + + using (var activity = activitySource.StartActivity("Test", ActivityKind.Producer)) + { + if (isAzureSDKSpan) + { + activity?.SetTag(SemanticConventions.AttributeAzureNameSpace, "aznamespace"); + } + activity?.SetTag(SemanticConventions.AttributeMessagingSystem, "messagingsystem"); + activity?.SetTag(SemanticConventions.AttributeServerAddress, "localhost"); + activity?.SetTag(SemanticConventions.AttributeMessagingDestinationName, "destination"); + } + + tracerProvider?.ForceFlush(); + + WaitForActivityExport(traceTelemetryItems); + + standardMetricCustomProcessor._meterProvider?.ForceFlush(); + + Assert.Single(metricTelemetryItems); + + var metricTelemetry = metricTelemetryItems.Last()!; + Assert.Equal("MetricData", metricTelemetry.Data.BaseType); + var metricData = (MetricsData)metricTelemetry.Data.BaseData; + Assert.True(metricData.Properties.TryGetValue(StandardMetricConstants.DependencySuccessKey, out var isSuccess)); + Assert.Equal("True", isSuccess); + Assert.True(metricData.Properties.TryGetValue(StandardMetricConstants.DependencyResultCodeKey, out var resultCode)); + Assert.Equal("0", resultCode); + Assert.True(metricData.Properties.TryGetValue(StandardMetricConstants.IsAutoCollectedKey, out var isAutoCollectedFlag)); + Assert.Equal("True", isAutoCollectedFlag); + Assert.True(metricData.Properties.TryGetValue(StandardMetricConstants.CloudRoleInstanceKey, out _)); + Assert.True(metricData.Properties.TryGetValue(StandardMetricConstants.CloudRoleNameKey, out var cloudRoleName)); + Assert.Equal("trace.service", cloudRoleName); + Assert.True(metricData.Properties.TryGetValue(StandardMetricConstants.MetricIdKey, out var metricId)); + Assert.Equal(StandardMetricConstants.DependencyDurationMetricIdValue, metricId); + Assert.True(metricData.Properties.TryGetValue(StandardMetricConstants.DependencyTypeKey, out var dependencyType)); + if (isAzureSDKSpan) + { + Assert.Equal("Queue Message | aznamespace", dependencyType); + } + else + { + Assert.Equal("messagingsystem", dependencyType); + } + Assert.True(metricData.Properties.TryGetValue(StandardMetricConstants.DependencyTargetKey, out var dependencyTarget)); + Assert.Equal("localhost/destination", dependencyTarget); + } + + [Theory] + [InlineData(true)] + [InlineData(false)] + public void ValidateDependencyDurationMetricNew(bool isAzureSDK) { var activitySource = new ActivitySource(nameof(StandardMetricTests.ValidateDependencyDurationMetric)); var traceTelemetryItems = new List(); @@ -194,6 +330,10 @@ public void ValidateDependencyDurationMetricNew() using (var activity = activitySource.StartActivity("Test", ActivityKind.Client)) { + if (isAzureSDK) + { + activity?.SetTag(SemanticConventions.AttributeAzureNameSpace, "aznamespace"); + } activity?.SetTag(SemanticConventions.AttributeHttpResponseStatusCode, 200); activity?.SetTag(SemanticConventions.AttributeHttpRequestMethod, "Get"); activity?.SetTag(SemanticConventions.AttributeServerAddress, "foo.com"); @@ -222,7 +362,15 @@ public void ValidateDependencyDurationMetricNew() Assert.True(metricData.Properties.TryGetValue(StandardMetricConstants.MetricIdKey, out var metricId)); Assert.Equal(StandardMetricConstants.DependencyDurationMetricIdValue, metricId); Assert.True(metricData.Properties.TryGetValue(StandardMetricConstants.DependencyTypeKey, out var dependencyType)); - Assert.Equal("Http", dependencyType); + if (isAzureSDK) + { + Assert.Equal("aznamespace", dependencyType); + } + else + { + Assert.Equal("Http", dependencyType); + } + Assert.True(metricData.Properties.TryGetValue(StandardMetricConstants.DependencyTargetKey, out var dependencyTarget)); Assert.Equal("foo.com", dependencyTarget); } From 047862626a1db94dfaee4cec64d8d87ced7fa600 Mon Sep 17 00:00:00 2001 From: Amanda Nguyen <48961492+amnguye@users.noreply.github.com> Date: Mon, 31 Jul 2023 15:11:20 -0700 Subject: [PATCH 10/54] Added support for `BlobsOptions.MaxDequeueCount` (#37836) --- .../CHANGELOG.md | 1 + ...Extensions.Storage.Blobs.netstandard2.0.cs | 1 + ....Storage.Blobs.Samples.Function.App.csproj | 3 ++- .../src/Config/BlobsOptions.cs | 27 +++++++++++++++++++ .../SharedBlobQueueListenerFactory.cs | 1 + .../SharedBlobQueueListenerFactoryTests.cs | 20 +++++++------- ...orageBlobsWebJobsBuilderExtensionsTests.cs | 2 ++ ...Storage.Queues.Samples.Function.App.csproj | 1 + 8 files changed, 46 insertions(+), 10 deletions(-) diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md index 4e7b415c4be0..c2bf2d667deb 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md @@ -3,6 +3,7 @@ ## 5.2.0-beta.1 (Unreleased) ### Features Added +- Added support for `BlobsOptions.MaxDequeueCount` ### Breaking Changes diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/api/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.netstandard2.0.cs b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/api/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.netstandard2.0.cs index 72b2f32ce4da..c50e94cfa16a 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/api/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.netstandard2.0.cs +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/api/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.netstandard2.0.cs @@ -44,6 +44,7 @@ public partial class BlobsOptions : Microsoft.Azure.WebJobs.Hosting.IOptionsForm { public BlobsOptions() { } public int MaxDegreeOfParallelism { get { throw null; } set { } } + public int MaxDequeueCount { get { throw null; } set { } } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] string Microsoft.Azure.WebJobs.Hosting.IOptionsFormatter.Format() { throw null; } } diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/samples/functionapp/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.Samples.Function.App.csproj b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/samples/functionapp/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.Samples.Function.App.csproj index 9cdebf27d6d1..80128b5c7167 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/samples/functionapp/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.Samples.Function.App.csproj +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/samples/functionapp/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.Samples.Function.App.csproj @@ -8,7 +8,8 @@ - + + diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Config/BlobsOptions.cs b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Config/BlobsOptions.cs index 938c6b3c8b66..9aacfa444ed7 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Config/BlobsOptions.cs +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Config/BlobsOptions.cs @@ -15,7 +15,10 @@ namespace Microsoft.Azure.WebJobs.Host /// public class BlobsOptions : IOptionsFormatter { + private const int DefaultMaxDequeueCount = 5; + private int _maxDegreeOfParallelism; + private int _maxDequeueCount = DefaultMaxDequeueCount; /// /// Constructs a new instance. @@ -43,6 +46,30 @@ public int MaxDegreeOfParallelism } } + /// + /// Gets or sets the number of times to try processing a message before moving it to the poison queue (where + /// possible). + /// + /// + /// Some queues do not have corresponding poison queues, and this property does not apply to them. Specifically, + /// there are no corresponding poison queues for any queue whose name already ends in "-poison" or any queue + /// whose name is already too long to add a "-poison" suffix. + /// + public int MaxDequeueCount + { + get { return _maxDequeueCount; } + + set + { + if (value < 1) + { + throw new ArgumentException("MaxDequeueCount must not be less than 1.", nameof(value)); + } + + _maxDequeueCount = value; + } + } + /// [EditorBrowsable(EditorBrowsableState.Never)] string IOptionsFormatter.Format() diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Listeners/SharedBlobQueueListenerFactory.cs b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Listeners/SharedBlobQueueListenerFactory.cs index b3a09ca0c243..1355ce98b689 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Listeners/SharedBlobQueueListenerFactory.cs +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Listeners/SharedBlobQueueListenerFactory.cs @@ -98,6 +98,7 @@ internal static QueuesOptions BlobsOptionsToQueuesOptions(BlobsOptions blobsOpti { BatchSize = batchSize, NewBatchThreshold = newBatchThreshold, + MaxDequeueCount = blobsOptions.MaxDequeueCount }; } diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/tests/Listeners/SharedBlobQueueListenerFactoryTests.cs b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/tests/Listeners/SharedBlobQueueListenerFactoryTests.cs index 7d906ddf4ebe..52225008e38f 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/tests/Listeners/SharedBlobQueueListenerFactoryTests.cs +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/tests/Listeners/SharedBlobQueueListenerFactoryTests.cs @@ -8,20 +8,21 @@ namespace Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.Listeners { public class SharedBlobQueueListenerFactoryTests { - [TestCase(100, 32, 68)] - [TestCase(64, 32, 32)] - [TestCase(63, 32, 31)] - [TestCase(62, 32, 30)] - [TestCase(16, 9, 7)] - [TestCase(3, 2, 1)] - [TestCase(2, 2, 0)] - [TestCase(1, 1, 0)] - public void ConvertsBlobOptionsToQueueOptionsCorrectly(int maxDegreeOfParallelism, int expectedBatchSize, int expectedNewBatchThreshold) + [TestCase(100, 32, 68, 6)] + [TestCase(64, 32, 32, 5)] + [TestCase(63, 32, 31, 4)] + [TestCase(62, 32, 30, 4)] + [TestCase(16, 9, 7, 3)] + [TestCase(3, 2, 1, 1)] + [TestCase(2, 2, 0, 1)] + [TestCase(1, 1, 0, 1)] + public void ConvertsBlobOptionsToQueueOptionsCorrectly(int maxDegreeOfParallelism, int expectedBatchSize, int expectedNewBatchThreshold, int maxDequeueCount) { // Arrange var blobOptions = new BlobsOptions() { MaxDegreeOfParallelism = maxDegreeOfParallelism, + MaxDequeueCount = maxDequeueCount, }; // Act @@ -30,6 +31,7 @@ public void ConvertsBlobOptionsToQueueOptionsCorrectly(int maxDegreeOfParallelis // Assert Assert.AreEqual(expectedBatchSize, queueOptions.BatchSize); Assert.AreEqual(expectedNewBatchThreshold, queueOptions.NewBatchThreshold); + Assert.AreEqual(maxDequeueCount, queueOptions.MaxDequeueCount); } } } diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/tests/StorageBlobsWebJobsBuilderExtensionsTests.cs b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/tests/StorageBlobsWebJobsBuilderExtensionsTests.cs index 6e4ce20aed80..c5c9b56ab4f3 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/tests/StorageBlobsWebJobsBuilderExtensionsTests.cs +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/tests/StorageBlobsWebJobsBuilderExtensionsTests.cs @@ -18,6 +18,7 @@ public void ConfigureOptions_AppliesValuesCorrectly_Blobs() var values = new Dictionary { { $"{extensionPath}:MaxDegreeOfParallelism", "2" }, + { $"{extensionPath}:MaxDequeueCount", "3" }, }; BlobsOptions options = TestHelpers.GetConfiguredOptions(b => @@ -26,6 +27,7 @@ public void ConfigureOptions_AppliesValuesCorrectly_Blobs() }, values); Assert.AreEqual(2, options.MaxDegreeOfParallelism); + Assert.AreEqual(3, options.MaxDequeueCount); } } } diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/samples/functionapp/Microsoft.Azure.WebJobs.Extensions.Storage.Queues.Samples.Function.App.csproj b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/samples/functionapp/Microsoft.Azure.WebJobs.Extensions.Storage.Queues.Samples.Function.App.csproj index b9ef0b1b295a..3fee0cdb9260 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/samples/functionapp/Microsoft.Azure.WebJobs.Extensions.Storage.Queues.Samples.Function.App.csproj +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/samples/functionapp/Microsoft.Azure.WebJobs.Extensions.Storage.Queues.Samples.Function.App.csproj @@ -8,6 +8,7 @@ + From 13bc415e43a92354af7019063718d54f10488c7e Mon Sep 17 00:00:00 2001 From: Travis Wilson <35748617+trrwilson@users.noreply.github.com> Date: Mon, 31 Jul 2023 23:33:27 -0700 Subject: [PATCH 11/54] [OpenAI] Improve treatment of connection exceptions during streaming (#37888) --- .../src/Custom/StreamingChatChoice.cs | 29 ++++++++++--------- .../src/Custom/StreamingChatCompletions.cs | 20 ++++++------- .../src/Custom/StreamingChoice.cs | 29 ++++++++++--------- .../src/Custom/StreamingCompletions.cs | 20 ++++++------- 4 files changed, 52 insertions(+), 46 deletions(-) diff --git a/sdk/openai/Azure.AI.OpenAI/src/Custom/StreamingChatChoice.cs b/sdk/openai/Azure.AI.OpenAI/src/Custom/StreamingChatChoice.cs index 4589240dc15c..7f07fe923b02 100644 --- a/sdk/openai/Azure.AI.OpenAI/src/Custom/StreamingChatChoice.cs +++ b/sdk/openai/Azure.AI.OpenAI/src/Custom/StreamingChatChoice.cs @@ -37,16 +37,7 @@ public class StreamingChatChoice internal ChatMessage StreamingDeltaMessage { get; set; } - internal bool StreamingDoneSignalReceived - { - get => _streamingDoneSignalReceived; - set - { - _streamingDoneSignalReceived = value; - _updateAvailableEvent.Set(); - } - } - private bool _streamingDoneSignalReceived; + private bool _isFinishedStreaming { get; set; } = false; internal StreamingChatChoice(ChatChoice originalBaseChoice) { @@ -60,6 +51,10 @@ internal void UpdateFromEventStreamChatChoice(ChatChoice streamingChatChoice) { _baseChoices.Add(streamingChatChoice); } + if (streamingChatChoice.FinishReason != null) + { + EnsureFinishStreaming(); + } _updateAvailableEvent.Set(); } @@ -83,10 +78,9 @@ public async IAsyncEnumerable GetMessageStreaming( lock (_baseChoicesLock) { ChatChoice mostRecentChoice = _baseChoices.Last(); - bool choiceIsComplete = mostRecentChoice.FinishReason != null || StreamingDoneSignalReceived; - doneWaiting = choiceIsComplete || i < _baseChoices.Count; - isFinalIndex = choiceIsComplete && i >= _baseChoices.Count - 1; + doneWaiting = _isFinishedStreaming || i < _baseChoices.Count; + isFinalIndex = _isFinishedStreaming && i >= _baseChoices.Count - 1; } if (!doneWaiting) @@ -113,6 +107,15 @@ public async IAsyncEnumerable GetMessageStreaming( } } + internal void EnsureFinishStreaming() + { + if (!_isFinishedStreaming) + { + _isFinishedStreaming = true; + _updateAvailableEvent.Set(); + } + } + private T GetLocked(Func func) { lock (_baseChoicesLock) diff --git a/sdk/openai/Azure.AI.OpenAI/src/Custom/StreamingChatCompletions.cs b/sdk/openai/Azure.AI.OpenAI/src/Custom/StreamingChatCompletions.cs index 8f86823b91f5..b1fb75c73da1 100644 --- a/sdk/openai/Azure.AI.OpenAI/src/Custom/StreamingChatCompletions.cs +++ b/sdk/openai/Azure.AI.OpenAI/src/Custom/StreamingChatCompletions.cs @@ -95,16 +95,6 @@ internal StreamingChatCompletions(Response response) } } } - - // Non-Azure OpenAI doesn't always set the FinishReason on streaming choices when multiple prompts are - // provided. - lock (_streamingChoicesLock) - { - foreach (StreamingChatChoice streamingChatChoice in _streamingChatChoices) - { - streamingChatChoice.StreamingDoneSignalReceived = true; - } - } } catch (Exception pumpException) { @@ -112,6 +102,16 @@ internal StreamingChatCompletions(Response response) } finally { + lock (_streamingChoicesLock) + { + // If anything went wrong and a StreamingChatChoice didn't naturally determine it was complete + // based on a non-null finish reason, ensure that nothing's left incomplete (and potentially + // hanging!) now. + foreach (StreamingChatChoice streamingChatChoice in _streamingChatChoices) + { + streamingChatChoice.EnsureFinishStreaming(); + } + } _streamingTaskComplete = true; _updateAvailableEvent.Set(); } diff --git a/sdk/openai/Azure.AI.OpenAI/src/Custom/StreamingChoice.cs b/sdk/openai/Azure.AI.OpenAI/src/Custom/StreamingChoice.cs index 8ff10bffdf3e..b6340c2128f3 100644 --- a/sdk/openai/Azure.AI.OpenAI/src/Custom/StreamingChoice.cs +++ b/sdk/openai/Azure.AI.OpenAI/src/Custom/StreamingChoice.cs @@ -35,16 +35,7 @@ public class StreamingChoice /// public CompletionsFinishReason? FinishReason => GetLocked(() => _baseChoices.Last().FinishReason); - internal bool StreamingDoneSignalReceived - { - get => _streamingDoneSignalReceived; - set - { - _streamingDoneSignalReceived = value; - _updateAvailableEvent.Set(); - } - } - private bool _streamingDoneSignalReceived; + private bool _isFinishedStreaming { get; set; } = false; /// /// Gets the log probabilities associated with tokens in this Choice. @@ -64,6 +55,10 @@ internal void UpdateFromEventStreamChoice(Choice streamingChoice) { _baseChoices.Add(streamingChoice); } + if (streamingChoice.FinishReason != null) + { + EnsureFinishStreaming(); + } _updateAvailableEvent.Set(); } @@ -87,10 +82,9 @@ public async IAsyncEnumerable GetTextStreaming( lock (_baseChoicesLock) { Choice mostRecentChoice = _baseChoices.Last(); - bool choiceIsComplete = mostRecentChoice.FinishReason != null || StreamingDoneSignalReceived; - doneWaiting = choiceIsComplete || i < _baseChoices.Count; - isFinalIndex = choiceIsComplete && i >= _baseChoices.Count - 1; + doneWaiting = _isFinishedStreaming || i < _baseChoices.Count; + isFinalIndex = _isFinishedStreaming && i >= _baseChoices.Count - 1; } if (!doneWaiting) @@ -115,6 +109,15 @@ public async IAsyncEnumerable GetTextStreaming( } } + internal void EnsureFinishStreaming() + { + if (!_isFinishedStreaming) + { + _isFinishedStreaming = true; + _updateAvailableEvent.Set(); + } + } + private T GetLocked(Func func) { lock (_baseChoicesLock) diff --git a/sdk/openai/Azure.AI.OpenAI/src/Custom/StreamingCompletions.cs b/sdk/openai/Azure.AI.OpenAI/src/Custom/StreamingCompletions.cs index fd252d2cdae6..1ae8b8278bf5 100644 --- a/sdk/openai/Azure.AI.OpenAI/src/Custom/StreamingCompletions.cs +++ b/sdk/openai/Azure.AI.OpenAI/src/Custom/StreamingCompletions.cs @@ -95,16 +95,6 @@ internal StreamingCompletions(Response response) } } } - - // Non-Azure OpenAI doesn't always set the FinishReason on streaming choices when multiple prompts are - // provided. - lock (_streamingChoicesLock) - { - foreach (StreamingChoice streamingChoice in _streamingChoices) - { - streamingChoice.StreamingDoneSignalReceived = true; - } - } } catch (Exception pumpException) { @@ -112,6 +102,16 @@ internal StreamingCompletions(Response response) } finally { + lock (_streamingChoicesLock) + { + // If anything went wrong and a StreamingChoice didn't naturally determine it was complete + // based on a non-null finish reason, ensure that nothing's left incomplete (and potentially + // hanging!) now. + foreach (StreamingChoice streamingChoice in _streamingChoices) + { + streamingChoice.EnsureFinishStreaming(); + } + } _streamingTaskComplete = true; _updateAvailableEvent.Set(); } From 599559f4c15d656be2712501f38bfa2e87f6e9a2 Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Tue, 1 Aug 2023 09:41:59 -0700 Subject: [PATCH 12/54] Add AMQP constructor to ServiceBusMessage (#37951) --- ...ure.Messaging.ServiceBus.netstandard2.0.cs | 1 + .../src/Primitives/ServiceBusMessage.cs | 11 ++++- .../tests/Message/MessageTests.cs | 43 +++++++++++++++++++ 3 files changed, 54 insertions(+), 1 deletion(-) diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/api/Azure.Messaging.ServiceBus.netstandard2.0.cs b/sdk/servicebus/Azure.Messaging.ServiceBus/api/Azure.Messaging.ServiceBus.netstandard2.0.cs index a99f42264501..130361ff0e8a 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/api/Azure.Messaging.ServiceBus.netstandard2.0.cs +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/api/Azure.Messaging.ServiceBus.netstandard2.0.cs @@ -204,6 +204,7 @@ public enum ServiceBusFailureReason public partial class ServiceBusMessage { public ServiceBusMessage() { } + public ServiceBusMessage(Azure.Core.Amqp.AmqpAnnotatedMessage message) { } public ServiceBusMessage(Azure.Messaging.ServiceBus.ServiceBusReceivedMessage receivedMessage) { } public ServiceBusMessage(System.BinaryData body) { } public ServiceBusMessage(System.ReadOnlyMemory body) { } diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/src/Primitives/ServiceBusMessage.cs b/sdk/servicebus/Azure.Messaging.ServiceBus/src/Primitives/ServiceBusMessage.cs index 886ae1ae3cac..9df5add29f3f 100755 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/src/Primitives/ServiceBusMessage.cs +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/src/Primitives/ServiceBusMessage.cs @@ -143,6 +143,15 @@ public ServiceBusMessage(ServiceBusReceivedMessage receivedMessage) } } + /// + /// Creates a new message from the specified instance. + /// + /// The AMQP message. + public ServiceBusMessage(AmqpAnnotatedMessage message) + { + AmqpMessage = message; + } + /// /// Gets or sets the body of the message. /// @@ -407,7 +416,7 @@ public DateTimeOffset ScheduledEnqueueTime internal AmqpAnnotatedMessage AmqpMessage { get; set; } /// - /// Gets the raw Amqp message data that will be transmitted over the wire. + /// Gets the raw AMQP message data that will be transmitted over the wire. /// This can be used to enable scenarios that require setting AMQP header, footer, property, or annotation /// data that is not exposed as top level properties in the . /// diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Message/MessageTests.cs b/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Message/MessageTests.cs index 3b8e0148516d..c4c69b98be7b 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Message/MessageTests.cs +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Message/MessageTests.cs @@ -6,6 +6,7 @@ using System.Linq; using System.Text; using Azure.Core; +using Azure.Core.Amqp; using NUnit.Framework; namespace Azure.Messaging.ServiceBus.Tests.Message @@ -264,5 +265,47 @@ public void CreateReceivedMessageViaFactory() Assert.AreEqual(7632, receivedMessage.EnqueuedSequenceNumber); Assert.AreEqual(new DateTimeOffset(fixedDate, TimeSpan.FromSeconds(120)).UtcDateTime, receivedMessage.EnqueuedTime.UtcDateTime); } + + [Test] + [TestCase(true)] + [TestCase(false)] + public void CanSerializeDeserializeAmqpBytes(bool useSession) + { + var message = new ServiceBusMessage(new BinaryData(ServiceBusTestUtilities.GetRandomBuffer(100))); + message.ContentType = "contenttype"; + message.CorrelationId = "correlationid"; + message.Subject = "label"; + message.MessageId = "messageId"; + message.PartitionKey = "key"; + message.ApplicationProperties.Add("testProp", "my prop"); + message.ReplyTo = "replyto"; + + message.ScheduledEnqueueTime = DateTimeOffset.Now; + if (useSession) + { + message.SessionId = "key"; + message.ReplyToSessionId = "replytosession"; + } + + message.TimeToLive = TimeSpan.FromSeconds(60); + message.To = "to"; + + var serialized = message.GetRawAmqpMessage().ToBytes(); + + var deserialized = new ServiceBusMessage(AmqpAnnotatedMessage.FromBytes(serialized)); + Assert.AreEqual(message.ContentType, deserialized.ContentType); + Assert.AreEqual(message.CorrelationId, deserialized.CorrelationId); + Assert.AreEqual(message.Subject, deserialized.Subject); + Assert.AreEqual(message.MessageId, deserialized.MessageId); + Assert.AreEqual(message.PartitionKey, deserialized.PartitionKey); + Assert.AreEqual(message.ApplicationProperties["testProp"], deserialized.ApplicationProperties["testProp"]); + Assert.AreEqual(message.ReplyTo, deserialized.ReplyTo); + Assert.AreEqual(message.ReplyToSessionId, deserialized.ReplyToSessionId); + // because AMQP only has millisecond resolution, allow for up to a 1ms difference when round-tripping + Assert.That(deserialized.ScheduledEnqueueTime, Is.EqualTo(message.ScheduledEnqueueTime).Within(1).Milliseconds); + Assert.AreEqual(message.SessionId, deserialized.SessionId); + Assert.AreEqual(message.TimeToLive, deserialized.TimeToLive); + Assert.AreEqual(message.To, deserialized.To); + } } } From 28770b5453ecd352b9a72f36817e40453397a5f2 Mon Sep 17 00:00:00 2001 From: Sean McCullough <44180881+seanmcc-msft@users.noreply.github.com> Date: Tue, 1 Aug 2023 11:55:53 -0500 Subject: [PATCH 13/54] =?UTF-8?q?Fixed=20issue=20where=20pagianted=20param?= =?UTF-8?q?eter=20was=20being=20sent=20with=20DataLakeFil=E2=80=A6=20(#379?= =?UTF-8?q?34)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Azure.Storage.Files.DataLake/assets.json | 2 +- .../src/DataLakePathClient.cs | 1 + .../tests/FileClientTests.cs | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/sdk/storage/Azure.Storage.Files.DataLake/assets.json b/sdk/storage/Azure.Storage.Files.DataLake/assets.json index a52ec21ded40..424ad23002c9 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/assets.json +++ b/sdk/storage/Azure.Storage.Files.DataLake/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/storage/Azure.Storage.Files.DataLake", - "Tag": "net/storage/Azure.Storage.Files.DataLake_369e19e7ec" + "Tag": "net/storage/Azure.Storage.Files.DataLake_7989a584e7" } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakePathClient.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakePathClient.cs index aa69810a0c6d..42f21f591b1d 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakePathClient.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakePathClient.cs @@ -1865,6 +1865,7 @@ private async Task DeleteInternal( // Pagination only applies to service version 2023-08-03 and later, when using OAuth. bool? paginated = null; if (_clientConfiguration.ClientOptions.Version >= DataLakeClientOptions.ServiceVersion.V2023_08_03 + && recursive.GetValueOrDefault() && _clientConfiguration.TokenCredential != null) { paginated = true; diff --git a/sdk/storage/Azure.Storage.Files.DataLake/tests/FileClientTests.cs b/sdk/storage/Azure.Storage.Files.DataLake/tests/FileClientTests.cs index 408aece35d7a..c784e55bcee9 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/tests/FileClientTests.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/tests/FileClientTests.cs @@ -951,6 +951,20 @@ public async Task DeleteAsync() await fileClient.DeleteAsync(); } + [RecordedTest] + public async Task DeleteAsync_OAuth() + { + DataLakeServiceClient oauthService = GetServiceClient_OAuth(); + await using DisposingFileSystem test = await GetNewFileSystem(oauthService); + DataLakeDirectoryClient directory = await test.FileSystem.CreateDirectoryAsync(GetNewDirectoryName()); + + // Arrange + DataLakeFileClient fileClient = await directory.CreateFileAsync(GetNewFileName()); + + // Act + await fileClient.DeleteAsync(); + } + [RecordedTest] public async Task DeleteFileAsync_Error() { From 5214f13bd717bd168c6421f4a5f839725316f585 Mon Sep 17 00:00:00 2001 From: Sean McCullough <44180881+seanmcc-msft@users.noreply.github.com> Date: Tue, 1 Aug 2023 11:56:17 -0500 Subject: [PATCH 14/54] Added RehydratePendingToCold to ArchiveStatus (#37889) --- sdk/storage/Azure.Storage.Blobs/CHANGELOG.md | 1 + .../Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs | 1 + .../api/Azure.Storage.Blobs.netstandard2.0.cs | 1 + .../api/Azure.Storage.Blobs.netstandard2.1.cs | 1 + .../src/Generated/Models/ArchiveStatus.Serialization.cs | 2 ++ sdk/storage/Azure.Storage.Blobs/src/Models/ArchiveStatus.cs | 4 +++- sdk/storage/Azure.Storage.Blobs/src/autorest.md | 2 +- 7 files changed, 10 insertions(+), 2 deletions(-) diff --git a/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md b/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md index b3bc6176c4b0..ba6b5695a66e 100644 --- a/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md @@ -2,6 +2,7 @@ ## 12.18.0-beta.1 (Unreleased) - Added support for service version 2023-05-03 and 2023-08-03. +- Added RehydratePendingToCold value to ArchiveStatus enum. ## 12.17.0 (2023-07-11) - Includes all features from 12.17.0-beta.1. diff --git a/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs b/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs index 4a17149eb4ef..22ee2d383324 100644 --- a/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs +++ b/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.net6.0.cs @@ -311,6 +311,7 @@ public enum ArchiveStatus { RehydratePendingToHot = 0, RehydratePendingToCool = 1, + RehydratePendingToCold = 2, } public partial class BlobAccessPolicy { diff --git a/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.0.cs b/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.0.cs index 4a17149eb4ef..22ee2d383324 100644 --- a/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.0.cs +++ b/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.0.cs @@ -311,6 +311,7 @@ public enum ArchiveStatus { RehydratePendingToHot = 0, RehydratePendingToCool = 1, + RehydratePendingToCold = 2, } public partial class BlobAccessPolicy { diff --git a/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.1.cs b/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.1.cs index 4a17149eb4ef..22ee2d383324 100644 --- a/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.1.cs +++ b/sdk/storage/Azure.Storage.Blobs/api/Azure.Storage.Blobs.netstandard2.1.cs @@ -311,6 +311,7 @@ public enum ArchiveStatus { RehydratePendingToHot = 0, RehydratePendingToCool = 1, + RehydratePendingToCold = 2, } public partial class BlobAccessPolicy { diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/ArchiveStatus.Serialization.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/ArchiveStatus.Serialization.cs index 0c29872df21b..e9a9ca7e8e26 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/ArchiveStatus.Serialization.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/Models/ArchiveStatus.Serialization.cs @@ -15,6 +15,7 @@ internal static partial class ArchiveStatusExtensions { ArchiveStatus.RehydratePendingToHot => "rehydrate-pending-to-hot", ArchiveStatus.RehydratePendingToCool => "rehydrate-pending-to-cool", + ArchiveStatus.RehydratePendingToCold => "rehydrate-pending-to-cold", _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ArchiveStatus value.") }; @@ -22,6 +23,7 @@ public static ArchiveStatus ToArchiveStatus(this string value) { if (StringComparer.OrdinalIgnoreCase.Equals(value, "rehydrate-pending-to-hot")) return ArchiveStatus.RehydratePendingToHot; if (StringComparer.OrdinalIgnoreCase.Equals(value, "rehydrate-pending-to-cool")) return ArchiveStatus.RehydratePendingToCool; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "rehydrate-pending-to-cold")) return ArchiveStatus.RehydratePendingToCold; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ArchiveStatus value."); } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Models/ArchiveStatus.cs b/sdk/storage/Azure.Storage.Blobs/src/Models/ArchiveStatus.cs index 533c6620dad6..a25a20d8f16e 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Models/ArchiveStatus.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Models/ArchiveStatus.cs @@ -9,6 +9,8 @@ public enum ArchiveStatus /// rehydrate-pending-to-hot. RehydratePendingToHot, /// rehydrate-pending-to-cool. - RehydratePendingToCool + RehydratePendingToCool, + /// rehydrate-pending-to-cold. + RehydratePendingToCold } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/autorest.md b/sdk/storage/Azure.Storage.Blobs/src/autorest.md index d85dc1d2ae67..6005ca4ac9e4 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/autorest.md +++ b/sdk/storage/Azure.Storage.Blobs/src/autorest.md @@ -4,7 +4,7 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml input-file: - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/3e6f238a1f74d77ba6970f297c77995a9f1f374e/specification/storage/data-plane/Microsoft.BlobStorage/preview/2021-12-02/blob.json + - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/a32d0b2423d19835246bb2ef92941503bfd5e734/specification/storage/data-plane/Microsoft.BlobStorage/preview/2021-12-02/blob.json generation1-convenience-client: true # https://github.com/Azure/autorest/issues/4075 skip-semantics-validation: true From 16adec477c2f525f2049122eadf1bd941e9dac90 Mon Sep 17 00:00:00 2001 From: calvinkwtang Date: Tue, 1 Aug 2023 11:43:35 -0700 Subject: [PATCH 15/54] Add support for custom objects within the dialogContext (#37947) --- .../src/CallDialog.cs | 3 +- .../tests/CallDialogs/CallDialogTests.cs | 44 +++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/CallDialog.cs b/sdk/communication/Azure.Communication.CallAutomation/src/CallDialog.cs index bfc7208b0986..28cbd9790e12 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/CallDialog.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/CallDialog.cs @@ -5,6 +5,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; +using System.Text.Json; using System.Threading; using System.Threading.Tasks; using Azure.Core; @@ -109,7 +110,7 @@ private static StartDialogRequestInternal CreateStartDialogRequest(StartDialogOp { DialogOptionsInternal dialogOptionsInternal = new DialogOptionsInternal( startDialogOptions.BotAppId, - startDialogOptions.DialogContext); + startDialogOptions.DialogContext.ToDictionary(entry => entry.Key, entry => (object)JsonSerializer.Serialize(entry.Value))); StartDialogRequestInternal startDialogRequestInternal = new StartDialogRequestInternal(dialogOptionsInternal, startDialogOptions.DialogInputType) { OperationContext = startDialogOptions.OperationContext == default ? Guid.NewGuid().ToString() : startDialogOptions.OperationContext diff --git a/sdk/communication/Azure.Communication.CallAutomation/tests/CallDialogs/CallDialogTests.cs b/sdk/communication/Azure.Communication.CallAutomation/tests/CallDialogs/CallDialogTests.cs index 758db874ed6a..9d8d7dcc0dad 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/tests/CallDialogs/CallDialogTests.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/tests/CallDialogs/CallDialogTests.cs @@ -13,11 +13,39 @@ namespace Azure.Communication.CallAutomation.Tests.CallDialogs public class CallDialogTests : CallAutomationTestBase { private const string dialogId = "92e08834-b6ee-4ede-8956-9fefa27a691c"; + private static readonly Dictionary dialogContextWithObject = new Dictionary() + { + { + "context", + new + { + contextName = "name", + secondProperty = 1 + } + } + }; + private static readonly Dictionary dialogContextWithString = new Dictionary() + { + { + "context", + "context" + } + }; private static readonly StartDialogOptions _startDialogOptions = new StartDialogOptions(DialogInputType.PowerVirtualAgents, "botAppId", new Dictionary()) { OperationContext = "context" }; + private static readonly StartDialogOptions _startDialogWithCustomObjectOptions = new StartDialogOptions(DialogInputType.PowerVirtualAgents, "botAppId", dialogContextWithObject) + { + OperationContext = "context" + }; + + private static readonly StartDialogOptions _startDialogWithStringOptions = new StartDialogOptions(DialogInputType.PowerVirtualAgents, "botAppId", dialogContextWithString) + { + OperationContext = "context" + }; + private static readonly StartDialogOptions _startDialogWithIdOptions = new StartDialogOptions(dialogId, DialogInputType.PowerVirtualAgents, "botAppId", new Dictionary()) { OperationContext = "context" @@ -101,6 +129,14 @@ public void StopDialog_Return204NoContent(Func callDialog.StartDialogAsync(_startDialogOptions) }, new Func>>?[] + { + callDialog => callDialog.StartDialogAsync(_startDialogWithCustomObjectOptions) + }, + new Func>>?[] + { + callDialog => callDialog.StartDialogAsync(_startDialogWithStringOptions) + }, + new Func>>?[] { callDialog => callDialog.StartDialogAsync(_startDialogWithIdOptions) }, @@ -116,6 +152,14 @@ public void StopDialog_Return204NoContent(Func callDialog.StartDialog(_startDialogOptions) }, new Func>?[] + { + callDialog => callDialog.StartDialog(_startDialogWithCustomObjectOptions) + }, + new Func>?[] + { + callDialog => callDialog.StartDialog(_startDialogWithStringOptions) + }, + new Func>?[] { callDialog => callDialog.StartDialog(_startDialogWithIdOptions) }, From 6892f1bfe5836da390395e0131be646538ba91ca Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 1 Aug 2023 12:14:27 -0700 Subject: [PATCH 16/54] Sync eng/common directory with azure-sdk-tools for PR 6611 (#37938) * update dotnet dev cert being shipped with the proxy to renew for another year * update suppression file --------- Co-authored-by: Scott Beddall --- eng/CredScanSuppression.json | 6 ++++ eng/common/testproxy/dotnet-devcert.crt | 33 +++++++++++----------- eng/common/testproxy/dotnet-devcert.pfx | Bin 2445 -> 2627 bytes eng/common/testproxy/onboarding/README.me | 10 +++---- 4 files changed, 28 insertions(+), 21 deletions(-) diff --git a/eng/CredScanSuppression.json b/eng/CredScanSuppression.json index 25f971a8d0c2..24c45cfe7bec 100644 --- a/eng/CredScanSuppression.json +++ b/eng/CredScanSuppression.json @@ -67,6 +67,12 @@ ], "_justification": "Files contain private keys used by test code." }, + { + "file":[ + "eng/common/testproxy/dotnet-devcert.pfx" + ], + "_justification": "File contains a dev cert used to communicate locally with the test-proxy spun up by our test framework." + }, { "file":[ "sdk/automation/Microsoft.Azure.Management.Automation/tests/SessionRecords/AutomationTest/CanCreateUpdateDeleteWebhook.json", diff --git a/eng/common/testproxy/dotnet-devcert.crt b/eng/common/testproxy/dotnet-devcert.crt index 07976e52ef0e..254432686db6 100644 --- a/eng/common/testproxy/dotnet-devcert.crt +++ b/eng/common/testproxy/dotnet-devcert.crt @@ -1,20 +1,21 @@ -----BEGIN CERTIFICATE----- -MIIDSDCCAjCgAwIBAgIUIoKu8Oao7j10TLNxaUG2Bs0FrRwwDQYJKoZIhvcNAQEL -BQAwFDESMBAGA1UEAwwJbG9jYWxob3N0MB4XDTIyMDgwNTIxMTcyM1oXDTIzMDgw -NTIxMTcyM1owFDESMBAGA1UEAwwJbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEF -AAOCAQ8AMIIBCgKCAQEA0UPG7ER++5/9D/qa4SCtt7QvdHwcpidbwktPNU8iRW7V -pIDPWS4goLp/+7+maT0Z/mqwSO3JDtm/dtdlr3F/5EMgyUExnYcvUixZAiyFyEwj -j6wnAtNvqsg4rDqBlD17fuqTVsZm9Yo7QYub6p5PeznWYucOxRrczqFCiW4uj0Yk -GgUHPPmCvhSDKowV8CYRHfkD6R8R4SFkoP3/uejXHxeXoYJNMWq5K0GqGaOZtNFB -F7QWZHoLrRpZcY4h+DxwP3c+/FdlVcs9nstkF+EnTnwx5IRyKsaWb/pUEmYKvNDz -wi6qnRUdu+DghZuvyZZDgwoYrSZokcbKumk0MsLC3QIDAQABo4GRMIGOMA8GA1Ud +MIIDZzCCAk+gAwIBAgIUXjY6UxqL53TvxH8dtPNZm6/getIwDQYJKoZIhvcNAQEL +BQAwFDESMBAGA1UEAwwJbG9jYWxob3N0MB4XDTIzMDcyODIxMDM1MloXDTI0MDcy +NzIxMDM1MlowFDESMBAGA1UEAwwJbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEF +AAOCAQ8AMIIBCgKCAQEAsTPe57bim6NTmBHS1ldLAr7dnMT7AMtfttfjqPzggDgR +kNKj/mi5Xd86AOR6QfLMMipdL2NpPTZP557t4V1oVgODv+M3SiKRriY01TNbL9K5 +zjYlPDik1BzKJgHiLmHPmuKsWslTTMO86nau5YNzKfaOIFbiV5uTUCLTZh3NspDo +OaIeJ4Efud/6bHQkbIXggAt2TFjVum+jMXLYeyA8ZjwFgW1ENAlOOV5Gm8eFjkIt +OhQSZLlLc9BnJkOAhT0v6Xq0oRwCm0YW42+JFzmIvjK0cU/sFmjDqzKAxhtWexz7 +WT7KDiJU+GNsZmm8KjeU0EaQpzpK8q/MEbNRX1OqrQIDAQABo4GwMIGtMA8GA1Ud EwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGmMBYGA1UdJQEB/wQMMAoGCCsGAQUF BwMBMBcGA1UdEQEB/wQNMAuCCWxvY2FsaG9zdDA6BgorBgEEAYI3VAEBBCwMKkFT -UC5ORVQgQ29yZSBIVFRQUyBkZXZlbG9wbWVudCBjZXJ0aWZpY2F0ZTANBgkqhkiG -9w0BAQsFAAOCAQEARX4NxGbycdPVuqvu/CO+/LpWrEm1OcOl7N57/mD5npTIJT78 -TYtXk1J61akumKdf5CaBgCDRcl35LhioFZIMEsiOidffAp6t493xocncFBhIYYrZ -HS6aKsZKPu8h3wOLpYu+zh7f0Hx6pkHPAfw4+knmQjDYomz/hTwuo/MuT8k6Ee7B -NGWqxUamLI8bucuf2ZfT1XOq83uWaFF5KwAuVLhpzo39/TmPyYGnaoKRYf9QjabS -LUjecMNLJFWHUSD4cKHvXJjDYZEiCiy+MdUDytWIsfw0fzAUjz9Qaz8YpZ+fXufM -MNMNfyJHSMEMFIT2D1UaQiwryXWQWJ93OiSdjA== +UC5ORVQgQ29yZSBIVFRQUyBkZXZlbG9wbWVudCBjZXJ0aWZpY2F0ZTAdBgNVHQ4E +FgQU+9BDdfBwXH38ti7IGpL4Kn7IDVgwDQYJKoZIhvcNAQELBQADggEBAKoy2dp8 +gsKk1U51164IIhOYisaJ1egOI0++STd8j94SX9XlCAgwLaPr/mU/U438xKI1inSA +Miaboqtt2tqvfP5nceSYL3FPJ3K0ADw8UFgwApKiRYpRevAIspG+OaqHwHUFRhyG +bxkUZ4w96IEpVtDOGoy12sCmChZgdVk44+y8uurSza18Vj1LfkrN6ppZLt4FII5e +p8BFKtqCRToFRJIIjMePOdTUbeRwUCjBPyYv/h5jcJUfFXQJpPXvJs4LFcUivqA3 +sAut3tut6CDzToTMtAD5ebxSPh3DDM6JOsWhrGoT0if5qoio75tG6yV40gi3Tocr +KCwDu8B2O2HlL5Q= -----END CERTIFICATE----- diff --git a/eng/common/testproxy/dotnet-devcert.pfx b/eng/common/testproxy/dotnet-devcert.pfx index a971cd950a1e42e5c03a5f0aebde478d8a70614d..d8f717ce3cbe99ec93d580a07b985b393e0bb631 100644 GIT binary patch literal 2627 zcmai$S5Om(7KQ^Pk%X>-K?u@&Nk9ZaiBb$EaA`}&NC#0sFjRp+Hh^?RI*6euB1`We zRisKly7XQ`l_FIxJNJ(JxDRK}obR7A=k1$=AVN{JG;|0eWDg7x577+y$wYI3hD?Mk z0*R2>b3BP40`>oiz+@s&?Hrvi0nVG^KM4)O`1b%}LSPVL|BQ?XZXo?-L_Tr5oI!_{ zmL7m$1k?ZT8Z86_K)}He%MeW(J31hZIFNP0iVK!m-dq#rS(X;*&*KzGr0e~>*8AS` z#ZXYzf{^mBI4{@J!Lb^7@bdaeF%E^nENkT?NCdO{Ra zabfrmPjpFyVcuoM5m!@M>nVR`yU^^~NyW=5hgb5vAuAjZTe@)6@cW+|R(1{tAI zrd6@wo{lB~u@#{Dm%L?%W|bE`~9nbfzG#AvA!k&lfp)}iee zSBL4OHeT6_;TkG?-3mvYe&zv*@Pv=rolG1tg(FrZ6pyR>S)s*|2j zg#D7cZ5yv0CuOe~`_3KvQ~QL9v8^;BeN?+qt$K3Sj6~wTfKYmRfmJPUs;qpg+-{}U z>5;W>eBiDxL}SGxS&Vn}dSG?l^AfpMsjk^gEl`a94fslIEW;Oc62GbRvmm`F&S=>I zxnG?1p?T)ny_DGL27j$E_bGUcuoz(bS6nuKrM2h*zct8{gKpw7-vUk)s@L5Ihzs!T zYa5;8ufByJoy^=VSF%ib6RshmH}m8E=fOVv#qLm-ew`g!yd8BU2V<=h)dmrhYjcN~ z#=c7&;lxvCv6%|K$J+u(d6!wkh6d3LQd{MkN`&1gFR{6aWxUqB&ugL2A;gejgMnt- z@P~Bi?Dt-gXLF>N?tRB@YK%NgC|hJ_93CxW*+Vh2CwI6-wHq8a2fKdyxgOLobCC?EWH|c*BMOHd%1e8`mn=tDFLgO8d+E65 zX$l9G_y!|bx&gd`rFyWpLZi`on^L6+o=a@0H@zVVo44aVoNAs#=r72I%1bA_eZ?;? zp(Q9r=*|%4MEPfHlV!%Z9^CyX-|o;?KIOCg*A{bbpw=Lwt4{S+zH4RRONQGwDtid) z!m6Xsv2hm}eyW*?q;dq6agurQyU!TpPpNKltqAMptGo{IuQ$^((WR;xs72oo`xqWH z&1i!8s3Bq}@LO}*6jOfDKHEJ3o*J>|Ipu4Y}N_ zMI+!SGmYD@;~T^nWW;^6xPKP9bdNwO_COng(~aDgAoPY74oxZ4fTrsVY_aO0MXAmg zu80?BwPcV6mRE&^dW3cNSROp>{61s4XD72mlsolM*n> z?Y8`{$MDgF{*2J0FJ(VJWZR%`F;RV~&-V*&t|-bb?}8q#rlypypN9 zSr>WTk;7r87AyVrl0fG~unDIveTCJqm@YcvLHRH@@rmYLwJ~(aUQ8rM*ioHzT$kdD z&WL#UjD&2ZGfUXfC)c~MNs44|hdS5Z?N|m@mujJtYgxzF9cwZkyC&xd9>fEftK+8; zn&u~?U!&Qq&AR%BR?PN}B}Tv7(+s-~krL}OKfRv0lqQ<#fKUIC{Z0^3X4I6$y%Oi4 zuum=QSsDljM`1DL(8w^+nHSR|2>6QFny$8kkffMoQ<0&xuJT$au-*IxnmbY3`YiEQ zNKCJ$Ae_QQTKywOln0M3*0LG6cd1$O^)m01#W^QpoRP?#Ff#1~&ehtgEHJ4p^v^aE z-9UQvi1tk+b9(mCQ?HH~BzzP&@@{g5oQG0!vMM?qmy6jq&kNl$LG$DCSv0J%Y{adI zM%3IQc>34pm#c;!8K1jXzcPw{54KC)KjI-l?<6N}Xw+2oI(Pqh8tbolxL+UNozo$8 z?d!DvHwkFp($Jy5rN9Z#QF?X03amyJm!B4fQIYWl9dwWb45z0JaupvvF7@6yoj=sy zTDk6aC5>@uFY&fnl==0&Uo$oat8}?V&ZY`y_3Sbnz!?d6ErE1mK_8&Gl`}E#8-^FX zXHb3Ni$CiD=%RAGLe1IKh+6NaSq}T~1WYRvWbH*eSiqD3b8Lc*4|x8(Qijc@PKS7d zGZlwX6Lm#$rE|y9$ga(j#s>><(jtdlPmnL=@vi5?n(>-HRs;V!tlP4o&1<%+w~tU1 z@v^@ya8H3liLc;P=b>`vqg34ONDq?7zQ zDSl6;uf)=&!^AKj$(T+Rfh>`vkur)J2LwDd;M?T>DHHH!V+FXi&ghe>w~jP)%B7wF zVAWkvQ0z>=XyBC`A&JCb%c%m+E-$i#4ReY8ZfjAnQZkG98#2Pfd3G_iGA2cKbPcO) zK39->oKj^v)Nk_bNFI93_199rQB>0<-kPq`it$9$lvtvhAJiZN@IksT?P)UVb0HKF z;X+mW;OCEHXa2y(OfQE@?2?o^%ds%CfTI8Nez^h;78?i<#ummywb9M5@xiZBV0^R1 z!D@(fe!N>Jma@`7$<7^Ari?I0D?`A?M@ahwhO7 zD6^^nX0G+CZZUCY87yXP^mMpT*||orCnllmf~NgyQ|V3jxnv1Pj)gIkt?6NccP?ow z?Rr)#7yaKQ4h^#odrd0|l-@p$dg%AS21q)$EasV$Y>G^+slb&W1II0Ob z+mKXS7>lGq+(jS}OuyeRS{e`l$QwdvhR@%tI6OwW=*mc(I6AEr|dkVPut S3qbmovc2^DxN@7nRr_BOwaq91 literal 2445 zcmV;833B!@f(eNN0Ru3C2~P$IDuzgg_YDCD0ic2jKm>vbJTQU@I52_(?*<7fhDe6@ z4FLxRpn?P7FoFZz0s#Opf&yE|ZTQfT4iWVwNZb+}`5d0bdif ziJNtXUk{;*nvQ3MhOabxsH+@a_0kox3039v1vEEGpNN|x`?P(W zYiMhcNZ9wP=dc}Pbh8ikg$U1B;p@j~G;zy}R2T&uqC3cbRLWXCR%ctg2=Mp;*6EK> zazpCo%sVM~^b#L+TounBJ|;nwOif61 zK=?X=eAw>y%nto}qwKtO|8rVi!dhscXDs$Cs}){Hiu{K9iG*Uv zldi48axXfL8on>IN{%VrDqSG#QyB0vLcQtGO*;mT0<)(b+L#MvX2yWqS^ayJA+{^? zk(epulk%YQTx4Tsb8A8wKg*SMs5MwYoM(aTTk;(pY5sdw=cSFCOIN~xzZ)}heF85w zQ^1ce9_LDT2X;y?XDsR_Bj?|&0thFkU#|CwVB6?^SW)w>e6x=aNYC~{cRtrCr zS1yi3wX6FVN>v{^R@$YANAZbLQnQ|4%JTuST8g2OWW>XWVXTywq;-B&E60~TT{j~i z0~~$Pi<^znw(lUpj`k~GO)J?g$wl!%3uj0j%^}DRzhc0Z-!aJrk$trVPj5=<7{sOy z;UbeG)j(bza)!Rp6hsz&Zw(o-g(pc$1GqzuJGV$vl#;Qul;c2nk!3&k z>ryv!+t?mR)0WUt+^3zDnDF3mEiw6cNTym5PY;EHw2INA?`SgnmQPF z39QG@*sw{?=rw9%+SQN+gwd;7bzL%6Rso`Qey!>(&W-8%c!KKYTk4_qfi{S?8u?;k zu^d2=2Bse=;^>}(FoFd^1_>&LNQUVaU;V0(ZCA+%8uAzW@ z*1L{%_rVXFA)T(2JNumhI#NYTCGX*}8}A%zB@`Ib{=olmSLzwYh4g+!i~#Jal9F$#V3nuW9w!o8c}pwQH-Q7V`4UBBW@7$3xySUX z=P6zAMar6IdXdklA?OP4#PK{*wLR|{JZv=)gFZvU7`-``;?v*#qYKx^!Y?!+acc&# z0lyphnNf)DRf-)J2jfQ1jPN$)zsfU^T5(hJb)WT;S1MGWmLZZE<~SGZCM#wUM_U1J z0_<>Bt0h(tL`|x5qy;^Pmb9~S!c{{q+=(qjzPH1(g!}$iddA+vHDHF!FR-vlM2^0R zZ+u%K$(+3`pHc_ABlX;m5}nRuNi}n75*CT)_}?tVV`@Tl{W?j$xsPXj5zM;Xg9hjC z6kURaoGJ>P1weQ1C^-5#=;FeD8*%6NM6RS&eDdB%v_`OA+xN!Va@e5<`3~HM>>_NQ zyr{+^bK}9DaM(*^Ycu2X3@SA~!I*HibyS!KFJ@b|9>S^cr z)T4))4rRc;0UA_HFvUnY%-;!I*`v27C+F;TRvhr1w=ya{`FJ+6CUtAiDrKXFvevE+ z(&0?VNTaziW0&G_#|LaM*1&>Ek?$5*NWOFDt3X!tpG>K;>=RLQ^)F5>24xGh+z6aY;kICLeL#}L1>>mL8LLq@TzC!}s=hWU?<c9*SQGz56htwpj zSIFNT-Z2mDdaaa%Z#UbJ7o%vv&(UXsI%}nB;&9&a9{iCRXvYsy0&`fzN$|D6-}4St zEPB<%^pUVXNXq*4IhI?x2VCl2Bp7e_)kdC9!px^2$Ga?+!&u$Y0>|#a?#2+BfjCa? zOv~$I86b9#%vV2UFKSEc-*$I}5jkM*+ja_g1bFR-mu|L7^bhTzNU9<`nhM##6nNsQ zJ9+*d47mriG}ULLQyi_I!4N$CNnzG-fl;Mgc+ZZDW#Sgsl)(g0(P$)*-uV}*j>Faw zREakCBM(9Bh)QH`@hXfQlz99%U?VXlFe3&DDuzgg_YDCF6)_eB6hQ-Ud8Dhy8LAnF z9sVf`{>2f>lQ1zbAutIB1uG5%0vZJX1QfIlj%md)XQrRY&TUn`mX#c;W#/` or `//` etc. -3. The language also used to determine what the [recording directories within a repository are named](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/testproxy/transition-scripts/generate-assets-json.ps1#L47). +3. The language also used to determine what the [recording directories within a repository are named](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/testproxy/onboarding/generate-assets-json.ps1#L47). ## A final note about the initial push From d7a803017697e7014e5de0f799dddbda15a35d1b Mon Sep 17 00:00:00 2001 From: hakimms <131916587+hakimms@users.noreply.github.com> Date: Tue, 1 Aug 2023 13:41:18 -0700 Subject: [PATCH 17/54] Abdulhakim/Do not allow null or empty actions (#37737) * Marked empty/null actions as failed * replaced tabs with spaces * Updated spacing * Replaced tab with spaces * Updates based on feedback * Updated Validation Logic * WIP Added test cases for OneOrMoreRequiredAttribute * Added test case for EnumberableItemsNotNull Attribute * Feedback updates * Updates based on PR feedback * Sort 'using' lists and removed unapplicable data annotation * Adding necessary updates to merge with azure main * Removed xUnit reference now that we are using NUnit tests * removed Update-Snippets.ps1 changes and will rebase * Removing requirement for response object in request to not perform early validation * Added null check and test for response before marking as failed * Updated exception to validation exception and corrected test * Changed back to argument null exception * Added response validation exception type * Ran script to add partial class for ResponseValidationException * Update sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/AuthenticationEventResource.resx Adding a missing period Co-authored-by: Jesse Squire * Added period --------- Co-authored-by: Jesse Squire --- .../CHANGELOG.md | 7 +- ...ons.AuthenticationEvents.netstandard2.0.cs | 11 ++- .../AuthenticationEventResource.Designer.cs | 9 ++ .../src/AuthenticationEventResource.resx | 3 + .../src/AuthenticationEventResponseHandler.cs | 4 +- .../Exceptions/ResponseValidationException.cs | 28 ++++++ .../src/Framework/ActionableResponse.cs | 7 +- .../Framework/AuthenticationEventMetadata.cs | 4 +- .../Framework/AuthenticationEventRequest.cs | 10 +- .../src/Framework/CloudEventRequest.cs | 5 +- .../EnumerableItemsNotNullAttribute.cs | 31 +++++++ .../Validators/OneOrMoreRequiredAttribute.cs | 31 +++++++ .../EnumerableItemsNotNullAttributeTests.cs | 91 +++++++++++++++++++ .../OneOrMoreRequiredAttributeTests.cs | 80 ++++++++++++++++ ...tensions.AuthenticationEvents.Tests.csproj | 12 +-- .../tests/MiscTests.cs | 44 ++++----- .../tests/PayloadTests.cs | 23 +---- .../TokenIssuanceStart/NullResponse.json | 3 + .../TokenIssuanceStart/TokenIssuanceStart.cs | 10 ++ .../tests/TestAuthResponse.cs | 23 +++++ .../tests/TestHelper.cs | 79 ++++++++++++++-- .../tests/TestHelpers/TestCaseStructure.cs | 11 +++ 22 files changed, 445 insertions(+), 81 deletions(-) create mode 100644 sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Common/Exceptions/ResponseValidationException.cs create mode 100644 sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/Validators/EnumerableItemsNotNullAttribute.cs create mode 100644 sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/Validators/OneOrMoreRequiredAttribute.cs create mode 100644 sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/Validators/EnumerableItemsNotNullAttributeTests.cs create mode 100644 sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/Validators/OneOrMoreRequiredAttributeTests.cs create mode 100644 sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Payloads/TokenIssuanceStart/NullResponse.json create mode 100644 sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/TestAuthResponse.cs create mode 100644 sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/TestHelpers/TestCaseStructure.cs diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/CHANGELOG.md b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/CHANGELOG.md index 76bb817776b9..d305990e7683 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/CHANGELOG.md +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/CHANGELOG.md @@ -2,13 +2,10 @@ ## 1.0.0-beta.4 (Unreleased) -### Features Added - -### Breaking Changes - ### Bugs Fixed -### Other Changes +- Updated ODataType signature - 2433332 +- Empty or null response actions will throw a bad response - 2161553 ## 1.0.0-beta.3 (2022-12-13) diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/api/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.netstandard2.0.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/api/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.netstandard2.0.cs index d3765c566e0b..098c9aaa84e6 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/api/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.netstandard2.0.cs +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/api/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.netstandard2.0.cs @@ -45,6 +45,11 @@ public enum RequestStatusType Successful = 2, ValidationError = 3, } + public partial class ResponseValidationException : System.Exception + { + public ResponseValidationException(string message) { } + public ResponseValidationException(string message, System.Exception innerException) { } + } } namespace Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework { @@ -59,7 +64,6 @@ protected ActionableCloudEventResponse() { } public abstract partial class ActionableResponse : Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.AuthenticationEventResponse where T : Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.AuthenticationEventAction { protected ActionableResponse() { } - [System.ComponentModel.DataAnnotations.RequiredAttribute] [System.Text.Json.Serialization.JsonPropertyNameAttribute("actions")] public System.Collections.Generic.List Actions { get { throw null; } set { } } } @@ -100,13 +104,12 @@ internal AuthenticationEventRequestBase() { } public System.Threading.Tasks.Task Failed(System.Exception exception) { throw null; } public override string ToString() { throw null; } } - public abstract partial class AuthenticationEventRequest : Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.AuthenticationEventRequestBase where TResponse : Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.AuthenticationEventResponse where TData : Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.AuthenticationEventData + public abstract partial class AuthenticationEventRequest : Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.AuthenticationEventRequestBase where TResponse : Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.AuthenticationEventResponse, new() where TData : Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.AuthenticationEventData { internal AuthenticationEventRequest() { } [System.ComponentModel.DataAnnotations.RequiredAttribute] [System.Text.Json.Serialization.JsonPropertyNameAttribute("data")] public TData Data { get { throw null; } set { } } - [System.ComponentModel.DataAnnotations.RequiredAttribute] [System.Text.Json.Serialization.JsonPropertyNameAttribute("response")] public TResponse Response { get { throw null; } set { } } public override System.Threading.Tasks.Task Completed() { throw null; } @@ -122,7 +125,7 @@ public abstract partial class CloudEventData : Microsoft.Azure.WebJobs.Extension { protected CloudEventData() { } } - public abstract partial class CloudEventRequest : Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.AuthenticationEventRequest where TResponse : Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.AuthenticationEventResponse where TData : Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.CloudEventData + public abstract partial class CloudEventRequest : Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.AuthenticationEventRequest where TResponse : Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.AuthenticationEventResponse, new() where TData : Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.CloudEventData { internal CloudEventRequest() { } [System.Text.Json.Serialization.JsonPropertyNameAttribute("oDataType")] diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/AuthenticationEventResource.Designer.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/AuthenticationEventResource.Designer.cs index fb1016e434ce..576d9024e647 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/AuthenticationEventResource.Designer.cs +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/AuthenticationEventResource.Designer.cs @@ -268,6 +268,15 @@ internal static string Ex_No_Lock { } } + /// + /// Looks up a localized string similar to Actions can not contain null items. + /// + internal static string Ex_Null_Action_Items { + get { + return ResourceManager.GetString("Ex_Null_Action_Items", resourceCulture); + } + } + /// /// Looks up a localized string similar to No associated open api document found for version.. /// diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/AuthenticationEventResource.resx b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/AuthenticationEventResource.resx index 4a20fd958b08..4e0a56a844f3 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/AuthenticationEventResource.resx +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/AuthenticationEventResource.resx @@ -186,6 +186,9 @@ Could not get exclusive lock to the resource. + + Actions can not contain null items. + No associated open api document found for version. diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/AuthenticationEventResponseHandler.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/AuthenticationEventResponseHandler.cs index 7512c9b5fdc0..043dbc2b1eb0 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/AuthenticationEventResponseHandler.cs +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/AuthenticationEventResponseHandler.cs @@ -57,7 +57,7 @@ public Task SetValueAsync(object result, CancellationToken cancellationToken) { if (result == null) { - throw new ArgumentNullException(AuthenticationEventResource.Ex_Invalid_Return); + throw new ResponseValidationException(AuthenticationEventResource.Ex_Invalid_Return); } if (result is AuthenticationEventResponse action) @@ -83,7 +83,7 @@ public Task SetValueAsync(object result, CancellationToken cancellationToken) } catch (Exception ex) { - Response = Request.Failed(ex, !(ex is ValidationException)).Result; + Response = Request.Failed(ex, true).Result; } return Task.CompletedTask; diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Common/Exceptions/ResponseValidationException.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Common/Exceptions/ResponseValidationException.cs new file mode 100644 index 000000000000..b567483e68a7 --- /dev/null +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Common/Exceptions/ResponseValidationException.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; + +namespace Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents +{ + /// + /// Exception class for response validations + /// + public class ResponseValidationException : Exception + { + /// + /// Initializes a new instance of the class. + /// + /// + public ResponseValidationException(string message) + : base(message) { } + + /// + /// Initializes a new instance of the class. + /// + /// + /// + public ResponseValidationException(string message, Exception innerException) + : base(message, innerException) { } + } +} diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/ActionableResponse.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/ActionableResponse.cs index 050ae11b353c..b3087328b744 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/ActionableResponse.cs +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/ActionableResponse.cs @@ -3,22 +3,21 @@ using System; using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; using System.Text.Json.Serialization; +using Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.Validators; namespace Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework { /// And abstract class for responses that implements actions. /// Of type EventAction. /// - /// - public abstract class ActionableResponse : AuthenticationEventResponse where T : AuthenticationEventAction { /// Gets or sets the actions. /// The actions. [JsonPropertyName("actions")] - [Required] + [OneOrMoreRequired] + [EnumerableItemsNotNull] public List Actions { get; set; } = new List(); /// Invalidates this instance. diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/AuthenticationEventMetadata.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/AuthenticationEventMetadata.cs index ee88005d97fd..73045caaa86d 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/AuthenticationEventMetadata.cs +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/AuthenticationEventMetadata.cs @@ -54,8 +54,6 @@ internal AuthenticationEventRequestBase CreateEventRequest(HttpRequestMessage re // ResponseSchema ?? string.Empty, ResponseTemplate ?? string.Empty); - responseInfo.SetValue(eventRequest, eventResponse); - if (args != null && args.Length != 0) { eventRequest.InstanceCreated(args); @@ -76,6 +74,8 @@ internal AuthenticationEventRequestBase CreateEventRequest(HttpRequestMessage re Helpers.ValidateGraph(eventRequest); } + responseInfo.SetValue(eventRequest, eventResponse); + return eventRequest; } diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/AuthenticationEventRequest.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/AuthenticationEventRequest.cs index 3b85f06dcdca..8285222f53b2 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/AuthenticationEventRequest.cs +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/AuthenticationEventRequest.cs @@ -14,7 +14,9 @@ namespace Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework /// The EventData model related to the request. /// /// - public abstract class AuthenticationEventRequest : AuthenticationEventRequestBase where TResponse : AuthenticationEventResponse where TData : AuthenticationEventData + public abstract class AuthenticationEventRequest : AuthenticationEventRequestBase + where TResponse : AuthenticationEventResponse , new() + where TData : AuthenticationEventData { /// Initializes a new instance of the class. /// The request. @@ -23,7 +25,6 @@ internal AuthenticationEventRequest(HttpRequestMessage request) : base(request) /// The response. /// [JsonPropertyName("response")] - [Required] public TResponse Response { get; set; } /// Gets or sets the related EventData model. @@ -62,6 +63,11 @@ public async override Task Completed() internal override Task Failed(Exception exception, bool internalError) { + if (Response == null) + { + Response = new TResponse(); + } + Response.MarkAsFailed(exception, internalError); return Task.FromResult((TResponse)Response); } diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/CloudEventRequest.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/CloudEventRequest.cs index ffffe33e2fc7..92c9fe97bdb5 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/CloudEventRequest.cs +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/CloudEventRequest.cs @@ -2,7 +2,6 @@ // Licensed under the MIT License. using Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.Validators; -using System.ComponentModel.DataAnnotations; using System.Net.Http; using System.Text.Json.Serialization; @@ -11,7 +10,9 @@ namespace Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework /// Abstract class that wraps any request that relies on cloud events. /// The Cloud Event Response. /// The Cloud Event Data. - public abstract class CloudEventRequest : AuthenticationEventRequest where TResponse : AuthenticationEventResponse where TData : CloudEventData + public abstract class CloudEventRequest : AuthenticationEventRequest + where TResponse : AuthenticationEventResponse, new() + where TData : CloudEventData { /// Gets or sets the source. /// The source. diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/Validators/EnumerableItemsNotNullAttribute.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/Validators/EnumerableItemsNotNullAttribute.cs new file mode 100644 index 000000000000..6b40a28d8ae7 --- /dev/null +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/Validators/EnumerableItemsNotNullAttribute.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Linq; + +namespace Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.Validators +{ + /// Validator to ensure that a type value is enumerable and contains no null items. + [AttributeUsage(AttributeTargets.Property)] + internal class EnumerableItemsNotNullAttribute : ValidationAttribute + { + /// Initializes a new instance of the class. + public EnumerableItemsNotNullAttribute() + : base(AuthenticationEventResource.Ex_Null_Action_Items) + { + } + + /// Returns true if the value is not null, is IEnumerable and no items are null. + /// The value of the object to validate. + /// true if the specified value is valid; otherwise, false. + public override bool IsValid(object value) + { + return value is not null + && value is IEnumerable obj + && !obj.Any(x => x == null); + } + } +} diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/Validators/OneOrMoreRequiredAttribute.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/Validators/OneOrMoreRequiredAttribute.cs new file mode 100644 index 000000000000..43b5e906e4e4 --- /dev/null +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/Validators/OneOrMoreRequiredAttribute.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Linq; + +namespace Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.Validators +{ + /// Validator to ensure that a type value is enumerable and contains at least one item. + [AttributeUsage(AttributeTargets.Property)] + internal class OneOrMoreRequiredAttribute : ValidationAttribute + { + /// Initializes a new instance of the class. + public OneOrMoreRequiredAttribute() + : base(AuthenticationEventResource.Ex_No_Action) + { + } + + /// Returns true if the value is not null, is IEnumerable and contains at lease one item. + /// The value of the object to validate. + /// true if the specified value is valid; otherwise, false. + public override bool IsValid(object value) + { + return value is not null + && value is IEnumerable obj + && obj.Any(); + } + } +} diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/Validators/EnumerableItemsNotNullAttributeTests.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/Validators/EnumerableItemsNotNullAttributeTests.cs new file mode 100644 index 000000000000..26d59fa9acd0 --- /dev/null +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/Validators/EnumerableItemsNotNullAttributeTests.cs @@ -0,0 +1,91 @@ +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.Validators; +using NUnit.Framework; + +namespace Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Tests.Framework.Validators +{ + [TestFixture] + /// + /// This class will test OneOrMoreRequiredAttribute + /// + public class EnumerableItemsNotNullAttributeTests + { + [Test] + [TestCaseSource(nameof(TestScenarios))] + public void EnumberableItemsNotNullIsValidWithTestCase(object testObject, string message, bool success) + { + DummyClass dummyObj = new() { Obj = testObject }; + + if (success == false) + { + Assert.Throws(() => Validator.ValidateObject(dummyObj, new ValidationContext(dummyObj), true), AuthenticationEventResource.Ex_Null_Action_Items); + } + else + { + Assert.DoesNotThrow(() => Validator.ValidateObject(dummyObj, new ValidationContext(dummyObj), true)); + } + } + + /// + /// Class that holds the attribute we want to test + /// + private class DummyClass + { + [EnumerableItemsNotNull] + public object Obj { get; set; } + } + + private static IEnumerable TestScenarios() + { +#region Invalid + yield return new TestCaseStructure() + { + Test = null, + Message = "Testing null", + }.ToArray; + yield return new TestCaseStructure() + { + Test = new object(), + Message = "Testing object", + }.ToArray; + yield return new TestCaseStructure() + { + Test = new List() { null }, + Message = "Testing object list with null item", + }.ToArray; + yield return new TestCaseStructure() + { + Test = new List() { new(), null, new() }, + Message = "Testing object list with multiple items with one null", + }.ToArray; + yield return new TestCaseStructure() + { + Test = new object[1], + Message = "Testing single null item array", + }.ToArray; +#endregion + +#region Valid + yield return new TestCaseStructure() + { + Test = new List() { new(), new() }, + Message = "Testing list of objects", + Success = true, + }.ToArray; + yield return new TestCaseStructure() + { + Test = new List(), + Message = "Testing initialized object", + Success = true, + }.ToArray; + yield return new TestCaseStructure() + { + Test = new object[0], + Message = "Testing empty array", + Success = true, + }.ToArray; +#endregion + } + } +} diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/Validators/OneOrMoreRequiredAttributeTests.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/Validators/OneOrMoreRequiredAttributeTests.cs new file mode 100644 index 000000000000..02a4bb46d3ce --- /dev/null +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/Validators/OneOrMoreRequiredAttributeTests.cs @@ -0,0 +1,80 @@ +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.Validators; +using NUnit.Framework; + +namespace Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Tests.Framework.Validators +{ + [TestFixture] + /// + /// This class will test OneOrMoreRequiredAttribute + /// + public class OneOrMoreRequiredAttributeTests + { + [Test] + [TestCaseSource(nameof(TestScenarios))] + public void OneOrMoreRequiredIsValidWithTestCase(object testObject, string message, bool success) + { + DummyClass dummyObj = new() { Obj = testObject }; + + if (success == false) + { + Assert.Throws(() => Validator.ValidateObject(dummyObj, new ValidationContext(dummyObj), true), AuthenticationEventResource.Ex_No_Action); + } + else + { + Assert.DoesNotThrow(() => Validator.ValidateObject(dummyObj, new ValidationContext(dummyObj), true)); + } + } + + /// + /// Class that holds the attribute we want to test + /// + private class DummyClass + { + [OneOrMoreRequired] + public object Obj { get; set; } + } + + private static IEnumerable TestScenarios() + { +#region Invalid + yield return new TestCaseStructure() + { + Test = null, + Message = "Testing null", + }.ToArray; + yield return new TestCaseStructure() + { + Test = new object(), + Message = "Testing object", + }.ToArray; + yield return new TestCaseStructure() + { + Test = new List(), + Message = "Testing initialized object", + }.ToArray; + yield return new TestCaseStructure() + { + Test = new object[0], + Message = "Testing empty array", + }.ToArray; +#endregion + +#region Valid + yield return new TestCaseStructure() + { + Test = new List() { new(), new() }, + Message = "Testing list of objects", + Success = true, + }.ToArray; + yield return new TestCaseStructure() + { + Test = new object[1], + Message = "Testing single item array", + Success = true, + }.ToArray; +#endregion + } + } +} diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Tests.csproj b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Tests.csproj index dc73bf0a6278..1847cb5ee010 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Tests.csproj +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Tests.csproj @@ -19,6 +19,7 @@ + @@ -29,16 +30,7 @@ - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - + diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/MiscTests.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/MiscTests.cs index 3332d43ae1aa..110ff1bce0c6 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/MiscTests.cs +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/MiscTests.cs @@ -1,13 +1,13 @@  -using Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.TokenIssuanceStart; -using Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.TokenIssuanceStart.Actions; -using System; using System.Net; using System.Net.Http; using System.Threading; +using System.Threading.Tasks; +using Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.TokenIssuanceStart; +using Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.TokenIssuanceStart.Actions; using NUnit.Framework; +using static Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Tests.TestHelper; using Payload = Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Tests.Payloads.TokenIssuanceStart; -using System.Threading.Tasks; namespace Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Tests { @@ -63,8 +63,24 @@ public async Task TokenIssuanceStartObjectModelTest() Assert.True(TestHelper.DoesPayloadMatch(Payload.TokenIssuanceStart.ExpectedPayload, httpResponseMessage.Content.ReadAsStringAsync().Result)); } + /// Tests the OnTokenIssuanceStart request and response object model when the response is set to null + [Test] + [Description("Tests the OnTokenIssuanceStart request and response object model when the response is set to null")] + public async Task TokenIssuanceStartObjectModelNullResponseTest() + { + HttpResponseMessage httpResponseMessage = await TestHelper.EventResponseBaseTest(eventsResponseHandler => + { + if (eventsResponseHandler.Request is TokenIssuanceStartRequest request) + { + request.Response = null; + + eventsResponseHandler.SetValueAsync(request.Completed().Result, CancellationToken.None); + } + }); - public enum ActionTestTypes { NullClaims, EmptyClaims, NullClaimId, EmptyClaimsId, EmptyValueString, NullValue, EmptyValueArray, EmptyValueStringArray, EmptyMixedArray } + Assert.AreEqual(HttpStatusCode.InternalServerError, httpResponseMessage.StatusCode); + Assert.True(DoesPayloadMatch(Payload.TokenIssuanceStart.NullResponsePayload, httpResponseMessage.Content.ReadAsStringAsync().Result)); + } [Test] [TestCase(ActionTestTypes.NullClaims)] @@ -76,6 +92,7 @@ public enum ActionTestTypes { NullClaims, EmptyClaims, NullClaimId, EmptyClaimsI [TestCase(ActionTestTypes.EmptyValueArray)] [TestCase(ActionTestTypes.EmptyValueStringArray)] [TestCase(ActionTestTypes.EmptyMixedArray)] + [TestCase(ActionTestTypes.NullActionItems)] public async Task TokenIssuanceStartActionTest(ActionTestTypes actionTestTypes) { (TokenIssuanceAction action, HttpStatusCode expectReturnCode, string expectedResponse) = GetActionTestExepected(actionTestTypes); @@ -93,22 +110,5 @@ public async Task TokenIssuanceStartActionTest(ActionTestTypes actionTestTypes) Assert.AreEqual(httpResponseMessage.StatusCode, expectReturnCode); Assert.True(TestHelper.DoesPayloadMatch(expectedResponse, httpResponseMessage.Content.ReadAsStringAsync().Result)); } - - public (TokenIssuanceAction action, HttpStatusCode expectReturnCode, string expectedResponse) GetActionTestExepected(ActionTestTypes actionTestTypes) - { - switch (actionTestTypes) - { - case ActionTestTypes.NullClaims: return (new ProvideClaimsForToken(null), HttpStatusCode.BadRequest, "{\"errors\":[\"TokenIssuanceStartResponse: ProvideClaimsForToken: The Claims field is required.\"]}"); - case ActionTestTypes.EmptyClaims: return (new ProvideClaimsForToken(), HttpStatusCode.OK, "{\"data\":{\"@odata.type\":\"microsoft.graph.onTokenIssuanceStartResponseData\",\"actions\":[{\"@odata.type\":\"microsoft.graph.tokenIssuanceStart.provideClaimsForToken\",\"claims\":{}}]}}"); - case ActionTestTypes.NullClaimId: return (new ProvideClaimsForToken(new TokenClaim[] { new TokenClaim(null, string.Empty) }), HttpStatusCode.BadRequest, "{\"errors\":[\"TokenIssuanceStartResponse: ProvideClaimsForToken: TokenClaim: The Id field is required.\"]}"); - case ActionTestTypes.EmptyClaimsId: return (new ProvideClaimsForToken(new TokenClaim[] { new TokenClaim(String.Empty, string.Empty) }), HttpStatusCode.BadRequest, "{\"errors\":[\"TokenIssuanceStartResponse: ProvideClaimsForToken: TokenClaim: The Id field is required.\"]}"); - case ActionTestTypes.EmptyValueString: return (new ProvideClaimsForToken(new TokenClaim[] { new TokenClaim("key", string.Empty) }), HttpStatusCode.OK, "{\"data\":{\"@odata.type\":\"microsoft.graph.onTokenIssuanceStartResponseData\",\"actions\":[{\"@odata.type\":\"microsoft.graph.tokenIssuanceStart.provideClaimsForToken\",\"claims\":{\"key\":\"\"}}]}}"); - case ActionTestTypes.NullValue: return (new ProvideClaimsForToken(new TokenClaim[] { new TokenClaim("key", null) }), HttpStatusCode.OK, "{\"data\":{\"@odata.type\":\"microsoft.graph.onTokenIssuanceStartResponseData\",\"actions\":[{\"@odata.type\":\"microsoft.graph.tokenIssuanceStart.provideClaimsForToken\",\"claims\":{\"key\":null}}]}}"); - case ActionTestTypes.EmptyValueArray: return (new ProvideClaimsForToken(new TokenClaim[] { new TokenClaim("key", new string[] { }) }), HttpStatusCode.OK, "{\"data\":{\"@odata.type\":\"microsoft.graph.onTokenIssuanceStartResponseData\",\"actions\":[{\"@odata.type\":\"microsoft.graph.tokenIssuanceStart.provideClaimsForToken\",\"claims\":{\"key\":[]}}]}}"); - case ActionTestTypes.EmptyValueStringArray: return (new ProvideClaimsForToken(new TokenClaim[] { new TokenClaim("key", new string[] { String.Empty, String.Empty }) }), HttpStatusCode.OK, "{\"data\":{\"@odata.type\":\"microsoft.graph.onTokenIssuanceStartResponseData\",\"actions\":[{\"@odata.type\":\"microsoft.graph.tokenIssuanceStart.provideClaimsForToken\",\"claims\":{\"key\":[\"\",\"\"]}}]}}"); - case ActionTestTypes.EmptyMixedArray: return (new ProvideClaimsForToken(new TokenClaim[] { new TokenClaim("key", new string[] { String.Empty, null, " " }) }), HttpStatusCode.OK, "{\"data\":{\"@odata.type\":\"microsoft.graph.onTokenIssuanceStartResponseData\",\"actions\":[{\"@odata.type\":\"microsoft.graph.tokenIssuanceStart.provideClaimsForToken\",\"claims\":{\"key\":[\"\",null,\" \"]}}]}}"); - default: return (null, HttpStatusCode.InternalServerError, null); - } - } } } diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/PayloadTests.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/PayloadTests.cs index 1c90b3ade5f1..d015017052da 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/PayloadTests.cs +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/PayloadTests.cs @@ -1,10 +1,8 @@ -using Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework; -using NUnit.Framework; -using System; -using System.Net; +using System.Net; using System.Net.Http; using System.Threading; using System.Threading.Tasks; +using NUnit.Framework; using static Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Tests.TestHelper; namespace Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Tests @@ -74,21 +72,4 @@ public async Task Tests(TestTypes testType) } } } - - internal class TestAuthResponse : AuthenticationEventResponse - { - internal TestAuthResponse(HttpStatusCode code, string content) - : this(code) - { - Content = new StringContent(content); - } - - internal TestAuthResponse(HttpStatusCode code) - { - StatusCode = code; - } - - internal override void Invalidate() - { } - } } diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Payloads/TokenIssuanceStart/NullResponse.json b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Payloads/TokenIssuanceStart/NullResponse.json new file mode 100644 index 000000000000..bfa3fc136c4a --- /dev/null +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Payloads/TokenIssuanceStart/NullResponse.json @@ -0,0 +1,3 @@ +{ + "errors": [ "Return type is invalid, please return either an AuthEventResponse, HttpResponse, HttpResponseMessage or string in your function return." ] +} diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Payloads/TokenIssuanceStart/TokenIssuanceStart.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Payloads/TokenIssuanceStart/TokenIssuanceStart.cs index db63a1fc699c..da1ef66f1016 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Payloads/TokenIssuanceStart/TokenIssuanceStart.cs +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Payloads/TokenIssuanceStart/TokenIssuanceStart.cs @@ -60,5 +60,15 @@ public static string TokenIssuanceStartQueryParameter return PayloadHelper.GetPayload("TokenIssuanceStart.QueryParameters.json"); } } + + /// Gets the payload error message when response is set to null + /// The payload with error message + public static string NullResponsePayload + { + get + { + return PayloadHelper.GetPayload("TokenIssuanceStart.NullResponse.json"); + } + } } } diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/TestAuthResponse.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/TestAuthResponse.cs new file mode 100644 index 000000000000..7ee0fca1aaec --- /dev/null +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/TestAuthResponse.cs @@ -0,0 +1,23 @@ +using System.Net; +using System.Net.Http; +using Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework; + +namespace Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Tests +{ + internal class TestAuthResponse : AuthenticationEventResponse + { + internal TestAuthResponse(HttpStatusCode code, string content) + : this(code) + { + Content = new StringContent(content); + } + + internal TestAuthResponse(HttpStatusCode code) + { + StatusCode = code; + } + + internal override void Invalidate() + { } + } +} diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/TestHelper.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/TestHelper.cs index 91e2d36386b1..ecd995382739 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/TestHelper.cs +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/TestHelper.cs @@ -1,10 +1,4 @@ -//using Microsoft.AspNetCore.Mvc; -using Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.TokenIssuanceStart; -using Microsoft.Azure.WebJobs.Host.Executors; -using Microsoft.Extensions.Logging; -using Moq; -using Newtonsoft.Json.Linq; -using System; +using System; using System.IO; using System.Linq; using System.Net; @@ -12,6 +6,12 @@ using System.Reflection; using System.Threading; using System.Threading.Tasks; +using Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.TokenIssuanceStart; +using Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.TokenIssuanceStart.Actions; +using Microsoft.Azure.WebJobs.Host.Executors; +using Microsoft.Extensions.Logging; +using Moq; +using Newtonsoft.Json.Linq; namespace Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Tests { @@ -321,5 +321,70 @@ internal static bool IsJson(string input) return (input.StartsWith("{", StringComparison.OrdinalIgnoreCase) && input.EndsWith("}", StringComparison.OrdinalIgnoreCase)) || (input.StartsWith("[", StringComparison.OrdinalIgnoreCase) && input.EndsWith("]", StringComparison.OrdinalIgnoreCase)); } + + public enum ActionTestTypes + { + NullClaims, + EmptyClaims, + NullClaimId, + EmptyClaimsId, + EmptyValueString, + NullValue, + EmptyValueArray, + EmptyValueStringArray, + EmptyMixedArray, + NullActionItems + } + + public static (TokenIssuanceAction action, HttpStatusCode expectReturnCode, string expectedResponse) GetActionTestExepected(ActionTestTypes actionTestTypes) + { + switch (actionTestTypes) + { + case ActionTestTypes.NullClaims: + return (new ProvideClaimsForToken(null), + HttpStatusCode.InternalServerError, + "{\"errors\":[\"TokenIssuanceStartResponse: ProvideClaimsForToken: The Claims field is required.\"]}"); + case ActionTestTypes.EmptyClaims: + return (new ProvideClaimsForToken(), + HttpStatusCode.OK, + "{\"data\":{\"@odata.type\":\"microsoft.graph.onTokenIssuanceStartResponseData\",\"actions\":[{\"@odata.type\":\"microsoft.graph.tokenIssuanceStart.provideClaimsForToken\",\"claims\":{}}]}}"); + case ActionTestTypes.NullClaimId: + return (new ProvideClaimsForToken(new TokenClaim[] { new TokenClaim(null, string.Empty) }), + HttpStatusCode.InternalServerError, + "{\"errors\":[\"TokenIssuanceStartResponse: ProvideClaimsForToken: TokenClaim: The Id field is required.\"]}"); + case ActionTestTypes.EmptyClaimsId: + return (new ProvideClaimsForToken(new TokenClaim[] { new TokenClaim(String.Empty, string.Empty) }), + HttpStatusCode.InternalServerError, + "{\"errors\":[\"TokenIssuanceStartResponse: ProvideClaimsForToken: TokenClaim: The Id field is required.\"]}"); + case ActionTestTypes.EmptyValueString: + return (new ProvideClaimsForToken(new TokenClaim[] { new TokenClaim("key", string.Empty) }), + HttpStatusCode.OK, + "{\"data\":{\"@odata.type\":\"microsoft.graph.onTokenIssuanceStartResponseData\",\"actions\":[{\"@odata.type\":\"microsoft.graph.tokenIssuanceStart.provideClaimsForToken\",\"claims\":{\"key\":\"\"}}]}}"); + case ActionTestTypes.NullValue: + return (new ProvideClaimsForToken(new TokenClaim[] { new TokenClaim("key", null) }), + HttpStatusCode.OK, + "{\"data\":{\"@odata.type\":\"microsoft.graph.onTokenIssuanceStartResponseData\",\"actions\":[{\"@odata.type\":\"microsoft.graph.tokenIssuanceStart.provideClaimsForToken\",\"claims\":{\"key\":null}}]}}"); + case ActionTestTypes.EmptyValueArray: + return (new ProvideClaimsForToken(new TokenClaim[] { new TokenClaim("key", new string[] { }) }), + HttpStatusCode.OK, + "{\"data\":{\"@odata.type\":\"microsoft.graph.onTokenIssuanceStartResponseData\",\"actions\":[{\"@odata.type\":\"microsoft.graph.tokenIssuanceStart.provideClaimsForToken\",\"claims\":{\"key\":[]}}]}}"); + case ActionTestTypes.EmptyValueStringArray: + return (new ProvideClaimsForToken(new TokenClaim[] { new TokenClaim("key", new string[] { String.Empty, String.Empty }) }), + HttpStatusCode.OK, + "{\"data\":{\"@odata.type\":\"microsoft.graph.onTokenIssuanceStartResponseData\",\"actions\":[{\"@odata.type\":\"microsoft.graph.tokenIssuanceStart.provideClaimsForToken\",\"claims\":{\"key\":[\"\",\"\"]}}]}}"); + case ActionTestTypes.EmptyMixedArray: + return (new ProvideClaimsForToken(new TokenClaim[] { new TokenClaim("key", new string[] { String.Empty, null, " " }) }), + HttpStatusCode.OK, + "{\"data\":{\"@odata.type\":\"microsoft.graph.onTokenIssuanceStartResponseData\",\"actions\":[{\"@odata.type\":\"microsoft.graph.tokenIssuanceStart.provideClaimsForToken\",\"claims\":{\"key\":[\"\",null,\" \"]}}]}}"); + case ActionTestTypes.NullActionItems: + return (null, + HttpStatusCode.InternalServerError, + "{\"errors\":[\"TokenIssuanceStartResponse: Actions can not contain null items.\"]}"); + default: + return (null, + HttpStatusCode.InternalServerError, + null); + } + } } } diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/TestHelpers/TestCaseStructure.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/TestHelpers/TestCaseStructure.cs new file mode 100644 index 000000000000..e3fae9958ac1 --- /dev/null +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/TestHelpers/TestCaseStructure.cs @@ -0,0 +1,11 @@ +namespace Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Tests +{ + public class TestCaseStructure + { + public object Test { get; set; } + public string Message { get; set; } + public bool Success { get; set; } + + public object[] ToArray => new object[] { Test, Message, Success }; + } +} From f81281597d2de54928522d5e07091b7165d3fd4a Mon Sep 17 00:00:00 2001 From: ShivangiReja <45216704+ShivangiReja@users.noreply.github.com> Date: Tue, 1 Aug 2023 14:07:11 -0700 Subject: [PATCH 18/54] [Search] Vector Search Updates For August Preview (#37948) Vector Search updates --- .../Azure.Search.Documents/CHANGELOG.md | 10 +- sdk/search/Azure.Search.Documents/README.md | 2 +- .../Azure.Search.Documents.netstandard2.0.cs | 7 +- sdk/search/Azure.Search.Documents/assets.json | 2 +- .../samples/Sample07_VectorSearch.md | 78 ++++++++++-- .../Models/SearchOptions.Serialization.cs | 24 ++-- .../src/Generated/Models/SearchOptions.cs | 9 +- .../Models/SearchQueryVector.Serialization.cs | 4 +- .../src/Generated/Models/SearchQueryVector.cs | 8 +- .../src/Generated/SearchModelFactory.cs | 12 -- .../src/Indexes/FieldBuilder.cs | 1 + .../src/Indexes/SearchableFieldAttribute.cs | 20 ++++ .../src/Models/SearchQueryVector.cs | 15 +++ .../src/Options/SearchOptions.cs | 4 + .../Azure.Search.Documents/src/autorest.md | 15 ++- .../DocumentOperations/VectorSearchTests.cs | 56 ++++++++- .../tests/FieldBuilderTests.cs | 32 +++++ .../tests/Samples/Readme.cs | 4 +- .../tests/Samples/Sample07_VectorSearch.cs | 113 +++++++++++++++++- .../Utilities/VectorSearch.Embeddings.cs | 8 ++ 20 files changed, 359 insertions(+), 65 deletions(-) diff --git a/sdk/search/Azure.Search.Documents/CHANGELOG.md b/sdk/search/Azure.Search.Documents/CHANGELOG.md index ab7656c5a1f5..f0a577dea7ae 100644 --- a/sdk/search/Azure.Search.Documents/CHANGELOG.md +++ b/sdk/search/Azure.Search.Documents/CHANGELOG.md @@ -1,14 +1,10 @@ # Release History -## 11.5.0-beta.4 (Unreleased) +## 11.5.0-beta.4 (2023-08-07) ### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +- Added the ability to perform multiple vectors query searches. +- Added support for vector queries over multiple fields. ## 11.5.0-beta.3 (2023-07-11) diff --git a/sdk/search/Azure.Search.Documents/README.md b/sdk/search/Azure.Search.Documents/README.md index 67a26f4c6459..260641a3140c 100644 --- a/sdk/search/Azure.Search.Documents/README.md +++ b/sdk/search/Azure.Search.Documents/README.md @@ -352,7 +352,7 @@ foreach (SearchResult result in response.GetResults()) SearchDocument doc = result.Document; string id = (string)doc["HotelId"]; string name = (string)doc["HotelName"]; - Console.WriteLine("{id}: {name}"); + Console.WriteLine($"{id}: {name}"); } ``` diff --git a/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.netstandard2.0.cs b/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.netstandard2.0.cs index d597b829a2f7..f0e7721fce61 100644 --- a/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.netstandard2.0.cs +++ b/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.netstandard2.0.cs @@ -173,7 +173,7 @@ public SearchOptions() { } public string SessionId { get { throw null; } set { } } public int? Size { get { throw null; } set { } } public int? Skip { get { throw null; } set { } } - public Azure.Search.Documents.Models.SearchQueryVector Vector { get { throw null; } set { } } + public System.Collections.Generic.IList Vectors { get { throw null; } } } public partial class SuggestOptions { @@ -210,6 +210,8 @@ public SearchableFieldAttribute() { } public string IndexAnalyzerName { get { throw null; } set { } } public string SearchAnalyzerName { get { throw null; } set { } } public string[] SynonymMapNames { get { throw null; } set { } } + public string VectorSearchConfiguration { get { throw null; } set { } } + public string VectorSearchDimensions { get { throw null; } set { } } } public partial class SearchIndexClient { @@ -3282,7 +3284,6 @@ public static partial class SearchModelFactory public static Azure.Search.Documents.Indexes.Models.SearchIndexerWarning SearchIndexerWarning(string key, string message, string name, string details, string documentationLink) { throw null; } public static Azure.Search.Documents.Indexes.Models.SearchIndexStatistics SearchIndexStatistics(long documentCount, long storageSize) { throw null; } public static Azure.Search.Documents.Indexes.Models.SearchIndexStatistics SearchIndexStatistics(long documentCount = (long)0, long storageSize = (long)0, long? vectorIndexSize = default(long?)) { throw null; } - public static Azure.Search.Documents.Models.SearchQueryVector SearchQueryVector(System.Collections.Generic.IEnumerable value = null, int? kNearestNeighborsCount = default(int?), string fields = null) { throw null; } public static Azure.Search.Documents.Indexes.Models.SearchResourceCounter SearchResourceCounter(long usage, long? quota) { throw null; } public static Azure.Search.Documents.Models.SearchResultsPage SearchResultsPage(Azure.Search.Documents.Models.SearchResults results) { throw null; } public static Azure.Search.Documents.Models.SearchResults SearchResults(System.Collections.Generic.IEnumerable> values, long? totalCount, System.Collections.Generic.IDictionary> facets, double? coverage, Azure.Response rawResponse) { throw null; } @@ -3311,7 +3312,7 @@ public enum SearchQueryType public partial class SearchQueryVector { public SearchQueryVector() { } - public string Fields { get { throw null; } set { } } + public System.Collections.Generic.IList Fields { get { throw null; } } public int? KNearestNeighborsCount { get { throw null; } set { } } public System.Collections.Generic.IReadOnlyList Value { get { throw null; } set { } } } diff --git a/sdk/search/Azure.Search.Documents/assets.json b/sdk/search/Azure.Search.Documents/assets.json index 827f1fe8dae2..11be40fa860b 100644 --- a/sdk/search/Azure.Search.Documents/assets.json +++ b/sdk/search/Azure.Search.Documents/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/search/Azure.Search.Documents", - "Tag": "net/search/Azure.Search.Documents_a3427a4c81" + "Tag": "net/search/Azure.Search.Documents_38f84358e8" } diff --git a/sdk/search/Azure.Search.Documents/samples/Sample07_VectorSearch.md b/sdk/search/Azure.Search.Documents/samples/Sample07_VectorSearch.md index 4b05fc75b14f..7b1aaeb58b1a 100644 --- a/sdk/search/Azure.Search.Documents/samples/Sample07_VectorSearch.md +++ b/sdk/search/Azure.Search.Documents/samples/Sample07_VectorSearch.md @@ -10,7 +10,7 @@ This sample will show you how to index a vector field and perform vector search ## Create a Vector Index -Let's consider the example of a `Hotel`. First, we need to create an index for storing hotel information. In this index, we will define a field called `DescriptionVector` as a vector field. To configure the vector field, you need to provide the model dimensions, which indicate the size of the embeddings generated for this field, and the name of the vector search algorithm configuration that specifies the algorithm and any optional parameters for searching the vector field. You can find detailed instructions on how to create a vector index in the [documentation](https://learn.microsoft.com/azure/search/vector-search-how-to-create-index). +Let's consider the example of a `Hotel`. First, we need to create an index for storing hotel information. In this index, we will define vector fields called `DescriptionVector` and `CategoryVector`. To configure the vector field, you need to provide the model dimensions, which indicate the size of the embeddings generated for this field, and the name of the vector search algorithm configuration that specifies the algorithm and any optional parameters for searching the vector field. You can find detailed instructions on how to create a vector index in the [documentation](https://learn.microsoft.com/azure/search/vector-search-how-to-create-index). We will create an instace of `SearchIndex` and define `Hotel` fields. @@ -32,7 +32,13 @@ SearchIndex searchIndex = new(indexName) VectorSearchDimensions = modelDimensions, VectorSearchConfiguration = vectorSearchConfigName }, - new SearchableField("Category") { IsFilterable = true, IsSortable = true, IsFacetable = true } + new SearchableField("Category") { IsFilterable = true, IsSortable = true, IsFacetable = true }, + new SearchField("CategoryVector", SearchFieldDataType.Collection(SearchFieldDataType.Single)) + { + IsSearchable = true, + VectorSearchDimensions = modelDimensions, + VectorSearchConfiguration = vectorSearchConfigName + }, }, VectorSearch = new() { @@ -67,6 +73,7 @@ public class Hotel public string Description { get; set; } public IReadOnlyList DescriptionVector { get; set; } public string Category { get; set; } + public IReadOnlyList CategoryVector { get; set; } } ``` @@ -87,7 +94,7 @@ Embeddings embeddings = await openAIClient.GetEmbeddingsAsync("EmbeddingsModelNa IReadOnlyList descriptionVector = embeddings.Data[0].Embedding; ``` -In the sample code below, we are using hardcoded embeddings for the `DescriptionVector` field: +In the sample code below, we are using hardcoded embeddings for the vector fields named `DescriptionVector` and `CategoryVector`: ```C# Snippet:Azure_Search_Documents_Tests_Samples_Sample07_Vector_Search_Hotel_Document public static Hotel[] GetHotelDocuments() @@ -104,6 +111,7 @@ public static Hotel[] GetHotelDocuments() "the tourist attractions. We highly recommend this hotel.", DescriptionVector = VectorSearchEmbeddings.Hotel1VectorizeDescription, Category = "Luxury", + CategoryVector = VectorSearchEmbeddings.LuxuryVectorizeCategory }, new Hotel() { @@ -112,6 +120,7 @@ public static Hotel[] GetHotelDocuments() Description = "Cheapest hotel in town. Infact, a motel.", DescriptionVector = VectorSearchEmbeddings.Hotel2VectorizeDescription, Category = "Budget", + CategoryVector = VectorSearchEmbeddings.BudgetVectorizeCategory }, // Add more hotel documents here... }; @@ -142,7 +151,7 @@ IReadOnlyList vectorizedResult = VectorSearchEmbeddings.SearchVectorizeDe SearchResults response = await searchClient.SearchAsync(null, new SearchOptions { - Vector = new() { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = "DescriptionVector" }, + Vectors = { new() { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = { "DescriptionVector" } } }, }); int count = 0; @@ -166,7 +175,7 @@ IReadOnlyList vectorizedResult = VectorSearchEmbeddings.SearchVectorizeDe SearchResults response = await searchClient.SearchAsync(null, new SearchOptions { - Vector = new() { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = "DescriptionVector" }, + Vectors = { new() { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = { "DescriptionVector" } } }, Filter = "Category eq 'Luxury'" }); @@ -194,7 +203,7 @@ SearchResults response = await searchClient.SearchAsync( "Top hotels in town", new SearchOptions { - Vector = new() { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = "DescriptionVector" }, + Vectors = { new() { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = { "DescriptionVector" } } }, }); int count = 0; @@ -247,7 +256,7 @@ SearchResults response = await searchClient.SearchAsync( "Is there any hotel located on the main commercial artery of the city in the heart of New York?", new SearchOptions { - Vector = new SearchQueryVector { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = "descriptionVector" }, + Vectors = { new() { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = { "descriptionVector" } } }, QueryType = SearchQueryType.Semantic, QueryLanguage = QueryLanguage.EnUs, SemanticConfigurationName = "my-semantic-config", @@ -286,3 +295,58 @@ await foreach (SearchResult result in response.GetResultsAsync()) } Console.WriteLine($"Total number of search results:{count}"); ``` + +### Multi-vector Search + +You can search containing multiple query vectors using the `SearchOptions.Vectors` property. These queries will be executed concurrently in the search index, with each one searching for similarities in the target vector fields. The result set will be a combination of documents that matched both vector queries. One common use case for this query request is when using models like CLIP for a multi-modal vector search, where the same model can vectorize both image and non-image content. + +```C# Snippet:Azure_Search_Documents_Tests_Samples_Sample07_Multi_Vector_Search +IReadOnlyList vectorizedDescriptionQuery = VectorSearchEmbeddings.SearchVectorizeDescription; // "Top hotels in town" +IReadOnlyList vectorizedCategoryQuery = VectorSearchEmbeddings.SearchVectorizeCategory; // "Luxury hotels in town" + +SearchResults response = await searchClient.SearchAsync(null, + new SearchOptions + { + Vectors = { + new() { Value = vectorizedDescriptionQuery, KNearestNeighborsCount = 3, Fields = { "DescriptionVector" } }, + new() { Value = vectorizedCategoryQuery, KNearestNeighborsCount = 3, Fields = { "CategoryVector" } } + }, + }); + +int count = 0; +Console.WriteLine($"Multi Vector Search Results:"); +await foreach (SearchResult result in response.GetResultsAsync()) +{ + count++; + Hotel doc = result.Document; + Console.WriteLine($"{doc.HotelId}: {doc.HotelName}"); +} +Console.WriteLine($"Total number of search results:{count}"); +``` + +### Multi-field Vector Search + +You can set the `SearchOptions.Vectors.Fields` property to multiple vector fields. For example, we have vector fields named `DescriptionVector` and `CategoryVector`. Your vector query executes over both the `DescriptionVector` and `CategoryVector` fields, which must have the same embedding space since they share the same query vector. + +```C# Snippet:Azure_Search_Documents_Tests_Samples_Sample07_Multi_Fields_Vector_Search +IReadOnlyList vectorizedResult = VectorSearchEmbeddings.SearchVectorizeDescription; // "Top hotels in town" + +SearchResults response = await searchClient.SearchAsync(null, + new SearchOptions + { + Vectors = { new() { + Value = vectorizedResult, + KNearestNeighborsCount = 3, + Fields = { "DescriptionVector", "CategoryVector" } } } + }); + +int count = 0; +Console.WriteLine($"Multi Fields Vector Search Results:"); +await foreach (SearchResult result in response.GetResultsAsync()) +{ + count++; + Hotel doc = result.Document; + Console.WriteLine($"{doc.HotelId}: {doc.HotelName}"); +} +Console.WriteLine($"Total number of search results:{count}"); +``` diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchOptions.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchOptions.Serialization.cs index 723f894e0786..055b4ae7ef19 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchOptions.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchOptions.Serialization.cs @@ -174,10 +174,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("semanticFields"u8); writer.WriteStringValue(SemanticFieldsRaw); } - if (Optional.IsDefined(Vector)) + if (Optional.IsCollectionDefined(Vectors)) { - writer.WritePropertyName("vector"u8); - writer.WriteObjectValue(Vector); + writer.WritePropertyName("vectors"u8); + writer.WriteStartArray(); + foreach (var item in Vectors) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); } writer.WriteEndObject(); } @@ -216,7 +221,7 @@ internal static SearchOptions DeserializeSearchOptions(JsonElement element) Optional top = default; Optional captions = default; Optional semanticFields = default; - Optional vector = default; + Optional> vectors = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("count"u8)) @@ -426,17 +431,22 @@ internal static SearchOptions DeserializeSearchOptions(JsonElement element) semanticFields = property.Value.GetString(); continue; } - if (property.NameEquals("vector"u8)) + if (property.NameEquals("vectors"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - vector = SearchQueryVector.DeserializeSearchQueryVector(property.Value); + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(SearchQueryVector.DeserializeSearchQueryVector(item)); + } + vectors = array; continue; } } - return new SearchOptions(Optional.ToNullable(count), Optional.ToList(facets), filter.Value, highlight.Value, highlightPostTag.Value, highlightPreTag.Value, Optional.ToNullable(minimumCoverage), orderby.Value, Optional.ToNullable(queryType), Optional.ToNullable(scoringStatistics), sessionId.Value, Optional.ToList(scoringParameters), scoringProfile.Value, semanticConfiguration.Value, Optional.ToNullable(semanticErrorHandling), Optional.ToNullable(semanticMaxWaitInMilliseconds), Optional.ToNullable(debug), search.Value, searchFields.Value, Optional.ToNullable(searchMode), Optional.ToNullable(queryLanguage), Optional.ToNullable(speller), answers.Value, select.Value, Optional.ToNullable(skip), Optional.ToNullable(top), captions.Value, semanticFields.Value, vector.Value); + return new SearchOptions(Optional.ToNullable(count), Optional.ToList(facets), filter.Value, highlight.Value, highlightPostTag.Value, highlightPreTag.Value, Optional.ToNullable(minimumCoverage), orderby.Value, Optional.ToNullable(queryType), Optional.ToNullable(scoringStatistics), sessionId.Value, Optional.ToList(scoringParameters), scoringProfile.Value, semanticConfiguration.Value, Optional.ToNullable(semanticErrorHandling), Optional.ToNullable(semanticMaxWaitInMilliseconds), Optional.ToNullable(debug), search.Value, searchFields.Value, Optional.ToNullable(searchMode), Optional.ToNullable(queryLanguage), Optional.ToNullable(speller), answers.Value, select.Value, Optional.ToNullable(skip), Optional.ToNullable(top), captions.Value, semanticFields.Value, Optional.ToList(vectors)); } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchOptions.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchOptions.cs index 071f1f631919..ea220cb371eb 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchOptions.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchOptions.cs @@ -19,6 +19,7 @@ public SearchOptions() { Facets = new ChangeTrackingList(); ScoringParameters = new ChangeTrackingList(); + Vectors = new ChangeTrackingList(); } /// Initializes a new instance of SearchOptions. @@ -50,8 +51,8 @@ public SearchOptions() /// The number of search results to retrieve. This can be used in conjunction with $skip to implement client-side paging of search results. If results are truncated due to server-side paging, the response will include a continuation token that can be used to issue another Search request for the next page of results. /// A value that specifies whether captions should be returned as part of the search response. /// The comma-separated list of field names used for semantic search. - /// The query parameters for vector and hybrid search queries. - internal SearchOptions(bool? includeTotalCount, IList facets, string filter, string highlightFieldsRaw, string highlightPostTag, string highlightPreTag, double? minimumCoverage, string orderByRaw, SearchQueryType? queryType, ScoringStatistics? scoringStatistics, string sessionId, IList scoringParameters, string scoringProfile, string semanticConfigurationName, SemanticErrorHandling? semanticErrorHandling, int? semanticMaxWaitInMilliseconds, QueryDebugMode? debug, string searchText, string searchFieldsRaw, SearchMode? searchMode, QueryLanguage? queryLanguage, QuerySpellerType? querySpeller, string queryAnswerRaw, string selectRaw, int? skip, int? size, string queryCaptionRaw, string semanticFieldsRaw, SearchQueryVector vector) + /// The query parameters for multi-vector search queries. + internal SearchOptions(bool? includeTotalCount, IList facets, string filter, string highlightFieldsRaw, string highlightPostTag, string highlightPreTag, double? minimumCoverage, string orderByRaw, SearchQueryType? queryType, ScoringStatistics? scoringStatistics, string sessionId, IList scoringParameters, string scoringProfile, string semanticConfigurationName, SemanticErrorHandling? semanticErrorHandling, int? semanticMaxWaitInMilliseconds, QueryDebugMode? debug, string searchText, string searchFieldsRaw, SearchMode? searchMode, QueryLanguage? queryLanguage, QuerySpellerType? querySpeller, string queryAnswerRaw, string selectRaw, int? skip, int? size, string queryCaptionRaw, string semanticFieldsRaw, IList vectors) { IncludeTotalCount = includeTotalCount; Facets = facets; @@ -81,7 +82,7 @@ internal SearchOptions(bool? includeTotalCount, IList facets, string fil Size = size; QueryCaptionRaw = queryCaptionRaw; SemanticFieldsRaw = semanticFieldsRaw; - Vector = vector; + Vectors = vectors; } /// A string tag that is appended to hit highlights. Must be set with highlightPreTag. Default is </em>. public string HighlightPostTag { get; set; } @@ -107,7 +108,5 @@ internal SearchOptions(bool? includeTotalCount, IList facets, string fil public SearchMode? SearchMode { get; set; } /// The number of search results to skip. This value cannot be greater than 100,000. If you need to scan documents in sequence, but cannot use skip due to this limitation, consider using orderby on a totally-ordered key and filter with a range query instead. public int? Skip { get; set; } - /// The query parameters for vector and hybrid search queries. - public SearchQueryVector Vector { get; set; } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchQueryVector.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchQueryVector.Serialization.cs index 7bda15f21821..1391bb06b0a3 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchQueryVector.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchQueryVector.Serialization.cs @@ -31,10 +31,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("k"u8); writer.WriteNumberValue(KNearestNeighborsCount.Value); } - if (Optional.IsDefined(Fields)) + if (Optional.IsDefined(FieldsRaw)) { writer.WritePropertyName("fields"u8); - writer.WriteStringValue(Fields); + writer.WriteStringValue(FieldsRaw); } writer.WriteEndObject(); } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchQueryVector.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchQueryVector.cs index 16542e4dda07..5ddd81d55716 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchQueryVector.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchQueryVector.cs @@ -22,16 +22,14 @@ public SearchQueryVector() /// Initializes a new instance of SearchQueryVector. /// The vector representation of a search query. /// Number of nearest neighbors to return as top hits. - /// Vector Fields of type Collection(Edm.Single) to be included in the vector searched. - internal SearchQueryVector(IReadOnlyList value, int? kNearestNeighborsCount, string fields) + /// Vector Fields of type Collection(Edm.Single) to be included in the vector searched. + internal SearchQueryVector(IReadOnlyList value, int? kNearestNeighborsCount, string fieldsRaw) { Value = value; KNearestNeighborsCount = kNearestNeighborsCount; - Fields = fields; + FieldsRaw = fieldsRaw; } /// Number of nearest neighbors to return as top hits. public int? KNearestNeighborsCount { get; set; } - /// Vector Fields of type Collection(Edm.Single) to be included in the vector searched. - public string Fields { get; set; } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/SearchModelFactory.cs b/sdk/search/Azure.Search.Documents/src/Generated/SearchModelFactory.cs index 5f0f763ed0e3..e30d69e6a778 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/SearchModelFactory.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/SearchModelFactory.cs @@ -15,18 +15,6 @@ namespace Azure.Search.Documents.Models /// Model factory for models. public static partial class SearchModelFactory { - /// Initializes a new instance of SearchQueryVector. - /// The vector representation of a search query. - /// Number of nearest neighbors to return as top hits. - /// Vector Fields of type Collection(Edm.Single) to be included in the vector searched. - /// A new instance for mocking. - public static SearchQueryVector SearchQueryVector(IEnumerable value = null, int? kNearestNeighborsCount = null, string fields = null) - { - value ??= new List(); - - return new SearchQueryVector(value?.ToList(), kNearestNeighborsCount, fields); - } - /// Initializes a new instance of AnswerResult. /// The score value represents how relevant the answer is to the query relative to other answers returned for the query. /// The key of the document the answer was extracted from. diff --git a/sdk/search/Azure.Search.Documents/src/Indexes/FieldBuilder.cs b/sdk/search/Azure.Search.Documents/src/Indexes/FieldBuilder.cs index 252228f09779..301b32dbf1e2 100644 --- a/sdk/search/Azure.Search.Documents/src/Indexes/FieldBuilder.cs +++ b/sdk/search/Azure.Search.Documents/src/Indexes/FieldBuilder.cs @@ -34,6 +34,7 @@ public class FieldBuilder [typeof(DateTime)] = SearchFieldDataType.DateTimeOffset, [typeof(DateTimeOffset)] = SearchFieldDataType.DateTimeOffset, [typeof(GeoPoint)] = SearchFieldDataType.GeographyPoint, + [typeof(Single)] = SearchFieldDataType.Single }); private static readonly ISet s_unsupportedTypes = diff --git a/sdk/search/Azure.Search.Documents/src/Indexes/SearchableFieldAttribute.cs b/sdk/search/Azure.Search.Documents/src/Indexes/SearchableFieldAttribute.cs index 9f5e4fb860b0..3115c0043198 100644 --- a/sdk/search/Azure.Search.Documents/src/Indexes/SearchableFieldAttribute.cs +++ b/sdk/search/Azure.Search.Documents/src/Indexes/SearchableFieldAttribute.cs @@ -35,6 +35,16 @@ public class SearchableFieldAttribute : SimpleFieldAttribute, ISearchFieldAttrib /// String values from LexicalAnalyzerName, or the name of a custom analyzer previously uploaded. public string IndexAnalyzerName { get; set; } + /// + /// The dimensionality of the vector field. + /// + public string VectorSearchDimensions { get; set; } + + /// + /// The name of the vector search algorithm configuration that specifies the algorithm and optional parameters for searching the vector field. + /// + public string VectorSearchConfiguration { get; set; } + /// /// Gets or sets a list of names of synonym maps to associate with this field. /// Currently, only one synonym map per field is supported. @@ -75,6 +85,16 @@ void ISearchFieldAttribute.SetField(SearchField field) { field.IndexAnalyzerName = IndexAnalyzerName; } + + if (int.TryParse(VectorSearchDimensions, out int dimensions)) + { + field.VectorSearchDimensions = dimensions; + } + + if (VectorSearchConfiguration != null) + { + field.VectorSearchConfiguration = VectorSearchConfiguration; + } } } } diff --git a/sdk/search/Azure.Search.Documents/src/Models/SearchQueryVector.cs b/sdk/search/Azure.Search.Documents/src/Models/SearchQueryVector.cs index ba8e9e3610fe..c76d382441a8 100644 --- a/sdk/search/Azure.Search.Documents/src/Models/SearchQueryVector.cs +++ b/sdk/search/Azure.Search.Documents/src/Models/SearchQueryVector.cs @@ -11,5 +11,20 @@ public partial class SearchQueryVector { /// The vector representation of a search query. public IReadOnlyList Value { get; set; } + + /// + /// Vector Fields of type Collection(Edm.Single) to be included in the vector searched. + /// + public IList Fields { get; internal set; } = new List(); + + /// + /// Join Fields so it can be sent as a comma separated string. + /// + [CodeGenMember("Fields")] + internal string FieldsRaw + { + get => Fields.CommaJoin(); + set => Fields = SearchExtensions.CommaSplit(value); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Options/SearchOptions.cs b/sdk/search/Azure.Search.Documents/src/Options/SearchOptions.cs index 4a12744ffbbd..6deebbe9ae7c 100644 --- a/sdk/search/Azure.Search.Documents/src/Options/SearchOptions.cs +++ b/sdk/search/Azure.Search.Documents/src/Options/SearchOptions.cs @@ -327,6 +327,9 @@ internal string QueryCaptionRaw } } + /// The query parameters for multi-vector search queries. + public IList Vectors { get; internal set; } = new List(); + /// /// Shallow copy one SearchOptions instance to another. /// @@ -365,6 +368,7 @@ private static void Copy(SearchOptions source, SearchOptions destination) destination.SessionId = source.SessionId; destination.Size = source.Size; destination.Skip = source.Skip; + destination.Vectors = source.Vectors; } /// diff --git a/sdk/search/Azure.Search.Documents/src/autorest.md b/sdk/search/Azure.Search.Documents/src/autorest.md index 32ab07ea21d0..63f9a78e9c23 100644 --- a/sdk/search/Azure.Search.Documents/src/autorest.md +++ b/sdk/search/Azure.Search.Documents/src/autorest.md @@ -11,8 +11,8 @@ See the [Contributing guidelines](https://github.com/Azure/azure-sdk-for-net/blo ```yaml title: SearchServiceClient input-file: - - https://github.com/Azure/azure-rest-api-specs/blob/0cfd102a6ecb172f04ec915732bd8ca6f6b2a7af/specification/search/data-plane/Azure.Search/preview/2023-07-01-Preview/searchindex.json - - https://github.com/Azure/azure-rest-api-specs/blob/0cfd102a6ecb172f04ec915732bd8ca6f6b2a7af/specification/search/data-plane/Azure.Search/preview/2023-07-01-Preview/searchservice.json + - https://github.com/Azure/azure-rest-api-specs/blob/9383e81389c2b1c64da07cc70c66f8c54b9ad4f5/specification/search/data-plane/Azure.Search/preview/2023-07-01-Preview/searchindex.json + - https://github.com/Azure/azure-rest-api-specs/blob/9383e81389c2b1c64da07cc70c66f8c54b9ad4f5/specification/search/data-plane/Azure.Search/preview/2023-07-01-Preview/searchservice.json generation1-convenience-client: true deserialize-null-collection-as-null-value: true ``` @@ -147,6 +147,17 @@ directive: transform: $["x-ms-enum"].name = "SemanticFieldState"; ``` +### Remove `Vector` Property + + Remove the `Vector` Property from `SearchRequest` in favor of the `Vectors` Array + +```yaml +directive: +- from: searchindex.json + where: $.definitions.SearchRequest + transform: delete $.properties.vector; +``` + ### Rename one of SearchMode definitions SearchMode is duplicated across swaggers. Rename one of them, even though it will be internalized. diff --git a/sdk/search/Azure.Search.Documents/tests/DocumentOperations/VectorSearchTests.cs b/sdk/search/Azure.Search.Documents/tests/DocumentOperations/VectorSearchTests.cs index 821cb82d3073..5755332c0eda 100644 --- a/sdk/search/Azure.Search.Documents/tests/DocumentOperations/VectorSearchTests.cs +++ b/sdk/search/Azure.Search.Documents/tests/DocumentOperations/VectorSearchTests.cs @@ -42,7 +42,7 @@ public async Task SingleVectorSearch() null, new SearchOptions { - Vector = new SearchQueryVector { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = "descriptionVector" }, + Vectors = { new SearchQueryVector { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = { "descriptionVector" } } }, Select = { "hotelId", "hotelName" } }); @@ -63,7 +63,7 @@ public async Task SingleVectorSearchWithFilter() null, new SearchOptions { - Vector = new SearchQueryVector { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = "descriptionVector" }, + Vectors = { new SearchQueryVector { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = { "descriptionVector" } } }, Filter = "category eq 'Budget'", Select = { "hotelId", "hotelName", "category" } }); @@ -85,7 +85,7 @@ public async Task SimpleHybridSearch() "Top hotels in town", new SearchOptions { - Vector = new SearchQueryVector { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = "descriptionVector" }, + Vectors = { new SearchQueryVector { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = { "descriptionVector" } } }, Select = { "hotelId", "hotelName" }, }); @@ -107,7 +107,7 @@ public async Task SemanticHybridSearch() "Is there any hotel located on the main commercial artery of the city in the heart of New York?", new SearchOptions { - Vector = new SearchQueryVector { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = "descriptionVector" }, + Vectors = { new SearchQueryVector { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = { "descriptionVector" } } }, Select = { "hotelId", "hotelName", "description", "category" }, QueryType = SearchQueryType.Semantic, QueryLanguage = QueryLanguage.EnUs, @@ -157,8 +157,8 @@ public async Task UpdateExistingIndexToAddVectorFields() }, }; - SearchIndexClient indexClient = resources.GetIndexClient(); - await indexClient.CreateIndexAsync(index); + SearchIndexClient indexClient = resources.GetIndexClient(); + await indexClient.CreateIndexAsync(index); // Upload data SearchDocument document = new SearchDocument @@ -222,5 +222,49 @@ public async Task UpdateExistingIndexToAddVectorFields() Assert.AreEqual(updatedIndex.Name, createdIndex.Name); } + + [Test] + public async Task CreateIndexUsingFieldBuilder() + { + await using SearchResources resources = SearchResources.CreateWithNoIndexes(this); + + string indexName = Recording.Random.GetName(); + resources.IndexName = indexName; + + // Create Index + SearchIndex index = new SearchIndex(indexName) + { + Fields = new FieldBuilder().Build(typeof(Model)), + VectorSearch = new() + { + AlgorithmConfigurations = + { + new HnswVectorSearchAlgorithmConfiguration( "my-vector-config") + } + } + }; + + SearchIndexClient indexClient = resources.GetIndexClient(); + await indexClient.CreateIndexAsync(index); + + SearchIndex createdIndex = await indexClient.GetIndexAsync(indexName); + Assert.AreEqual(indexName, createdIndex.Name); + Assert.AreEqual(index.Fields.Count, createdIndex.Fields.Count); + } + + private class Model + { + [SimpleField(IsKey = true, IsFilterable = true, IsSortable = true)] + public string Id { get; set; } + + [SearchableField(IsFilterable = true, IsSortable = true)] + public string Name { get; set; } + + [SearchableField(AnalyzerName = "en.microsoft")] + public string Description { get; set; } + + [SearchableField(VectorSearchDimensions = "1536", VectorSearchConfiguration = "my-vector-config")] + public IReadOnlyList DescriptionVector { get; set; } + } } } diff --git a/sdk/search/Azure.Search.Documents/tests/FieldBuilderTests.cs b/sdk/search/Azure.Search.Documents/tests/FieldBuilderTests.cs index 532a5c1f3002..b995614aa397 100644 --- a/sdk/search/Azure.Search.Documents/tests/FieldBuilderTests.cs +++ b/sdk/search/Azure.Search.Documents/tests/FieldBuilderTests.cs @@ -477,6 +477,29 @@ public void SupportsSpecificSpatialTypes() } } + [Test] + public void SupportsVectorType() + { + IList fields = new FieldBuilder().Build(typeof(ModelWithVectorProperty)); + foreach (SearchField field in fields) + { + switch (field.Name) + { + case nameof(ModelWithVectorProperty.ID): + Assert.AreEqual(SearchFieldDataType.String, field.Type); + break; + + case nameof(ModelWithVectorProperty.TitleVector): + Assert.AreEqual(SearchFieldDataType.Collection(SearchFieldDataType.Single), field.Type); + break; + + default: + Assert.AreEqual(SearchFieldDataType.Complex, field.Type, $"Unexpected type for field '{field.Name}'"); + break; + } + } + } + private static IEnumerable<(Type ModelType, SearchFieldDataType DataType, string FieldName)> CombineTestData( IEnumerable modelTypes, IEnumerable<(SearchFieldDataType DataType, string FieldName)> testData) => @@ -645,5 +668,14 @@ private class ModelWithSpatialProperties public GeometryPolygon GeometryPolygon { get; set; } } + + private class ModelWithVectorProperty + { + [SimpleField(IsKey = true)] + public string ID { get; set; } + + [SearchableField(VectorSearchDimensions = "1536", VectorSearchConfiguration = "test-config")] + public IReadOnlyList TitleVector { get; set; } + } } } diff --git a/sdk/search/Azure.Search.Documents/tests/Samples/Readme.cs b/sdk/search/Azure.Search.Documents/tests/Samples/Readme.cs index d5eaf1334f49..d9a1323659b9 100644 --- a/sdk/search/Azure.Search.Documents/tests/Samples/Readme.cs +++ b/sdk/search/Azure.Search.Documents/tests/Samples/Readme.cs @@ -110,7 +110,7 @@ public async Task CreateAndQuery() SearchDocument doc = result.Document; string id = (string)doc["HotelId"]; string name = (string)doc["HotelName"]; - Console.WriteLine("{id}: {name}"); + Console.WriteLine($"{id}: {name}"); } #endregion Snippet:Azure_Search_Tests_Samples_Readme_Dict @@ -119,7 +119,7 @@ public async Task CreateAndQuery() dynamic doc = result.Document; string id = doc.HotelId; string name = doc.HotelName; - Console.WriteLine("{id}: {name}"); + Console.WriteLine($"{id}: {name}"); } } diff --git a/sdk/search/Azure.Search.Documents/tests/Samples/Sample07_VectorSearch.cs b/sdk/search/Azure.Search.Documents/tests/Samples/Sample07_VectorSearch.cs index f2f4f17374a4..e30eda8a2256 100644 --- a/sdk/search/Azure.Search.Documents/tests/Samples/Sample07_VectorSearch.cs +++ b/sdk/search/Azure.Search.Documents/tests/Samples/Sample07_VectorSearch.cs @@ -41,7 +41,7 @@ public async Task SingleVectorSearch() SearchResults response = await searchClient.SearchAsync(null, new SearchOptions { - Vector = new() { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = "DescriptionVector" }, + Vectors = { new() { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = { "DescriptionVector" } } }, }); int count = 0; @@ -83,7 +83,7 @@ public async Task SingleVectorSearchWithFilter() SearchResults response = await searchClient.SearchAsync(null, new SearchOptions { - Vector = new() { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = "DescriptionVector" }, + Vectors = { new() { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = { "DescriptionVector" } } }, Filter = "Category eq 'Luxury'" }); @@ -127,7 +127,7 @@ public async Task SimpleHybridSearch() "Top hotels in town", new SearchOptions { - Vector = new() { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = "DescriptionVector" }, + Vectors = { new() { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = { "DescriptionVector" } } }, }); int count = 0; @@ -173,7 +173,7 @@ public async Task SemanticHybridSearch() "Is there any hotel located on the main commercial artery of the city in the heart of New York?", new SearchOptions { - Vector = new SearchQueryVector { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = "descriptionVector" }, + Vectors = { new() { Value = vectorizedResult, KNearestNeighborsCount = 3, Fields = { "descriptionVector" } } }, QueryType = SearchQueryType.Semantic, QueryLanguage = QueryLanguage.EnUs, SemanticConfigurationName = "my-semantic-config", @@ -220,6 +220,97 @@ public async Task SemanticHybridSearch() } } + [Test] + public async Task MultiVectorQuerySearch() + { + await using SearchResources resources = SearchResources.CreateWithNoIndexes(this); + SearchIndexClient indexClient = null; + string indexName = Recording.Random.GetName(); + try + { + indexClient = await CreateIndex(resources, indexName); + + SearchClient searchClient = await UploadDocuments(resources, indexName); + + #region Snippet:Azure_Search_Documents_Tests_Samples_Sample07_Multi_Vector_Search + IReadOnlyList vectorizedDescriptionQuery = VectorSearchEmbeddings.SearchVectorizeDescription; // "Top hotels in town" + IReadOnlyList vectorizedCategoryQuery = VectorSearchEmbeddings.SearchVectorizeCategory; // "Luxury hotels in town" +#if !SNIPPET + await Task.Delay(TimeSpan.FromSeconds(1)); +#endif + + SearchResults response = await searchClient.SearchAsync(null, + new SearchOptions + { + Vectors = { + new() { Value = vectorizedDescriptionQuery, KNearestNeighborsCount = 3, Fields = { "DescriptionVector" } }, + new() { Value = vectorizedCategoryQuery, KNearestNeighborsCount = 3, Fields = { "CategoryVector" } } + }, + }); + + int count = 0; + Console.WriteLine($"Multi Vector Search Results:"); + await foreach (SearchResult result in response.GetResultsAsync()) + { + count++; + Hotel doc = result.Document; + Console.WriteLine($"{doc.HotelId}: {doc.HotelName}"); + } + Console.WriteLine($"Total number of search results:{count}"); + #endregion + Assert.GreaterOrEqual(count, 1); + } + finally + { + await indexClient.DeleteIndexAsync(indexName); + } + } + + [Test] + public async Task MultiFieldVectorQuerySearch() + { + await using SearchResources resources = SearchResources.CreateWithNoIndexes(this); + SearchIndexClient indexClient = null; + string indexName = Recording.Random.GetName(); + try + { + indexClient = await CreateIndex(resources, indexName); + + SearchClient searchClient = await UploadDocuments(resources, indexName); + + #region Snippet:Azure_Search_Documents_Tests_Samples_Sample07_Multi_Fields_Vector_Search + IReadOnlyList vectorizedResult = VectorSearchEmbeddings.SearchVectorizeDescription; // "Top hotels in town" +#if !SNIPPET + await Task.Delay(TimeSpan.FromSeconds(1)); +#endif + + SearchResults response = await searchClient.SearchAsync(null, + new SearchOptions + { + Vectors = { new() { + Value = vectorizedResult, + KNearestNeighborsCount = 3, + Fields = { "DescriptionVector", "CategoryVector" } } } + }); + + int count = 0; + Console.WriteLine($"Multi Fields Vector Search Results:"); + await foreach (SearchResult result in response.GetResultsAsync()) + { + count++; + Hotel doc = result.Document; + Console.WriteLine($"{doc.HotelId}: {doc.HotelName}"); + } + Console.WriteLine($"Total number of search results:{count}"); + #endregion + Assert.GreaterOrEqual(count, 1); + } + finally + { + await indexClient.DeleteIndexAsync(indexName); + } + } + private async Task CreateIndex(SearchResources resources, string name) { #region Snippet:Azure_Search_Documents_Tests_Samples_Sample07_Vector_Search_Index @@ -243,7 +334,13 @@ private async Task CreateIndex(SearchResources resources, str VectorSearchDimensions = modelDimensions, VectorSearchConfiguration = vectorSearchConfigName }, - new SearchableField("Category") { IsFilterable = true, IsSortable = true, IsFacetable = true } + new SearchableField("Category") { IsFilterable = true, IsSortable = true, IsFacetable = true }, + new SearchField("CategoryVector", SearchFieldDataType.Collection(SearchFieldDataType.Single)) + { + IsSearchable = true, + VectorSearchDimensions = modelDimensions, + VectorSearchConfiguration = vectorSearchConfigName + }, }, VectorSearch = new() { @@ -334,6 +431,7 @@ public class Hotel public string Description { get; set; } public IReadOnlyList DescriptionVector { get; set; } public string Category { get; set; } + public IReadOnlyList CategoryVector { get; set; } } #endregion @@ -352,6 +450,7 @@ public static Hotel[] GetHotelDocuments() "the tourist attractions. We highly recommend this hotel.", DescriptionVector = VectorSearchEmbeddings.Hotel1VectorizeDescription, Category = "Luxury", + CategoryVector = VectorSearchEmbeddings.LuxuryVectorizeCategory }, new Hotel() { @@ -360,6 +459,7 @@ public static Hotel[] GetHotelDocuments() Description = "Cheapest hotel in town. Infact, a motel.", DescriptionVector = VectorSearchEmbeddings.Hotel2VectorizeDescription, Category = "Budget", + CategoryVector = VectorSearchEmbeddings.BudgetVectorizeCategory }, #if !SNIPPET new Hotel() @@ -369,6 +469,7 @@ public static Hotel[] GetHotelDocuments() Description = "Very popular hotel in town.", DescriptionVector = VectorSearchEmbeddings.Hotel3VectorizeDescription, Category = "Budget", + CategoryVector = VectorSearchEmbeddings.BudgetVectorizeCategory }, new Hotel() { @@ -377,6 +478,7 @@ public static Hotel[] GetHotelDocuments() Description = "Modern architecture, very polite staff and very clean. Also very affordable.", DescriptionVector = VectorSearchEmbeddings.Hotel7VectorizeDescription, Category = "Luxury", + CategoryVector = VectorSearchEmbeddings.LuxuryVectorizeCategory }, new Hotel() { @@ -387,6 +489,7 @@ public static Hotel[] GetHotelDocuments() "as well as other places of interest that make New York one of America's most attractive and cosmopolitan cities.", DescriptionVector = VectorSearchEmbeddings.Hotel9VectorizeDescription, Category = "Boutique", + CategoryVector = VectorSearchEmbeddings.BoutiqueVectorizeCategory } #endif // Add more hotel documents here... diff --git a/sdk/search/Azure.Search.Documents/tests/Utilities/VectorSearch.Embeddings.cs b/sdk/search/Azure.Search.Documents/tests/Utilities/VectorSearch.Embeddings.cs index f8923efc8e4d..0c0abdd54163 100644 --- a/sdk/search/Azure.Search.Documents/tests/Utilities/VectorSearch.Embeddings.cs +++ b/sdk/search/Azure.Search.Documents/tests/Utilities/VectorSearch.Embeddings.cs @@ -27,8 +27,16 @@ public partial class VectorSearchEmbeddings public static readonly IReadOnlyList Hotel10VectorizeDescription = new List { -0.028266374f, -0.010204822f, 0.049104568f, 0.012579697f, -0.023820179f, -0.020213226f, 0.007865659f, 0.017909775f, 0.0038390844f, 0.012713619f, -0.0011740456f, 0.0146688735f, 0.009137914f, 0.008490626f, -0.016311644f, 0.027319996f, -0.024480859f, 0.02508797f, -0.007874587f, 0.020177513f, 0.0048747445f, 0.011651174f, -0.032819707f, -0.0076692407f, 0.012195789f, 0.021820284f, -0.025284387f, -0.018909723f, -0.008111182f, 0.014588521f, -0.0041426397f, -0.026159342f, 0.008222783f, -0.033373248f, -0.00911113f, 0.023427343f, -0.010169109f, 0.014365318f, 0.026766453f, -0.020481069f, 0.014552808f, 0.0029127935f, -0.022177408f, -0.01821333f, -0.00019418624f, 0.0045198523f, -0.0044752117f, 0.014017122f, -0.012588626f, 0.00724962f, -0.0020188673f, -0.0069103516f, 0.0140974745f, -0.056711312f, -0.007740665f, 0.03512316f, 0.0036761465f, -0.0125707695f, 0.010320887f, 0.0030355551f, 0.020088231f, 0.025998637f, 0.02457014f, 0.008504018f, -0.01849903f, -0.006642509f, 0.002493173f, 0.013151096f, -0.02983772f, -0.010240534f, 0.013820703f, -0.010186966f, -0.011097632f, 0.0010244999f, 0.012347567f, 0.010436952f, 0.009633423f, -0.027819969f, -0.013142168f, 0.01887401f, -0.0040890714f, -0.01228507f, -0.008392417f, 0.020802481f, -0.0066291164f, -0.017436584f, -0.018186547f, -0.006472875f, 0.033533957f, 0.039926477f, 0.024016598f, 0.005182764f, -0.0025512055f, -0.00363597f, 0.010767292f, 0.002081364f, 0.002167297f, -0.019231133f, 0.005312221f, 0.027891394f, 0.022195265f, -0.024016598f, 0.01976682f, 0.020695344f, 0.007356757f, -0.02678431f, 0.020409644f, 0.00081915344f, 0.0015311696f, 0.020873904f, -0.034069642f, -0.004481908f, -0.016311644f, 0.00087160605f, -0.010892286f, -0.029641302f, -0.043604854f, -0.0066246525f, -0.02621291f, 0.018391892f, 0.010276247f, -0.0046426137f, 0.01835618f, -0.0071915872f, -0.03896224f, -9.918564E-05f, -0.022945225f, 0.0072987243f, 0.006057718f, -0.018516885f, -0.0074906787f, 0.030301983f, -0.003718555f, -0.0017699965f, 0.0027520878f, 0.013633213f, -0.008240639f, -0.009258443f, -0.014847435f, 0.0069505284f, 0.025248675f, -0.0006439394f, 0.005655953f, -0.00094749493f, 0.0054193586f, -0.027212858f, 0.012079723f, 0.00031694767f, -0.0146688735f, 0.053247206f, 0.0010663503f, -0.0013425635f, 0.013838559f, -0.016293788f, -0.010588731f, 0.005437215f, -0.030337695f, 0.023355918f, -0.010160182f, 0.022695238f, -0.009758417f, -0.011463684f, -0.002357019f, 0.031266216f, -0.0022855944f, -0.01332073f, 0.011526181f, -0.023855891f, -0.015124206f, -0.007454966f, 0.026105773f, 0.014034978f, 0.0078299465f, 0.060782526f, 0.03242687f, 0.006651437f, -0.00027300464f, -0.009463789f, -0.01999895f, 0.00088611426f, 0.0011494933f, -0.015945593f, 0.05106875f, -0.008512946f, 0.006392522f, 0.009463789f, 0.008477234f, 0.012436847f, 0.0058211233f, 0.021766715f, -0.0034194635f, -0.008227247f, -0.02739142f, -0.015329553f, 0.029855577f, 0.009936979f, -0.03449819f, -0.012561841f, 0.008437057f, 0.010124469f, -0.0182669f, -0.010990495f, 0.009660208f, 0.007115698f, 0.0039551496f, -0.030659106f, 0.008575443f, 0.01242792f, -0.013070743f, -0.002513261f, -0.01355286f, 0.034373198f, 0.01939184f, 0.024302296f, 0.00094861095f, -0.029016335f, -0.016240219f, 0.01266005f, 0.009383436f, 0.016972324f, 0.0030556433f, 0.010936926f, -0.0019251222f, 0.00223649f, -0.02151673f, 0.0073076524f, -0.0040488946f, -0.004399323f, 0.013445723f, 0.020034663f, 0.0015356337f, -0.0146688735f, -0.007606744f, -0.017240167f, 0.034087498f, 0.01788299f, -0.0034373198f, 0.008160287f, -0.005022058f, 0.0074906787f, -0.017427657f, -0.01962397f, -0.03199832f, 0.00090397045f, 0.0034083033f, 0.005026522f, 0.014633161f, 0.015990233f, 0.008004044f, -0.0039395257f, -0.0033458066f, 0.016570559f, -0.007843339f, -0.008209391f, 0.04217636f, 0.008602227f, -0.022230977f, -0.0022309097f, 0.004245313f, 0.019802533f, -0.024427291f, 0.008767397f, 0.025337957f, 0.0040913033f, 0.0046158293f, 0.025962925f, 0.0026962871f, 0.014159972f, -0.006062182f, -0.026320048f, -0.0059461165f, 0.0043770024f, 0.018659735f, -0.048568882f, 0.04471194f, -0.004151568f, -0.015311697f, -0.0228738f, 0.0034373198f, 0.016150938f, -0.024105879f, -0.02951631f, 0.037069485f, -0.012954677f, 0.021338167f, -0.0080442205f, -0.00863794f, 0.0039618458f, -0.005539888f, 0.02569508f, -0.024195159f, 0.02146316f, -0.01896329f, -0.02715929f, 0.0061648553f, 0.02649861f, 0.00011501908f, -0.009713776f, 0.016365213f, -0.012767187f, 0.016222363f, -0.0057496983f, 0.005727378f, 0.020195369f, 0.0031784046f, 0.018284755f, 0.010624442f, 0.008294208f, 0.0034060713f, -0.011856521f, -0.008905783f, -0.021106036f, 0.020498924f, 0.004077911f, -0.019588258f, 0.01068694f, -0.026802165f, 0.033926792f, -0.026748598f, 0.0013124312f, -0.003734179f, 0.011677959f, 0.021481017f, 0.0018871778f, 0.005276509f, -0.023605905f, 0.012901109f, 0.0075487113f, -0.011722599f, -0.010561946f, 0.025141539f, 0.021213174f, -0.002415052f, 0.0077674496f, -0.017088389f, 0.013892128f, 0.0061871754f, 0.007365685f, -0.013526076f, 0.0012945749f, -0.0026895911f, -0.017008036f, -0.016945539f, -0.016267003f, -0.0016226828f, -0.0010440301f, -0.0397122f, 0.01120477f, -0.00487028f, 0.008812037f, 0.01858831f, -0.012106508f, -0.0029194898f, 0.018713305f, 0.032444727f, 0.018007984f, -0.006495195f, -0.0029663623f, 0.000520341f, -0.018195475f, -0.0049684895f, 0.0021873852f, 0.007718345f, -0.014865291f, 0.012249357f, 0.031551916f, -0.019820388f, -0.010722652f, 0.020838192f, 0.025284387f, 0.015302769f, -0.0051782997f, -0.0036315059f, 0.011883305f, 0.0025579014f, 0.015561684f, 0.010776221f, 0.020552494f, 0.01844546f, -0.0071380185f, 0.01585631f, 0.0073880055f, -0.016972324f, -0.032605432f, 0.027034296f, 0.0037029309f, -0.016365213f, -0.0054997117f, -0.02701644f, -0.0100709f, 0.0017409801f, -0.009142377f, -0.020195369f, 0.0012800668f, 0.00072596635f, -0.017499082f, 0.014249252f, 0.004830104f, 0.022838088f, -0.025159394f, 0.01176724f, -0.0062496723f, -0.0049059927f, -0.013722494f, 0.0011416812f, -0.014445671f, -0.012740403f, -0.022909513f, 0.006999633f, -0.008173678f, 0.02457014f, 0.0058434433f, 0.008405809f, -0.021855997f, -0.014106403f, 0.012445776f, -0.014052834f, -0.029052047f, -0.0072272993f, 0.009999475f, -0.010151253f, 0.0069907047f, 0.007968332f, -0.0041984404f, 0.0036225778f, 0.002428444f, -0.0027230715f, 0.0030556433f, -0.057782684f, -0.02664146f, -0.027927106f, -0.023195213f, 0.010151253f, 0.012785044f, -0.01087443f, 0.005713986f, -0.017249094f, -0.0066469726f, 0.0013559556f, -0.014249252f, -0.0011539573f, 6.075295E-05f, 0.0054729274f, -0.008704901f, 0.0022967546f, 0.009258443f, 0.028141381f, 0.04456909f, -0.004249777f, 0.02028465f, -0.01713303f, -0.0027208393f, -0.001994315f, -0.0017041516f, -0.016508063f, -0.027123578f, 0.020677486f, -0.019123998f, 0.011606534f, 0.0013302873f, 0.020873904f, 0.025195107f, 0.016079513f, -0.010267318f, 0.033141118f, -0.004986346f, 0.010695867f, 0.0061648553f, -0.0050666984f, 0.0014887612f, -0.008954887f, -0.015704533f, -0.0044372673f, 0.00783441f, -0.00070587813f, -0.021445304f, 0.029677015f, 0.025480807f, 0.0012253822f, -0.026141485f, -0.03821228f, 0.0052318685f, -0.0069192797f, -0.018695448f, -0.01539205f, -0.6519658f, -0.019606115f, -0.008508482f, -0.024409434f, -0.0005013688f, -0.017079461f, 0.010320887f, 0.0074058617f, 0.08799539f, -0.017052677f, 0.0017543723f, -0.02946274f, 0.0055800644f, 0.024338009f, 0.0007348945f, 0.027873538f, -0.0013470276f, -0.008338848f, -0.0010763945f, 0.0062184236f, -0.006995169f, 0.0065442994f, -0.006254136f, -0.015802743f, -0.010606587f, 0.02612363f, -0.007709417f, -0.0025221892f, -0.012838612f, -0.008593299f, -0.0030913558f, 0.01355286f, 0.0009396828f, 0.002598078f, -0.035051733f, -0.017141959f, 0.036605224f, -0.0034551758f, 0.025070114f, -0.010454808f, -0.011044064f, 0.0027878003f, -0.12127935f, 0.0038413163f, 0.016927684f, -0.020909617f, 0.0068880315f, 0.011115489f, 0.010820861f, -0.01129405f, -0.012561841f, 0.028409224f, 0.014445671f, 0.028159237f, -0.010606587f, 0.019981096f, -0.007629064f, 0.008289744f, -0.013106455f, -0.0036181137f, -0.020963186f, -0.011606534f, 0.0106422985f, 0.010892286f, 0.01849903f, 0.010240534f, 0.012776116f, 0.001468673f, -0.016659841f, -0.011695815f, -0.020891761f, 0.009615567f, -0.0125707695f, 0.021570297f, 0.0036739144f, -7.972517E-05f, 0.0034708001f, 0.018534742f, 0.012579697f, 0.021820284f, 0.0036471302f, 0.028319944f, 0.020356076f, -0.0055889925f, -0.01228507f, -0.014615305f, 0.01924899f, -0.018061552f, 0.21384592f, -0.013142168f, 0.00155907f, 0.17913346f, -0.0026739668f, -0.027694976f, -0.004062287f, 0.014427815f, -0.011044064f, 0.018034767f, 0.007901371f, 0.014570665f, -0.022391682f, 0.028337799f, -0.001557954f, 0.016704481f, 0.015150991f, -0.0117136715f, 0.011008351f, -0.016775906f, -0.0065353713f, 0.0025579014f, -0.0078076264f, -0.031051943f, 0.010079828f, -0.025123682f, 0.0031047477f, -0.015883096f, -0.031212648f, -0.019873958f, 0.0147402985f, -0.0071067703f, 0.0054818555f, -0.037855156f, -0.0028145844f, -0.023034506f, -0.016731266f, 0.00588362f, -0.0032542937f, 0.014276037f, 0.030176988f, -0.014508167f, 0.005218476f, -0.011695815f, 0.015008141f, 0.013026102f, -0.0368195f, 0.0017376321f, -0.0079236915f, 0.003566777f, 0.025641512f, 0.018624023f, 0.021641722f, 0.0018905258f, -0.025641512f, 0.0035645452f, -0.0059014764f, 0.012543985f, 0.06913923f, 0.025337957f, 0.0035288327f, 0.0048167114f, 0.036962345f, 0.00969592f, -0.017481226f, 0.0057452344f, 0.004995274f, -0.021820284f, -0.020481069f, -0.020409644f, -0.0031404602f, 0.0019262383f, 0.011535109f, 0.011508325f, -0.009419149f, 0.0015155455f, 0.008334384f, 0.002252114f, -0.025962925f, 0.037533745f, 0.03656951f, -0.012356495f, 0.009829842f, 0.0022777824f, 0.0054193586f, 0.0009357768f, 0.0005814427f, 0.01068694f, 0.007633528f, -0.027730688f, 0.0025355814f, -0.008325456f, 0.008218319f, -0.0009954835f, 0.0019262383f, -0.01812405f, 0.0022242137f, 0.01896329f, 0.016017018f, -0.004412715f, -0.0113565475f, -0.011919018f, -0.003028859f, 0.018624023f, -0.0009608871f, -0.02598078f, 0.019802533f, 0.009785201f, 0.02362376f, -0.0068746395f, 0.003720787f, 0.026712885f, 0.0038725648f, 0.0020244473f, 0.009633423f, 0.008731685f, -0.009910194f, 0.003278846f, -0.002084712f, 0.0007655848f, 0.008579907f, -0.009722704f, -0.017231239f, 0.0044886037f, -0.022623813f, -0.002159485f, 0.038426556f, -0.003216349f, 0.020731056f, 0.010267318f, -0.026909303f, 0.0023637153f, -0.028694924f, 0.026712885f, -0.015240272f, -0.010463737f, -0.012517201f, 0.0039127413f, -0.027123578f, -0.00021873853f, -0.026427185f, -0.016891971f, -0.019606115f, -0.023427343f, -0.00503545f, -0.0071603386f, -0.028319944f, -0.0038413163f, 0.025820075f, 0.011472613f, -0.0046426137f, -0.018007984f, 0.015981305f, 0.005477391f, -0.0009960415f, -0.0029194898f, -0.010561946f, 0.022945225f, 0.014927789f, -0.0042475453f, -0.004508692f, -0.010901214f, 0.004084607f, -0.013945697f, 0.020016808f, -0.017159814f, 0.01350822f, 0.011606534f, 0.012892181f, 0.009535214f, 0.0007382425f, -0.00085430784f, -0.038569406f, 0.04456909f, -0.02240954f, -0.038605116f, 0.016909827f, -0.014865291f, -0.09435219f, 0.012454703f, 0.0112851225f, -0.014704586f, -0.03214117f, 0.0045577968f, 0.009454861f, 0.002079132f, 0.016508063f, 0.016347356f, 0.0071380185f, 0.010329816f, 0.01713303f, 0.034962453f, 0.014713514f, -0.0070442734f, 0.0023101466f, 0.011026207f, 0.0143831745f, 0.021731002f, 0.003535529f, 0.015981305f, -0.012972534f, -0.024909407f, -0.012883252f, -0.0051425872f, -0.011079776f, -0.0018291451f, 0.0041984404f, -0.018606167f, 0.011731528f, 0.020356076f, -0.0072317636f, -0.0004051127f, 0.005687202f, 0.015508115f, 0.005897012f, 0.017918702f, -0.0056916657f, -0.0011729295f, 0.0008225015f, 0.0013314034f, -0.030159133f, 0.009945907f, 0.014776011f, -0.004597973f, -0.01275826f, 0.0075487113f, -0.005164908f, 0.0046336856f, -0.0007694909f, 0.028355656f, -0.010106613f, 0.023302348f, -0.0019452105f, -0.020088231f, -0.008012973f, 0.0002504054f, -0.009160234f, 0.015918808f, 0.0150974225f, 0.0027855681f, 0.018713305f, -0.0027342315f, 0.021159604f, -0.023998741f, 0.024284441f, -0.038890816f, -0.0059327246f, 0.00922273f, 0.022016702f, -0.0031359962f, 0.0048970645f, 0.0073031886f, 0.017686572f, -0.020248938f, 0.01162439f, 0.020123944f, -0.00020130082f, -0.023820179f, -0.009722704f, -0.0034328557f, 0.020159656f, 0.00045393824f, -0.005298829f, -0.008919175f, -0.000955865f, 0.029944858f, -0.009312011f, 0.0029016335f, -0.00096869917f, -0.017909775f, 0.011561894f, -0.021534584f, -0.0041158553f, 0.017445514f, -0.010124469f, 0.013838559f, -0.009981619f, -6.221772E-05f, 0.01073158f, 0.017579434f, -0.003196261f, -0.013463579f, -0.0027386956f, 0.012329711f, 0.03214117f, -0.013374299f, -0.021481017f, -0.010838717f, 0.017874062f, 0.024927264f, -0.008231711f, -0.010892286f, 0.013454651f, -0.012999319f, 0.0010780684f, -0.007008561f, 0.004575653f, -0.0075710313f, 0.013186809f, -0.024730846f, -0.012936821f, -0.0022130536f, -0.021713147f, 0.010392312f, 0.0052631167f, -0.0082584955f, -0.007637992f, -0.00057056156f, -0.0010334279f, 0.0066871494f, -0.00016391439f, 0.018007984f, -0.01247256f, 0.00901292f, 0.024230871f, 0.01774907f, -0.002582454f, -0.0055979206f, 0.02310593f, 0.0228738f, 0.028980622f, 0.013570717f, -0.004691718f, -0.0074772863f, 0.034819603f, 0.008262959f, 0.011544038f, 0.01087443f, 0.0014586288f, -0.025248675f, 0.033694662f, -0.019677538f, 0.013276089f, -0.01962397f, 0.008437057f, -0.014463527f, 0.012169004f, 0.008079933f, -0.022052415f, -0.01976682f, 0.00884775f, -0.03185547f, 0.0068791034f, 0.0003638202f, -0.021641722f, 0.00277664f, 0.005990757f, -0.020088231f, 0.02249882f, -0.015543828f, 0.018007984f, -0.016240219f, 0.001033986f, -0.00863794f, 0.0074326457f, 0.01896329f, -0.004439499f, 0.018186547f, 0.026320048f, -0.0042787935f, -0.014106403f, 0.016856259f, 0.011927946f, 0.021391734f, 0.00020688088f, -0.0318019f, -0.01091907f, 0.008919175f, 0.02310593f, -0.010061972f, 0.0020356076f, -0.01609737f, -0.0015780422f, -0.016508063f, -0.005548816f, 0.009633423f, 0.0051381234f, 0.015383122f, -0.007164803f, -0.0010284059f, -0.004785463f, -0.0009452629f, 0.008249567f, 0.005615777f, -0.004265401f, 0.03194475f, 0.0020969883f, -0.0057764826f, 0.018159762f, 0.005562208f, 0.011044064f, 0.009990548f, 0.009990548f, -0.003368127f, 0.024534427f, 0.009686992f, 0.001738748f, 0.014829579f, 0.027873538f, 0.001909498f, -0.01313324f, -0.04467623f, 0.0027520878f, 0.025248675f, 0.0066469726f, -1.7960832E-05f, 0.0035243686f, -0.002245418f, 0.009678064f, 0.002250998f, -0.02207027f, -0.011401188f, 0.012276142f, -0.016749121f, 0.048961718f, 0.019141853f, 0.0043836986f, 0.023963029f, -0.019284703f, -0.0025065648f, -0.013070743f, -0.001299039f, -0.011338691f, -0.0017197758f, 0.18613309f, -0.011704743f, 0.024962977f, -0.016829474f, 0.01129405f, -0.004597973f, -0.0034596398f, 0.026855733f, -0.01073158f, 0.020552494f, 0.010704796f, -0.007633528f, -0.00041097176f, -0.004334594f, 0.022016702f, 0.021945277f, -0.0030601074f, 0.0025422773f, -0.0011065268f, 0.016641984f, 0.0016204508f, 0.0030578752f, -0.014820651f, 0.010660155f, 0.019052573f, -0.01962397f, 0.025212964f, -0.020481069f, 0.012374351f, 0.021284597f, -0.036926635f, 0.036176674f, -0.018204402f, 0.01807941f, -0.019927526f, 0.013633213f, -0.008691508f, 0.0107851485f, -0.03012342f, 0.005910404f, -0.021409592f, 0.014999214f, 0.018677592f, -0.014186756f, -0.019498978f, 0.00880311f, 0.008030829f, -0.008620083f, 0.030944806f, 0.008526338f, 0.009633423f, 0.027944963f, -0.017231239f, 0.020195369f, -0.030891236f, 0.007428182f, -0.015445618f, -0.011311906f, 0.027819969f, -0.0054238224f, -0.015552755f, -0.0022309097f, -0.019981096f, 0.010615515f, -0.009963763f, -0.0008492858f, -0.031194793f, -0.0039618458f, -0.0050443783f, -4.9418446E-05f, -0.00037609634f, -0.023570193f, 0.0061871754f, 0.03892653f, 0.00044640515f, 0.0012030619f, -0.0054729274f, 0.00094972696f, -0.0018737856f, 0.013615358f, 0.019231133f, 0.021820284f, 0.040640727f, 0.008606692f, 0.005133659f, -0.0179812f, -0.013651069f, -0.009419149f, 0.01087443f, 0.0160438f, -0.027230715f, 0.029177042f, -0.008343312f, -0.022570245f, 0.0034886564f, -0.010240534f, 0.011383331f, 0.012722547f, -0.004002022f, 0.026623603f, -0.0013146632f, -0.015454547f, 0.022980938f, 0.01162439f, -0.010838717f, 0.008231711f, -0.009615567f, 0.010204822f, -0.005700594f, -0.04453338f, -0.01369571f, 0.007454966f, -0.0009625611f, -0.02537367f, -0.009294155f, -0.006584476f, 0.026570035f, -0.008240639f, 0.027319996f, 0.024266584f, 0.0030400192f, 0.008718292f, 0.0042073685f, 0.012713619f, -0.019177565f, -0.0012767187f, 0.004493068f, -0.001122709f, 0.02244525f, -0.0076246f, -0.029623447f, -0.0031672446f, 0.016436638f, 0.0077272733f, 0.0015780422f, -0.009526286f, 0.0026784309f, 0.011311906f, -0.0070487373f, -0.013802848f, 0.014052834f, 0.017999057f, 0.0088075735f, 0.0018425373f, -0.00988341f, -0.0076424563f, -0.016338428f, 0.035319574f, -0.013659998f, 0.020123944f, 0.06542514f, 0.01261541f, 0.0059237964f, -0.010195894f, 0.004508692f, 0.009276299f, -0.0012443544f, -0.015400978f, 0.024534427f, -0.00380114f, 0.0032520615f, -0.010811933f, 0.008919175f, 0.00033173483f, -0.001817985f, -0.007968332f, -0.020409644f, 0.018284755f, -0.0047006463f, 0.005713986f, -0.011901162f, 0.017356232f, 0.008432593f, -0.018034767f, 0.009124521f, -0.012722547f, -0.0075040706f, -0.0026360224f, 0.010303031f, 0.0231595f, -0.0068701752f, -0.0005708406f, 0.012177933f, -0.042247783f, 0.024373721f, 0.00082752353f, -0.0049506333f, 0.001898338f, -0.011419044f, -0.003917205f, -0.0051604435f, -0.027516413f, -0.029427027f, -0.015543828f, 0.023052363f, 0.029855577f, -0.019731108f, -0.00089615834f, 0.0014262645f, -0.03853369f, 0.009588783f, -0.015606324f, 0.0049818815f, -0.018016912f, 0.0111422725f, 0.014901004f, -0.009419149f, -0.032391157f, -0.0014619769f, -0.009678064f, 0.023552336f, -0.022320257f, 0.003908277f, 0.01858831f, 0.014347462f, -0.017222311f, -0.04317631f, 0.021213174f, -0.009829842f, -0.0028346728f, 0.0040377346f, 0.0065532275f, 0.0066559007f, 0.0006311053f, 0.009874482f, 0.0024708526f, -0.010838717f, 0.003633738f, -0.019516833f, -0.001304619f, -0.005633633f, -0.010803005f, 0.025016544f, 0.002497637f, 0.007932619f, 0.003122604f, 0.009338796f, 0.024105879f, 0.026373617f, -0.010124469f, 0.009294155f, -0.010374456f, -0.0069907047f, -0.0024396041f, 0.013909984f, 0.026623603f, 0.015302769f, -0.010481593f, -0.023855891f, -0.018374037f, 0.002005475f, 0.00030076547f, -0.026980728f, 0.018749017f, -0.008173678f, -0.0053881104f, -0.015267056f, -0.018766873f, -0.0011065268f, 0.017900847f, -0.010660155f, 0.0001821891f, 0.014177828f, 0.0065532275f, 0.009437005f, 0.002006591f, 0.0065934043f, 0.009329868f, 0.02583793f, -0.015695605f, -0.0018112889f, 0.0021137283f, 0.033337537f, -0.008222783f, 0.030248413f, -0.0039127413f, -0.009910194f, 0.017677644f, -0.0079951165f, -0.0025266532f, 0.023427343f, -0.013838559f, -0.01139226f, 0.035051733f, 0.007071058f, -0.018052625f, -0.025677225f, -0.002421748f, 0.0110708475f, 0.00088890427f, 0.017909775f, 0.00026310002f, -0.00035321809f, -0.002863689f, 0.03440891f, -0.010927998f, -0.0010289638f, -0.029302035f, 0.013526076f, 0.0013548397f, -0.02649861f, 0.018231187f, -0.0010111077f, -0.018856153f, -0.016740194f, 0.008477234f, 0.014999214f, -0.012061867f, -0.017454442f, 0.019695396f, -0.016374141f, -0.00896828f, -0.0046560057f, -0.0026293264f, 0.01939184f, 0.0065353713f, -0.013436795f, 0.005227404f, -0.0036962347f, 0.007164803f, 0.024766559f, 0.034319628f, -0.020570349f, 0.01948112f, -0.009258443f, -0.013981409f, -0.033391107f, -0.018695448f, 0.01953469f, -0.00866026f, -0.015124206f, 0.004575653f, 0.008209391f, -0.00011746035f, 0.050283078f, -0.0023123787f, 0.0010267318f, -0.007343365f, 0.008401345f, 0.006142535f, -0.008459378f, -0.0037475713f, 0.004414947f, -0.007071058f, -0.020302506f, 0.00066123763f, -0.018463317f, 0.023980886f, -0.023052363f, -0.009749489f, -0.01073158f, 1.721101E-05f, 0.007115698f, 0.021177461f, -0.010767292f, 0.024927264f, 0.011035135f, 0.009776273f, 0.021159604f, -0.002497637f, -0.018766873f, 0.006316633f, 0.03199832f, -0.013972482f, -0.0060309335f, -0.036123104f, -0.019284703f, 0.015418834f, -0.007972796f, -0.0037832838f, -0.0037832838f, -0.044319104f, -0.02189171f, -0.015034925f, 0.016570559f, -0.022998793f, 0.006142535f, 0.005374718f, -0.0020478836f, -0.020981042f, -0.012258286f, 0.014579592f, -0.0055577443f, -0.0231595f, -0.0064773387f, 0.013901057f, -0.011338691f, -1.8449087E-05f, -0.035855263f, 0.018240115f, -0.025587944f, -0.029909145f, -1.9233785E-05f, -0.010044116f, -0.012963606f, 0.02607006f, 0.016686624f, -0.015079566f, -0.016213436f, 0.012838612f, -0.02348091f, -0.010990495f, -0.012597553f, -0.0065442994f, -0.012267213f, 0.015240272f, -0.0056202407f, 0.011883305f, -0.021855997f, -0.010320887f, -0.002682895f, -0.0005859068f, -0.006892496f, 0.024980832f, -0.013115384f, 0.01566882f, 0.023730898f, 0.017070534f, -0.0005725146f, 0.0059952214f, -0.015749173f, 0.028373512f, -0.0006534255f, 0.013204665f, -0.028837774f, -0.024105879f, -0.016383069f, -0.008102254f, 0.02151673f, 0.004095767f, -0.015365265f, 0.011731528f, -0.0080219f, -0.010231606f, 0.00076893286f, -0.006240744f, 0.04589045f, 0.02969487f, -0.0039149732f, 0.0067407177f, -0.04606901f, 0.02301665f, 0.020016808f, 0.012535057f, -0.009963763f, -0.007017489f, 0.026462898f, 0.014445671f, -0.0036315059f, 0.020195369f, 0.010436952f, -0.0019876189f, -0.020838192f, 0.012490416f, -0.016070586f, 0.003209653f, 0.017686572f, 0.0043435222f, 0.008704901f, 0.03040912f, 0.011463684f, 0.0011617694f, 0.0045511005f, 0.019945383f, -0.017490154f, -0.009829842f, -0.0010551902f, 0.024659421f, -0.014972429f, 0.015508115f, -0.025659367f, -0.02151673f, 0.00795494f, 0.005468463f, -0.048926003f, -0.014106403f, -0.0035109764f, 0.018909723f, -0.013436795f, 0.0068567833f, 0.034444623f, 0.026605748f, 0.01543669f, -0.019552546f, -0.0018045928f, -0.015150991f, 0.0051291953f, -0.014936716f, 0.023570193f, -0.011195841f, 0.014034978f, 0.0007248504f, 0.016668769f, 9.1443304E-05f, -0.01548133f, 0.004339058f, -0.0140974745f, 0.0014552808f, -0.0014865291f, -0.005164908f, -0.003216349f, 0.012785044f, 0.03564099f, 0.006923744f, -0.012874325f, -0.012499345f, -0.0051559797f, -0.012624337f, 0.017409801f, -0.045211915f, 0.015177775f, 0.021177461f, -0.0015523739f, 0.013186809f, -0.017490154f, -0.0033123263f, -0.03144478f, -0.0015925504f, 0.018606167f, 0.020088231f, 0.0010836485f, 0.02123103f, -0.00018065459f, -0.004077911f, -0.012606482f, -0.015570612f, 0.0027878003f, 0.00571845f, 0.0076513845f, -0.013329658f, -0.00922273f, -0.0071424823f, 0.009651279f, 0.005312221f, 0.022534532f, 7.8260404E-05f, -0.0013191273f, -0.006347881f, -0.015267056f }; + public static readonly IReadOnlyList LuxuryVectorizeCategory = new List { 0.016540036f, 0.020695087f, -0.00056405464f, -0.04213835f, -0.008263338f, 0.018316954f, -0.027241627f, -0.00021303396f, -0.0076688053f, -0.031557f, 0.0138946995f, 0.014696317f, -0.002601916f, -0.005848466f, -0.0063728574f, 0.009512525f, 0.0483108f, -0.015257449f, 0.026386568f, -0.016887404f, -0.029178869f, 0.0026720576f, -0.010160499f, -0.00040581875f, 0.0015255779f, -0.016660279f, -0.0022695789f, -0.024863495f, -0.010801793f, -0.004829744f, 0.0306485f, -0.0024315724f, -0.024636371f, -0.020481322f, -0.027575634f, -0.020093873f, -0.020668365f, -0.01161677f, 0.029873604f, -0.0048531247f, 0.007581963f, 0.017501976f, 0.0034269139f, 0.0026353167f, -0.01579186f, 0.007655445f, -0.0016040695f, -0.0017234772f, -0.014669596f, -0.033641204f, 0.021777268f, 0.040161025f, -0.027281707f, -0.018664323f, -0.008483782f, 0.004906566f, -0.00020238748f, -0.008403621f, 0.034923792f, -0.0077823675f, 0.006463039f, 0.0044957367f, -0.039546452f, 0.0006124857f, -0.01620603f, -0.0040481673f, -0.018931529f, 0.015711699f, 0.004218511f, -0.017916147f, 0.022137998f, 0.005681462f, 0.0012867628f, -0.0269477f, 0.0068805483f, -0.021563504f, -0.0072145555f, 0.016419794f, 0.0067636454f, -0.0037375404f, 0.016820602f, -0.0054610176f, -0.008116375f, -0.0011322844f, 0.0037776213f, 0.013433769f, -0.022458643f, 0.026560253f, 0.0038410828f, -0.019733146f, 0.008917992f, 0.004024787f, -0.0014337258f, 0.017408455f, -0.015738418f, 0.017395094f, 0.0034202337f, 0.01482992f, -0.0014646215f, -0.02322018f, 0.0155380145f, 0.027575634f, -0.027201546f, -0.0145894345f, -0.024756612f, -0.0025902258f, 0.00056321966f, -0.0020541442f, 0.024382524f, -0.0009794761f, -0.017889425f, 0.015016964f, 0.028697899f, -0.033213675f, 0.01117588f, -0.008597345f, 0.0036473586f, -0.017702382f, -0.0029041925f, -0.019639622f, 0.0008692537f, 0.011843895f, 0.017849345f, 0.004886525f, -0.0042385515f, 0.00014049177f, -0.020628285f, -0.024289003f, -0.007942691f, 0.0067770057f, 0.023500746f, 0.013387009f, 0.02276593f, 0.017809264f, -0.014709677f, 0.011676892f, -0.023380503f, 0.00789593f, -0.008871231f, -0.020655004f, -0.0011807154f, 0.028163487f, -0.014763118f, 0.0051303506f, 0.003168058f, 0.013179923f, -0.004542498f, 0.012438428f, 0.015591456f, -0.00018787905f, 0.013413729f, -0.026373208f, 0.023580907f, 0.0024916937f, -0.0081297355f, 0.021496704f, -0.007561923f, 0.0020975652f, -0.011342884f, -0.0055111186f, -0.012745715f, 0.00024111144f, -0.009058275f, 0.0033617823f, 0.032438777f, 0.018944887f, 0.029953765f, 0.02416876f, -0.003345082f, 0.007301397f, -0.0036440184f, 0.022071196f, -0.023393864f, 0.010006855f, -0.0022929595f, 0.02273921f, 0.008710908f, 0.0041049486f, -0.017368374f, -0.032732707f, -0.008430341f, 0.008149776f, 0.025598312f, 0.025825435f, -0.0056413813f, 0.007789048f, 0.017542059f, -0.014041662f, 0.025785355f, -0.018129911f, 0.012819196f, 0.041122966f, 0.02974f, -0.01253863f, -0.6844743f, -0.022605607f, -0.01815663f, -0.004448976f, 0.021643667f, 0.027655795f, 0.037008f, 0.025424628f, 0.0015531335f, -0.0039179046f, -0.011863936f, -0.0015898743f, 0.004098268f, 0.00054443174f, -0.019746505f, -0.024823414f, 0.012431747f, -0.0066701234f, -0.038290586f, 0.027709236f, 0.0052205324f, 0.013580732f, -0.0108418735f, -0.009439044f, -0.00037868065f, -0.0034636545f, -0.0018387096f, 0.0016349652f, -0.01767566f, 0.009639448f, 0.0020123934f, 0.030381294f, -0.001675046f, -0.009111716f, 0.05809053f, -0.024489406f, 0.011369605f, 0.027923001f, 0.015511294f, 0.042939965f, -0.013193284f, 0.0077289264f, -0.0022411882f, -0.025331106f, -0.0060154693f, 0.011623451f, 0.0022378482f, -6.868023E-05f, 0.0044957367f, -0.022418562f, 0.012558671f, 0.0062860153f, -0.0070742723f, 0.014936802f, 0.009559286f, -0.009659488f, 0.022725848f, -0.0100803375f, 0.0065164804f, -0.005911927f, 0.008670826f, 0.009899973f, -0.026840817f, -0.025918959f, -0.01206434f, 0.011683571f, -0.009866573f, 0.00463936f, 0.0026119363f, -0.020735167f, -0.014201986f, 0.02277929f, 0.0039145644f, 0.008403621f, -0.0018554099f, -0.0038711433f, 0.03719504f, -0.015431132f, -0.01024734f, 0.014816559f, 0.0012408367f, -0.012491869f, -0.007014151f, -0.0059720487f, 0.016446514f, -0.039332688f, -0.03203797f, -0.007207875f, 0.025197502f, -0.0103341825f, 0.005774984f, 0.024195481f, -0.003527116f, 0.008437022f, -0.010294102f, -0.0017685681f, -0.012157862f, 0.012678913f, 0.015992265f, -0.0128258765f, -0.0036406785f, -0.0115032075f, -0.0022912894f, 0.02049468f, -0.0035571766f, 0.0031396677f, -0.0058317655f, 0.0073882393f, 0.014709677f, -0.03898532f, -0.009378922f, -0.008123055f, 0.0028206906f, -0.0039179046f, 0.0019990331f, -0.020641645f, -0.0075418823f, -0.005147051f, -0.001581524f, -0.016379712f, 0.015097125f, 0.0059787286f, 0.02362099f, -0.009986815f, 0.0022879492f, 0.011362924f, -0.004562538f, -0.013507251f, 0.01762222f, 0.003937945f, 0.007060912f, 0.011102399f, 0.019773226f, -0.005464358f, 0.007869209f, -0.018129911f, -0.0026620373f, -0.017742462f, 0.01624611f, -0.030247692f, -0.01620603f, 0.006078931f, -0.0012600422f, 0.0010496177f, -0.0024783334f, -0.023313701f, -0.01482992f, -0.008370221f, -0.0259724f, -0.0068471474f, -0.021991033f, -0.0077289264f, -0.018383756f, 0.042084906f, 0.003573877f, -0.02410196f, -0.009165158f, -0.0027071284f, -0.012712314f, -0.008877912f, 0.0136742545f, -0.008557265f, -0.027495472f, -0.0041550496f, 0.015057044f, -0.022244878f, 0.00555788f, 0.01302628f, -0.033133514f, -0.030595059f, 0.0062793354f, 0.0023096597f, -0.0032331897f, 0.012598751f, 0.019679705f, 0.00089847937f, -0.008029533f, -0.008223257f, 0.009318801f, 0.0032816206f, 0.005250593f, -0.009719609f, -0.024061877f, -0.0075953235f, 0.01902505f, 0.00016460293f, 0.017034367f, 0.042165067f, 0.005340775f, 0.021683747f, -0.01348053f, 0.02133638f, -0.016299551f, 0.007334798f, -0.006583282f, 0.0020274236f, 0.020387799f, 0.014055023f, 0.023874834f, 0.004305353f, 0.04499745f, 0.001675046f, -0.011329524f, -0.014749758f, 0.040134303f, -0.020561483f, -0.009659488f, 0.0052606133f, 0.017702382f, 0.00041458642f, 0.010561308f, -0.022979695f, -0.017408455f, 0.015738418f, 0.033160236f, 0.03201125f, 0.02690762f, 0.013647534f, 0.0034502943f, -0.002510064f, 0.011924056f, 0.0020558143f, -0.012191262f, -0.005390876f, -0.002832381f, 0.0077222465f, -0.0012358266f, 0.009332161f, -0.014282147f, -0.005898567f, -0.01531089f, 0.030007206f, 0.012311505f, 0.0036172979f, -0.011583369f, 0.0057349033f, 0.026186164f, -0.022017755f, 0.02784284f, 0.002135976f, 0.020347718f, 0.024957018f, 0.0049934075f, 0.0056246812f, -0.00557458f, 0.010741672f, 0.030488176f, 0.022391843f, -0.0047629424f, -0.006306056f, 0.0006041355f, -0.00232803f, -0.0006216709f, 0.014469191f, -0.014896721f, -0.003577217f, 0.0060121296f, 0.016018985f, 0.014883361f, 0.026573611f, -0.00064672146f, -0.0016633559f, 0.0031914387f, 0.008690868f, 0.009706249f, -0.0010621429f, -0.005701503f, -0.012298144f, 0.011837215f, -0.0060722507f, -0.00073147577f, -0.024957018f, 0.0049533267f, -0.0060488703f, -0.0021743868f, 0.0014963523f, 0.0076888455f, -0.009933374f, 0.000185374f, 0.015671618f, 0.0043721544f, -0.009552605f, 0.025838796f, 0.009038235f, 0.0038277225f, -0.02931247f, -0.02092221f, -0.0076487646f, 0.010634789f, 0.028965104f, 0.0013184934f, 0.022405202f, -0.010648149f, -0.020588204f, 0.0018437197f, -0.014803199f, 0.033106793f, -0.017127888f, -0.0077623273f, 0.011743693f, 0.014175265f, -0.0059653684f, 0.011683571f, 0.0009185198f, 0.025825435f, 0.013841258f, -0.0077690072f, -0.009372242f, -0.01993355f, -0.021015733f, 0.0014604464f, -0.019265534f, -0.020534763f, -0.017608859f, -0.007147754f, 0.012779115f, -0.029873604f, 0.0040815677f, 0.022031115f, -0.009873252f, -0.0023063198f, -0.01906513f, -0.01070159f, -0.003623978f, 0.11030254f, 0.004094928f, -0.009111716f, 0.004438956f, 2.784263E-05f, -0.009138437f, -0.018023029f, -0.012732354f, -0.0025484748f, -0.0021977674f, -0.0008003647f, 0.0066701234f, 0.009632767f, 0.02134974f, 0.014228706f, 0.0014687966f, -0.004462336f, -0.017381735f, -0.015551375f, -0.0015439482f, 0.02645337f, -0.030808823f, 0.0074817613f, 0.0069473498f, -0.0057850047f, 0.0036874395f, 0.020775247f, 0.025144061f, 0.007996133f, -0.011423046f, -1.03203E-05f, -0.01485664f, -0.0015163927f, -0.0035371361f, 0.006419618f, -0.029285751f, 0.0031480177f, 0.0054610176f, 0.016566757f, -0.0123849865f, 0.025371186f, 0.025117341f, 0.017742462f, -0.011068999f, -0.0044656764f, -0.013841258f, -0.023754591f, 0.035671968f, 0.0010070316f, 0.019759865f, 0.018918168f, -0.0005623846f, 0.004355454f, -0.009719609f, 0.006002109f, 0.0031296473f, -0.0029542935f, -0.016339632f, -0.013240045f, -0.02832381f, -0.022191437f, -0.038290586f, 0.011850575f, -0.004739562f, -0.0044723563f, -0.03334728f, 0.0076420847f, -0.0050902697f, -0.018316954f, -0.0010771732f, 0.024115318f, 0.007802408f, -0.003667399f, -0.0117236525f, 0.0136742545f, -0.018838005f, -0.0010053617f, 0.005888547f, 0.00512367f, 0.013867979f, 0.02835053f, 0.009899973f, -0.01440239f, -0.013113122f, -0.018677682f, -0.004512437f, 0.00648976f, -0.028430693f, -0.013721015f, 0.015604816f, 0.015511294f, -0.018944887f, 0.019238815f, 0.0015773489f, -0.0019155312f, -0.013761097f, 0.00555788f, -0.010160499f, -0.0059152674f, -0.0019088511f, 0.03070194f, -0.012378306f, 0.0007268831f, 0.0003444449f, 0.028377252f, -0.0011239342f, -0.015270809f, -0.0049299463f, 0.0014203655f, -0.0035404763f, 0.012885997f, -0.018383756f, -0.014455832f, 0.0138946995f, -0.02557159f, 0.007602004f, -0.011022237f, 0.025918959f, 0.009866573f, -0.00604553f, -0.00029246506f, -0.03396185f, 0.013694295f, 0.022872813f, 0.0081631355f, -0.013607453f, 0.005153731f, -0.015444493f, 0.021670386f, 0.018610882f, 0.0060722507f, 0.015698338f, -0.03241206f, -0.027629076f, -0.01022062f, -0.00417843f, -0.013507251f, 0.0043855147f, -0.010180539f, -0.02232504f, -0.028136766f, 0.014028302f, -0.007468401f, -0.017221412f, 0.01764894f, -0.033240397f, 9.028632E-05f, 0.016767161f, -0.035110835f, 0.026680494f, -0.010514546f, -0.0020541442f, -0.016072426f, -0.014803199f, -0.011262722f, -0.026346488f, -0.0021894171f, -0.02232504f, 0.019359058f, 0.034549706f, 0.021296298f, 0.0008337654f, 0.009398962f, 0.0066100024f, 0.006002109f, 0.013587412f, -0.0045057572f, -0.0069807502f, -0.0055912803f, 0.011309483f, 0.02456957f, 0.008423662f, 0.007708886f, 0.004823064f, -0.015297529f, 0.021737188f, -0.0025167442f, -0.023407225f, -0.031316515f, -0.0051670913f, 0.0026787377f, -0.016513316f, -0.016352993f, 0.009499164f, -0.034015294f, -0.0076888455f, 0.03615294f, 0.0130797215f, -0.008216577f, 0.002184407f, 0.017929506f, -0.023594268f, 0.017368374f, -0.012872637f, 0.0046928013f, -0.0021693767f, -0.008016173f, 0.0022829392f, 0.019733146f, 0.020093873f, -0.00035634392f, 0.0017869385f, -0.024315724f, 0.018744484f, 0.019238815f, 0.02880478f, 0.0041016084f, -0.023327062f, 0.013153203f, -0.016339632f, -0.020240836f, -0.021149335f, -0.0067970464f, -0.049620107f, -0.0031430076f, 0.025598312f, -0.022004394f, 0.0222716f, -0.012171222f, -0.016887404f, 0.0054109166f, 0.0053775157f, 0.033293836f, -0.015150567f, 0.01344045f, 0.015083765f, -0.019305617f, -0.022111276f, 0.012966159f, -0.0043721544f, -0.031022588f, 0.00789593f, 0.024970377f, -0.0070809526f, -0.002182737f, 0.028644457f, -0.014242067f, -0.018316954f, -0.010721631f, 0.03572541f, 0.0016491605f, 0.016045706f, -0.008577305f, -0.0001605322f, 0.0023063198f, 0.016940845f, 0.0057716444f, 0.0057081827f, 0.0036907794f, -0.0008734288f, -0.015938824f, 0.015858661f, -0.004054847f, 0.009305441f, -0.008750988f, -0.030114088f, -0.0083769f, -0.00014143117f, -0.008717588f, -0.014014942f, -0.009512525f, 0.016687f, -0.00057031726f, -0.011984178f, 0.005985409f, 0.00056530716f, -0.0068070665f, 0.0022946293f, 0.021122616f, 0.01997363f, -0.024476048f, -0.006376197f, -0.00015583524f, 0.00050017575f, 0.014215346f, -0.0043487735f, 0.005517799f, -0.0045157773f, -0.0046226596f, -0.008844511f, -0.016914124f, -0.010454426f, 0.0021109255f, 0.013293486f, -0.01438903f, -0.015711699f, -0.004866485f, -0.0017802584f, 0.014188626f, -0.0057516037f, -0.010507867f, -0.026573611f, 0.008062934f, 0.017501976f, -0.008530544f, -0.008022853f, 0.001204931f, 0.010547947f, -0.025985759f, 0.017288212f, 0.006469719f, 0.0022211478f, 0.007956051f, 0.029499516f, 0.0028975124f, -0.007969412f, 0.009813132f, 0.0044957367f, -0.03104931f, -0.01252527f, -0.009398962f, -0.0005870176f, -0.0016057396f, 0.007708886f, -0.007508482f, -0.006783686f, -0.0032331897f, -0.01299956f, -0.01018722f, 0.022846092f, 0.015110485f, -0.006887228f, 0.015457853f, -0.0059353076f, 0.020027071f, 0.011984178f, -0.012812516f, 0.011803814f, -0.028163487f, -0.02456957f, -0.01297952f, 0.046173155f, -0.011810495f, -0.016459875f, -0.0076354044f, 0.006272655f, -0.003350092f, 0.028377252f, 0.01346049f, 0.00032857957f, -0.0035170957f, -0.0019322316f, 0.019639622f, -0.0029542935f, -0.006222554f, -0.01946594f, -0.018691042f, -0.00023714511f, -0.031263072f, -0.031637162f, 0.0019739824f, 0.028297089f, 0.01346717f, -0.016085787f, 0.008323459f, 0.008597345f, -0.04652052f, -0.009024874f, -0.0037442206f, -0.0010947086f, 0.0112493625f, 0.004919926f, 0.0010980486f, 0.0007256306f, 0.011215962f, 0.011730333f, 0.0058017047f, 0.0056848023f, -0.002187747f, -0.012625472f, 0.009632767f, -0.0048998855f, -0.025304385f, -0.0014186956f, 0.02184407f, -0.008710908f, -0.000557792f, 0.008958073f, -0.0071410737f, 0.0005072734f, -0.00021960973f, 0.02410196f, 0.017742462f, 0.043367494f, 0.028697899f, -0.025932318f, 0.008156456f, 0.014322229f, 0.014963523f, -0.004265272f, -0.008463742f, 0.0024933638f, 0.012211303f, 0.00013923924f, -0.011262722f, 0.006593302f, -0.0067035244f, -0.011656851f, -0.012852597f, 0.011229321f, -0.0046193195f, 0.023073217f, -0.00044422958f, -0.01716797f, 0.0012976179f, 0.00060079544f, 0.0023096597f, -0.031476837f, 0.006132372f, -0.029820163f, -0.006543201f, -0.019652983f, 0.022004394f, -0.010167179f, 0.0019940229f, -0.0047028214f, 0.003022765f, -0.0055478592f, -0.004813044f, 0.014509273f, -0.029152147f, -0.011336204f, -0.013513931f, 0.0081297355f, -0.011790453f, -0.0009051595f, 0.026627053f, -0.010761712f, -0.0016441504f, 0.0052205324f, -0.011843895f, -0.012739034f, -0.0059052473f, 0.002738859f, 0.009218599f, 0.020828689f, 0.23407224f, -0.0051370305f, -0.008958073f, 0.044275995f, 0.02554487f, 0.018383756f, 0.018437197f, -0.0041650697f, -0.0012491869f, 0.019412499f, -0.0011757053f, 0.015110485f, 0.013647534f, 0.0031697282f, -0.012879318f, -0.010087017f, -0.027575634f, -0.018383756f, -0.01256535f, -0.026092641f, -0.0018286894f, -0.002598576f, -0.008323459f, -0.017061088f, 0.03198453f, -0.0042485716f, -0.022178078f, 0.00063795375f, 0.019866748f, 0.01715461f, 0.011763733f, -0.012217983f, 0.011222642f, 0.0109621165f, -0.024836775f, 0.0042018103f, -0.011409686f, -0.021069175f, 0.009579326f, 0.022178078f, 0.014228706f, 0.033480883f, 0.009038235f, -0.013734376f, 0.0269477f, 0.023153378f, -0.024329083f, -0.00071853295f, 0.001255032f, 0.016018985f, -0.02561167f, 0.00012003384f, 0.011336204f, 0.020548122f, -0.0027538894f, 0.021670386f, 0.013433769f, -0.003901204f, -0.011830535f, -0.0058751865f, -0.0054543377f, 0.0130129205f, -0.011002197f, 0.02875134f, -0.020187395f, 0.020334357f, -0.021657027f, -0.011042278f, 0.011656851f, 0.0014687966f, -0.0005335765f, -0.020120593f, -0.0016449854f, 0.010487826f, -0.0044322754f, -0.030434735f, 0.024115318f, -0.0058651664f, 0.00974633f, 0.0021560164f, 0.016352993f, -0.02229832f, -0.019265534f, -0.005193812f, 0.009412323f, -0.03893188f, 0.0026419968f, 0.0071811546f, -0.012972839f, -0.011336204f, 0.02595904f, 0.0022395183f, -0.011757053f, -0.021149335f, 0.02462301f, 0.02466309f, 0.011777094f, 0.0061624325f, -0.010066977f, -0.0077422867f, -0.0055645597f, 0.018811285f, 0.026854178f, -0.009332161f, -0.0145894345f, -0.0028975124f, -0.01116252f, 0.029178869f, 0.003764261f, -0.007708886f, -0.005901907f, -0.0222716f, 0.014028302f, -0.013680935f, -0.0014379009f, -0.002561835f, -0.00087843894f, -0.032144852f, 0.021590225f, 0.0003976773f, -0.006543201f, -0.023073217f, 0.0195461f, 0.009078315f, 0.0052940142f, 0.0038177022f, -0.0129862f, 0.01253195f, 0.019412499f, -0.039386127f, 0.0064864196f, -0.006075591f, 0.0031697282f, -0.037301924f, -0.011189241f, 0.0047095013f, 0.015898742f, -0.007675485f, 0.0054610176f, 0.0007206205f, 0.0006170783f, -0.009853212f, 0.021416541f, 0.0007252131f, 0.016352993f, -0.02965984f, -0.0039546452f, -0.011863936f, -0.00070767774f, -0.02231168f, -0.030835545f, -0.009512525f, -0.009352202f, -0.037221763f, 0.01620603f, -0.012612112f, -0.021643667f, -0.028243648f, -0.006139052f, 0.004585919f, -0.025598312f, -0.0035504964f, 0.035565086f, -0.0251307f, -0.010314142f, 0.0068939086f, -0.17400439f, 0.037382085f, 0.006085611f, -0.031423397f, -0.0011256043f, -0.0012667223f, 0.009064956f, 0.0011581699f, -0.016954206f, 0.022859452f, 0.0072679967f, -0.01672708f, -0.03153028f, -0.023500746f, 0.012598751f, -0.0047262018f, -0.0069005885f, -0.004044827f, 0.0010579678f, 0.0023430604f, 0.020027071f, -0.027602354f, 0.0041416893f, -0.0012349916f, 0.012819196f, -0.011476487f, -0.0009569306f, 0.005424277f, 0.017274853f, -0.012358266f, -0.0035972574f, 0.00557124f, 0.041630656f, 0.003947965f, 0.0035638567f, 0.02877806f, -0.025277665f, 0.007915971f, -0.0024449327f, 0.00557124f, 0.00039287595f, -0.0033818227f, 0.027067943f, 0.0049533267f, -0.017849345f, 0.016005624f, 0.0127924755f, -0.0036774192f, 0.033988573f, -0.0011990858f, 0.023300342f, -0.017689021f, 0.010975476f, 0.0035605168f, 0.03430922f, 0.01859752f, 0.018744484f, 0.0052839937f, 0.003348422f, -0.003019425f, -0.008543904f, -0.014482552f, 0.008617385f, -0.02322018f, -0.008523864f, -0.04318045f, -0.007568603f, 0.0027037882f, 0.0012433418f, 0.010140458f, -0.0063294363f, -0.0037308603f, 0.00079702464f, -0.018704403f, 0.004919926f, 0.012358266f, -0.0052839937f, 0.01815663f, -0.0128592765f, -0.016593477f, -0.039813656f, 0.028430693f, -0.017689021f, -0.019559462f, -0.004452316f, 0.028697899f, -0.02877806f, 0.011750373f, -0.0066534234f, -0.009412323f, 0.010461105f, -0.0007840819f, -0.021149335f, -0.013607453f, -0.013206644f, 0.027415311f, -0.0069005885f, 0.0012475168f, -0.02271249f, -0.0049833874f, 0.0037742814f, -0.012344906f, -0.0036941196f, 0.012030939f, 0.027655795f, 0.009125076f, 0.016165948f, 0.011870615f, 0.028377252f, -0.00790261f, -0.0037007998f, 0.0020808647f, 0.008123055f, 0.015992265f, 0.0020741846f, -0.0031229672f, 0.025437988f, -0.016326271f, 0.021149335f, -0.008924672f, 0.027054582f, -0.026533531f, -0.02605256f, 0.021269578f, -0.009606047f, 0.0052706334f, -0.08497143f, -0.019118572f, 0.012124461f, 0.015938824f, -0.0045358175f, 0.016833963f, -0.011289443f, 0.010795113f, -0.009940054f, 0.01159005f, 0.007568603f, -0.018944887f, -0.009258679f, -0.023914915f, 0.025812076f, 0.009505845f, -0.0045725587f, -0.008450382f, -0.014816559f, 0.0037475608f, -0.012892677f, 0.0011481497f, -0.02088213f, 0.0020641645f, -0.022017755f, -0.005287334f, -0.024248922f, 0.026667135f, 0.00789593f, 0.0043487735f, 0.011803814f, -0.012445108f, 0.013039641f, -0.02366107f, -0.00511031f, -0.015925463f, 0.0027121385f, -0.0037275204f, 0.027295068f, -0.028724618f, 0.0013543991f, 0.013867979f, -0.016847324f, -0.021456622f, -0.007915971f, 0.0027505492f, 0.008897952f, 0.02140318f, 0.027054582f, 0.002510064f, -0.011950777f, 0.0050234683f, -0.03668735f, -0.006686824f, -0.005724883f, -0.0050468487f, 0.018330315f, 0.0167538f, -0.014495912f, 0.0033634524f, 0.009679529f, 0.011035598f, -0.019586181f, 0.014976882f, -0.0049433066f, 0.006282675f, -0.017822623f, -0.022538805f, 0.03062178f, -0.0028474112f, -0.006275995f, 0.015364331f, -0.0011481497f, 0.019840028f, -0.042966686f, 0.0047061616f, -0.031797484f, -0.009839852f, 0.027067943f, 0.007748967f, -0.008610706f, -0.026747296f, 0.022926254f, -0.008784389f, -0.008998154f, 0.015230728f, 0.0020775248f, 0.0061557526f, 0.0025401248f, -0.010601388f, 0.002281269f, 0.016553396f, 0.03241206f, -0.032358617f, -0.0058250856f, 0.0072947172f, 0.010915355f, -0.021670386f, 0.016513316f, 0.011356245f, -0.007675485f, -0.022204798f, -0.07369535f, 0.012698953f, 0.044944007f, -0.020040432f, 0.009659488f, -0.031263072f, 0.0018236793f, -0.004793003f, 0.0064262985f, -0.01254531f, -0.027295068f, 0.008069614f, 0.013226685f, -0.012618791f, -0.033694647f, -0.012465148f, 0.026760656f, -0.0029559636f, 0.0042051505f, 0.0058718463f, -0.00080495735f, -0.0064763995f, 0.020548122f, -0.005744924f, -0.00017211809f, 0.0071210335f, -0.01392142f, 0.017021006f, -0.018450558f, -0.02835053f, 0.03198453f, -0.025745274f, -0.009906653f, 0.06642735f, -0.028484134f, -0.017942866f, -0.014576074f, 0.0013585743f, 0.011356245f, -0.02652017f, -0.013153203f, -0.040935922f, 0.006132372f, 0.0039346046f, -0.009425683f, 0.016312912f, -0.004782983f, 0.004542498f, 0.0034502943f, 0.011269403f, 0.0050334884f, 0.016606838f, -0.0042151706f, 0.0012667223f, -0.020080512f, -0.020628285f, 0.006269315f, 0.007789048f, 0.015244088f, -0.01862424f, 0.012972839f, 0.011396325f, 0.010741672f, -0.010708271f, -0.0035939175f, -0.010053617f, -0.03153028f, 0.0075151618f, 0.0077222465f, -0.019559462f, -0.017448535f, -0.0050835893f, 0.0060622306f, 0.012184583f, 0.033186954f, 0.0050769094f, 0.023033137f, -0.0064262985f, -0.030755382f, 0.0455853f, 0.0050802496f, -0.011650171f, -0.03334728f, 0.029178869f, 0.0031246373f, -0.0070876325f, -0.037008f, -0.012852597f, -0.012445108f, 0.014455832f, -0.00972629f, 0.012204623f, -0.013246725f, 0.0060288296f, 0.000835018f, 0.008323459f, 0.0005749099f, -0.016646918f, 0.0054109166f, 0.023286982f, -0.007301397f, 0.004355454f, 0.010601388f, -0.018383756f, 0.011556649f, -0.012358266f, -0.035591807f, -0.037836336f, 0.0070809526f, 0.008543904f, 0.023514107f, -0.0014996923f, 5.2945357E-05f, 0.009505845f, -0.0071677943f, 0.016807241f, -0.010374264f, -0.03022097f, -0.022017755f, 0.0065231603f, 0.017528698f, 0.044489756f, 0.018717764f, 0.00021397336f, 0.0074483603f, 0.023727871f, -0.015698338f, -0.024061877f, 0.0013385338f, -0.008684187f, -0.0036005976f, -0.0066333828f, -0.011823854f, -0.0044857166f, -0.0022044475f, -0.008143095f, 0.003343412f, 0.0120777f, -0.004318713f, 0.033320557f, 0.0030762062f, -0.0045792386f, 0.0018821305f, -0.017408455f, 0.018423837f, 0.008236618f, 0.004271952f, -0.03422906f, -0.028029883f, 0.015497934f, 0.012291465f, 0.013948141f, 0.0007289707f, -0.025304385f, 0.0112827625f, -0.04368814f, 0.007869209f, -0.008684187f, -0.0017234772f, 0.017355014f, 0.0068939086f, 0.020240836f, 0.004936626f, 0.0033217014f, -0.015711699f, 0.011676892f, 0.033721365f, -0.0007060077f, -0.01066151f, 0.0050234683f, 0.010046937f, -0.032599103f, -0.0030979167f, 0.008657467f, -0.01021394f, 0.0034001933f, -0.025264304f, -0.013734376f, 0.030915705f, -0.027054582f, 0.023140019f, -0.019840028f, -0.029606398f, 0.011469807f, -0.00057741493f, -0.018383756f, -0.011182561f, -0.019318976f }; + + public static readonly IReadOnlyList BudgetVectorizeCategory = new List { 0.017491682f, -0.0464485f, 0.002383058f, -0.014235877f, -0.007261253f, 0.0119501995f, -0.009613076f, -0.018344218f, 0.0057656406f, -0.019667119f, 0.025634868f, 0.0067394422f, -0.0024216427f, 0.0018667594f, -0.023532927f, 0.003479963f, 0.040715933f, -0.004556657f, 0.008547406f, -0.018109037f, -0.021960145f, -0.0071510114f, -0.0037776155f, 0.0014028256f, -0.0024528778f, 0.007525833f, 0.006996673f, -0.026399212f, 0.011582728f, 0.0035148726f, 0.018505907f, -0.009488136f, -0.0019549527f, -0.012552855f, -0.010935976f, 0.0064417897f, 0.0063388976f, 0.0065630553f, 0.021857254f, -0.012773338f, 0.046654284f, 0.015463235f, 0.025384987f, 0.010840434f, -0.017844455f, 0.009488136f, -0.0033531848f, -0.010722842f, -0.032631543f, -0.008870781f, -0.0026494754f, 0.017065415f, -0.024341365f, 0.009774763f, 0.0018033704f, 0.0037427056f, -0.0018042891f, 0.031367436f, -0.018873379f, -0.018564701f, 0.0007041688f, -0.004817562f, 0.0016554628f, 0.020504955f, -0.011994297f, -0.014140335f, -0.0004046789f, -0.0040017734f, 0.000582903f, 0.002276491f, 0.034395408f, 0.018138433f, 0.011428389f, -0.004354547f, 0.012170683f, -0.02562017f, -0.016624447f, -0.017300596f, -0.014691543f, 0.017153608f, 0.0384817f, -0.0046264767f, -0.0119355f, 0.005919979f, 0.009208856f, 0.00643444f, -0.008481261f, 0.010156935f, -0.004262679f, -0.009252953f, 0.010134886f, 0.030162128f, 0.012626349f, 0.024929322f, -0.011259352f, 0.014309372f, -0.009642473f, 0.027516328f, 0.0015746189f, -0.027148854f, 0.013067315f, 0.0052107573f, -0.0358653f, -0.015507332f, -0.030750083f, -0.0002981119f, 0.007716919f, -0.012200081f, 0.027913198f, -0.011884055f, -0.015463235f, 0.0007000348f, 0.015419139f, -0.03489517f, 0.003191497f, 0.010017295f, 0.024120882f, -0.016418664f, 0.0031933344f, -0.008540057f, 0.021989543f, -0.01447841f, 0.022797983f, -0.010605251f, 0.02029917f, -0.0046375007f, -0.016815534f, -0.017859155f, -0.0045456327f, 0.017021317f, 0.008856082f, 0.011274051f, 0.021475082f, 0.014294673f, -0.026634393f, 0.021225201f, -0.026384512f, 0.027648617f, -0.019182054f, -0.025958244f, 0.011832609f, 0.038422905f, -0.021460384f, 0.002860772f, 0.003134539f, 0.032572746f, 0.0052622035f, -0.009510184f, 0.014419613f, -0.015257451f, 0.016477458f, -0.0113769425f, 0.01805024f, 0.004431716f, -0.004508885f, 0.016786136f, -0.0031437257f, -0.00029466685f, -0.01765337f, 0.016609749f, -0.0015296035f, -0.0009875818f, 0.03492457f, 0.013082014f, 0.0071620354f, 0.008157886f, 0.019005667f, 0.020960622f, -0.014426963f, -0.019917f, 0.009054518f, 0.016139384f, -0.017903252f, -0.00015169717f, 0.0039907494f, 0.026458006f, 0.0030959542f, -0.0074560135f, -0.0020817306f, -0.012670445f, -0.002809326f, 0.01274394f, -0.003623277f, 0.012126586f, 0.0015966672f, -0.004112015f, 0.02043146f, -0.018652895f, 0.010825735f, -0.01101682f, -0.001580131f, 0.027192952f, 0.013522982f, -0.0019016692f, -0.6472216f, -0.011053567f, -0.027148854f, 0.017873853f, -0.0009163841f, 0.012552855f, 0.015316246f, 0.019828806f, -0.026458006f, -0.0079447515f, -0.0008281907f, 0.012288274f, 0.0026586622f, -0.030485503f, -0.009679221f, -0.019843506f, 0.0052475045f, -0.007922703f, -0.014507807f, 0.019137958f, -0.0063609458f, 0.01843241f, -0.006482212f, -0.0052364804f, -0.00090030715f, 0.03527734f, 0.007448664f, -0.023856303f, 0.009319098f, -0.0047955136f, -0.008165235f, 0.027986692f, 0.007250229f, 0.007996198f, 0.016874328f, 0.0034083058f, -0.0018254187f, 0.0172418f, -0.017903252f, 0.045566566f, -0.028736334f, 0.0008608039f, 0.0094734365f, -0.018608797f, -0.009355845f, 0.0051335883f, 0.009870307f, 0.0010987422f, 0.014507807f, -0.011560679f, 0.017462285f, -0.008459212f, 0.008099089f, 0.021974845f, 0.02376811f, 0.00018913341f, 0.006610827f, -0.02375341f, 0.008569455f, 0.01527215f, -0.005387144f, 0.0046007535f, -0.0009333797f, -0.003134539f, -0.014360818f, -0.014103588f, -0.022107134f, -0.0011547818f, 0.015742514f, -0.009230904f, -0.016315771f, 0.009605726f, -0.016212879f, -0.009216205f, 0.01208249f, -0.0051335883f, 0.02601704f, -0.013846356f, -0.01208249f, -0.0067872135f, 0.005931003f, -0.013353944f, -0.025855351f, -0.006772515f, 0.027134156f, -0.030691288f, 0.0318966f, -0.022180628f, 0.015889503f, 0.010656697f, 0.017668068f, 0.028721636f, 0.0017078276f, -0.00888548f, 0.015316246f, 0.006353596f, 0.0048506344f, -0.0021882977f, 0.0074082417f, -0.040715933f, -0.0112814f, -0.001686698f, 0.016609749f, 0.005699496f, 0.013794911f, 0.022753885f, -0.017359393f, 0.015830707f, 0.029412484f, -0.01194285f, -9.7380165E-05f, -0.006184559f, 0.0020045615f, -0.0024620646f, -0.0034671014f, -0.04353812f, 0.025634868f, 0.013655271f, 0.022886176f, -0.0071252882f, 0.0015718628f, 0.0034818002f, 0.018388314f, -0.044655237f, 0.0040973164f, -0.0025098359f, -0.009782113f, -0.015566127f, 0.007988848f, 0.0068937805f, -0.00889283f, -0.010656697f, 0.027913198f, -0.016786136f, 0.030603094f, -0.0046338257f, 0.0019384165f, -0.00862825f, 0.01658035f, -0.034424808f, -0.010267177f, -0.0028111632f, 0.00876789f, -0.010980072f, -0.012567553f, -0.000111447465f, 0.0025980293f, 0.004534608f, -0.0069856485f, 0.007606677f, -0.0029948994f, 0.004446415f, -0.007342097f, 0.0034193299f, 0.020960622f, -0.039628215f, -0.022886176f, -0.012714542f, -0.018902777f, -0.00052961946f, 0.022783283f, 0.014022743f, -0.001778566f, 0.0046889465f, -0.032455154f, 0.0002935185f, 0.005221782f, 0.00088193355f, 0.0069084796f, -0.030309116f, 0.020549051f, -0.0015286849f, -0.009238254f, 0.034160227f, 0.011898753f, -0.0020486582f, 0.011737065f, -0.003994424f, 0.0212546f, 0.007716919f, 0.0066292007f, -0.003171286f, -0.014742989f, 0.0063903434f, 0.03148503f, 0.0016811858f, 0.013890454f, 0.024797032f, -0.025605472f, 0.013780212f, 0.020681342f, 0.002489625f, -0.022210026f, -0.005629676f, -0.013912502f, 0.0010886367f, -0.0111785075f, 0.002849748f, 0.0017087463f, 0.0046264767f, 0.053709753f, -0.009326448f, 0.004420692f, -0.0009701269f, 0.0025373963f, -0.023268348f, 0.0129056275f, -0.029236097f, 0.012486709f, 0.021710264f, 0.03104406f, -0.02588475f, -0.0155955255f, -0.009642473f, 0.02945658f, 0.00034266795f, -0.0013890454f, -0.011839958f, -0.020108085f, -0.0045493073f, 0.011553329f, 0.015154558f, 0.015139859f, -0.0022121833f, -0.010134886f, 0.010311273f, 0.014390216f, 0.01658035f, 0.010700794f, -0.0031492377f, -0.0059787747f, 0.018285422f, -0.00981886f, 0.022709789f, 0.01354503f, 0.0062837764f, 0.009326448f, 0.0125234565f, 0.02550258f, 0.020093387f, 0.010686095f, 0.02629632f, 0.019755311f, -0.017418187f, 0.004523584f, -0.01763867f, 0.044243667f, -0.009076566f, -0.0034634266f, -0.007342097f, 0.005761966f, -0.00061827217f, 0.010274526f, 0.00046898655f, 0.024238475f, -0.012119237f, 0.013853706f, 0.018961571f, 0.036306266f, 0.06050064f, -0.0022434185f, 0.008268127f, -0.0046338257f, -0.0050490694f, 0.008143187f, 0.005908955f, -0.014265276f, -0.027060661f, -0.018403014f, 0.0021570625f, 0.012964424f, -0.0004292536f, -0.002267304f, -0.0029287543f, -0.00242348f, 0.021460384f, -0.017873853f, 0.015624923f, 0.01552203f, 0.0026145654f, -0.016021794f, -0.011009471f, 0.02148978f, 0.015139859f, -0.011428389f, -0.019284947f, -0.010722842f, -0.024503054f, 0.013037918f, 0.03172021f, -0.009517533f, 0.00074688747f, -0.011450437f, -0.007981499f, 0.0011933664f, -0.016124684f, 0.010899229f, 0.0067798644f, -0.03345468f, 0.0051446124f, 0.00088377093f, -0.0010794499f, -0.012655746f, -0.01882928f, 0.016639147f, 0.023503529f, -0.012420564f, -0.05106395f, -0.018873379f, -0.013309848f, 0.013640572f, -0.036717832f, -0.019917f, 0.0073825186f, 0.013412739f, -0.0033495103f, -0.022312919f, -0.0159483f, 0.03104406f, 0.023577023f, -0.008995722f, -0.021519179f, -0.031396836f, -0.016374566f, 0.099482104f, 0.026266921f, -0.010237779f, 0.023665218f, 0.010325972f, -0.0062764273f, -0.03624747f, -0.028633444f, 0.0025135106f, -0.030162128f, 0.015492633f, 0.0060191965f, 0.01752108f, -0.01844711f, 0.012861531f, -0.005148287f, -0.028221874f, -0.005229131f, 0.008723793f, -0.01805024f, -0.010708143f, -0.006449139f, 0.031632017f, 0.033631068f, 0.000238168f, 0.017285898f, 0.008973674f, 0.01247936f, -0.00074183475f, -0.008613551f, -0.0017454935f, 0.0050784675f, -0.00823138f, 0.015889503f, -0.00822403f, 0.007169385f, 0.01247201f, -0.0040017734f, 0.022871478f, 0.005574555f, 0.01753578f, 0.004369246f, -0.0021717614f, -0.0018759462f, 0.006463838f, -0.027354639f, -0.012765988f, 0.000604492f, 0.00013711311f, -0.020166881f, 0.041450877f, 0.004277378f, -0.023665218f, -0.00025378558f, -0.00238857f, 0.02243051f, 0.0013651596f, 0.013706718f, -0.019667119f, -0.019534828f, -0.03368986f, -0.037393983f, 0.0172565f, 0.006746792f, -0.0074927607f, -0.032219972f, -0.021401588f, 0.009223555f, -0.012325021f, 0.0039576767f, -0.011803211f, -0.0212399f, -0.018564701f, 0.01287623f, 0.005666423f, -0.006945227f, 0.017109511f, 0.0060449196f, 0.018403014f, -0.0019329044f, -0.011266701f, -0.007312699f, 0.009061867f, -0.027501628f, -0.014978171f, 0.025708362f, -0.005004973f, -0.021445684f, -0.004964551f, 0.0106273f, 0.0061514867f, -0.0021570625f, 0.02456185f, -0.023341842f, -0.02510571f, -0.021401588f, -0.00053283485f, -0.0104215145f, -0.01938784f, 0.002057845f, 0.022621596f, -0.0081358375f, -0.03624747f, -0.033190098f, -0.021181105f, 0.0055819047f, 0.009363195f, 0.021783758f, -0.010068742f, 0.004722019f, 0.009179458f, -0.037335187f, -0.0017262012f, 0.004593404f, 0.0022452557f, -0.0062984754f, -0.004806538f, 0.01408154f, 0.0066953455f, -0.013368643f, -0.011707668f, -0.026898973f, 0.008429815f, 0.03877568f, -0.0006899293f, 0.017506381f, 0.022621596f, 0.0027468556f, 0.007716919f, 0.02057845f, 0.006423416f, 0.02401799f, -0.017285898f, -0.038716882f, -0.00862825f, -0.019005667f, -0.006199258f, 0.018902777f, -0.021592673f, -0.022195328f, -0.022327619f, 0.010325972f, 0.0029875499f, 0.00037091738f, 0.009885006f, -0.056443747f, 0.008591503f, -0.006041245f, -0.022886176f, 0.005162986f, -0.0058722077f, 0.019814108f, -0.031661414f, 0.0058832318f, -0.005989799f, -0.037011813f, -0.02548788f, -0.001194285f, -0.0033513475f, 0.027780907f, 0.04553717f, 0.01882928f, 0.0033715584f, 0.014669495f, 0.00371882f, 0.0056921463f, -0.009862957f, 0.00088790496f, -0.014941424f, -0.0060228715f, 0.013633223f, 0.018682292f, -0.019931698f, 0.00039181736f, -0.024370763f, -0.0028185127f, -0.016477458f, 0.0026035414f, -0.010539106f, -0.010509708f, 0.005537808f, -0.0125234565f, 0.0044905115f, 0.013949249f, -0.010700794f, -0.010480311f, 0.024047388f, 0.011634174f, 0.01565432f, -0.025414385f, 0.013978647f, 0.010384767f, 0.023283046f, -0.008025595f, 0.017815057f, -0.005221782f, -0.02879513f, -0.027192952f, -0.006316849f, 0.008466562f, -0.004277378f, 0.007051794f, -0.015566127f, 0.004817562f, -0.006250704f, 0.024179678f, 0.0056627486f, -0.0017473309f, 0.011229954f, -0.032837328f, -0.02018158f, -0.024120882f, -0.012045743f, -0.022518704f, 0.004578705f, 0.00955428f, 0.0015194981f, 0.002449203f, 0.012957074f, 0.002383058f, 0.010575853f, 0.004262679f, 0.02043146f, -0.019211452f, 0.019049766f, 0.021798458f, -0.005769315f, -0.033013713f, -0.010303924f, 0.015683718f, -0.015889503f, 0.02297437f, 0.021445684f, -0.0007776633f, -0.015139859f, 0.0071473364f, 0.01487528f, -0.010641999f, -0.045419578f, 0.024752935f, 0.008745841f, 0.015169257f, 0.007753666f, -0.012714542f, -0.018270724f, 0.03345468f, 0.0028442356f, 0.0012990147f, -0.007724268f, -0.0005874964f, 0.017712165f, 0.0038327363f, -0.0054973857f, 0.025634868f, 0.0049461774f, -0.014493108f, -0.011803211f, -0.0029875499f, -0.02456185f, 0.027442833f, 0.0056590736f, 0.027707413f, -0.022739187f, 0.021813156f, -0.0047183447f, 0.0073163738f, -0.01473564f, -0.018888077f, 0.013089363f, 0.027119458f, -0.02204834f, -0.022018941f, 0.0042002085f, -0.0044537643f, 0.015257451f, -0.0012585927f, -0.0069893235f, -0.03289612f, -0.007433965f, 0.004685272f, 0.012883579f, -0.0046889465f, -0.025017515f, -0.004420692f, -0.012626349f, -0.02282738f, -0.025561374f, -0.011479835f, 0.0064050425f, 0.024973419f, -0.018461809f, 0.012508757f, 0.008077041f, 0.01646276f, -0.0035755057f, 0.0023995943f, -0.012883579f, 0.018946873f, -0.042626787f, 0.019549526f, -0.0053283484f, 0.011406341f, -0.033807453f, -0.005431241f, -0.0019641395f, -0.01088453f, 0.018358916f, -0.0424798f, -0.02894212f, -0.00018476967f, -0.00889283f, 0.018461809f, -0.0061367876f, 0.013412739f, 0.011435739f, -0.00051078654f, 0.008268127f, -0.025237998f, -0.03172021f, 0.021151707f, 0.0020798934f, -0.012604301f, 0.010913928f, -0.0056113023f, 0.017462285f, 0.003059207f, 0.029882848f, 0.019182054f, -0.005096841f, -0.014221178f, -0.0013320871f, 0.028618744f, -0.0068019126f, -0.036570843f, -0.014213829f, -0.0011171158f, 0.01844711f, 0.0029250795f, -0.006438115f, -0.0022176953f, 0.0053797946f, 0.0067872135f, 0.025384987f, 0.0146327475f, -0.011604776f, -0.027839703f, 0.0008970918f, -0.009348496f, -0.002967339f, -0.010671396f, 0.015419139f, 0.025723062f, 0.019255549f, -0.02535559f, -0.002454715f, -0.0077022198f, -0.022989068f, -0.009260302f, -0.028780432f, 0.02097532f, 0.031367436f, 0.0074890857f, 0.013743465f, 0.026707888f, 0.011913452f, 0.017418187f, -0.036453255f, -0.0065079345f, 0.008099089f, -0.004023822f, -0.009840908f, 0.007819811f, -0.022210026f, -0.018403014f, 0.028898023f, -0.015316246f, 0.026987167f, 0.01712421f, -0.0066696224f, -0.021739662f, -0.010891879f, 0.027736811f, 0.020563751f, 0.02428257f, 0.025311492f, -0.030191526f, 0.01791795f, 0.0062543787f, 0.0062323306f, -0.029133204f, -0.011825259f, 0.005666423f, -0.03354287f, 0.006746792f, -0.036717832f, -0.017844455f, -0.0016352518f, -0.006247029f, 0.0028240248f, 0.013206955f, -0.0029948994f, 0.022121834f, -0.0005893337f, -0.005828111f, -0.01882928f, 0.017168306f, -0.033631068f, 0.0046338257f, 0.020269772f, -0.01181056f, 0.0033201124f, -0.0037537296f, -0.021945447f, -0.01433877f, -0.005093166f, -0.002849748f, -0.018241325f, -0.0035295717f, 0.027310543f, 0.005339373f, -0.022871478f, 0.0010776125f, -0.017212404f, -0.006713719f, -0.013045267f, -0.0068717324f, 0.019887602f, -0.008797287f, -0.010583202f, 0.003378908f, -0.040186774f, -0.018079638f, -0.021151707f, 0.006386669f, -0.017315295f, 0.013985996f, 0.18673474f, -0.017815057f, 0.0073163738f, 0.04609573f, 0.0070811915f, 0.01952013f, 0.00723553f, 0.011759114f, -0.022092436f, 0.031161653f, -0.01646276f, 0.007143662f, -0.0051666605f, 0.009039819f, 0.008569455f, -0.0002928295f, -0.035365537f, -0.014889978f, -0.039775204f, 0.017329995f, 0.014382866f, 0.023606421f, -0.017065415f, -0.025855351f, 0.020108085f, 0.0026347765f, -0.040245567f, 0.016947823f, 0.03198479f, 0.019799408f, 0.014272625f, -0.01314816f, -0.010009946f, -0.00024919218f, -0.0011924476f, -0.0035185474f, -0.005574555f, -0.010054043f, 5.107291E-05f, 0.015918901f, -0.00643444f, 0.019270249f, 0.025076311f, -0.028824529f, 0.016668545f, 0.015029618f, -0.018300122f, 0.004898406f, 0.016021794f, 0.01685963f, -0.033248894f, 0.013456836f, 0.016830232f, 0.027163554f, -0.0017363067f, -0.0052989507f, 0.022504004f, 0.01565432f, -0.0061955834f, 0.012699843f, -0.0077683646f, 0.01924085f, -0.007900654f, 0.013846356f, -0.030485503f, 0.012993821f, -0.018976271f, -0.00022978503f, 0.026443308f, -0.015639622f, -0.02110761f, -0.01884398f, -0.02307726f, 0.021592673f, -0.00411569f, -0.018270724f, 0.035512526f, 0.015463235f, 0.010495009f, 0.025443783f, -0.02975056f, -0.01181791f, -0.019490732f, -0.022518704f, 0.012258876f, -0.040951114f, 0.02548788f, 0.0031492377f, -0.0032668288f, -0.008826685f, 0.014934075f, -0.001628821f, -0.026105233f, -0.016109986f, -0.005177685f, 0.03345468f, -0.0052364804f, 0.021548577f, -0.040304363f, -0.0057803397f, -0.0033550223f, 0.047947787f, 0.011325497f, -0.009370544f, -0.0020854054f, -0.018638195f, -0.031661414f, 0.020740138f, 0.011715017f, -0.021548577f, -0.0008171666f, -0.031426232f, 0.019696517f, -0.017579876f, 0.002037634f, 0.0032264069f, -0.010414165f, -0.023003766f, 0.004593404f, -0.019608323f, -0.02322425f, -0.019564226f, 0.0012448125f, 0.0015351156f, -0.0061514867f, -0.010722842f, -0.015330945f, 0.011854657f, 0.006081667f, -0.04818297f, -0.0008387556f, -0.0052364804f, 0.02470884f, -0.022224726f, -0.02401799f, 0.014316722f, 0.021710264f, -0.018064938f, -0.029971043f, -0.00077031384f, 0.011097664f, 0.012280925f, -0.009289701f, -0.0071840836f, 0.026075836f, -0.012067791f, 0.028618744f, -0.012567553f, -0.01088453f, -0.013963948f, -0.0029305918f, 0.0028295368f, -0.003105141f, -0.017800359f, 0.034836374f, -0.0159483f, -0.016080588f, -0.03665904f, 0.0029177302f, 0.024679441f, -0.04609573f, -0.017506381f, 0.030779481f, -0.024444258f, -0.008304874f, -0.025061611f, -0.19284947f, 0.015316246f, 0.010928627f, -0.020901825f, 0.025252698f, 0.023944495f, -0.0015406277f, 0.0079300525f, -0.030397309f, -0.017227102f, -4.1599014E-05f, 0.004872683f, -0.023121359f, -0.020049289f, -0.010245129f, -0.016418664f, -0.0068276357f, 0.0064270906f, 0.0017179331f, -0.00036632398f, 0.015992396f, -0.027722111f, -0.0010280038f, -0.0073053497f, 0.023797506f, -0.006269078f, 0.014044791f, 0.023106659f, 0.01380226f, -0.023400636f, -0.0067394422f, 0.002587005f, 0.02482643f, 0.0070591434f, -0.004475813f, -0.003241106f, -0.009208856f, -0.014485759f, -0.0030224598f, 0.021430986f, 0.0070260707f, 0.012692493f, 0.0026072161f, 0.008143187f, -0.0013311685f, 0.03965761f, 0.0057141944f, 0.008378369f, 0.0159483f, -0.011597427f, 0.01340539f, -0.007224506f, -0.0056700977f, -0.011612125f, 0.016139384f, 0.023532927f, 0.00014710375f, -0.001580131f, -0.0052989507f, -0.007433965f, -0.030103331f, -0.009502834f, -0.004722019f, 0.010399466f, -0.02082833f, -0.019623023f, -0.011237304f, 0.006651249f, -0.006382994f, 0.015213354f, -0.0142505765f, -0.014184431f, 0.028016089f, -0.00889283f, 0.0009912566f, -0.0070591434f, -0.015904201f, 0.026663791f, -0.0063793194f, 0.0020854054f, 0.0064417897f, 0.057560865f, -0.0039319536f, -0.049623463f, 0.0063940184f, 0.019329043f, 0.005372445f, 0.0062874514f, 0.028721636f, 0.0020725438f, 0.01684493f, -0.014132985f, -0.00032016027f, -0.012655746f, -0.0010693445f, 0.03172021f, 0.0065887785f, -0.0008631006f, 0.016521554f, -0.005254854f, -0.0047991886f, 0.003649f, -0.013978647f, 0.036276866f, 0.010340671f, -0.00065777544f, 0.017550478f, 0.028721636f, 0.0061625107f, -0.004394969f, -0.03251395f, 0.00085804786f, 0.00969392f, 0.020666642f, 0.0069084796f, 0.0358359f, 0.0037096331f, -0.024356065f, 0.019681817f, -0.01871169f, 0.030808879f, -0.015580826f, -0.028089583f, 0.001349542f, 0.0028185127f, -0.0028442356f, -0.1448723f, -0.016168782f, -0.007220831f, 0.027531026f, 0.008525358f, 0.013846356f, -0.025605472f, 0.01952013f, -0.019681817f, 0.008738492f, -0.022401113f, -0.0052769026f, -0.0074780616f, -0.018667594f, 0.00061689416f, 0.0018355242f, 0.02401799f, -0.020108085f, 0.0035075233f, 0.039334238f, 0.013221654f, -0.006155161f, -0.022900874f, 0.002138689f, 0.0035902045f, 0.0035516198f, -0.041450877f, 0.01938784f, 0.011060917f, 0.018682292f, 0.019858204f, 0.008040294f, 0.014625398f, -0.021063512f, -0.015492633f, -0.0024510403f, -0.036688436f, -0.0012071466f, 0.0031235146f, -0.025708362f, 0.01805024f, 0.010340671f, -0.0004623261f, -0.036276866f, 0.010825735f, -0.00889283f, -0.011832609f, 0.030279718f, 0.021416286f, -0.009488136f, -0.022650994f, 0.00040789426f, -0.03601229f, -0.010943325f, 0.014956123f, -0.010855132f, 0.009385243f, 0.023327142f, 0.0032888772f, -0.00031143278f, -0.0056700977f, 0.010950675f, 0.011038869f, 0.032014187f, -0.008121138f, 0.00032406466f, -0.0148238335f, -0.020490257f, 0.02190135f, -0.008121138f, -0.013581777f, 0.036188673f, 0.01167827f, 0.016301071f, -0.033366486f, 0.008804637f, -0.026384512f, -0.010318623f, 0.058178216f, -0.0048800325f, -0.029574173f, -0.02188665f, 0.01512516f, -0.01685963f, 0.0142432265f, 0.026987167f, -0.011303448f, -0.016286373f, 0.0014460036f, -0.017609274f, 0.00577299f, 0.019284947f, 0.0036692112f, -0.012494058f, -0.001628821f, 0.009936451f, 0.0032374312f, -0.0033311364f, -0.009223555f, 0.012229479f, -0.0012944213f, -0.0043471977f, -0.08913408f, 0.022018941f, 0.01088453f, -0.005839135f, -0.03371926f, 0.011391642f, -0.009039819f, -0.019152656f, -0.012971773f, -0.009047168f, -0.024532452f, 0.0063903434f, -0.004394969f, -0.017888552f, -0.028515851f, -0.020887127f, 0.016756738f, -0.019725913f, -0.0023977568f, 0.031808402f, -0.016109986f, -0.000585659f, 0.0057288934f, 0.012369118f, -0.006761491f, 0.0042038835f, -0.011274051f, 0.013420089f, 0.023062563f, -0.028501153f, 0.0038290615f, -0.012413215f, -0.022533402f, 0.021048814f, -0.014809134f, -0.021857254f, 0.0008194633f, 0.011781163f, 0.024738235f, -0.0075037847f, -0.0056076273f, -0.021416286f, -0.017682768f, 0.0036012286f, 0.0104215145f, -0.008547406f, -0.013647921f, 0.002647638f, 0.00063618645f, 0.0013486234f, 0.025914147f, -0.001971489f, 0.0043471977f, -0.01578661f, -0.009407291f, -0.031396836f, 0.018300122f, 0.0062727523f, -0.0025226974f, -0.015345644f, 0.016286373f, 0.013794911f, 0.00517401f, -0.035806503f, -0.012141285f, -0.015889503f, -0.0041891844f, 0.00942199f, -0.0036747232f, -0.036541447f, -0.031249845f, -0.025590772f, 0.008106439f, 0.00929705f, 0.021548577f, 0.0096571725f, -0.008973674f, 0.004538283f, -0.0004901162f, 0.033807453f, 0.029721161f, 0.008863432f, -0.015889503f, 0.003998099f, 0.013229003f, 0.0055414825f, -0.012031044f, 0.0069782995f, 0.012758639f, 0.0073861936f, -0.01566902f, -0.0115680285f, 0.016653845f, -0.020754836f, 0.017844455f, 0.014485759f, -0.001194285f, -0.01447841f, 0.0012585927f, 0.023106659f, 0.006493236f, -0.0022581173f, 0.0051813596f, -0.019035066f, -0.011972248f, 0.0140668405f, -0.02190135f, -0.019975794f, -0.013059966f, 0.014515157f, 0.021019416f, 0.007422941f, 0.018417712f, 0.014551904f, 0.0032190576f, 0.03266094f, -0.0023463108f, -0.027369337f, -0.021137008f, 0.011171158f, 0.0154044395f, 0.020872427f, 0.027398735f, -0.01300852f, 0.03477758f, -0.007724268f, 0.01487528f, -0.024576548f, -0.0011318148f, 0.011340195f, -0.0099585f, -0.013750814f, -0.020005193f, -0.01752108f, -0.008694395f, -0.0042112325f, -0.0011299774f, 0.03436601f, -0.02243051f, 0.045713555f, 0.0017464121f, 0.017080113f, -0.019652419f, 0.0021460382f, 0.004670573f, 0.011920802f, 0.014581301f, -0.027045963f, 0.0024657391f, 0.012552855f, -0.0159336f, 0.0047991886f, -0.014132985f, 0.001712421f, 0.0033623716f, -0.010061392f, 0.0059640757f, -0.016374566f, -0.0049976236f, 0.013640572f, 0.0131114125f, 0.008569455f, 0.01884398f, -0.018682292f, -0.011553329f, 0.0005025184f, 0.005012322f, 0.02188665f, -0.04289137f, 0.0057399175f, -0.0009186808f, -0.011604776f, -0.017609274f, 0.029647667f, -0.021871952f, -0.0058317855f, 0.010730192f, -0.023959195f, 0.0067908885f, -0.0013568915f, 0.034307215f, -0.030720685f, -0.035394933f, -0.033631068f, -0.0030867674f, 0.0014680519f, 0.008422465f, -0.017491682f }; + + public static readonly IReadOnlyList BoutiqueVectorizeCategory = new List { -0.016244572f, -0.006354998f, -0.013256308f, -0.000817412f, -0.015652185f, 0.019127524f, -0.00307054f, 0.009326806f, 0.023142591f, -0.025459483f, 0.024551157f, 0.009616418f, -0.009544015f, -0.021036325f, -0.013460352f, -0.0025604288f, 0.030804131f, -0.012209757f, 0.016731646f, -0.010867013f, -0.026038706f, 0.014493739f, 0.0074904063f, 0.0007120987f, 0.0032153458f, -0.024840768f, 0.0069177654f, -0.035095647f, -0.0006220065f, -0.0065820795f, 0.021088982f, -0.00860936f, -0.005055037f, -0.02722348f, -0.016152423f, -0.0021852504f, 0.008148614f, 0.0034391365f, 0.015718006f, -9.148062E-05f, 0.010333865f, 0.022418562f, 0.0037090017f, 0.014217292f, -0.012677085f, 0.0012571772f, -0.011781923f, -0.007365347f, -0.026459958f, -0.0222211f, 0.0125388615f, 0.022931965f, -0.017890092f, 0.011821414f, 0.012413802f, -0.00797748f, -0.0071152276f, 0.0162709f, 0.016047109f, -0.0018874112f, -0.0072666155f, -0.004709478f, -0.03994006f, 0.0042388593f, -0.01180825f, -0.011386997f, -0.010182477f, 0.022747666f, 0.008194689f, 0.0048740297f, 0.0073192725f, 0.019522447f, 0.000661499f, -0.0038669717f, 0.018219195f, -0.018824747f, -0.011604206f, 0.00056729297f, 0.0034424276f, 0.00040767755f, 0.011005237f, 0.003491793f, -0.009478195f, 0.010340447f, 0.008247346f, 0.021312773f, -0.02073355f, 0.01228216f, 0.0037517853f, -0.021404922f, 0.005650715f, 0.0077536893f, 0.001367427f, 0.012828473f, -0.032094218f, 0.0061937366f, -0.0056902077f, 0.034806035f, 0.02260286f, -0.017626809f, 0.017547823f, 0.020931013f, -0.030856788f, -0.012828473f, -0.03241016f, 0.009734895f, 0.0037715314f, -0.0067597954f, 0.029487716f, 0.00867518f, -0.014506903f, 0.026236169f, 0.0236165f, -0.012426966f, 0.0009996534f, 0.016639497f, -0.0043803737f, 0.012881129f, 0.012196593f, -0.03475338f, 0.011841161f, 0.0123808915f, 0.016534183f, -0.009925776f, 0.030303894f, 0.0013123021f, -0.038992237f, -0.037939105f, -0.005038582f, -0.0010687652f, 0.021576056f, 0.0062431023f, 0.0051998426f, 0.010880177f, -0.0036530541f, -0.009320225f, -0.00841848f, 0.051208578f, -0.0076615405f, -0.024722291f, 0.0141383065f, 0.033147354f, -0.0064010723f, -0.00816836f, 0.017613644f, 0.021009997f, -0.013210233f, 0.015704842f, 0.0034062262f, 0.008056466f, 0.020233313f, -0.022392234f, 0.0067729596f, -0.0028878874f, -0.0026097945f, 0.009208329f, 0.004633784f, 0.023498023f, -0.011163207f, 0.0015920404f, 0.0064866394f, 0.00291257f, -3.1984793E-05f, -0.0035576138f, 0.036701676f, 0.010070582f, 0.0144542465f, 0.015875975f, -0.008431644f, 0.0104128495f, -0.00032560725f, 0.00395583f, -0.028118644f, 0.007924824f, 0.004324426f, 0.017139735f, -0.0015410293f, 0.01927233f, -0.009734895f, -0.02206313f, -0.018206032f, -0.01839033f, 0.0063484157f, 0.013677561f, -0.007523317f, 0.025525304f, 0.008425062f, 0.0024073955f, 0.012104444f, -0.001179015f, 0.0119004f, 0.009721731f, 0.019746238f, 0.011413326f, -0.69885886f, -0.0011502184f, -0.024340529f, -0.02278716f, -0.002573593f, 0.008964792f, 0.035437915f, 0.0113606695f, 0.00060267164f, 0.0069243475f, -0.013861859f, 0.0140329935f, 0.00806963f, -0.0072402875f, -0.019390807f, -0.023695486f, 0.0089713745f, -0.012400637f, 0.0030853497f, -0.013835531f, 0.009168836f, 0.030172251f, -0.0008581386f, 0.0076154657f, -0.0004599228f, 0.0027677645f, 0.0070033325f, 0.012176847f, -0.015230931f, 0.0048180823f, -0.0032910397f, 0.05681651f, 0.0067532132f, -0.014427918f, 0.056605883f, 0.015125618f, -0.004136837f, 0.038386688f, 0.014678037f, 0.021233788f, -0.011538385f, -0.0046699853f, 0.013532755f, -0.010682715f, -0.0012004067f, 0.0049135224f, 0.010004761f, -0.019996358f, 0.0001847096f, -0.013585412f, 0.01652102f, -0.0131180845f, -0.0065656244f, 0.018113883f, 0.016310392f, -0.017337197f, 0.016257737f, -0.0062463935f, 0.0140856495f, 0.0048180823f, 3.707562E-05f, 0.0025242274f, -0.030093268f, -0.020391282f, 0.00023263537f, -0.013394532f, -0.011683191f, -0.023326889f, 0.01595496f, -0.0071876305f, 0.003478629f, 0.0075825555f, -0.026657421f, 0.0073587648f, 0.0033404054f, -0.009715149f, 0.019061701f, -0.0056210957f, 0.0020865193f, 0.01107764f, 0.014414754f, -0.008267092f, -0.031093743f, 0.010939416f, 0.014388425f, -0.009787552f, -0.004742388f, -0.016718483f, 0.010880177f, -0.0030080103f, 0.011841161f, 0.0099389395f, 0.013473516f, 0.017152898f, 0.0039492478f, 0.0009445284f, -0.008622524f, 0.028065987f, 0.01582332f, -0.011419908f, -0.013427442f, 0.014322605f, 0.003978867f, 0.025090886f, -0.008128868f, 0.0033831887f, -0.0041137994f, 0.007780018f, 0.01683696f, -0.029487716f, 0.008615942f, -0.006223356f, -0.029987954f, -0.008392151f, 0.010774864f, -0.022431727f, 0.016244572f, -0.019825224f, 0.010524745f, -0.008504046f, -0.00049776974f, -0.010860431f, 0.022655517f, -0.0036826734f, -0.013875023f, 0.009155672f, -0.0030787676f, -0.020062178f, -0.015994454f, -0.009267568f, 0.015810154f, -0.00046732763f, 0.011024983f, 0.006223356f, 0.017455675f, -0.015020305f, 0.014467411f, 0.0050813654f, 0.01376971f, -0.041730385f, -0.015270424f, -0.008787076f, -0.021260116f, 0.0007141556f, -0.0071678846f, -0.02582808f, -0.015112454f, -0.013598576f, -0.045337364f, 0.027460435f, -0.00522288f, 0.0021408214f, -0.033200007f, 0.035595886f, 0.013717053f, -0.016560512f, -0.026960198f, -0.016428871f, -0.026828555f, -0.018719435f, 0.012848219f, 0.016363049f, -0.017929584f, 3.13163E-05f, -0.022681845f, -0.019891044f, -0.0023020823f, 0.007826093f, -0.011281684f, -0.009017449f, 0.018179704f, -0.012183429f, -0.012584936f, 0.0024073955f, 0.007128392f, 0.0017475421f, -0.014533231f, -0.0089187175f, -0.0022839815f, -5.373651E-05f, 0.003039275f, 0.0032959762f, -0.02370865f, 0.0076944507f, 0.007608884f, 0.011064475f, -0.0014571078f, 0.022550205f, -0.031699296f, 0.0088134045f, 0.015494215f, 0.0070823175f, -0.014954484f, 0.006466893f, -0.016757974f, -0.005584894f, -0.00066232175f, 0.01728454f, -0.00055536296f, 0.02526202f, 0.03346329f, 0.0013221751f, 0.026486287f, -0.024024589f, 0.024603812f, -0.034016185f, 0.008898972f, -0.009570343f, 0.036833316f, 0.011090804f, 0.0025571377f, -0.020562416f, -0.015981289f, 0.014427918f, 0.0047785896f, 0.02864521f, 0.0037781135f, 0.017271377f, 0.013144413f, 0.0025143544f, 0.009899448f, -0.0140856495f, -0.020114835f, 0.016981766f, -0.0066676466f, -0.00024970763f, -0.01111055f, 0.021220624f, 0.00841848f, -0.0041993666f, -0.010537909f, 0.025709603f, 0.02158922f, 0.0066709374f, 0.011663444f, 0.00048090317f, 0.011946474f, -0.028750522f, 0.019877879f, 0.0125388615f, 0.01915385f, 0.044626497f, 0.0106761325f, -0.00096180633f, 0.018495644f, 0.004544926f, 0.0121571f, 0.01728454f, -0.00020363308f, -0.0086554345f, -0.004482396f, -0.0052952827f, -0.00028076684f, 0.014704365f, 0.012709996f, 0.0005232753f, -0.0066775195f, 0.008536957f, 0.008826569f, 0.013572248f, -0.020601908f, 0.0053676856f, -0.01845615f, 0.019956864f, 0.0041796206f, -0.004393538f, 0.019259164f, 0.0031840808f, -0.010221969f, -0.00781951f, 0.0016529247f, 0.00880024f, -0.0012209758f, -0.002450179f, 0.0061213337f, 0.0021062654f, -0.0039591207f, 0.016547348f, -0.029619357f, 0.027750047f, -0.027091838f, -0.017468838f, 0.020746714f, 0.018048061f, -0.011814833f, -0.014322605f, -0.027170824f, 0.024616977f, -0.00899112f, 0.02724981f, 0.0036036884f, 0.032857742f, -0.014256784f, -0.0039525386f, 0.005242626f, -0.00860936f, 0.030567177f, -0.021655042f, -0.0025818206f, -0.008003809f, 0.008464554f, -0.012361146f, 0.01275607f, 0.012032041f, 0.022431727f, 0.015007141f, -0.027486764f, -0.013460352f, -0.016349886f, -0.024590649f, 0.016455198f, -0.026696915f, -0.00813545f, -0.009063523f, 0.013361622f, 0.009695403f, -0.010485252f, 0.0051669325f, 0.015599528f, 0.012953532f, 0.004712769f, -0.01620508f, -0.0136643965f, 0.001966396f, 0.08219701f, 0.0031067415f, -0.010498417f, 0.013098338f, -0.0058580507f, 0.008438226f, -0.012709996f, -0.0007347246f, 0.00395583f, 0.00020219325f, -0.009195165f, 0.009971851f, 0.012637593f, 0.0018561464f, 0.014625381f, -0.0131180845f, -0.009096433f, -0.011176371f, 0.015402066f, -0.017745286f, 0.020062178f, -0.013861859f, -0.024788111f, 0.011143461f, 0.010511581f, 0.0053479397f, 0.021576056f, 0.02753942f, 0.0026361228f, -0.005904125f, 0.0012547089f, -0.0001056218f, -0.018969553f, -0.0027908017f, 0.013223398f, -0.0039229193f, -0.0015443204f, 0.010551074f, 0.022431727f, 0.011762176f, 0.036728002f, 0.0060193115f, -0.006062095f, 0.005449962f, -0.0005784002f, -0.0021539854f, 0.005469708f, -0.0011115486f, -0.020206984f, 0.008332913f, 0.033752903f, 0.022247428f, -0.014901828f, -0.006124625f, 0.009293896f, 0.022102622f, 0.0051735146f, 0.003564196f, -0.018508807f, -0.055816032f, -0.00034165106f, -0.033831887f, -0.00261144f, -0.004067725f, -0.0009881346f, -0.051840458f, -0.015112454f, 0.008405316f, -0.01753466f, -0.0142962765f, -0.008727837f, -0.017560989f, -0.016494691f, -0.018271852f, 0.003221928f, -0.002073355f, 0.009721731f, 0.0065754973f, 0.009688821f, 0.037781134f, 0.0049299775f, 0.0013320483f, -0.0027661189f, -0.038439345f, -0.013335293f, 0.008385569f, -0.010498417f, -0.006157535f, -0.009971851f, 0.0036563452f, 0.019496119f, -0.025446318f, 0.030567177f, -0.012394056f, -0.0033700247f, -0.009063523f, 0.024393186f, -0.0072731976f, 0.0036201437f, -0.001137877f, 0.011801668f, -0.022102622f, -0.0066742287f, -0.00022893294f, 0.005321611f, -0.021562893f, -0.02684172f, -0.015086126f, -0.0021128475f, -9.292045E-05f, 0.011841161f, 0.0046930225f, -0.013559083f, 0.0086554345f, -0.03475338f, 0.010011342f, -0.011735847f, 0.00395583f, -0.0006709607f, -0.010893341f, -0.021128476f, -0.027302464f, 0.011505474f, 0.024037754f, -0.004219113f, -0.010853849f, -0.002652578f, -0.032094218f, 0.014283112f, 0.0054203426f, 0.0059469086f, 0.009267568f, -0.040940534f, -0.023182083f, -0.03517463f, -0.019430298f, -0.017192392f, -0.0077602714f, -0.0011304722f, -0.026223004f, -0.03630675f, 0.028408255f, -0.000990603f, 0.017087078f, -0.0222211f, -0.030145925f, -0.008398733f, -0.0003718875f, -0.012815309f, 0.03330532f, -0.00797748f, 0.003314077f, -0.019746238f, -0.006460311f, -0.023590172f, -0.023063606f, -0.025472647f, -0.029935297f, -0.0044231573f, 0.0222211f, 0.025341006f, 0.0017672883f, 0.007641794f, 0.0063582887f, -0.0017689338f, -0.0012818599f, -0.0146122165f, 0.00332395f, -0.028539896f, 0.02104949f, 0.008583032f, 0.021088982f, 0.022550205f, -0.004962888f, -0.023642829f, 0.027170824f, 0.0035016662f, -0.015138783f, -0.022826651f, -0.0026443503f, 0.00072649703f, -0.034305796f, -0.00026554576f, -0.005785648f, -0.02168137f, -0.009629582f, 0.021220624f, -0.0019367769f, -0.010142985f, -0.007365347f, 0.03833403f, -0.024682797f, 0.01224925f, -0.016007617f, -0.006137789f, -0.0033371144f, -0.0078984955f, -0.01728454f, 0.018969553f, 0.012413802f, 0.0050649103f, -0.0076549584f, -0.014164635f, -0.000119608725f, 0.006720303f, 0.02181301f, 0.00806963f, -0.01902221f, 0.0015377383f, -0.013717053f, -0.01060373f, -0.0056869164f, -0.021957817f, -0.03338431f, 0.006068677f, 0.0073061083f, -0.044047274f, 0.027276138f, -0.008365823f, -0.010399685f, 0.00899112f, -0.043573365f, 0.022550205f, -0.014954484f, 0.035727527f, 0.0044198665f, 0.0045153066f, -0.005979819f, 0.020088507f, -0.0058745057f, -0.04054561f, 0.015007141f, 0.015757497f, 0.00016311216f, -0.0050221267f, 0.028092315f, 0.022431727f, -0.028065987f, -0.02066773f, 0.042204294f, 0.011038147f, 0.027197152f, -0.01744251f, 0.004386956f, 0.0123808915f, 0.03957146f, -0.016757974f, 0.015507379f, -0.005505909f, -0.0023053733f, -0.008714673f, 0.014967648f, -0.0072666155f, 0.030224908f, 0.009879701f, -0.0050254175f, -0.009978432f, -0.0009864891f, 0.00035769487f, 0.0013164158f, -0.0057000807f, 0.03069882f, -0.007878749f, 0.0074311676f, 0.009629582f, -0.0066676466f, -0.023695486f, 0.01494132f, 0.005864633f, 0.025406826f, -0.0148754995f, -0.011117132f, -0.002275754f, -0.0047061867f, 0.019101195f, 0.0057955207f, -0.012367727f, -0.022576533f, 0.0054170513f, -0.0070954817f, -0.010419432f, -0.005821849f, 0.0010934479f, 0.014546395f, -0.012236086f, -0.024129903f, -0.016560512f, -0.01620508f, 0.012038623f, 0.013355039f, -0.025222529f, -0.03409517f, -0.0051768054f, -0.00014861101f, 0.0032877487f, -0.005301865f, 0.015810154f, 0.028539896f, -0.031383354f, 0.0036728003f, 0.036675345f, -0.006410945f, -0.008905553f, 0.007714197f, -0.0007960202f, 0.019601433f, 0.02846091f, 0.011005237f, -0.010945998f, 0.0042684786f, 0.003649763f, -0.0035115394f, 0.001902221f, -0.0050221267f, -0.008346077f, -0.0066643553f, -0.004133546f, -0.016929109f, -0.021154802f, -0.024722291f, 0.010077164f, -0.017587315f, 0.0077602714f, -0.015204604f, 0.026736407f, 0.025867572f, -0.0093926275f, -0.0056704613f, -0.014388425f, -0.0070954817f, 0.00031491136f, 0.032594457f, -0.018785255f, -0.021141639f, -0.016665826f, -0.004870739f, -0.022563368f, 0.02832927f, 0.009438702f, -0.017100243f, 0.0044692317f, 0.0032482562f, -0.005403887f, -0.0043573366f, -0.0025406827f, -0.009978432f, -0.023669157f, -0.0010292727f, -0.014572724f, -0.010662968f, -0.005400596f, 0.030935774f, 0.007865584f, -0.02215528f, -0.016363049f, 0.007556227f, -0.024050917f, 0.013210233f, 0.022826651f, 0.0059304535f, -0.005703372f, 0.01940397f, -0.014691201f, -0.005157059f, 0.01130143f, 0.022484383f, -0.016771138f, -0.00210462f, 0.02526202f, -0.003491793f, 0.032989383f, -0.03227852f, -0.033226337f, -0.015112454f, 0.010649804f, 0.0066709374f, 0.010320701f, -0.00031306015f, -0.032436486f, -0.005203134f, 0.0032877487f, 0.013954008f, 0.0024452426f, 0.023787634f, 0.018100718f, -0.01602078f, 0.0074311676f, 0.003368379f, 0.004831246f, -0.0011230673f, -0.0004212531f, 0.00016218655f, 0.0067334673f, 0.022958294f, -0.029171776f, -0.0031709168f, -0.0011329404f, -0.0028533314f, 0.011288267f, -0.007444332f, -0.0072468696f, 0.013809202f, -0.0030804132f, -0.030777803f, 0.0025916938f, -5.7593195E-05f, -0.034384783f, -0.022879308f, 0.0036892556f, -0.03693863f, -0.0009445284f, -0.019101195f, 0.0040019043f, 0.0019400679f, 0.0050319997f, -0.005489454f, -0.0040150685f, 0.011294848f, -0.005028709f, 0.030093268f, -0.027302464f, 0.017718958f, 0.008286838f, -0.011248774f, -0.0020931012f, -0.013796038f, -0.004291516f, -0.026117692f, -0.020312296f, -0.008563286f, -0.022273757f, -0.023958769f, 0.0034983752f, 0.012426966f, -0.0027052346f, 0.010452342f, 0.20325461f, -0.0027875106f, -0.024919752f, 0.022708174f, 0.021562893f, 0.021273281f, 0.022629188f, 0.02003585f, 0.00633196f, -0.00084661995f, -0.003932792f, 0.014520067f, 0.027091838f, 0.0027611824f, -0.004331008f, -0.008945046f, -0.03175195f, -0.018271852f, -0.025051394f, 0.021510236f, 0.01927233f, -0.018377166f, 0.013387949f, -0.008898972f, 0.031093743f, -0.0038768447f, -0.022431727f, -0.009037195f, 0.0071152276f, -0.0011576233f, -0.00079437473f, -0.0035872334f, 0.009425538f, -0.017073914f, 0.016757974f, 0.0010218679f, -2.5081323E-05f, -0.012203176f, 0.014704365f, 0.03004061f, 0.009497941f, 0.023945605f, -0.0039393744f, -0.013381368f, 0.011261938f, 0.0036793824f, -0.029250761f, -0.021154802f, 0.0036036884f, 0.009162255f, 0.0021605676f, -0.0045317616f, 0.0018660196f, 0.017718958f, 0.0049135224f, 0.01915385f, 0.015204604f, 0.0068519446f, -0.036333077f, -0.0066479f, -0.0055157826f, 0.020746714f, -0.029119119f, 0.015336245f, -0.0049431417f, 0.01839033f, -0.009675656f, -0.0037155838f, 0.006977004f, 0.0026821974f, -0.0022708173f, -0.01494132f, 0.004729224f, 0.010241715f, -0.014322605f, -0.04678542f, 0.0093926275f, 0.0049266866f, 0.003063958f, 0.037596837f, -0.0028385217f, -5.872449E-05f, -0.02557796f, 0.01582332f, 0.011893817f, -0.039966386f, 0.005479581f, 0.0034490095f, -0.0053413576f, -0.024445843f, 0.03783379f, -0.006308923f, -0.006871691f, -0.014888664f, 0.0057626106f, 0.023695486f, 0.0008795304f, 0.01563902f, -0.021220624f, -0.006865109f, -0.012143937f, 0.009030613f, 0.0107617f, 0.004824664f, -0.019535612f, 0.0027430817f, -0.012367727f, 0.008879225f, 0.019772567f, -0.021891996f, -0.026183512f, -0.016402543f, 0.0060423487f, -0.0044363216f, 0.019891044f, -0.0036892556f, -0.0036563452f, -0.019601433f, -0.0002462109f, -0.010557655f, 0.012420384f, -0.004156583f, 0.010827521f, 0.0041894936f, 0.011656863f, 0.004064434f, -0.008207853f, 0.005558566f, 0.0035214124f, -0.020338625f, 0.016007617f, -0.0056671705f, 0.00040767755f, -0.006134498f, 0.0024534701f, 0.0017837435f, 0.0043672095f, -0.006539296f, -0.004824664f, 0.019535612f, 0.0066742287f, 0.0029175067f, -0.0022527166f, -0.0036793824f, 0.013796038f, -0.031857263f, 0.02041761f, -0.010807774f, 0.00864227f, -0.0027480181f, -0.0016043818f, -0.008043301f, -0.024024589f, -0.02456432f, 0.009155672f, -0.010544491f, -0.022339577f, 0.00379786f, 0.010241715f, -0.00037229888f, -0.024169395f, -0.010017925f, 0.044415873f, 0.002117784f, -0.007905077f, -0.0008400379f, -0.17102875f, 0.026486287f, 0.029329745f, -0.00023448658f, 0.031251714f, -0.0019186762f, 0.0073850933f, 0.020601908f, -0.016678989f, 0.017337197f, -0.006055513f, -0.021352265f, -0.010945998f, -0.02143125f, 0.0067466316f, -0.012111026f, -0.007845839f, 0.0033025583f, 0.033542275f, -0.021536564f, 0.016442034f, -0.029250761f, 0.0138223665f, 0.0090240305f, 0.00563426f, 0.00060843094f, 0.009353135f, -0.0023925859f, 0.01703442f, -0.0070888996f, -0.0019762693f, -0.030540848f, 0.01212419f, 0.015520543f, 0.01690278f, 0.015507379f, -0.0041796206f, 0.005216298f, 9.924542E-06f, 0.0142962765f, 0.00074912293f, 0.024169395f, 0.0025522013f, 0.0030935772f, -0.0051735146f, 0.020865193f, 0.019877879f, 0.01142649f, 0.01735036f, -0.0041960757f, 0.02832927f, -0.0147701865f, 0.010458924f, 0.0074377498f, 0.019930536f, 0.020088507f, 0.01902221f, 0.016323557f, -0.009609836f, -0.022313248f, -0.008457972f, 0.0056210957f, 0.014546395f, -0.006825616f, -0.009945522f, -0.022076294f, 0.0017475421f, -0.019640924f, -0.0047456794f, 0.01228216f, -0.0124862045f, -0.014019829f, 0.013150995f, -0.00079437473f, 0.006127916f, 0.0056013498f, 0.0035839423f, 0.01744251f, -0.0035905244f, -0.007134974f, -0.0231031f, 0.0311464f, -0.03241016f, 0.007036243f, 0.012690249f, 0.033278994f, -0.0032597748f, 0.00841848f, 0.0009379463f, 0.008056466f, 0.024129903f, -0.031093743f, 0.0033798977f, -0.014730694f, -0.01563902f, 0.035622213f, -9.580011E-05f, 0.017403018f, -0.021799847f, -0.009267568f, -0.0055717304f, -0.008280256f, -0.0020404446f, 0.01534941f, 0.038360357f, 0.0011123715f, 0.016481526f, 0.0076615405f, 0.052972574f, -0.0035312856f, 0.0031100325f, 0.0043573366f, 0.009649328f, 0.026183512f, 0.009451866f, 0.013381368f, 0.026815392f, -0.006384617f, 0.027197152f, -0.0126441745f, 0.031383354f, -0.00408418f, 0.0059403265f, 0.030251237f, -0.011479147f, -0.028434584f, -0.075509615f, -0.017258212f, 0.011071058f, 0.011354087f, -0.0074904063f, 0.015731169f, -0.007622048f, 0.044573843f, -0.0030047193f, 0.010050835f, -0.003965703f, -0.03019858f, -0.023221577f, 0.012262414f, 0.020141164f, 0.0017360235f, -0.005904125f, -0.0030211743f, -0.020944176f, -0.0017985532f, -0.0018495643f, -0.01971991f, 0.0040183594f, -0.00096180633f, -0.01703442f, 0.0027019435f, -0.034200486f, 0.012742906f, 0.019996358f, -0.0070823175f, -0.010083745f, -0.011788504f, -0.0009173773f, -0.03427947f, -0.0037945688f, -0.007872167f, -0.011024983f, -0.01620508f, 0.023682322f, -0.0011197763f, 0.0049925074f, -0.0051702233f, -0.024340529f, -0.02355068f, -0.0015690032f, -0.0068124523f, -0.0073850933f, 0.022234265f, 0.01342086f, -0.004962888f, -0.003235092f, 0.009386045f, -0.0023481569f, -0.019035373f, 0.008253927f, 0.006134498f, -0.0071678846f, -0.011485728f, -0.009260986f, -0.013796038f, 0.0060752593f, 0.0067795417f, -0.004028233f, 0.016507855f, 0.0075101526f, -0.011229027f, -0.022458054f, 0.0014110333f, 0.028065987f, -0.006463602f, -0.006127916f, 0.0074904063f, -0.0069309296f, 0.028908493f, -0.038281374f, -0.004472523f, -0.034358453f, -0.009859955f, 0.011643698f, -0.0010835748f, -0.010360193f, -0.02424838f, 0.017955912f, 0.0051011117f, -0.0008523793f, 0.013460352f, -0.006285886f, 0.007891913f, 0.00054096465f, -0.017337197f, 0.020878356f, -0.0036662181f, 0.007556227f, -0.01665266f, -0.0002505304f, -0.0041796206f, 0.007984063f, -0.015178275f, 0.003643181f, 0.015283588f, -0.012907458f, -0.02661793f, -0.08746267f, 0.0238008f, 0.011327758f, 0.009195165f, 0.01291404f, -0.020825699f, 3.5918612E-05f, -0.017100243f, 0.008148614f, 0.0067400495f, -0.021260116f, -0.00063969585f, 0.006229938f, -0.020720387f, -0.019798895f, -0.018521972f, 0.017705794f, -0.00680587f, 0.016731646f, -0.00065203727f, -0.004314553f, -0.01864045f, 0.02481444f, -0.009649328f, -0.021483907f, 0.0006141903f, -0.016626332f, 0.008615942f, -0.014599052f, -0.002608149f, 0.0016249509f, -0.040150683f, -0.005203134f, 0.055026185f, -0.018811584f, -0.04004537f, -0.012828473f, 0.021668205f, 0.0051669325f, -0.017113406f, -0.032489143f, -0.020443939f, 0.00044182208f, 0.001302429f, -0.010557655f, 0.016797466f, -0.007220541f, -0.013756546f, 0.020654565f, -0.022800323f, 0.009721731f, 0.024143068f, 0.011255356f, -0.018113883f, -0.03617511f, -0.011136878f, 0.0016200143f, 0.013559083f, 0.0058448864f, 0.0019203217f, 0.008688345f, -0.0021441123f, 0.007832674f, -0.0038077328f, -0.004057852f, -0.007325854f, -0.00620361f, 0.0020684185f, 0.012288743f, -0.013466935f, -0.0084843f, -0.0035082484f, 0.00801039f, -0.018166538f, 0.015757497f, -0.011143461f, -0.0018364001f, -0.017679466f, -0.020628236f, 0.03409517f, -0.0069309296f, 0.0014743857f, -0.01997003f, 0.012242667f, 0.018693106f, 0.018587792f, -0.010333865f, -0.017547823f, -0.007997227f, 0.01221634f, -0.010281208f, -0.0009239594f, 0.006618281f, 0.0018923478f, -0.010722207f, -0.006641318f, 0.009418956f, -0.005482872f, -0.0057395734f, 0.008148614f, 0.008332913f, 0.01665266f, 0.018890567f, -0.0017705794f, -0.001775516f, 0.008839733f, -0.020141164f, -0.02909279f, -0.0070691532f, 0.016481526f, 0.009642746f, 0.021878831f, 0.0043408815f, 0.023945605f, -0.013848695f, 0.019798895f, -0.0076615405f, -0.010090328f, -0.019048538f, -0.0036102706f, 0.018219195f, 0.023471694f, 0.0050221267f, -0.010524745f, 0.004887194f, 0.0041829115f, 0.002351448f, -0.025617452f, 0.0074969884f, -0.008550121f, 0.00860936f, 0.00899112f, -0.018653613f, -0.0013633132f, -0.010807774f, -0.0043507544f, 0.017679466f, 0.026459958f, -0.0113080125f, 0.055447437f, -0.013572248f, 0.012209757f, -0.0022346159f, -0.03804442f, 0.009326806f, 0.014125142f, 0.0033272412f, -0.021128476f, -0.026986526f, 0.0147701865f, 0.005308447f, -0.008043301f, -0.003995322f, -0.034463767f, 0.0021951236f, -0.02370865f, 0.023445366f, 0.017152898f, 0.016152423f, 0.019548776f, -0.010300954f, 0.0011337632f, 0.0044593588f, -0.017482003f, -1.7432227E-05f, -0.00446265f, 0.011821414f, -0.012867965f, -0.052024756f, 0.029540373f, -0.0030113014f, -0.049865834f, 0.0020075343f, -0.019825224f, -0.015599528f, -0.03006694f, -0.0036958377f, -0.018732598f, 0.035648543f, -0.034674395f, 0.023958769f, -0.015875975f, -0.012354563f, 0.017126571f, -0.008082793f, -0.008550121f, -0.0038801357f, -0.033621263f }; + public static readonly IReadOnlyList SearchVectorizeDescription = new List { -0.011113605f, -0.01902812f, 0.047524072f, -0.004909588f, -0.02193134f, -0.0024247447f, -0.017521033f, 0.020359533f, 0.008362942f, -0.0029471396f, -0.009930126f, 0.023872986f, 0.0032314518f, -0.006559986f, -3.7381E-05f, 0.017169688f, -0.027478898f, 0.0033747638f, 0.017373098f, 0.0042461925f, -0.009306027f, 0.012500495f, -0.0072580534f, -0.017974084f, 0.0152372895f, 0.010521866f, -0.034838658f, 0.014386664f, 0.023614101f, 0.020082155f, 0.009440092f, -0.013702465f, 0.029531494f, -4.2112315E-05f, -0.021764915f, 0.011612886f, 0.0010904416f, 0.030400611f, -0.0018688332f, -0.00045536197f, 0.02710906f, 0.012824102f, -0.033063438f, -0.0021751046f, -0.00647215f, -0.0067633963f, -0.015144831f, -0.0032823044f, -0.003850929f, 0.024723612f, 0.0061346735f, -0.018149758f, 0.020341042f, -0.031066319f, -0.017400837f, 0.013711711f, 0.013841154f, -0.028458966f, 0.024427742f, -0.013656236f, -0.0042901104f, 0.03385859f, 0.024335282f, -0.023799019f, -0.004003487f, -0.016651917f, -0.007475333f, 0.009435469f, -0.01843638f, 0.023392199f, 0.016836835f, -0.013480563f, -0.020470485f, 0.0032337634f, 0.0155793885f, 0.011427967f, -0.0038255027f, -0.0055568027f, 0.0042762416f, -0.0011950362f, -0.022578556f, 0.00080439576f, 0.00058162666f, 0.027460406f, -0.007849793f, -0.006157788f, -0.016411522f, 0.0013614629f, 0.0066200844f, 0.021210158f, 0.006291854f, 0.0066663143f, 0.015098601f, 0.0049142106f, -0.0027113685f, -0.011187573f, 0.014321943f, -0.01877848f, 0.016466998f, 0.035116035f, 0.041088905f, 0.0062733623f, -0.0036082235f, 0.0051777195f, -0.011538918f, 0.005663131f, 0.016245095f, -0.0070130364f, 0.0041514216f, 0.0025333844f, -0.014710272f, -0.021949833f, -0.019693827f, 0.016642671f, -0.021395078f, -0.00067841995f, -0.045563933f, -0.0076602516f, -0.012065936f, 0.04186556f, 0.025740664f, -0.0032684356f, 0.018676775f, 0.007701858f, -0.0063935593f, 0.010900949f, -0.014081549f, -0.03594817f, 7.56288E-05f, -0.0202116f, -0.004877227f, 0.004551308f, -0.019638352f, 0.014922928f, 0.022079276f, 0.013452825f, -0.007230316f, 0.0034880263f, -0.0012458888f, 0.006430543f, -0.009745209f, -0.0009673552f, 0.004089012f, 0.0064952644f, 0.010078061f, -0.03187996f, 0.00884373f, 0.019379465f, -0.010900949f, 0.042420316f, -0.013942859f, 0.013526793f, 0.020895798f, -0.009370748f, -0.010373931f, -0.01941645f, -0.012472757f, -0.016309816f, 0.02538932f, 0.014959912f, -0.023503149f, -0.014220238f, -0.017262148f, 0.016827589f, 0.0028939755f, 0.0069252f, -0.017631985f, 0.0044426685f, -0.0069945445f, -0.014811977f, 0.025814632f, 0.007724973f, 0.008409171f, 0.05321956f, 0.017317623f, 0.017104967f, -0.0077388417f, -0.012213871f, -0.032989472f, 0.007253431f, -0.01757651f, -0.01355453f, 0.039905425f, -0.009985602f, 0.016642671f, 0.020156123f, 0.0031621074f, 0.008362942f, 0.020988258f, 0.0007292726f, 0.009735962f, 0.00022392483f, -0.033729147f, -0.0004244459f, -0.0065877237f, 0.0067079207f, -0.02152452f, 0.0028477458f, 0.007859039f, -0.03415446f, 0.0026119747f, 0.00070442416f, 0.0032314518f, 0.010355439f, 0.0029933692f, -0.02011914f, -0.008251991f, 0.016836835f, -0.014266467f, -0.02450171f, -0.024982497f, 0.00016859372f, 0.023799019f, 0.026276927f, -0.019841762f, 0.00884373f, -0.046377577f, 0.0038278142f, -0.0072488077f, 0.030511564f, 0.016457751f, 0.0010476792f, 0.03489413f, -0.011622132f, -0.013989089f, 0.020082155f, -0.012158396f, 0.0026397125f, -0.0021704817f, 0.00041982293f, 0.012472757f, -0.014460632f, 0.009278289f, -0.038204174f, 0.023096329f, 0.008423041f, 0.022449113f, 0.013794925f, -0.030567039f, -0.023262756f, -0.023669576f, -0.023928462f, -0.0030650252f, -0.014035319f, -0.005649262f, -0.017539525f, 0.03975749f, 0.014340434f, 0.004988178f, 0.010725277f, -0.021395078f, 0.0204335f, 0.020969765f, -0.001508242f, 0.022338163f, 0.025111942f, -0.0220238f, -0.011150589f, -0.02113619f, 0.010170521f, -0.04145874f, 0.0031875337f, 0.019397957f, -0.014987649f, 0.0052239494f, -0.0027760898f, -0.027719293f, -0.0041930284f, 0.003980372f, -0.018880185f, -0.010503374f, 0.0015810537f, 0.021709438f, -0.02840349f, 0.026055025f, 0.0195274f, -0.014802731f, -0.033063438f, 0.002169326f, -0.030234184f, 0.017724445f, -0.024483217f, 0.030141726f, -0.0010927531f, 0.0030003036f, -0.009033272f, -0.022892918f, -0.013009021f, -0.032342255f, 0.011520427f, -0.0029956808f, 0.009976356f, -0.02231967f, -0.01941645f, 0.0033747638f, 0.021450553f, 0.002815385f, -0.021247143f, 0.023188788f, -0.026776208f, 0.0052470644f, 0.022948394f, 0.0055984096f, 0.009185829f, -0.0126854135f, 0.010373931f, 0.009680486f, 0.003423305f, -0.008321336f, 0.015070863f, 0.0077989404f, -0.02720152f, 0.022005308f, -0.019379465f, -0.021358093f, -0.035226986f, -0.01464555f, 0.021284126f, -0.0141092865f, -0.01364699f, 0.02172793f, 0.003841683f, 0.0023057032f, 0.008154908f, 0.009782192f, -0.024982497f, 0.0041560447f, 0.021265635f, -0.020341042f, 0.016411522f, 0.038389094f, 0.02729398f, 0.0078914f, 0.02899523f, -0.026665257f, 0.01569034f, -0.0048125056f, 0.01921304f, -0.017225165f, 0.016217358f, 0.023170296f, -0.012824102f, 0.015255782f, 0.008191892f, 0.0035781742f, -0.011326262f, -0.014756502f, 0.008293598f, -0.0021658586f, 0.010189013f, 0.02440925f, -0.0067633963f, -0.0093984855f, 0.007466087f, -0.007734219f, -0.017511789f, -0.0019751615f, 0.016115652f, -0.026572797f, 0.0039965524f, -0.011372492f, -0.024353774f, 0.0071378564f, -0.029365068f, 0.023003869f, 0.027460406f, -0.042087466f, 0.005626147f, 0.013203185f, -0.004863358f, -0.0013695532f, -0.02699811f, 0.0052424413f, 0.0038278142f, -0.009532552f, 0.01593998f, 0.022301178f, -8.660834E-05f, 0.015727324f, -0.019360973f, -0.0072580534f, -0.0061485423f, -0.014987649f, -0.042494286f, 0.0055891634f, -0.008621828f, 0.009865405f, -0.008977796f, -0.010170521f, -0.0018595873f, -0.010207505f, -0.0077527105f, -0.00094539614f, 0.002038727f, 0.014793485f, -0.012361806f, 0.007831302f, -0.0063935593f, 0.028274048f, 0.0011100892f, 0.006079198f, -0.012093674f, -0.0008309778f, -0.026221452f, -0.0070592663f, -0.031824484f, -0.04282714f, -0.01809428f, -0.0019127514f, -0.007026905f, 0.018011067f, 7.5267635E-05f, -0.0035619938f, 0.0058804103f, -0.015320503f, 0.039794475f, -0.02093278f, -0.008436909f, -0.015394471f, -0.0030858286f, -0.017141951f, 0.021783406f, -0.024316791f, -0.0004230012f, 0.012250855f, -0.008173401f, 0.007734219f, -0.029328084f, -0.026332403f, -0.012703905f, -0.019268515f, 0.0047708987f, -0.01569034f, -0.0014539222f, -0.0315656f, 0.013258661f, -0.004542062f, -0.0017682838f, 0.00438257f, -0.014081549f, -0.028052146f, -0.0015648734f, -0.016356047f, -0.011538918f, 0.011353999f, 0.008950058f, 0.038204174f, 0.008931567f, 0.032064877f, 0.010549604f, -0.015117092f, -0.008686549f, -0.018972645f, -0.020082155f, -0.0054088677f, 0.010179766f, 0.024945514f, -0.00090610096f, -0.0018249151f, -0.015033879f, 0.027682308f, -0.0003591465f, 0.01659644f, -0.02709057f, 0.029106181f, -0.05277576f, 0.014405156f, 0.019360973f, 0.01369322f, -0.01046639f, -0.0049511944f, -0.0025911713f, -0.0028801067f, 0.003284616f, 0.021080716f, -0.019268515f, -0.0022039982f, 0.0018688332f, 0.019786285f, -0.024668137f, -0.013406596f, -0.010179766f, -0.0059728697f, -0.005774082f, -0.017974084f, -0.6083081f, -0.021154683f, 0.011095114f, 0.015033879f, -0.0062132636f, -0.032933995f, 0.008839107f, -0.026221452f, 0.0910539f, 0.016827589f, 0.02688716f, -0.023558624f, -0.012583708f, 0.02182039f, -0.014210992f, 0.037409026f, -0.009366125f, 0.008335204f, 0.01729913f, 0.007355136f, 0.007087004f, 0.0024247447f, -0.0024270562f, -0.021154683f, -0.021487538f, 0.021561505f, 0.00622251f, -0.03735355f, -0.023521641f, 0.008626451f, 0.016624179f, 0.01993422f, 0.02211626f, -0.00705002f, -0.026055025f, 0.0023669575f, 0.018343922f, -0.018538086f, 0.031140286f, 0.014756502f, 0.015431454f, 0.012842594f, -0.07677819f, 0.009948619f, -0.005995984f, -0.011788558f, -0.043603797f, 0.010225996f, -0.017114213f, 0.00452357f, -0.001958981f, 0.026850175f, 0.0019404892f, 0.023540134f, 0.021062225f, 0.0062317555f, 0.016947785f, 0.0029841233f, -0.034061998f, -0.023595609f, -0.02132111f, -0.0134713175f, 0.0064998874f, 0.0058526723f, -0.0033747638f, 0.040682085f, 0.03596666f, 0.0027067454f, -0.010789998f, -0.0141092865f, -0.013369612f, 0.004206897f, 0.016679654f, 0.019508908f, 0.014821223f, 0.03705768f, -0.000522106f, 0.020063665f, -0.017021753f, -0.033359308f, 0.033710655f, 0.0044958326f, 0.029790381f, 0.02261554f, -0.0010742613f, 0.006042214f, 0.009125731f, -0.019508908f, 0.23876685f, 0.0040266016f, -0.0061346735f, 0.2037063f, -0.0011326262f, 0.004900342f, 0.024279807f, 0.011594394f, -0.00053424126f, 0.009661995f, 0.004923457f, 0.0026165976f, -0.015459192f, 0.040682085f, 0.010142783f, 0.015967717f, 0.009458585f, 0.010318456f, 0.008002351f, 0.0017463247f, -0.021783406f, 0.018926416f, -0.009819176f, -0.041421756f, 0.003173665f, -0.018362414f, 0.024427742f, -0.020341042f, 0.020803338f, -0.027737785f, 0.012001215f, -0.016938541f, 0.029642446f, -0.024150364f, -0.0045281933f, -0.007045397f, 0.0014169385f, 0.017474804f, -0.018815463f, 0.0019612925f, 0.015819782f, -0.030641006f, 0.016235849f, -0.014987649f, 0.0046391445f, 0.0081225475f, -0.01021675f, -0.00818727f, 0.020747863f, -0.0058665415f, 0.002690565f, -0.0050806375f, 0.030825924f, 0.024446234f, -0.034043506f, 0.02529686f, 0.0046761283f, 0.013702465f, 0.05188815f, 0.015958471f, 0.015329748f, -0.017012509f, 0.0121953795f, 0.01707723f, 0.013360366f, 0.0062733623f, 0.0015810537f, -0.00047154233f, -0.0030719596f, -0.0054458515f, 0.005136113f, -0.009504814f, 0.014904436f, 0.020045172f, 0.007313529f, 0.0020052106f, 0.0071239877f, -0.0048263744f, -0.00463221f, 0.0025102694f, 0.011529672f, 0.0036845023f, 0.018898677f, 0.012528232f, 0.0057232296f, -0.02102524f, 0.030049266f, 0.002618909f, 0.02390997f, -0.025333842f, -0.014321943f, -0.016171128f, -0.020137632f, -0.008834484f, -0.03187996f, -0.048337713f, -0.0031875337f, 0.046377577f, -0.015829029f, -0.0110119f, 0.0048125056f, 0.045415998f, 0.007826678f, 0.009412355f, -0.013526793f, -0.046932332f, -0.010679047f, 0.01782615f, 0.026424862f, -0.017151197f, 0.0073736277f, 0.02341069f, 0.019397957f, 0.018464118f, -0.009000911f, -0.0003967081f, 0.012925807f, -0.012491249f, 0.007433726f, -0.016725885f, 0.00027549977f, 0.012962791f, -0.006139296f, -0.015856767f, -0.0152372895f, -0.0152372895f, 0.046340592f, 0.009444715f, 0.012306331f, 0.016124899f, -0.031121794f, 0.013378858f, 0.009745209f, 0.017696707f, 0.017770674f, -0.0030488449f, -0.003934142f, -0.008852976f, -0.027312472f, 0.025259875f, -0.017243655f, -0.010697539f, 0.0039549456f, -0.015283519f, -0.004338652f, -0.01001334f, -0.044787277f, 0.012408036f, 0.026757715f, 0.011733083f, 0.01802956f, -0.009486322f, -0.0013267907f, 0.030659497f, -0.0037376664f, 0.0082704825f, 0.019638352f, -0.011002654f, 0.016466998f, -0.016799852f, -0.007567792f, 0.013184694f, 0.0029563855f, -0.016605686f, -0.00672179f, -0.0013267907f, 0.029845856f, 0.0058526723f, -0.017752182f, -0.017493296f, -0.013092234f, 0.023392199f, -0.037224106f, 0.030234184f, -0.031898454f, -0.04375173f, 0.010734523f, -0.04094097f, -0.09734113f, 0.016836835f, -0.015329748f, -0.014377418f, -0.033026457f, 0.010669801f, 0.0014978404f, 0.025074957f, 0.04094097f, 0.0058434266f, 0.009976356f, 0.027275488f, 0.018538086f, 0.0045374394f, -0.006703298f, 0.00071193645f, -0.0072210697f, -0.009463208f, 0.011520427f, -0.015727324f, 0.0036405842f, 0.0012736266f, -0.008589467f, -0.011612886f, -0.00818727f, -0.0009945151f, -0.006828118f, -0.010669801f, 0.0141555155f, -0.0025611222f, 0.0049327025f, 0.009024026f, 0.00010871189f, 0.011446459f, 0.021543013f, 0.0022143999f, 0.0031875337f, 0.013489809f, 0.013240169f, 0.0021300307f, 0.008899205f, 0.0128333485f, -0.028015163f, 0.011520427f, 0.015209552f, 0.012269347f, -0.009065633f, -0.013748695f, 0.0001798622f, 0.01055885f, 0.007452218f, 0.037704896f, -0.0050945063f, 0.007979236f, 0.01239879f, 0.0048171286f, -0.0016076358f, 0.0037538467f, -0.0012135281f, 0.033988032f, 0.001874612f, -0.018066544f, -0.016624179f, 0.0064629037f, 0.0009985602f, -0.025019482f, -0.012001215f, -0.00759553f, -0.005002047f, -0.0071563483f, 0.010826982f, 0.010605079f, 0.014969158f, 0.0006639732f, 0.018787727f, -0.035300955f, -0.0076556285f, 0.018880185f, 0.017178934f, -0.013388104f, 0.0028408114f, -0.012269347f, 0.029790381f, -0.010503374f, -0.0029217133f, -0.015265027f, -0.017243655f, 0.005089883f, -0.006777265f, -0.003423305f, 0.023484657f, -0.017437821f, 0.005288671f, -0.016624179f, -0.016041685f, 0.014275713f, 0.0021323422f, 0.007627891f, 0.008016219f, 0.041791596f, 0.0029402052f, 0.035911184f, -0.031103302f, -0.014848961f, 0.016272834f, -0.010688293f, 0.045674887f, 0.00550595f, -0.007896023f, -0.0155331595f, 0.022800459f, 0.0049743094f, -0.035023578f, -0.016272834f, 0.00772035f, -0.008728156f, -0.022356654f, -0.013110726f, 0.0143034505f, 0.009597274f, 0.0013129218f, -0.01280561f, -0.009426224f, 0.009241305f, 0.0057001146f, 0.005995984f, 0.021062225f, 0.0078035635f, 0.01319394f, 0.0004992801f, 0.0016839147f, 0.0005472434f, 0.0038717324f, 0.008959305f, -0.0006177436f, -0.019360973f, 0.02729398f, 0.014321943f, 0.010521866f, 0.014488369f, 0.026221452f, 0.011908756f, 0.007868284f, 0.020951273f, -0.005233195f, 0.016180374f, 0.041310806f, -0.0015671848f, 0.0062456243f, 0.010484883f, -0.013480563f, 0.009689732f, 0.033655178f, 0.00055273314f, 0.016430015f, -0.02450171f, 0.025574237f, 0.008312089f, -0.011270787f, -0.015357487f, -0.020285565f, -0.033285342f, 0.004965063f, -0.006795757f, 0.013064496f, 0.011169082f, -0.018464118f, -0.023133311f, 0.009181207f, -0.004186094f, 0.0068789707f, -0.0211177f, 0.013582269f, 0.0076325135f, 0.02122865f, -0.0042901104f, 0.012426527f, -0.01080849f, -0.009661995f, -0.0028269426f, 0.0070176595f, -0.015218798f, 0.0072904145f, 0.019656843f, 0.007905268f, 0.00012337536f, 0.022375146f, -0.011640623f, 0.0033262225f, 0.029771889f, 0.015736569f, -0.034283902f, -0.0009922037f, -0.02659129f, -0.02093278f, -0.024779087f, 0.010642063f, 0.02699811f, 0.008113302f, 0.009292157f, -0.025814632f, -0.016531719f, -0.026313912f, 0.0038393717f, -0.009352257f, -0.01414627f, 0.0014539222f, 0.008090187f, 0.008265859f, -0.009985602f, 0.00809481f, -0.0027691554f, 0.011076622f, -0.011520427f, -0.0072996602f, 0.0075354315f, 0.018667528f, -0.04182858f, -0.0015197995f, 0.0121953795f, 0.013536039f, 0.038906865f, -0.005922017f, -0.033729147f, 0.017844642f, 0.03794529f, 0.017863134f, 0.013942859f, -0.016060177f, -0.0047223577f, 0.011381738f, -0.018353168f, -0.014839714f, 0.028958246f, 0.029827364f, -0.010780753f, 0.033655178f, -0.01369322f, -0.010549604f, 0.017724445f, -0.023133311f, -0.010688293f, 0.025629712f, -0.0044287997f, -0.017585754f, 0.009698979f, 0.15015388f, -0.015274273f, 0.0128333485f, -0.009865405f, 0.0024848431f, -0.015884504f, -0.0070777577f, -0.009754454f, -0.009828421f, -0.013360366f, -0.0027853358f, 0.00034874486f, -0.00647215f, 0.01584752f, -0.0015810537f, -0.014848961f, -0.010753014f, -0.009745209f, 0.013989089f, 0.014580829f, -0.014553091f, -0.003975749f, -0.0050621456f, 0.0058572954f, 0.03554135f, 0.008783632f, 0.021043733f, -0.016300572f, 0.017012509f, 0.015459192f, -0.0034256163f, 0.0019705384f, 0.00092632644f, 0.023558624f, -0.011816296f, 0.02163547f, 0.002047973f, 0.008090187f, -0.010004094f, -0.00094192894f, 0.00402429f, 0.015995456f, 0.012463511f, -0.000361458f, -0.0126854135f, -0.0066200844f, 0.0005775816f, -0.013868893f, 0.021746423f, 0.0186213f, 0.03659538f, 0.028255556f, -0.019656843f, 0.011418722f, -0.021968326f, -0.009403109f, -0.028237065f, -0.02790421f, 0.0036267154f, -0.011206065f, -0.0037469123f, -0.014756502f, -0.040977955f, 0.008654188f, -0.0034325507f, -0.013610006f, -0.03415446f, -0.01971232f, 0.000308005f, -0.0021392766f, -0.0026235322f, -0.013369612f, 0.02193134f, 0.027645325f, 0.014469878f, 0.008113302f, -0.001891948f, 0.008127171f, -0.0024478594f, -0.009671241f, -0.011381738f, 0.03816719f, 0.033821605f, 0.026739225f, 0.0029956808f, -0.0071517252f, -0.01314771f, -0.029217133f, -0.0054458515f, 0.018870939f, -0.017317623f, 0.004109815f, -0.0016943163f, -0.004003487f, 0.012491249f, -0.021506028f, 0.014294205f, 0.023484657f, 0.00077319075f, 0.02729398f, -0.0022721868f, -0.013406596f, -0.017141951f, 0.0035643054f, -0.011483443f, 0.019860253f, 0.001200815f, 0.003307731f, -0.007849793f, -0.0292911f, 0.014007581f, 0.013915122f, -0.023891479f, -0.030530054f, 0.011483443f, -0.0044287997f, 0.019582875f, -0.011474197f, 0.010420161f, -0.0020699322f, -0.00023201501f, -0.003030353f, -0.018131265f, -0.0032522553f, 0.0036036004f, 0.02489004f, -0.0034256163f, 0.0012666922f, 0.022504589f, -0.0009003222f, -0.01888943f, 0.0009303715f, 0.0019347104f, 0.013203185f, 0.0051407362f, 0.009227436f, 0.0027067454f, -0.0042161434f, 0.011132098f, -0.008002351f, 0.023725051f, 0.001089286f, 0.0073690047f, -0.010928687f, -0.0015579389f, 0.021690948f, -0.011067376f, 0.00909337f, 0.004292422f, 0.0014781927f, 0.06771718f, 0.025259875f, -0.05610429f, 0.016115652f, 0.00045998493f, 0.019656843f, -0.013878138f, 0.0014007582f, -0.0004885895f, -0.014784239f, 0.0037815846f, -0.023373706f, -0.025463287f, -0.025962567f, -0.011390983f, -0.02032255f, 0.005501327f, 0.0123433145f, 0.015496176f, -0.008885337f, -0.00091996987f, 0.001263225f, -0.024076397f, -0.011797804f, 0.022837443f, -0.006569232f, -0.014460632f, -0.0068512326f, 0.0056954916f, 0.0034787804f, -0.03567079f, -0.022338163f, -0.021469045f, -0.024427742f, 0.023651084f, 0.0050575226f, -0.029919824f, 0.014904436f, -0.014081549f, 0.0027760898f, -0.021099208f, -0.005912771f, -0.0027298604f, -0.018556578f, 0.017807657f, -0.0050575226f, -0.019952713f, 0.0015671848f, -0.011862526f, -0.013129218f, -0.03169504f, -0.010447899f, -0.016679654f, -0.017169688f, 0.006449035f, -0.000691711f, -0.017271394f, -0.048670564f, 0.017151197f, 0.017456312f, -0.003284616f, 0.00022161334f, 0.004368701f, 0.0063658217f, 0.029180149f, -0.015958471f, -0.032249797f, 0.022504589f, -0.0059636235f, -0.0060052304f, -0.005233195f, 0.03149163f, 0.024483217f, -0.012472757f, 0.015625618f, -0.021006748f, 0.0077758254f, -0.00014042253f, -0.032101862f, 0.0075169397f, 0.0060699517f, -0.009213568f, 0.014756502f, -0.010050324f, -0.023392199f, -0.016846081f, 0.0535894f, 0.0061254273f, 0.03289701f, 0.011372492f, 0.0037446008f, -0.015006142f, -0.0062410017f, -0.018454872f, 0.010392423f, 0.031916942f, 0.016208112f, 0.03912877f, -0.031010842f, 0.011280032f, 0.02113619f, -0.008936189f, -0.032046385f, 0.0356523f, -0.01389663f, -0.022097768f, -0.009236682f, -0.004731604f, -0.006569232f, -0.02091429f, -0.011196819f, -0.0083675645f, 0.039387655f, -0.02638788f, 0.0011672984f, 0.0029702545f, -0.01789087f, -0.019471925f, -0.0021230963f, 0.011668362f, -0.010133537f, -0.008191892f, 0.01921304f, 0.0034209935f, 0.03408049f, -0.002093047f, -0.0062548704f, 0.00033227555f, 0.0011239582f, -0.00028171187f, 0.0017255213f, 0.0025726794f, -0.00492808f, 0.029272608f, 0.023743544f, 0.006287231f, -0.0070222826f, 0.017511789f, 0.020488977f, 0.017058738f, 0.051555295f, -0.0072395615f, 0.017049491f, 0.010725277f, 0.030067759f, 0.010595834f, -0.016799852f, -0.008839107f, -0.004040471f, 0.011686853f, -0.03713165f, 0.0148951905f, 0.00864032f, -0.008723533f, -0.0051638507f, -0.03186147f, 0.018806217f, -0.0129812835f, 0.030493071f, -0.0002360601f, -0.023429181f, 0.02061842f, -0.008552483f, 0.010420161f, 0.02629542f, 0.0051407362f, 0.004546685f, 0.011973477f, 0.007896023f, -0.024760595f, 0.030160217f, 0.017114213f, -0.02141357f, 0.00070789136f, -0.008825239f, 0.014664042f, -0.02808913f, -0.031621072f, 0.03445033f, -0.015338995f, -0.014534599f, 0.009920881f, 0.0052054576f, 0.0016700458f, 0.023614101f, 0.013526793f, -0.0042277006f, -0.024557184f, -0.010974917f, 0.012287838f, -0.01319394f, 0.004733915f, 0.025648205f, 0.011326262f, -0.010336948f, 0.0010690604f, -0.011326262f, 0.016420769f, -0.034006525f, -0.03208337f, 0.007350513f, -0.031010842f, 0.0070777577f, -0.0135175465f, -0.042383336f, 0.016753621f, 0.027275488f, -0.009010157f, 0.034283902f, -0.00083791226f, -0.0018260708f, -0.009994849f, 0.007207201f, 0.024871547f, -0.008043958f, -0.011141343f, -0.004840243f, 0.012713151f, -0.0030118611f, -0.012260101f, -0.005954378f, -0.018288447f, -0.018020313f, 0.006388936f, -0.009994849f, -0.01235256f, -0.00818727f, 0.0020237025f, -0.0035804857f, -0.025685187f, 0.007859039f, -0.001414627f, 0.028144605f, -0.0252044f, 0.019804778f, 0.0074059884f, -0.0023172607f, -0.00074083f, -0.044713307f, 0.009772946f, -0.0044149305f, -0.012065936f, -0.017012509f, -0.015662603f, -0.004900342f, 0.05211005f, 0.012324822f, -0.010799244f, -0.017539525f, 0.035116035f, -0.008538615f, 0.0031852222f, -0.009056387f, -0.0060838205f, -0.008242745f, 0.017465558f, 0.013082989f, 0.019065104f, -0.005542934f, -0.002896287f, -0.02011914f, -0.00023331522f, -0.036225546f, 0.013526793f, 0.019601367f, -0.00018853025f, 0.030104741f, 0.0292911f, -0.0044426685f, -0.008543237f, 0.0020202354f, 0.010799244f, 0.020174615f, 0.0030534677f, -0.03408049f, -0.0045767343f, -0.01753028f, 0.007442972f, 0.021450553f, 0.028921263f, -0.024390759f, 0.007484579f, 0.0054550976f, -0.006555363f, -0.00012590353f, -0.0065414943f, 0.007211824f, 0.00829822f, 0.012546725f, 0.0046252757f, -0.0063611986f, 0.008136417f, -0.017742936f, 0.014414402f, -0.0029170904f, -0.0013683974f, 0.03824116f, 0.0013244792f, -0.0026235322f, 0.009232059f, 0.01912058f, 0.010189013f, -0.025518762f, -0.0009159247f, -0.0053071626f, 0.029457526f, 0.011372492f, -0.0053210314f, -0.022874426f, -0.008779009f, -0.004285488f, 0.029697921f, 0.025241384f, 0.022338163f, -0.02152452f, 0.0077619567f, 0.010669801f, 0.018898677f, 0.009532552f, -0.011187573f, -0.0047015543f, -0.019490417f, -0.0033655178f, 0.00060791976f, -0.045489967f, -0.0015544717f, 0.017428575f, 0.017742936f, 0.011844034f, -0.0034926494f, 0.025019482f, 0.029975299f, 0.019545892f, -0.02640637f, -0.009282912f, -0.001642308f, -0.013942859f, -0.009920881f, 0.026831683f, -0.0005507106f, 0.039202735f, 0.011714591f, 0.018149758f, 0.008617205f, 0.0051176213f, 0.0367803f, -0.0055799177f, 0.0067911344f, 0.0074291034f, -0.005649262f, -0.0018110462f, 0.010420161f, 0.006014476f, -0.016023193f, 0.017770674f, -0.007687989f, 0.006573855f, -0.028625393f, -0.017012509f, -0.031121794f, 0.023743544f, 0.008737402f, 0.02061842f, -0.0022883671f, -0.029642446f, -0.0038486177f, -0.035282463f, -0.012879577f, 0.026554305f, 0.016753621f, 0.0038070108f, 0.02660978f, -0.0030118611f, -0.011400229f, 0.013064496f, -0.015431454f, 0.01380417f, -0.010503374f, 0.0083675645f, 0.010207505f, 0.0014296516f, 0.025574237f, 0.00039064046f, 0.008552483f, 0.011788558f, -0.0014781927f, -0.0072395615f, 0.027256995f, -0.013933614f }; + public static readonly IReadOnlyList SearchVectorizeCategory = new List { 0.010187039f, 0.015872676f, -0.000105603845f, -0.0063529965f, -0.008839236f, 0.029337626f, -0.048494756f, 0.005270174f, 0.019785233f, -0.0338652f, 0.009977672f, 0.0043378337f, -0.016304497f, -0.006411881f, -0.01470807f, -0.0071708383f, 0.033184756f, -0.023213627f, 0.013792086f, -0.015022121f, 0.0040401393f, 0.022873404f, 0.0074456334f, -0.00076877145f, -0.0014745691f, -0.003974712f, -0.0023112213f, -0.010880569f, -0.0215256f, 0.009100946f, 0.0097944755f, -0.01193395f, -0.021604113f, 0.0040237824f, -0.017874753f, 0.0071642958f, 0.0009429718f, 0.004324748f, 0.023972584f, 0.001298733f, 0.01975906f, 0.0014107773f, 0.0025483957f, -0.0014344947f, -0.017573789f, 0.008263475f, 0.006366082f, 0.013020044f, -0.035173748f, -0.0057968637f, -0.0058099492f, 0.020989096f, -0.018005608f, -0.015519369f, -0.021512514f, 0.008904663f, -0.020256309f, 0.00054100243f, 0.017704643f, -0.0063628103f, 0.0060847444f, -0.023344481f, -0.03472884f, 0.007864368f, -0.005204746f, 0.005888462f, -0.02829079f, -0.0019808132f, 0.015453941f, -0.0034218507f, 0.021368574f, 0.008047565f, -0.01710271f, -0.031169593f, 0.0041840794f, -0.024469832f, -0.008145706f, 0.013674318f, 0.010932911f, -0.012169489f, 0.0012815583f, -0.022794891f, -0.022533182f, 0.00669649f, 0.027898224f, 0.011626441f, 0.0054828124f, 0.029337626f, -0.0092318f, -0.019981515f, 0.008348531f, 0.026537336f, -0.0047074985f, 0.012378856f, -0.0011875065f, -0.0001277878f, -0.00777277f, 0.023985669f, 0.013366809f, 0.012712535f, 0.0023373924f, 0.01987683f, -0.028761866f, -0.012398484f, -0.036168244f, 0.006810988f, -0.0009756855f, -0.009944959f, 0.0023014073f, 0.0096701635f, -0.017207395f, -0.0094215395f, 0.021983592f, -0.03082937f, -0.018018695f, -0.012908817f, 0.016998027f, -0.017691556f, -0.009081317f, 0.0033956799f, -0.006261398f, 0.021368574f, -0.003932184f, -0.0071970094f, 0.0064315093f, -0.0015481749f, 0.00150074f, -0.02889272f, -0.011672241f, 0.0009871352f, 0.01707654f, 0.0014688441f, 0.00872801f, -0.0019497352f, -0.012084433f, -0.004422889f, 0.0014353127f, 0.014420189f, -0.026511164f, -0.022415413f, -0.004409804f, 0.0344933f, -0.0013175434f, 0.010219753f, 0.010298266f, 0.013491121f, -0.017717728f, -0.00547627f, 0.024456745f, -0.017992523f, 0.004880881f, -0.022284558f, 0.00016775983f, -0.0061697997f, -0.008335445f, 0.024783883f, -0.006428238f, 0.004550473f, -0.033498805f, -0.020701217f, -0.014210822f, 0.023396824f, 0.0021640097f, 0.010494548f, 0.02808142f, 0.003932184f, 0.04613937f, 0.030698515f, 0.002178731f, 0.0061926995f, -0.0019791776f, 0.018332746f, -0.026825216f, 0.01288919f, 0.004422889f, 0.012189116f, -0.0028346402f, 0.00208059f, -0.016683975f, -0.02040025f, -0.029389968f, 0.0039976113f, 0.011273134f, 0.0369272f, -0.007452176f, 0.011155364f, 0.024718456f, 0.0019055718f, 0.015244574f, -0.021918165f, 0.033132415f, 0.016134387f, 0.009094402f, -0.016409181f, -0.6846319f, -0.0054926267f, -0.03415308f, -0.0047238553f, 0.023710875f, 0.018777652f, 0.021420917f, 0.030410636f, -0.025241874f, -0.023802472f, -0.0060258596f, 0.021015268f, -0.0035788764f, 0.022415413f, -0.0029327814f, -0.030148925f, 0.013478035f, 0.007497975f, -0.03417925f, 0.016252154f, 0.02970402f, 0.028264618f, 0.0023570205f, 0.006778274f, 0.024901653f, 0.0047990964f, -0.008616783f, -0.008911206f, -0.018712224f, 0.013281753f, 0.013988369f, 0.013543462f, 0.014747326f, -0.010874026f, 0.054435562f, 0.008054107f, -0.01748219f, 0.0308032f, 0.00034001778f, 0.034519475f, 0.0025271317f, 0.010193583f, 0.016998027f, -0.0040074256f, 0.008021394f, 0.0005238278f, 0.000543456f, -0.003451293f, -0.011875065f, -0.008374701f, 0.017927095f, -0.008819608f, -0.022755634f, 0.018044865f, -0.0036344896f, 0.007746599f, 0.03195472f, -0.004357462f, 0.00985336f, -0.0056790947f, -0.0061501716f, -0.004550473f, -0.010939454f, -0.025909234f, 0.0041121095f, 0.01987683f, -0.002757763f, 0.013530377f, -0.0031437846f, -0.019523524f, -0.0046845987f, 0.036508463f, -0.016683975f, 0.008701839f, -0.0107628f, 0.012705993f, 0.017639216f, -0.004740212f, -0.031509817f, 0.02190508f, -0.00621887f, -0.00700727f, -0.012686364f, -0.010815142f, 0.016029702f, -0.024626857f, -0.028264618f, -0.011214249f, 0.020910583f, 0.003063636f, 0.0028460901f, 0.020805899f, 0.00021120769f, -0.0010075812f, 0.005574411f, 0.004507945f, -0.004321477f, 0.017874753f, 0.029337626f, -0.033237096f, -0.013288296f, -0.024378233f, -0.018267319f, 0.009336484f, 0.003591962f, -0.01903936f, -0.0054042996f, 0.016736317f, 0.02068813f, -0.019235643f, -0.00027091015f, -0.008361616f, 0.003264825f, -0.016330669f, 0.014459446f, -0.023566933f, 0.013857515f, -0.0045243017f, 0.0009666892f, -0.00074382726f, 0.009271056f, 0.008656039f, 0.020557275f, -0.023972584f, 0.012516254f, 0.01317707f, -0.015728736f, 0.0013093649f, -0.001992263f, 0.009689791f, 0.0064184237f, 0.010893655f, 0.027950566f, 0.0014344947f, 0.012058262f, -0.018515943f, 0.0123526845f, -0.020230139f, 0.0192749f, -0.018960848f, -0.028657183f, -0.018254232f, -0.0016103308f, -0.0065983487f, 0.00022224855f, -0.037372105f, -0.006506751f, -0.0097813895f, -0.037974037f, -0.010232839f, -0.0199946f, -0.00803448f, -0.018228061f, 0.020740472f, -0.0046289857f, -0.013543462f, 0.010533804f, -0.008420501f, -0.017848583f, -0.020740472f, 0.0066932184f, -0.00545337f, -0.024574514f, 0.039832175f, 0.013255582f, -0.01444636f, 0.030358294f, 0.019170215f, 0.00043590975f, -0.018568283f, 0.022991173f, -0.011731125f, 0.012745249f, 0.0377385f, 0.005594039f, -0.013648147f, -0.007347492f, -0.013988369f, -0.009944959f, 0.016147472f, -0.001712561f, -0.013288296f, -0.02057036f, -0.0034643786f, 0.03690103f, 0.008636411f, 0.0048514386f, 0.006101101f, -0.0042102505f, -0.0020609617f, 0.002788841f, 0.0035821479f, -0.022310728f, 0.005701994f, 7.028329E-05f, -0.012634022f, 0.03417925f, 0.008754181f, 0.0061599854f, 0.013491121f, 0.015440856f, 0.016448438f, 0.002798655f, -0.0076680863f, 0.01415848f, -0.032923046f, -0.0043443763f, -0.012391942f, 0.022376155f, -0.008662582f, 0.0138706f, -0.027322464f, -0.017874753f, 0.009192544f, 0.010422578f, 0.050614603f, 0.02556901f, 0.005636567f, 0.005849206f, 0.00315687f, 0.01375283f, 0.018306574f, 0.010880569f, 0.015336173f, -0.033996053f, -0.018411258f, 0.0014050525f, 0.010965625f, -0.01485201f, -0.0015285466f, -0.036220584f, 0.022179874f, -0.0049528508f, -0.0022997716f, -0.010586146f, 0.013222869f, 0.007530689f, -0.016199814f, 0.020177796f, -0.00085873407f, 0.031797696f, 0.017141968f, 0.0024960537f, -0.021512514f, -0.007399834f, 0.002540217f, 0.032608993f, 0.013909856f, 0.01164607f, -0.018476686f, -0.012797591f, 0.003968169f, -0.013425694f, -0.004988836f, 0.0021705525f, 0.004730398f, 0.017469104f, 0.020923669f, 0.026655106f, 0.0377385f, -0.017665386f, 0.002111668f, 0.008780351f, -0.011364732f, 0.023671618f, -0.010056185f, 0.025490498f, -0.020884411f, -0.0025811093f, -0.00026784325f, -0.0038504f, -0.014433275f, -0.015781078f, 0.010357151f, -0.0009405183f, -0.016775575f, -0.020884411f, -0.0079559665f, -0.018790737f, 0.023894072f, 0.0009593286f, -0.010003842f, 0.01975906f, 0.008669125f, -0.010075813f, -0.025673695f, 0.010985253f, 0.018162634f, 0.004651885f, 0.03216409f, -0.010252466f, 0.002860811f, -0.013504206f, -0.0344933f, -0.015650224f, -0.024653029f, 0.027348636f, -0.027060755f, 0.011875065f, -0.01872531f, 0.0009609643f, -0.017089626f, -0.0045406586f, -0.011286219f, 0.003663932f, -0.011809638f, -0.0056889085f, 0.0023063144f, -0.018358916f, -0.01485201f, 0.0058819195f, -0.0034709212f, 0.011502129f, -0.012542425f, -0.0031486915f, 0.002613823f, -0.010147783f, 0.01762613f, 0.027400976f, -0.0024044553f, 0.0143285915f, -0.024103438f, -0.01831966f, -0.0062123276f, 0.13127345f, -0.015126805f, -0.0055907676f, -0.0015588067f, 0.017783156f, -0.0073802057f, -0.017050369f, -0.0026220013f, -0.0061926995f, 0.024927823f, -0.027296294f, -0.028421644f, -0.008387787f, 0.012162945f, 0.01595119f, 0.0018695868f, -0.027636515f, -0.007857826f, -0.00010447931f, 0.014930523f, 0.010128154f, -0.0040892097f, -0.0058753765f, 0.007517603f, 0.009257971f, 0.011770382f, 0.024796968f, 0.017730813f, 0.0024862397f, -0.005940804f, 0.0010836406f, 0.0078120264f, -0.0072362656f, -0.009074775f, 0.0016381374f, -0.0047663827f, -0.003151963f, 0.008917749f, 0.025464328f, 0.00064241485f, 0.039622806f, 0.022886489f, 0.0060193166f, -0.0010312987f, 0.00992533f, 0.01033098f, 0.004534116f, 0.01858137f, -0.00399434f, -0.0074652615f, 0.025294216f, 0.0014958329f, 0.01255551f, -0.01903936f, -0.0026923358f, 0.011659155f, 0.0053585004f, -0.022088276f, -0.008112992f, -0.007923253f, -0.022035934f, -0.010016928f, 0.0039256415f, -0.009009347f, -0.0050150068f, -0.016801745f, 0.002893525f, 0.0016912972f, -0.025974661f, 0.004082667f, 0.014721155f, 0.015754908f, -0.020073112f, 0.0001974066f, 0.029782534f, 0.014367848f, 0.00025434885f, 0.0026776146f, -0.0066016205f, 0.029232943f, -0.0016675798f, 0.0038438572f, -0.009486967f, -0.0199946f, -0.021721883f, -0.0060585733f, -0.0023602918f, -0.036770176f, -0.00715121f, 0.016945686f, 0.00853827f, -0.003726088f, 0.0046224426f, 0.0027299565f, 0.010474919f, -0.012961159f, -0.009814103f, -0.009074775f, 0.0069941846f, -0.005417385f, 0.035173748f, -0.014354762f, 0.0092841415f, -0.008799979f, 0.010304809f, -0.0043803616f, -0.005397757f, -0.008178419f, 0.0077008f, 0.020622702f, 0.012941531f, -0.013805172f, -0.015152976f, 0.013451865f, -0.026707446f, 0.030201267f, -0.011037595f, 0.031221936f, -0.005495898f, -0.012705993f, -0.016409181f, -0.025372729f, 0.0043541905f, 0.029389968f, 0.0026481722f, -0.016723232f, -0.008067193f, -0.011031052f, 0.021721883f, 0.0042887633f, -0.011364732f, -0.0113843605f, -0.0038046008f, -0.011332018f, -0.0051785754f, -0.023619276f, -0.00930377f, -0.009022432f, -0.017639216f, -0.009526223f, -0.027950566f, -0.0019808132f, -0.012182574f, -0.0023619276f, -0.002666165f, -0.019484267f, 0.003938727f, 0.0039714407f, -0.009310313f, 0.035409287f, 0.0019857204f, -0.00017634717f, -0.021303147f, 0.009617821f, -0.016867172f, -0.029363798f, -0.010788972f, -0.015218403f, 0.005080434f, 0.023082772f, 0.03499055f, -0.0009773212f, 0.009748676f, 0.0014394019f, 0.009500052f, 0.013307924f, 0.012758334f, -0.017900925f, -0.016723232f, 0.017285908f, 0.006961471f, 0.03025361f, 0.004943037f, -0.012660193f, -0.030044243f, 0.027845884f, 0.004507945f, -0.015388514f, -0.017717728f, 0.0042462354f, -3.9997583E-05f, -0.00058393914f, -0.018947763f, 0.015493198f, -0.031457473f, -0.0045406586f, 0.030672345f, 0.015257659f, 0.00066122523f, 0.006778274f, -0.0010599232f, -0.029102089f, 0.025438156f, -0.007910168f, -0.0055024405f, 0.013360267f, -0.0021231177f, -0.027793542f, 0.0009724141f, 0.033210926f, 0.014289334f, -0.0095458515f, 0.0018908506f, 0.0029834874f, 0.019078618f, 0.025006335f, 0.028133763f, -0.01277142f, -0.020321736f, -0.009787933f, -0.015964275f, -0.023213627f, -0.020269396f, -0.045380414f, 0.0037653444f, 0.010566518f, -0.017312078f, 0.022559352f, -0.01528383f, -0.015310002f, 0.019000104f, -0.0032402899f, 0.013124728f, -0.00019894006f, -0.008309274f, -0.00036557537f, -0.02647191f, -0.0140799675f, 0.03556631f, -0.020701217f, -0.03250431f, 0.006961471f, 0.023684703f, 0.0067651886f, -0.01090674f, 0.021198463f, 0.0055645965f, 0.0009307042f, -0.022768721f, 0.040381763f, -0.0029164245f, 0.014001454f, -0.017992523f, -0.008335445f, -0.009886074f, 0.0038438572f, -0.005247274f, 0.0035003636f, -0.008093364f, 0.0071119536f, -0.018293489f, 0.0026301797f, -0.019052446f, 0.016919514f, 0.0031748626f, -0.026759788f, 0.023252882f, -0.0026612577f, -0.0029262386f, 0.0022016305f, -0.0100300135f, 0.025843807f, -0.008021394f, -0.018437428f, 0.002131296f, -0.007098868f, -0.005397757f, -0.00165613f, 0.023737045f, 0.023789387f, -0.028212275f, 0.0017616316f, 0.00547627f, 0.0025680237f, -0.0017403677f, -0.013491121f, 0.014420189f, 0.006133815f, 0.00034778728f, -0.006896043f, -0.019261815f, 0.0062286844f, 0.018502856f, -0.0049103233f, -0.013674318f, -0.022886489f, 0.0033155312f, 0.018201891f, 0.010743172f, -0.01664472f, -0.009886074f, -0.024666114f, -0.002509139f, 0.008642954f, 0.0009168008f, 0.0049332227f, 0.002697243f, 0.015584797f, -0.020413335f, 0.0075830305f, 0.0067390176f, 0.023593105f, -0.0033662375f, 0.008577527f, 0.0049953787f, -0.001138436f, 0.009742133f, 0.013288296f, -0.027845884f, 0.008230762f, -0.006405338f, -0.000315687f, 0.0067651886f, 0.035723336f, 0.0047107697f, 0.0028657182f, -0.019117873f, -0.0038471285f, -0.015022121f, 0.009251428f, 0.0014271343f, 0.00638571f, 0.017979437f, -0.012064804f, 0.014433275f, 0.021250805f, -0.009460796f, 0.019942258f, -0.019654378f, -0.0113843605f, -0.011050681f, 0.039884515f, 0.002829733f, -0.010854399f, -0.016343754f, -0.010972167f, -0.026799046f, 0.01655312f, 0.007347492f, -0.009807561f, 0.014459446f, 0.02886655f, -0.008067193f, 0.010383322f, -0.0025941946f, -0.008773808f, -0.022611694f, -0.004465417f, -0.018306574f, -0.036194414f, -0.019510439f, 0.023920242f, -0.012444283f, -0.03606356f, 0.019745976f, 0.014524873f, -0.021172293f, -0.0008464664f, 0.0104029495f, 0.0060782013f, 0.0023193997f, 0.013118185f, -0.020164711f, -0.00042609565f, 0.0082045905f, 0.014812754f, 0.020020772f, 0.011809638f, 0.01119462f, -0.01777007f, 0.023488421f, 0.007602659f, -0.02444366f, 0.022572437f, 0.017586874f, 0.017272823f, 0.010677745f, 0.008119535f, -0.017181223f, 0.009140202f, -0.018280404f, 0.008636411f, 0.0023504777f, 0.038732994f, 0.017835498f, -0.023488421f, -0.010893655f, 0.029730191f, 0.0020446049f, -0.008577527f, 0.00107628f, -0.0009413361f, 0.0037064597f, -0.011953578f, -0.014629557f, -0.003477464f, 0.008335445f, 0.0034316648f, 0.002509139f, -0.013294839f, -0.015336173f, -0.004393447f, 0.007576488f, -0.006771731f, 0.012666736f, 0.019144045f, -0.010520719f, -0.020491848f, -0.014524873f, -0.019719806f, -0.0012619301f, -0.02889272f, 0.0027348634f, -0.026275627f, -0.015741821f, 0.008086821f, -0.0013249039f, 0.0031895835f, -0.0108871125f, 0.007085783f, -0.026301797f, 0.009598193f, -0.006981099f, 0.0025745665f, -0.005325787f, -0.0038307717f, 0.013373352f, -0.0140668815f, -0.014171566f, 0.009944959f, -0.0070923255f, -0.015650224f, -0.030201267f, 0.004082667f, 0.00707924f, 0.018372001f, 0.20633171f, 0.0013420787f, -0.031195763f, 0.041245405f, 0.022637865f, 0.033001557f, 0.027558003f, -0.0050215498f, -0.0024780612f, 0.016356839f, -0.029102089f, -0.0020249768f, 0.022258386f, -0.0036148615f, -0.003425122f, -0.03022744f, -0.030620003f, -0.048756465f, -0.005947347f, -0.014982864f, -0.00700727f, 0.002908246f, -0.016618548f, -0.009107488f, 0.019248728f, -0.0034611071f, -0.016173642f, 0.013379894f, 0.019615121f, 0.03608973f, 0.003197762f, -0.0032746391f, 0.0024175409f, -0.0014353127f, 2.2669557E-05f, 0.008112992f, -0.0029066103f, -0.0034382076f, 0.010389864f, 0.0027299565f, -0.0069222143f, 0.010671202f, -0.026170943f, -0.015807249f, 0.008355074f, 0.003140513f, -0.025922319f, 0.005966975f, -0.0069680135f, 0.021041438f, -0.02513719f, 0.00044940415f, -0.006670319f, 0.011920865f, 0.0010378414f, 0.00041996184f, 0.019955344f, 0.009199087f, -0.02771503f, -0.00039195077f, 0.0030227439f, 0.03022744f, -0.0113843605f, 0.0074587185f, -0.016867172f, 0.010919826f, -0.010795514f, 0.0021149393f, 0.013909856f, 0.0017828954f, 0.010376778f, -0.03747679f, -0.0015269109f, 0.014721155f, -0.00897009f, -0.02484931f, 0.026589679f, 0.012797591f, 0.023213627f, -0.0057772356f, -0.012248001f, -0.0076288297f, 0.009414997f, 0.01255551f, 0.029285286f, -0.05108568f, 0.0041644513f, 0.011292762f, -0.0155324545f, -0.006653962f, 0.008813065f, -0.012045177f, 0.007622287f, -0.013052758f, 0.031457473f, 0.010317894f, 0.013033129f, 0.010717001f, -0.014891267f, -0.014485617f, 0.002798655f, 0.006856787f, 0.0123526845f, -0.027898224f, -0.041245405f, -0.017979437f, 0.0037064597f, -0.0021051252f, 0.0074390904f, -0.0042756777f, 0.0041480944f, -0.03472884f, 0.0038929277f, 0.0029180602f, -0.0037031884f, -0.0040499535f, 0.0058590197f, -0.042135216f, 0.008989719f, -0.005780507f, 0.017783156f, -0.026275627f, -0.0011417074f, -0.003047279f, 0.010232839f, -0.009899159f, -0.027793542f, -0.0069353f, 0.023802472f, -0.0430512f, 0.009617821f, -0.0010165776f, 0.009755219f, -0.013556548f, -0.014093053f, 0.010036556f, 0.01676249f, -0.024796968f, 0.005986603f, -0.010821685f, 0.024482917f, 0.004445789f, 0.020714302f, -0.00590809f, 0.013491121f, -0.019405754f, -0.0099057015f, -0.0008305185f, -0.0023112213f, 0.0011188078f, -0.010684287f, -0.025922319f, -0.009617821f, -0.04634874f, 0.025516668f, -0.019314155f, -0.014551044f, 0.0019906273f, 0.00839433f, -0.002695607f, 0.0015931561f, 0.0023259425f, 0.04357462f, -0.022062104f, -0.036874857f, -0.0016896615f, -0.16801745f, 0.025909234f, 0.02100218f, -0.028473986f, 0.0024355333f, -0.0033662375f, 0.018188804f, -0.018398173f, -0.007805484f, 0.011901236f, 0.012123689f, -0.007694257f, -0.052315716f, -0.02181348f, -0.0024142694f, 0.0009462431f, -0.005335601f, -0.0058099492f, 0.0020429692f, 0.0017289179f, 0.021734968f, -0.022127531f, 0.009572023f, -0.008989719f, 0.005211289f, -0.008479386f, 0.0027953838f, -0.00514259f, 0.007203552f, -0.010180497f, 0.010245924f, -0.0023668346f, 0.02750566f, -0.0028035622f, 0.014197736f, 0.02623637f, -0.009225258f, 0.014786582f, 0.0060160453f, 0.0038765708f, 0.014367848f, -0.0024502545f, 0.011790009f, 0.0184636f, -0.0061697997f, 0.020962926f, 0.010677745f, -0.005636567f, 0.032582823f, 0.00020578949f, 0.03802638f, -0.007641915f, 0.0344933f, 0.009264514f, 0.012817219f, 0.03169301f, -0.007602659f, 0.028159935f, 0.009042061f, -0.011960121f, -0.031771526f, -0.01021321f, 0.0097944755f, -0.01186198f, 0.0011351646f, -0.03718891f, 0.005744522f, 0.0040041544f, -0.002882075f, 0.021564856f, -0.020897498f, -0.013700488f, 0.003326981f, -0.009055146f, 0.014289334f, 0.020269396f, 0.01248354f, -0.008008309f, 0.0112600485f, -0.018424343f, -0.038994703f, 0.051530585f, -0.048468586f, 0.0077269706f, -0.010756257f, 0.012660193f, -0.031850036f, -0.001831966f, -0.003840586f, 0.011305847f, 0.037529133f, -0.008577527f, -0.025595183f, -0.0067979023f, 0.0067390176f, 0.033420295f, 0.0077335136f, 0.019052446f, -0.0075830305f, -0.016998027f, -0.020007685f, 0.004465417f, -0.010429121f, 9.630089E-05f, 0.025241874f, 0.029730191f, 0.0155324545f, 0.024823138f, 0.027662687f, 0.0022261657f, 0.013713574f, -0.005744522f, 0.006189428f, 0.009238343f, -0.0063300966f, -0.0034447503f, 0.017312078f, -0.0089242915f, 0.0215256f, -0.0060782013f, 0.019458096f, -0.005737979f, -0.011731125f, 0.01186198f, -0.007864368f, -0.0013183613f, -0.06903895f, -0.0123526845f, 0.009179458f, 0.0043280195f, -0.015009035f, 0.040434107f, -0.0115283f, 0.019340327f, 0.009990757f, 0.0014868367f, 0.006896043f, -0.013595805f, -0.021826565f, -0.004488317f, 0.03943961f, 0.013726659f, -0.007923253f, 0.0017976166f, -0.013491121f, -0.008885035f, -0.02346225f, 0.005862291f, -0.0037849725f, -0.0092972275f, -0.011207706f, -0.0011376182f, -0.034781184f, 0.037947867f, 0.020217054f, 0.008688753f, 0.012248001f, -0.012516254f, 0.005371586f, 0.0017060183f, -0.0013306289f, 0.009931873f, 0.007524146f, -0.012849933f, 0.022585524f, -0.023422994f, 0.0055187973f, 0.0032173903f, -0.01724665f, -0.033237096f, 0.0015383607f, -0.0032680964f, 0.0014263163f, 0.01528383f, 0.0058197635f, 0.0027708486f, 0.0060978294f, 0.0012095883f, -0.025490498f, -0.013909856f, -0.020125454f, 0.0075895735f, 0.0023766488f, 0.023187455f, -0.008963548f, -0.008440129f, 0.0124769965f, 0.01033098f, -0.0024355333f, 0.00908786f, 0.033498805f, -0.00046044504f, -0.0012766513f, -0.0138182575f, 0.02860484f, -0.011783467f, -0.013896771f, -0.0018875792f, -0.018686052f, 0.011482501f, -0.019719806f, 0.0010574696f, -0.018280404f, -0.00645768f, 0.016474608f, -0.0019431924f, -0.0016994756f, -0.032713678f, 0.008198048f, 0.003161777f, -0.00669649f, 0.025582096f, 0.0070726974f, -0.0024846038f, -0.012071347f, -0.016592378f, 0.02695607f, -0.0025418529f, 8.7866894E-05f, -0.025333472f, 0.0034022226f, 0.016160557f, -1.299602E-05f, -0.0030701787f, 0.010782428f, -0.0053028874f, -0.027662687f, -0.044307407f, -0.08939994f, 0.007576488f, 0.017822413f, -0.00755686f, 0.0028068337f, -0.01803178f, 0.005273445f, 0.013491121f, 0.015689481f, -0.008243847f, -0.019929172f, -0.006510022f, 0.015414685f, 0.004671513f, -0.02040025f, 0.0038209576f, 0.011305847f, -0.0056496523f, -0.0025385814f, -0.0038732996f, -0.007746599f, -0.008289646f, 0.02501942f, 0.012516254f, -0.006339911f, -0.012804134f, -0.013595805f, 0.029756362f, -0.012961159f, -0.009617821f, 0.019785233f, -0.036534637f, -0.008799979f, 0.038497455f, -0.015388514f, -0.039073218f, -0.019484267f, 0.002437169f, -0.006581992f, -0.00937574f, -0.039387267f, -0.03027978f, 0.028133763f, -0.010599231f, -0.0042495066f, 0.02427355f, 0.018908506f, -0.008649496f, 0.0021999949f, -0.0070661544f, 0.00068535155f, 0.021721883f, -0.014223907f, -0.01762613f, -0.012777963f, -0.01014124f, -0.005414114f, 0.0031846766f, 0.008871949f, -0.010710458f, 0.0029622235f, 0.011704954f, 0.017168138f, 0.0009356112f, 0.012666736f, -0.0261186f, -0.008243847f, 0.0050575347f, 0.022794891f, -0.0064871223f, -0.029494653f, -0.019078618f, 0.027558003f, 0.02522879f, -0.0028526327f, -0.010769343f, 0.02132932f, -0.01346495f, -0.013975283f, 0.039622806f, 0.013111643f, -0.016173642f, -0.039387267f, 0.009323399f, 0.0116198985f, -0.031562157f, -0.027636515f, -0.03109108f, -0.008858864f, 0.012980788f, -0.020086199f, -0.006588535f, -0.011057223f, -0.015296916f, -0.0037097312f, 0.010677745f, 0.005783778f, -0.017377505f, 0.009055146f, 0.029049747f, -0.011606813f, 0.012405027f, 0.012719078f, -0.0032484683f, -0.005800135f, -0.0045373873f, -0.017037284f, -0.028159935f, 0.008237304f, 0.009100946f, 0.012934988f, 0.026170943f, -0.0012275808f, 0.009107488f, -0.00019822444f, 0.0191833f, -0.004465417f, -0.018987019f, -0.022860318f, -0.008086821f, 0.011318932f, 0.031509817f, 0.013203241f, 0.0031993978f, 0.0062221414f, 0.016998027f, -0.01690643f, -0.0017060183f, -0.018921591f, 6.977214E-05f, -0.02638031f, -0.02181348f, -0.01736442f, -0.0077596847f, -0.0084663f, 0.006568907f, 0.002370106f, -0.011109565f, -0.0004857981f, 0.044542946f, 0.020962926f, -0.0015669852f, 0.006444595f, -0.0107628f, 0.022637865f, -0.0112469625f, 0.027610345f, -0.022951916f, -0.020962926f, 0.0055187973f, 0.02594849f, 0.017678471f, -0.024770798f, -0.014367848f, -0.00447196f, -0.041507114f, -0.030148925f, 0.003948541f, 0.0261186f, 0.0030554575f, 0.015427771f, 0.0048481673f, 0.022886489f, -0.000900444f, -0.003405494f, -0.0036704747f, 0.021748053f, -0.0009838638f, -0.0063889814f, 0.014001454f, 0.00715121f, -0.012195659f, -6.711415E-05f, -0.0028837107f, -0.015846506f, 0.004874338f, -0.016082045f, -0.0038961992f, 0.033210926f, -0.014760411f, 0.021839652f, -0.027060755f, -0.027845884f, 0.0111226505f, -0.011632984f, -0.011403988f, -0.011803095f, -0.013196697f }; + public static readonly IReadOnlyList DefaultVectorizeDescription = new List { -0.030846236f, -0.016767653f, 0.04531517f, 0.0015787444f, -0.005634036f, -0.0054431986f, -0.012959584f, 0.031661633f, 0.018511211f, 0.009455117f, -0.02827861f, 0.016698258f, 0.014815909f, -0.021304375f, -0.02569363f, 0.021113537f, -0.0116497455f, 0.008483583f, -0.0043762447f, 0.017687142f, -0.016099723f, -0.009507164f, -0.019326607f, 0.0021675206f, 0.029406283f, -0.0032789307f, -0.029944098f, -0.012786095f, -0.002337756f, 0.029701214f, 0.016255863f, -0.015535886f, 0.019413352f, 0.004996466f, -0.009810769f, 0.018875537f, -0.0104787f, -0.0044000996f, -0.017886654f, 0.009368373f, 0.047778703f, 0.005165617f, -0.030186981f, 0.005846559f, 0.00036622316f, -0.006796408f, 0.009298978f, 0.021946283f, 0.0061675124f, 0.02645698f, -0.022570841f, -0.004983454f, -0.007824327f, -0.03004819f, -0.014243398f, 0.012317676f, 0.022223864f, -0.01988177f, 0.004992129f, -0.011632397f, 0.013774979f, 0.029579772f, 0.011606374f, -0.005551629f, -0.0160737f, -0.011641071f, 0.013575467f, 0.032511726f, -0.016316583f, 0.0035803667f, 0.010869049f, -0.0036042214f, -0.008574664f, 0.004462989f, 0.004014088f, 0.001168878f, -0.015535886f, -0.024999678f, 0.01032256f, 0.037924565f, -0.0009297894f, -0.009567885f, -0.00093304226f, 0.02033284f, 0.01181456f, -0.026630469f, -0.03542633f, -0.0032876052f, 0.0016676572f, 0.025242561f, 0.007642164f, 0.0145730255f, 0.008661408f, -0.0075684316f, 0.0066836406f, -0.022518793f, -0.008444548f, -0.033691447f, 0.020384887f, -0.00086798414f, 0.035339586f, -0.0043784133f, -0.0015136863f, 0.008353466f, -0.003376518f, -0.020176701f, 0.023854654f, -0.015535886f, -0.012968258f, -0.0070132683f, -0.018372422f, -0.008600688f, -0.021616654f, 0.023351539f, -0.017661119f, -0.015787445f, -0.009984258f, -0.01322849f, -0.009750048f, 0.01733149f, 0.0291634f, -0.021651352f, 0.022917816f, -0.014260747f, -0.013063677f, 0.0075510824f, -0.016516095f, -0.01579612f, -0.02094005f, -0.036120284f, 0.01622984f, 0.0027541283f, -0.021009445f, 0.0015689858f, 0.013358607f, 3.7916703E-05f, -0.013774979f, 0.021616654f, 0.0009877996f, -0.0079978155f, 0.008327443f, 0.0144429095f, 0.010522071f, -0.005287059f, 0.012256956f, -0.009645955f, 0.025433399f, 0.003025204f, -0.020246096f, 0.02885112f, -0.0061414894f, 0.004541059f, 0.007473013f, -0.009064768f, -0.016464049f, -0.013861723f, -0.01705391f, -0.0149893975f, 0.027671399f, 0.024635352f, -0.007620478f, -0.020749213f, 0.001616695f, 0.017652445f, 0.0009406324f, 0.0023854654f, -0.012820792f, 0.012777421f, -0.0064754547f, -0.005495245f, 3.4680736E-05f, 0.021963632f, -0.005126582f, 0.043302704f, 0.014234723f, 0.02168605f, -0.001416099f, -0.021859538f, -0.021113537f, 0.017695816f, 0.03440275f, 0.002219567f, 0.017418236f, -0.03202596f, 0.027289726f, 0.0032572446f, -0.009316327f, 0.02376791f, 0.0143388165f, 0.004226611f, 0.0032594132f, -0.0023963086f, 0.0045974427f, -0.002695576f, 0.009602583f, 0.011094583f, -0.032858703f, -0.0016264537f, 0.033552658f, -0.011042536f, -0.0049053845f, -0.007954443f, 0.0109731415f, 0.0056817452f, 0.00096502923f, -0.013774979f, -0.00957656f, 0.0017327154f, -0.022171818f, -0.0057077683f, -0.0056687333f, 0.013020304f, 0.006978571f, 0.014564351f, -0.026543725f, -0.021616654f, -0.01428677f, -0.011059885f, -0.015336375f, -0.002261855f, 0.00478828f, -0.005143931f, 0.020749213f, -0.012066118f, -0.024947632f, 0.0031553202f, -0.015180235f, -0.017652445f, -0.007503373f, -0.0031314655f, -0.019239863f, -0.0157007f, 0.001172131f, -0.03544368f, 0.015865514f, 0.019847073f, -0.007256152f, -0.0058508962f, -0.0045584077f, 0.012942234f, -0.008873931f, 0.011458908f, -0.0068224315f, -0.018025445f, 0.006874478f, -0.03095033f, 0.020853305f, 0.03754289f, 0.018268328f, -0.016177794f, -0.0448641f, 0.018823491f, -0.0039381864f, -0.028937865f, 0.03127996f, 0.054232474f, -0.015726723f, 0.014312793f, 0.0017793403f, -0.0022857096f, -0.027480561f, -0.011129281f, 1.1884972E-05f, 0.009888839f, -0.0010170757f, -0.012690676f, 9.3792165E-05f, -0.0087785125f, -0.01428677f, -0.012074793f, -0.006137152f, -0.001885602f, 0.009489816f, -0.013297886f, 0.011120606f, -0.0043870877f, -0.0072995243f, -0.002266192f, -0.002509076f, -0.000304689f, -0.0047839424f, -0.021876886f, 0.010764955f, 0.0070956754f, 0.023039259f, 0.014685793f, -0.0032810993f, -0.007707222f, -0.0072995243f, 0.041776005f, -0.007707222f, 0.004083483f, -0.0035543435f, 0.0021122212f, 0.00601571f, -0.0022380003f, 0.028209213f, -0.00971535f, 0.032095354f, -0.03782047f, 0.029336888f, 0.010452676f, 0.017886654f, 0.0007606382f, -0.027289726f, 0.018198933f, -0.0018986136f, 0.009307653f, 0.022223864f, -0.012421769f, 0.00052968174f, -0.011129281f, -0.0056860824f, -0.009515839f, -0.017782561f, -0.015076142f, -0.02168605f, 0.010183769f, -0.023056608f, -0.01046135f, 0.03636317f, -0.00013919733f, -0.015683351f, 0.00043426314f, -0.009923536f, -0.020558376f, 0.015388421f, 0.000609378f, -0.008262385f, 0.0035131401f, 0.025763027f, 0.016203817f, 0.00609378f, 0.023230096f, 0.0020645119f, 0.037404098f, -0.0011200844f, 0.04021461f, -0.025086422f, -0.013297886f, 0.007126036f, -0.018719397f, -0.01899698f, 0.004497687f, -0.015848165f, -0.010712909f, -0.01638598f, -0.010374607f, 0.008765501f, -0.011528304f, 0.01927456f, 0.0011190001f, -0.0021772794f, 0.03466298f, -0.006115466f, -0.012413095f, 0.015240956f, 0.0024938958f, -0.024618004f, 0.005412838f, -0.016203817f, 0.0060851057f, 0.015952257f, -0.005104896f, -0.0040639658f, 0.02931954f, -0.029822655f, -0.004953094f, 0.026960097f, 0.013375956f, -0.017435584f, -0.0059810127f, 0.0069178496f, -0.012898862f, 0.0186847f, 0.007841676f, 0.02557219f, -0.022761678f, -0.02107884f, -0.015969606f, 0.0067486987f, -0.004269983f, -0.009038745f, -0.028035725f, 0.0209227f, -0.016039003f, 0.007021943f, 0.009272954f, -0.019378655f, 0.0113895135f, 0.009056094f, -0.0020796922f, -0.021408468f, 0.007143385f, -0.008952001f, -0.008062873f, -0.00075684313f, 0.0039598728f, 0.04021461f, -0.01807749f, -0.00013065845f, -0.016550792f, 0.00038167447f, -0.020280793f, 0.0014920002f, -0.041359633f, -0.037577588f, -0.021217631f, 0.011398188f, -0.01615177f, 0.0042027566f, -0.0019289742f, 0.0020016225f, 0.012916211f, -0.005417175f, 0.017435584f, 0.0012491165f, -0.012551886f, 0.014694467f, 0.004497687f, -0.008908629f, -0.0014952532f, 0.0012133345f, 0.0014507967f, 0.017374864f, 0.00018988847f, 0.006648943f, 0.0017988578f, -0.048160378f, -0.005994024f, -0.015258305f, -0.013870398f, 0.0026391922f, 0.0038405994f, -0.024114888f, 0.010721583f, 0.0050875475f, -0.018858189f, 0.010201118f, 0.010062327f, -0.0058378847f, 0.0040162564f, -0.0027085876f, 0.01083435f, 0.015310351f, 0.024271026f, 0.020228747f, 0.008917304f, 0.0042417916f, 0.017617747f, -0.016403329f, 0.002165352f, -0.021113537f, -0.015657328f, 8.288137E-05f, -0.0082060015f, 0.028174516f, 0.006527501f, 0.011536978f, -0.037646983f, 0.020749213f, 0.018650003f, 0.021564608f, -0.018927583f, 0.029336888f, -0.041463725f, 0.0014280264f, 0.013280537f, -0.01232635f, -0.024791492f, -0.028885819f, -0.02645698f, 0.026300842f, -0.015293002f, 0.0012317676f, 0.005226338f, -0.011667095f, 0.0011905641f, 0.031002376f, -0.0239414f, -0.009689327f, 0.010634839f, -0.010279188f, 0.015822142f, 2.5074494E-05f, -0.6445441f, -0.006197873f, 0.017383538f, 0.0064320825f, -0.0056860824f, -0.01024449f, 0.004688524f, -0.012508513f, 0.08611964f, -0.0020428258f, 0.025173167f, -0.015275653f, 0.0021848695f, 0.0016405496f, -0.003244233f, 0.023577074f, -0.0063323267f, -0.00886092f, 0.021946283f, 0.00071889255f, -0.009177536f, -0.03301484f, 0.020731863f, -0.016967166f, -0.027723446f, 0.003430733f, -0.0040596286f, -0.018667351f, -0.014937351f, 0.0044326284f, -0.0028256923f, 0.013644863f, 0.023715865f, -0.02735912f, -0.013315234f, -0.0020775236f, 0.02586712f, -0.01944805f, 0.019534793f, 0.027012143f, 0.014321467f, 0.025311958f, -0.063600846f, -0.0012827298f, -0.00011676583f, 0.011111932f, -0.0109731415f, 0.004753582f, 0.009004048f, -0.008015164f, -0.015102165f, -0.0053607915f, -0.013670886f, 0.012369723f, 0.008522618f, 0.012716699f, 0.005516931f, 0.00023475148f, -0.010591467f, -0.013506072f, 0.0075901174f, 0.00046082857f, -0.0036692796f, 0.01099049f, -0.00039387288f, 0.008088897f, 0.021755446f, 0.014226048f, -0.025745679f, -0.008583339f, -0.015830817f, 0.024583306f, 0.022362655f, 0.020749213f, 0.012786095f, 0.012439118f, 0.013237164f, 0.015553235f, -0.018181585f, -0.017010538f, 0.006488466f, 0.005165617f, 0.009429094f, 0.012777421f, -0.03664075f, 0.005352117f, 0.026630469f, -0.013419327f, 0.25676283f, -0.00792842f, -0.02154726f, 0.17917882f, -0.030030841f, -0.01106856f, 0.029614469f, 0.013610165f, -0.042816937f, -0.000580644f, -0.008652734f, -0.005287059f, -0.006197873f, 0.028521493f, 0.01703656f, -0.0010100277f, 0.0033548318f, 0.03154019f, 0.009914862f, -0.0035283202f, -0.0038839716f, 0.029128702f, -0.011190002f, -0.013939792f, -0.0027758144f, -0.025710981f, 0.008678757f, -0.021356422f, 0.0034741051f, -0.022674933f, -0.017452933f, -0.0076725245f, 0.00083491293f, -0.015518537f, 0.014668444f, -0.020072607f, -0.013150421f, 0.0010723751f, 0.008110583f, 0.024843538f, -0.006631594f, -0.02557219f, -0.010044978f, 0.0011764682f, -0.009776072f, 0.0032117038f, -0.00957656f, -0.013870398f, 0.010383281f, -0.0049877916f, 0.0075727687f, -0.009316327f, 0.031470794f, -0.003172669f, -0.008592013f, 0.019309258f, 0.0045757564f, 0.0019484916f, 0.046425495f, 0.016941141f, -0.013254514f, -0.04562745f, 0.020558376f, 0.008756827f, -0.0073775942f, 0.004428291f, -0.0055082566f, -0.0005638373f, -0.0010376775f, -0.0073428964f, 0.005577652f, 0.008509606f, -0.0044499775f, 0.021321723f, 0.0033548318f, 0.0059333034f, -0.0021935438f, -0.0024548608f, -0.0033136285f, -0.003940355f, 0.017834608f, -0.008483583f, 0.009602583f, 0.010417978f, 0.018112188f, 0.0021848695f, 0.014850607f, 0.012317676f, 0.008479245f, -0.023455631f, -0.005065861f, -0.009663303f, 0.006241245f, -0.009906188f, -0.015371072f, -0.018441817f, -0.013046327f, 0.052809868f, 0.00673135f, -0.010227141f, 0.0027432854f, 0.008865257f, -0.0018823491f, -0.005065861f, 0.01479856f, -0.028955214f, 0.0033570004f, -0.0027975005f, 0.01203142f, 0.016047677f, 0.005881257f, 0.00077364984f, 0.002480884f, 0.005521268f, -0.028920516f, -0.00258064f, 0.019899119f, -0.009177536f, 0.012170211f, -0.010114374f, -0.0024613666f, 0.030828888f, -0.007394943f, -0.013480049f, -0.029683866f, 0.020454282f, 0.098333225f, -0.0028126806f, 0.010140397f, 0.013879072f, -0.009481141f, 0.022622887f, 0.012083467f, 0.02317805f, 0.01091242f, 0.0009975582f, -0.006549187f, -0.00934235f, -0.031175865f, 0.010548094f, -0.02047163f, -0.0049270703f, -0.00012259395f, -0.020662468f, 0.011996723f, 0.020610422f, -0.008075885f, -0.021963632f, 0.011693118f, 0.017661119f, 0.0073515708f, -0.0073906058f, 0.011615048f, 0.018667351f, -0.0002638921f, -0.00031173698f, 0.012803444f, 0.002530762f, 0.03127996f, 0.0027758144f, -0.015084816f, 0.012959584f, 0.004319861f, -0.01232635f, 0.0027519597f, 0.00590728f, -0.0030056864f, 0.011476258f, 0.0047275587f, -0.011909978f, -0.01189263f, -0.002365948f, -0.027584655f, 0.045072287f, -0.027255027f, 0.014920002f, 0.02633554f, -0.009194885f, -0.091532476f, 0.016047677f, -0.0082060015f, -0.0065621985f, -0.036120284f, 0.0153276995f, 0.00028218972f, -0.0012306833f, 0.0077983034f, 0.0047969543f, 0.0060807685f, 0.01173649f, 0.030776842f, -0.0009531019f, -0.004541059f, -0.010721583f, -0.009307653f, -0.023438282f, 0.01721005f, -0.008071547f, -0.0052783843f, 0.0077158967f, -0.00609378f, 0.0060460707f, -0.01823363f, -0.0029796632f, -0.026300842f, -0.0024223318f, 0.0075901174f, -0.005477896f, 0.0021458347f, 0.0049661053f, -0.027289726f, 0.011051211f, 0.02781019f, -0.0064971405f, -0.00051883876f, 0.011632397f, 0.017027887f, -0.010721583f, 0.037404098f, 0.028469445f, -0.028642934f, 0.007767943f, 0.020280793f, -0.010808327f, 0.011632397f, -0.011163979f, -0.0072821756f, 0.031626936f, 0.008934652f, 0.018424468f, 0.001921384f, -0.016498746f, 0.0018693375f, 0.0048316517f, -0.0023746225f, 0.018441817f, -0.0071737454f, 0.012083467f, 0.006449431f, -0.015561909f, -0.0027866573f, 0.00087448995f, -0.0050441753f, -0.0130897f, -0.011320118f, -0.0151195135f, -0.026890703f, -0.0039815586f, -0.0012035758f, 0.017539676f, 0.01913577f, -0.016984515f, 0.038930796f, -0.0033613378f, 0.013245839f, 0.007433978f, -0.0024331748f, -1.3384359E-05f, -0.021807492f, -0.006115466f, 0.01218756f, 1.39858075E-05f, -0.0020601747f, -0.006865803f, -0.02871233f, 0.010999165f, -0.01256056f, 0.013028978f, 0.009828118f, -0.03348326f, 0.0117017925f, -0.003656268f, -0.006033059f, 0.009698002f, -0.02753261f, 0.014642421f, -0.00460178f, -0.00076443324f, 0.018962283f, 0.043753773f, -0.008219013f, -0.013349933f, 0.011172653f, -0.016160443f, 0.05475294f, -0.01913577f, -0.03379554f, -0.006345338f, 0.016264537f, 0.020228747f, -0.0114936065f, 0.0080238385f, -0.010600141f, 0.00646678f, -0.019708281f, 0.022987213f, -0.01293356f, 0.014147979f, -0.012118164f, -0.02947568f, -0.031731028f, 0.009914862f, 0.03079419f, 0.00033098334f, 0.024236329f, 0.019951167f, 0.0036540993f, 0.010140397f, -0.018719397f, 0.0025871457f, 0.0065014777f, 0.0067833965f, -0.0026543725f, -0.020523677f, 0.017730514f, 0.007876373f, -0.00023136304f, -0.018771445f, 0.022536144f, 0.023872003f, -0.013245839f, 0.019847073f, 0.005621024f, 0.004137698f, 0.037577588f, 0.0016080206f, -0.005599338f, 0.010738932f, -0.0119360015f, 0.0049877916f, 0.016949816f, -0.014226048f, 0.021634003f, -0.007911071f, 0.002305227f, 0.0019311428f, -0.0020471632f, -0.029944098f, -0.018008096f, -0.040735077f, 0.01195335f, -0.02213712f, 0.028348004f, -0.024305724f, -0.013254514f, -0.028330656f, 0.044655915f, 0.0020677648f, 0.019517444f, -0.030239027f, -0.0039772214f, 0.0012285147f, 0.004280826f, -0.017617747f, 0.010886397f, 0.013688235f, -0.014260747f, 0.0037191575f, 0.02184219f, 0.010001606f, -0.009671978f, 0.013827025f, 0.018303026f, -0.007828664f, 0.012534536f, -0.0067660473f, -0.006054745f, 0.0070523033f, -0.0049314075f, -0.027948981f, 0.02437512f, -0.009645955f, -0.01758305f, -0.02378526f, 0.009741373f, 0.02378526f, 0.028313307f, 0.02123498f, -0.019361306f, 0.0024310062f, 0.009802095f, 0.00848792f, 0.0070349546f, -0.033413865f, -0.0023616108f, -0.009810769f, -0.0019701775f, 0.0016654886f, 0.008054199f, 0.008084559f, -0.033136282f, 0.005989687f, 0.0032117038f, 0.011328792f, -0.0017890991f, -0.025589539f, -0.0056817452f, -0.014026537f, 0.005660059f, 0.0148072345f, -0.0006283533f, -0.02258819f, 0.023212748f, 0.021772794f, 0.01165842f, -0.02347298f, -0.017201375f, 0.0037126518f, 0.025242561f, -0.009064768f, -0.0030208668f, 0.011103258f, 0.042122982f, -0.001168878f, 0.034715027f, -0.011719141f, 0.01181456f, 0.0051135705f, -0.02616205f, 0.007208443f, 0.024392469f, 0.020055259f, -0.009038745f, 4.8725844E-05f, 0.1388601f, -0.010556769f, 0.02569363f, 0.00058877625f, 0.02453126f, -0.018736746f, -0.0061848615f, -0.00840985f, 0.001555974f, -0.009984258f, -0.013549444f, 0.006727013f, -0.012898862f, 0.006800745f, 0.0045757564f, 0.020697165f, -0.004172396f, -0.033066887f, 0.009628606f, 0.028226562f, -0.002476547f, 0.018771445f, -0.018424468f, -0.010903746f, 0.027862236f, 0.016195143f, -0.0032268842f, -0.016108397f, -0.0150154205f, 0.00934235f, -0.014520979f, 0.012751398f, 0.0072821756f, -0.018216282f, -0.01666356f, 0.027168283f, 0.025207864f, -0.0021599305f, -0.019829724f, -0.018493863f, -0.013783653f, 0.00443046f, 0.0057945126f, -0.012178886f, 0.0044174483f, -0.020089956f, -0.0039989077f, -0.0028668959f, 0.010157745f, 0.01615177f, 0.027844887f, 0.044482425f, -0.015692025f, 0.026578423f, 0.0021382445f, 0.0038579484f, -0.0071390476f, -0.02704684f, 0.025103772f, 0.010522071f, -0.00011974765f, 0.0038861402f, -0.027168283f, -0.00050908f, -0.00612414f, 0.004731896f, -0.02333419f, -0.0071173613f, -0.007269164f, 0.00077093905f, -0.005274047f, -0.035218146f, 0.024930283f, 0.035773307f, 0.009108141f, 0.0076334896f, 0.014217374f, 0.00851828f, 0.013159095f, -0.009602583f, -0.012430443f, 0.0113895135f, 0.02449656f, -0.0114155365f, 0.018008096f, 0.013107048f, 0.011875281f, -0.011398188f, -0.012317676f, 0.0038492738f, -0.01465977f, 0.00822335f, -0.010782304f, -0.02796633f, 0.033448562f, -0.020298142f, 0.011458908f, 0.015692025f, 0.0064147334f, 0.045835633f, -0.0065231635f, -0.0012989944f, 0.0114936065f, -0.0064190705f, -0.017886654f, 0.048923727f, -0.014625072f, 0.018285677f, -0.04996466f, -0.014616397f, -0.009116815f, -0.004014088f, -0.01613442f, -0.0149547f, 0.025763027f, -0.01083435f, 0.025919167f, 0.0011916484f, 0.015986957f, 0.0057337917f, -0.01442556f, 0.012812118f, -0.034350704f, -0.018459165f, -0.018927583f, 0.029146051f, -0.0038796342f, -0.005412838f, 0.012352373f, -0.008179978f, -0.0035066342f, 0.0001385874f, -0.009663303f, 0.010712909f, -0.008106246f, -0.0030512272f, 0.0008864173f, -0.0061067916f, 0.010643513f, -0.010496048f, 0.022640236f, 0.0068094195f, 0.019014329f, 0.0025047387f, -0.009802095f, 0.005226338f, -0.007941431f, 0.004849001f, 0.018268328f, -0.0038557795f, 0.0627681f, 0.0044456404f, -0.030880935f, 0.009680653f, -0.010201118f, 0.0025502795f, 0.002509076f, 0.010018955f, 0.011406862f, -0.012725374f, 0.013592816f, -0.010704234f, -0.011172653f, -0.008952001f, -0.0051873033f, -0.013896421f, 0.01792135f, -0.017218724f, 0.00034616358f, 0.020246096f, 0.019465398f, 0.011762514f, 0.006132815f, -0.017357513f, 0.027602004f, -0.021217631f, -0.013592816f, -0.018459165f, 0.0053607915f, -0.0017619915f, -0.008552978f, -0.0111813275f, 0.011710467f, -0.039798237f, 0.026387585f, 0.0033960354f, -0.011120606f, 0.013401979f, -0.019899119f, 0.010348583f, 0.012612606f, -0.015969606f, -0.018615305f, -0.0062455824f, 0.016984515f, -0.007126036f, -0.041949496f, -0.01046135f, -0.0032789307f, 0.0064928033f, 0.010712909f, -0.013532095f, 0.0003705604f, 0.0021512562f, 0.019031677f, 0.009767396f, -0.01960419f, -0.024271026f, 0.003860117f, 0.027567307f, 0.007008931f, -0.013688235f, -0.014711816f, 0.0038839716f, 0.019066375f, -0.013037653f, -0.02258819f, 0.012950909f, -0.022154469f, 0.011406862f, 0.004541059f, 0.021304375f, 0.009298978f, 8.227145E-05f, 0.017973399f, -0.031661633f, 0.002244506f, 0.027671399f, -0.015553235f, -0.0052133263f, -0.001709945f, -0.018268328f, 0.0019495758f, 0.008305757f, 0.00095093326f, -0.010496048f, 0.01629056f, 0.0073906058f, 0.032667864f, -0.004961768f, 0.026786609f, 0.0025893142f, -0.004506361f, -0.019239863f, 0.04115145f, 0.043302704f, 0.008097571f, 0.014390863f, -0.0027584655f, -0.0034047097f, -0.005417175f, -0.00590728f, -0.021200282f, 0.03395168f, -0.02047163f, -0.017661119f, -0.025346655f, 0.017383538f, 0.018910235f, -0.008878268f, 0.010010281f, -0.02213712f, 0.03618968f, -0.030186981f, 0.013644863f, 0.018042793f, 0.012066118f, 0.018823491f, 0.012118164f, 0.0052610356f, 0.0004182697f, -0.0042201052f, 0.0115716765f, -0.021130886f, 0.034923214f, -0.012300327f, -0.027098889f, 0.01807749f, 0.0055256053f, 0.01189263f, -0.008769838f, 0.012768746f, 0.00031715847f, 0.0065578613f, -0.004645152f, 0.005725117f, -0.0009877996f, 0.013098374f, -0.005373803f, 0.0068094195f, 0.014902653f, -0.0041637216f, 0.024010794f, 0.01988177f, 0.026387585f, 0.00407264f, -0.015431793f, 0.0037300005f, 0.026439631f, -0.0028625585f, -0.03495791f, 0.0062716054f, 0.002986169f, 0.0021414973f, -0.0014334479f, 0.0017489799f, -0.004419617f, -0.0031054423f, 0.01024449f, -0.0048620123f, -0.0025719656f, -0.0011054464f, -0.007004594f, -0.0016156107f, 0.027272375f, 0.012751398f, 0.014477607f, 0.0017131979f, -0.012664653f, -0.02199833f, 0.005230675f, 0.030932982f, -0.014685793f, 0.0045931055f, -0.0035608495f, -0.0051916405f, -0.021894235f, 2.5989375E-05f, 0.0020796922f, -0.008561652f, -0.032980144f, -0.009108141f, 0.0065968963f, 0.011693118f, 0.01629056f, -0.017409561f, 0.0038080704f, -0.017383538f, -0.03920838f, -0.0055299425f, 0.0037365064f, -0.015284328f, 0.032234143f, 0.033587355f, -0.03181777f, 0.0006657617f, -0.0032160413f, 0.015587932f, -0.007008931f, -0.025745679f, -0.023646468f, -0.027445864f, 0.01479856f, 0.023681166f, -0.004835989f, -0.0006657617f, 0.021200282f, 0.016984515f, 0.019847073f, -0.015440468f, -0.027549958f, 0.009030071f, 0.012577909f, 0.0054865708f, -0.0032529074f, -0.016585492f, -0.009142838f, 0.0023095643f, -0.004237454f, -0.003925175f, 0.009307653f, -0.019170469f, -0.018771445f, -0.019326607f, -0.001336945f, -0.028001027f, -0.0028191865f, -0.0009872575f, -0.0059376406f, -0.031921864f, 0.0077332454f, 0.009194885f, 0.014330141f, -0.027931632f, -0.0028343666f, 0.013835699f, -0.016654886f, 0.024565957f, -0.039728843f, 0.01899698f, 0.011276746f, 0.019482747f, -0.007021943f, -0.0012350206f, 0.0057728263f, 0.03273726f, -0.010140397f, -0.00425914f, -0.013454026f, 0.009628606f, 0.0013965816f, 0.010790979f, -0.008852245f, -0.006471117f, -0.012829467f, 0.023247445f, 0.0029666517f, 0.00811492f, -0.005699094f, 0.0040054135f, -0.020367539f, -0.03006554f, -0.010383281f, 0.028174516f, 0.029718563f, 0.006657617f, 0.008435873f, 0.010799653f, -0.00904742f, -0.003096768f, -0.009429094f, 0.023351539f, 0.019951167f, 0.01165842f, 0.0020916194f, -0.003057733f, -0.013358607f, -0.014104607f, 0.017904002f, -0.0021686049f, -0.025988562f, -0.00508321f, -0.0011916484f, -0.012413095f, 0.014642421f, 0.008539966f, 0.020835957f, 0.018320374f, 0.009272954f, 0.0020710176f, -0.054371264f, 0.0048446637f, 0.0075684316f, 0.0060807685f, 0.011450234f, -0.0057164426f, 0.03473238f, -0.0010989406f, 0.0006278111f, 0.0034394076f, 0.009099467f, 0.00304689f, -0.028226562f, 0.0054258495f, -0.012595258f, 0.009142838f, 0.011693118f, 0.021772794f, -0.01825098f, -0.022518793f, 0.01852856f, 0.010652187f, -0.0068874895f, 0.026040608f, -0.0070696524f, -0.0042070937f, -0.00489671f, 0.033934332f, 0.014200025f, 0.01635128f, -0.031002376f, -0.022622887f, -0.0056774076f, 0.014182677f, -0.041047353f, 0.012387072f, 0.03336182f, 0.02631819f, 0.009220908f, 0.001451881f, 0.015379746f, 0.025988562f, 0.003096768f, -0.013367281f, 0.0026630468f, -0.0074556638f, -0.004571419f, -0.021477863f, 0.016481398f, 0.02812247f, 0.028330656f, -0.006978571f, 0.013375956f, -0.010131722f, -0.0075337337f, -0.017314142f, -0.016455375f, 0.0005326636f, 0.003025204f, -0.0070132683f, -0.009854141f, 0.038826704f, 0.0017435584f, -0.008418525f, -0.009151513f, 0.019569492f, 0.00676171f, -0.04292103f, -0.015613955f, -0.013193793f, 0.034125168f, 0.00800649f, 0.012603932f, -0.0059593264f, -0.050866798f, 0.00059745065f, -0.012074793f, -0.002437512f, 0.02513847f, 0.030256376f, -0.0014464596f, 0.016143095f, -0.0031358027f, 0.0006337748f, 0.026196748f, -0.01232635f, 0.006696652f, 0.00065546087f, 0.0018671689f, -0.004467326f, 0.018615305f, -0.0063496754f, 0.007624815f, 0.0261794f, 0.016091049f, -0.02064512f, -0.002111137f, 0.009030071f, -0.0045367214f }; } } From 79671d0524558c907c1d0bfbfd9d2e17615cbe8b Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 1 Aug 2023 16:56:06 -0700 Subject: [PATCH 19/54] Update Generator Version 3.0.0-beta.20230801.1 (#37959) --- eng/Packages.Data.props | 2 +- eng/emitter-package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 9f8df1bcaaa5..0e4363cb40d8 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -174,7 +174,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/eng/emitter-package.json b/eng/emitter-package.json index a07059e6dd15..ef225a75ffe2 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,6 +1,6 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20230726.2" + "@azure-tools/typespec-csharp": "0.2.0-beta.20230801.1" } } From 953aaf186d9c43d914f22d831e7783d2ae840965 Mon Sep 17 00:00:00 2001 From: yifanz7 <131133995+yifanz7@users.noreply.github.com> Date: Wed, 2 Aug 2023 12:02:33 +0800 Subject: [PATCH 20/54] [StorageMover] Upgrade to API version 2023-07-01-preview (#37928) --- .../CHANGELOG.md | 9 +- ...urceManager.StorageMover.netstandard2.0.cs | 50 ++++++ .../assets.json | 2 +- .../Models/StorageMoverEndpointPatch.cs | 29 ++++ .../UnknownEndpointBaseUpdateProperties.cs | 16 ++ .../Generated/ArmStorageMoverModelFactory.cs | 25 ++- ...ureKeyVaultSmbCredentials.Serialization.cs | 63 ++++++++ .../Models/AzureKeyVaultSmbCredentials.cs | 35 +++++ ...eStorageBlobContainerEndpointProperties.cs | 2 +- ...rEndpointUpdateProperties.Serialization.cs | 28 ++++ ...geBlobContainerEndpointUpdateProperties.cs | 19 +++ ...leShareEndpointProperties.Serialization.cs | 78 ++++++++++ ...reStorageSmbFileShareEndpointProperties.cs | 48 ++++++ ...eEndpointUpdateProperties.Serialization.cs | 28 ++++ ...ageSmbFileShareEndpointUpdateProperties.cs | 19 +++ .../src/Generated/Models/CredentialType.cs | 48 ++++++ .../EndpointBaseProperties.Serialization.cs | 2 + .../Models/EndpointBaseProperties.cs | 2 +- ...pointBaseUpdateProperties.Serialization.cs | 4 +- .../Models/EndpointBaseUpdateProperties.cs | 12 +- .../src/Generated/Models/EndpointType.cs | 6 + .../Models/NfsMountEndpointProperties.cs | 2 +- ...tEndpointUpdateProperties.Serialization.cs | 28 ++++ .../NfsMountEndpointUpdateProperties.cs | 19 +++ ...mbMountEndpointProperties.Serialization.cs | 93 ++++++++++++ .../Models/SmbMountEndpointProperties.cs | 52 +++++++ ...tEndpointUpdateProperties.Serialization.cs | 33 ++++ .../SmbMountEndpointUpdateProperties.cs | 22 +++ .../StorageMoverCredentials.Serialization.cs | 39 +++++ .../Models/StorageMoverCredentials.cs | 32 ++++ .../Models/StorageMoverEndpointPatch.cs | 19 +-- .../UnknownCredentials.Serialization.cs | 41 +++++ .../Generated/Models/UnknownCredentials.cs | 20 +++ .../RestOperations/AgentsRestOperations.cs | 2 +- .../RestOperations/EndpointsRestOperations.cs | 2 +- .../JobDefinitionsRestOperations.cs | 2 +- .../RestOperations/JobRunsRestOperations.cs | 2 +- .../RestOperations/ProjectsRestOperations.cs | 2 +- .../StorageMoversRestOperations.cs | 2 +- .../src/Generated/StorageMoverEndpointData.cs | 6 +- .../src/autorest.md | 8 +- .../tests/Scenario/EndpointCollectionTests.cs | 60 -------- .../tests/Scenario/EndpointResourceTests.cs | 51 ------- .../tests/Scenario/EndpointTests.cs | 143 ++++++++++++++++++ 44 files changed, 1054 insertions(+), 151 deletions(-) create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Customization/Models/StorageMoverEndpointPatch.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Customization/Models/UnknownEndpointBaseUpdateProperties.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureKeyVaultSmbCredentials.Serialization.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureKeyVaultSmbCredentials.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageBlobContainerEndpointUpdateProperties.Serialization.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageBlobContainerEndpointUpdateProperties.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageSmbFileShareEndpointProperties.Serialization.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageSmbFileShareEndpointProperties.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageSmbFileShareEndpointUpdateProperties.Serialization.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageSmbFileShareEndpointUpdateProperties.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/CredentialType.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/NfsMountEndpointUpdateProperties.Serialization.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/NfsMountEndpointUpdateProperties.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SmbMountEndpointProperties.Serialization.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SmbMountEndpointProperties.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SmbMountEndpointUpdateProperties.Serialization.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SmbMountEndpointUpdateProperties.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverCredentials.Serialization.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverCredentials.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/UnknownCredentials.Serialization.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/UnknownCredentials.cs delete mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Scenario/EndpointCollectionTests.cs delete mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Scenario/EndpointResourceTests.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Scenario/EndpointTests.cs diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/CHANGELOG.md b/sdk/storagemover/Azure.ResourceManager.StorageMover/CHANGELOG.md index 8b2f15284412..41785c3bb332 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/CHANGELOG.md +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/CHANGELOG.md @@ -1,14 +1,11 @@ # Release History -## 1.1.0-beta.2 (Unreleased) +## 1.1.0-beta.2 (2023-08-08) ### Features Added -### Breaking Changes - -### Bugs Fixed - -### Other Changes +- Upgrade to API version 2023-07-01-preview +- Added support for SMB endpoint and SMB file share endpoint. ## 1.1.0-beta.1 (2023-05-31) diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.netstandard2.0.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.netstandard2.0.cs index 87a0358df4f8..e1528e6440f0 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.netstandard2.0.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.netstandard2.0.cs @@ -296,30 +296,57 @@ namespace Azure.ResourceManager.StorageMover.Models public static partial class ArmStorageMoverModelFactory { public static Azure.ResourceManager.StorageMover.Models.AzureStorageBlobContainerEndpointProperties AzureStorageBlobContainerEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), string storageAccountResourceId = null, string blobContainerName = null) { throw null; } + public static Azure.ResourceManager.StorageMover.Models.AzureStorageSmbFileShareEndpointProperties AzureStorageSmbFileShareEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), Azure.Core.ResourceIdentifier storageAccountResourceId = null, string fileShareName = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties EndpointBaseProperties(string endpointType = "Unknown", string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } public static Azure.ResourceManager.StorageMover.JobDefinitionData JobDefinitionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverCopyMode copyMode = default(Azure.ResourceManager.StorageMover.Models.StorageMoverCopyMode), string sourceName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string sourceSubpath = null, string targetName = null, Azure.Core.ResourceIdentifier targetResourceId = null, string targetSubpath = null, string latestJobRunName = null, Azure.Core.ResourceIdentifier latestJobRunResourceId = null, Azure.ResourceManager.StorageMover.Models.JobRunStatus? latestJobRunStatus = default(Azure.ResourceManager.StorageMover.Models.JobRunStatus?), string agentName = null, Azure.Core.ResourceIdentifier agentResourceId = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } public static Azure.ResourceManager.StorageMover.JobRunData JobRunData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.StorageMover.Models.JobRunStatus? status = default(Azure.ResourceManager.StorageMover.Models.JobRunStatus?), Azure.ResourceManager.StorageMover.Models.JobRunScanStatus? scanStatus = default(Azure.ResourceManager.StorageMover.Models.JobRunScanStatus?), string agentName = null, Azure.Core.ResourceIdentifier agentResourceId = null, System.DateTimeOffset? executionStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? executionEndOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastStatusUpdate = default(System.DateTimeOffset?), long? itemsScanned = default(long?), long? itemsExcluded = default(long?), long? itemsUnsupported = default(long?), long? itemsNoTransferNeeded = default(long?), long? itemsFailed = default(long?), long? itemsTransferred = default(long?), long? bytesScanned = default(long?), long? bytesExcluded = default(long?), long? bytesUnsupported = default(long?), long? bytesNoTransferNeeded = default(long?), long? bytesFailed = default(long?), long? bytesTransferred = default(long?), string sourceName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, System.BinaryData sourceProperties = null, string targetName = null, Azure.Core.ResourceIdentifier targetResourceId = null, System.BinaryData targetProperties = null, System.BinaryData jobDefinitionProperties = null, Azure.ResourceManager.StorageMover.Models.JobRunError error = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } public static Azure.ResourceManager.StorageMover.Models.JobRunError JobRunError(string code = null, string message = null, string target = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.JobRunResourceId JobRunResourceId(Azure.Core.ResourceIdentifier jobRunResourceIdValue = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.NfsMountEndpointProperties NfsMountEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), string host = null, Azure.ResourceManager.StorageMover.Models.NfsVersion? nfsVersion = default(Azure.ResourceManager.StorageMover.Models.NfsVersion?), string export = null) { throw null; } + public static Azure.ResourceManager.StorageMover.Models.SmbMountEndpointProperties SmbMountEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), string host = null, string shareName = null, Azure.ResourceManager.StorageMover.Models.AzureKeyVaultSmbCredentials credentials = null) { throw null; } public static Azure.ResourceManager.StorageMover.StorageMoverAgentData StorageMoverAgentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, string agentVersion = null, string arcResourceId = null, string arcVmUuid = null, Azure.ResourceManager.StorageMover.Models.StorageMoverAgentStatus? agentStatus = default(Azure.ResourceManager.StorageMover.Models.StorageMoverAgentStatus?), System.DateTimeOffset? lastStatusUpdate = default(System.DateTimeOffset?), string localIPAddress = null, long? memoryInMB = default(long?), long? numberOfCores = default(long?), long? uptimeInSeconds = default(long?), Azure.ResourceManager.StorageMover.Models.StorageMoverAgentPropertiesErrorDetails errorDetails = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } public static Azure.ResourceManager.StorageMover.Models.StorageMoverAgentPropertiesErrorDetails StorageMoverAgentPropertiesErrorDetails(string code = null, string message = null) { throw null; } public static Azure.ResourceManager.StorageMover.StorageMoverData StorageMoverData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } public static Azure.ResourceManager.StorageMover.StorageMoverEndpointData StorageMoverEndpointData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties properties = null) { throw null; } public static Azure.ResourceManager.StorageMover.StorageMoverProjectData StorageMoverProjectData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } } + public partial class AzureKeyVaultSmbCredentials : Azure.ResourceManager.StorageMover.Models.StorageMoverCredentials + { + public AzureKeyVaultSmbCredentials() { } + public string PasswordUriString { get { throw null; } set { } } + public string UsernameUriString { get { throw null; } set { } } + } public partial class AzureStorageBlobContainerEndpointProperties : Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties { public AzureStorageBlobContainerEndpointProperties(string storageAccountResourceId, string blobContainerName) { } public string BlobContainerName { get { throw null; } set { } } public string StorageAccountResourceId { get { throw null; } set { } } } + public partial class AzureStorageBlobContainerEndpointUpdateProperties : Azure.ResourceManager.StorageMover.Models.EndpointBaseUpdateProperties + { + public AzureStorageBlobContainerEndpointUpdateProperties() { } + } + public partial class AzureStorageSmbFileShareEndpointProperties : Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties + { + public AzureStorageSmbFileShareEndpointProperties(Azure.Core.ResourceIdentifier storageAccountResourceId, string fileShareName) { } + public string FileShareName { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier StorageAccountResourceId { get { throw null; } set { } } + } + public partial class AzureStorageSmbFileShareEndpointUpdateProperties : Azure.ResourceManager.StorageMover.Models.EndpointBaseUpdateProperties + { + public AzureStorageSmbFileShareEndpointUpdateProperties() { } + } public abstract partial class EndpointBaseProperties { protected EndpointBaseProperties() { } public string Description { get { throw null; } set { } } public Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? ProvisioningState { get { throw null; } } } + public abstract partial class EndpointBaseUpdateProperties + { + protected EndpointBaseUpdateProperties() { } + public string Description { get { throw null; } set { } } + } public partial class JobDefinitionPatch { public JobDefinitionPatch() { } @@ -389,6 +416,10 @@ public NfsMountEndpointProperties(string host, string export) { } public string Host { get { throw null; } set { } } public Azure.ResourceManager.StorageMover.Models.NfsVersion? NfsVersion { get { throw null; } set { } } } + public partial class NfsMountEndpointUpdateProperties : Azure.ResourceManager.StorageMover.Models.EndpointBaseUpdateProperties + { + public NfsMountEndpointUpdateProperties() { } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct NfsVersion : System.IEquatable { @@ -408,6 +439,18 @@ public NfsMountEndpointProperties(string host, string export) { } public static bool operator !=(Azure.ResourceManager.StorageMover.Models.NfsVersion left, Azure.ResourceManager.StorageMover.Models.NfsVersion right) { throw null; } public override string ToString() { throw null; } } + public partial class SmbMountEndpointProperties : Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties + { + public SmbMountEndpointProperties(string host, string shareName) { } + public Azure.ResourceManager.StorageMover.Models.AzureKeyVaultSmbCredentials Credentials { get { throw null; } set { } } + public string Host { get { throw null; } set { } } + public string ShareName { get { throw null; } set { } } + } + public partial class SmbMountEndpointUpdateProperties : Azure.ResourceManager.StorageMover.Models.EndpointBaseUpdateProperties + { + public SmbMountEndpointUpdateProperties() { } + public Azure.ResourceManager.StorageMover.Models.AzureKeyVaultSmbCredentials Credentials { get { throw null; } set { } } + } public partial class StorageMoverAgentPatch { public StorageMoverAgentPatch() { } @@ -459,10 +502,17 @@ internal StorageMoverAgentPropertiesErrorDetails() { } public static bool operator !=(Azure.ResourceManager.StorageMover.Models.StorageMoverCopyMode left, Azure.ResourceManager.StorageMover.Models.StorageMoverCopyMode right) { throw null; } public override string ToString() { throw null; } } + public abstract partial class StorageMoverCredentials + { + protected StorageMoverCredentials() { } + } public partial class StorageMoverEndpointPatch { public StorageMoverEndpointPatch() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.ObsoleteAttribute("This method is obsolete and will be removed in a future release", false)] public string EndpointBaseUpdateDescription { get { throw null; } set { } } + public Azure.ResourceManager.StorageMover.Models.EndpointBaseUpdateProperties Properties { get { throw null; } set { } } } public partial class StorageMoverPatch { diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/assets.json b/sdk/storagemover/Azure.ResourceManager.StorageMover/assets.json index 0945ec04b0f6..7a14434b603f 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/assets.json +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/storagemover/Azure.ResourceManager.StorageMover", - "Tag": "net/storagemover/Azure.ResourceManager.StorageMover_9fad905cce" + "Tag": "net/storagemover/Azure.ResourceManager.StorageMover_a69a115eac" } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Customization/Models/StorageMoverEndpointPatch.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Customization/Models/StorageMoverEndpointPatch.cs new file mode 100644 index 000000000000..add964de9879 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Customization/Models/StorageMoverEndpointPatch.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.ComponentModel; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// The Endpoint resource. + public partial class StorageMoverEndpointPatch + { + /// A description for the Endpoint. + [Obsolete("This method is obsolete and will be removed in a future release", false)] + [EditorBrowsable(EditorBrowsableState.Never)] + public string EndpointBaseUpdateDescription + { + get => Properties is null ? default : Properties.Description; + set + { + if (Properties is null) + Properties = new UnknownEndpointBaseUpdateProperties(); + Properties.Description = value; + } + } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Customization/Models/UnknownEndpointBaseUpdateProperties.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Customization/Models/UnknownEndpointBaseUpdateProperties.cs new file mode 100644 index 000000000000..0082287e1510 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Customization/Models/UnknownEndpointBaseUpdateProperties.cs @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// The UnknownEndpointBaseUpdateProperties. + internal partial class UnknownEndpointBaseUpdateProperties : EndpointBaseUpdateProperties + { + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/ArmStorageMoverModelFactory.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/ArmStorageMoverModelFactory.cs index 9a14381c595c..5ee970775a9f 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/ArmStorageMoverModelFactory.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/ArmStorageMoverModelFactory.cs @@ -73,7 +73,7 @@ public static StorageMoverAgentPropertiesErrorDetails StorageMoverAgentPropertie /// /// The resource specific properties for the Storage Mover resource. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// The available derived classes include , , and . /// /// A new instance for mocking. public static StorageMoverEndpointData StorageMoverEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, EndpointBaseProperties properties = null) @@ -208,5 +208,28 @@ public static NfsMountEndpointProperties NfsMountEndpointProperties(string descr { return new NfsMountEndpointProperties(EndpointType.NfsMount, description, provisioningState, host, nfsVersion, export); } + + /// Initializes a new instance of AzureStorageSmbFileShareEndpointProperties. + /// A description for the Endpoint. + /// The provisioning state of this resource. + /// The Azure Resource ID of the storage account. + /// The name of the Azure Storage file share. + /// A new instance for mocking. + public static AzureStorageSmbFileShareEndpointProperties AzureStorageSmbFileShareEndpointProperties(string description = null, StorageMoverProvisioningState? provisioningState = null, ResourceIdentifier storageAccountResourceId = null, string fileShareName = null) + { + return new AzureStorageSmbFileShareEndpointProperties(EndpointType.AzureStorageSmbFileShare, description, provisioningState, storageAccountResourceId, fileShareName); + } + + /// Initializes a new instance of SmbMountEndpointProperties. + /// A description for the Endpoint. + /// The provisioning state of this resource. + /// The host name or IP address of the server exporting the file system. + /// The name of the SMB share being exported from the server. + /// The Azure Key Vault secret URIs which store the required credentials to access the SMB share. + /// A new instance for mocking. + public static SmbMountEndpointProperties SmbMountEndpointProperties(string description = null, StorageMoverProvisioningState? provisioningState = null, string host = null, string shareName = null, AzureKeyVaultSmbCredentials credentials = null) + { + return new SmbMountEndpointProperties(EndpointType.SmbMount, description, provisioningState, host, shareName, credentials); + } } } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureKeyVaultSmbCredentials.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureKeyVaultSmbCredentials.Serialization.cs new file mode 100644 index 000000000000..8d23135b78bf --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureKeyVaultSmbCredentials.Serialization.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + public partial class AzureKeyVaultSmbCredentials : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(UsernameUriString)) + { + writer.WritePropertyName("usernameUri"u8); + writer.WriteStringValue(UsernameUriString); + } + if (Optional.IsDefined(PasswordUriString)) + { + writer.WritePropertyName("passwordUri"u8); + writer.WriteStringValue(PasswordUriString); + } + writer.WritePropertyName("type"u8); + writer.WriteStringValue(CredentialType.ToString()); + writer.WriteEndObject(); + } + + internal static AzureKeyVaultSmbCredentials DeserializeAzureKeyVaultSmbCredentials(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional usernameUriString = default; + Optional passwordUriString = default; + CredentialType type = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("usernameUri"u8)) + { + usernameUriString = property.Value.GetString(); + continue; + } + if (property.NameEquals("passwordUri"u8)) + { + passwordUriString = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new CredentialType(property.Value.GetString()); + continue; + } + } + return new AzureKeyVaultSmbCredentials(type, usernameUriString.Value, passwordUriString.Value); + } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureKeyVaultSmbCredentials.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureKeyVaultSmbCredentials.cs new file mode 100644 index 000000000000..1759c84d9417 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureKeyVaultSmbCredentials.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// The Azure Key Vault secret URIs which store the credentials. + public partial class AzureKeyVaultSmbCredentials : StorageMoverCredentials + { + /// Initializes a new instance of AzureKeyVaultSmbCredentials. + public AzureKeyVaultSmbCredentials() + { + CredentialType = CredentialType.AzureKeyVaultSmb; + } + + /// Initializes a new instance of AzureKeyVaultSmbCredentials. + /// The Credentials type. + /// The Azure Key Vault secret URI which stores the username. Use empty string to clean-up existing value. + /// The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value. + internal AzureKeyVaultSmbCredentials(CredentialType credentialType, string usernameUriString, string passwordUriString) : base(credentialType) + { + UsernameUriString = usernameUriString; + PasswordUriString = passwordUriString; + CredentialType = credentialType; + } + + /// The Azure Key Vault secret URI which stores the username. Use empty string to clean-up existing value. + public string UsernameUriString { get; set; } + /// The Azure Key Vault secret URI which stores the password. Use empty string to clean-up existing value. + public string PasswordUriString { get; set; } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageBlobContainerEndpointProperties.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageBlobContainerEndpointProperties.cs index 4987b28d5cc1..6820ea1cb6ed 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageBlobContainerEndpointProperties.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageBlobContainerEndpointProperties.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.StorageMover.Models { - /// The AzureStorageBlobContainerEndpointProperties. + /// The properties of Azure Storage blob container endpoint. public partial class AzureStorageBlobContainerEndpointProperties : EndpointBaseProperties { /// Initializes a new instance of AzureStorageBlobContainerEndpointProperties. diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageBlobContainerEndpointUpdateProperties.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageBlobContainerEndpointUpdateProperties.Serialization.cs new file mode 100644 index 000000000000..b9d84278725f --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageBlobContainerEndpointUpdateProperties.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + public partial class AzureStorageBlobContainerEndpointUpdateProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("endpointType"u8); + writer.WriteStringValue(EndpointType.ToString()); + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageBlobContainerEndpointUpdateProperties.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageBlobContainerEndpointUpdateProperties.cs new file mode 100644 index 000000000000..37f10d31376c --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageBlobContainerEndpointUpdateProperties.cs @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// The AzureStorageBlobContainerEndpointUpdateProperties. + public partial class AzureStorageBlobContainerEndpointUpdateProperties : EndpointBaseUpdateProperties + { + /// Initializes a new instance of AzureStorageBlobContainerEndpointUpdateProperties. + public AzureStorageBlobContainerEndpointUpdateProperties() + { + EndpointType = EndpointType.AzureStorageBlobContainer; + } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageSmbFileShareEndpointProperties.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageSmbFileShareEndpointProperties.Serialization.cs new file mode 100644 index 000000000000..b630f5bc3dc6 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageSmbFileShareEndpointProperties.Serialization.cs @@ -0,0 +1,78 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + public partial class AzureStorageSmbFileShareEndpointProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("storageAccountResourceId"u8); + writer.WriteStringValue(StorageAccountResourceId); + writer.WritePropertyName("fileShareName"u8); + writer.WriteStringValue(FileShareName); + writer.WritePropertyName("endpointType"u8); + writer.WriteStringValue(EndpointType.ToString()); + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + writer.WriteEndObject(); + } + + internal static AzureStorageSmbFileShareEndpointProperties DeserializeAzureStorageSmbFileShareEndpointProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ResourceIdentifier storageAccountResourceId = default; + string fileShareName = default; + EndpointType endpointType = default; + Optional description = default; + Optional provisioningState = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("storageAccountResourceId"u8)) + { + storageAccountResourceId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("fileShareName"u8)) + { + fileShareName = property.Value.GetString(); + continue; + } + if (property.NameEquals("endpointType"u8)) + { + endpointType = new EndpointType(property.Value.GetString()); + continue; + } + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new StorageMoverProvisioningState(property.Value.GetString()); + continue; + } + } + return new AzureStorageSmbFileShareEndpointProperties(endpointType, description.Value, Optional.ToNullable(provisioningState), storageAccountResourceId, fileShareName); + } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageSmbFileShareEndpointProperties.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageSmbFileShareEndpointProperties.cs new file mode 100644 index 000000000000..93ad42bd6f26 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageSmbFileShareEndpointProperties.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// The properties of Azure Storage SMB file share endpoint. + public partial class AzureStorageSmbFileShareEndpointProperties : EndpointBaseProperties + { + /// Initializes a new instance of AzureStorageSmbFileShareEndpointProperties. + /// The Azure Resource ID of the storage account. + /// The name of the Azure Storage file share. + /// or is null. + public AzureStorageSmbFileShareEndpointProperties(ResourceIdentifier storageAccountResourceId, string fileShareName) + { + Argument.AssertNotNull(storageAccountResourceId, nameof(storageAccountResourceId)); + Argument.AssertNotNull(fileShareName, nameof(fileShareName)); + + StorageAccountResourceId = storageAccountResourceId; + FileShareName = fileShareName; + EndpointType = EndpointType.AzureStorageSmbFileShare; + } + + /// Initializes a new instance of AzureStorageSmbFileShareEndpointProperties. + /// The Endpoint resource type. + /// A description for the Endpoint. + /// The provisioning state of this resource. + /// The Azure Resource ID of the storage account. + /// The name of the Azure Storage file share. + internal AzureStorageSmbFileShareEndpointProperties(EndpointType endpointType, string description, StorageMoverProvisioningState? provisioningState, ResourceIdentifier storageAccountResourceId, string fileShareName) : base(endpointType, description, provisioningState) + { + StorageAccountResourceId = storageAccountResourceId; + FileShareName = fileShareName; + EndpointType = endpointType; + } + + /// The Azure Resource ID of the storage account. + public ResourceIdentifier StorageAccountResourceId { get; set; } + /// The name of the Azure Storage file share. + public string FileShareName { get; set; } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageSmbFileShareEndpointUpdateProperties.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageSmbFileShareEndpointUpdateProperties.Serialization.cs new file mode 100644 index 000000000000..5b29a8cda93d --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageSmbFileShareEndpointUpdateProperties.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + public partial class AzureStorageSmbFileShareEndpointUpdateProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("endpointType"u8); + writer.WriteStringValue(EndpointType.ToString()); + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageSmbFileShareEndpointUpdateProperties.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageSmbFileShareEndpointUpdateProperties.cs new file mode 100644 index 000000000000..1c90cb173548 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageSmbFileShareEndpointUpdateProperties.cs @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// The properties of Azure Storage SMB file share endpoint to update. + public partial class AzureStorageSmbFileShareEndpointUpdateProperties : EndpointBaseUpdateProperties + { + /// Initializes a new instance of AzureStorageSmbFileShareEndpointUpdateProperties. + public AzureStorageSmbFileShareEndpointUpdateProperties() + { + EndpointType = EndpointType.AzureStorageSmbFileShare; + } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/CredentialType.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/CredentialType.cs new file mode 100644 index 000000000000..f2e2c4c192c2 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/CredentialType.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// The Credentials type. + internal readonly partial struct CredentialType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public CredentialType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AzureKeyVaultSmbValue = "AzureKeyVaultSmb"; + + /// AzureKeyVaultSmb. + public static CredentialType AzureKeyVaultSmb { get; } = new CredentialType(AzureKeyVaultSmbValue); + /// Determines if two values are the same. + public static bool operator ==(CredentialType left, CredentialType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(CredentialType left, CredentialType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator CredentialType(string value) => new CredentialType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is CredentialType other && Equals(other); + /// + public bool Equals(CredentialType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseProperties.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseProperties.Serialization.cs index bbd084cffb2c..b52db7d06ccf 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseProperties.Serialization.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseProperties.Serialization.cs @@ -36,7 +36,9 @@ internal static EndpointBaseProperties DeserializeEndpointBaseProperties(JsonEle switch (discriminator.GetString()) { case "AzureStorageBlobContainer": return AzureStorageBlobContainerEndpointProperties.DeserializeAzureStorageBlobContainerEndpointProperties(element); + case "AzureStorageSmbFileShare": return AzureStorageSmbFileShareEndpointProperties.DeserializeAzureStorageSmbFileShareEndpointProperties(element); case "NfsMount": return NfsMountEndpointProperties.DeserializeNfsMountEndpointProperties(element); + case "SmbMount": return SmbMountEndpointProperties.DeserializeSmbMountEndpointProperties(element); } } return UnknownEndpointBaseProperties.DeserializeUnknownEndpointBaseProperties(element); diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseProperties.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseProperties.cs index fe0d69b72fea..4169fb79e8af 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseProperties.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseProperties.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.StorageMover.Models /// /// The resource specific properties for the Storage Mover resource. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// The available derived classes include , , and . /// public abstract partial class EndpointBaseProperties { diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseUpdateProperties.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseUpdateProperties.Serialization.cs index 909778a360d5..61038e695b73 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseUpdateProperties.Serialization.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseUpdateProperties.Serialization.cs @@ -10,11 +10,13 @@ namespace Azure.ResourceManager.StorageMover.Models { - internal partial class EndpointBaseUpdateProperties : IUtf8JsonSerializable + public partial class EndpointBaseUpdateProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); + writer.WritePropertyName("endpointType"u8); + writer.WriteStringValue(EndpointType.ToString()); if (Optional.IsDefined(Description)) { writer.WritePropertyName("description"u8); diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseUpdateProperties.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseUpdateProperties.cs index def899a88d6b..b00d4daa1f24 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseUpdateProperties.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseUpdateProperties.cs @@ -7,14 +7,20 @@ namespace Azure.ResourceManager.StorageMover.Models { - /// The Endpoint resource, which contains information about file sources and targets. - internal partial class EndpointBaseUpdateProperties + /// + /// The Endpoint resource, which contains information about file sources and targets. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + public abstract partial class EndpointBaseUpdateProperties { /// Initializes a new instance of EndpointBaseUpdateProperties. - public EndpointBaseUpdateProperties() + protected EndpointBaseUpdateProperties() { } + /// The Endpoint resource type. + internal EndpointType EndpointType { get; set; } /// A description for the Endpoint. public string Description { get; set; } } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointType.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointType.cs index 68db4ff329c5..68ab592cd48b 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointType.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointType.cs @@ -24,11 +24,17 @@ public EndpointType(string value) private const string AzureStorageBlobContainerValue = "AzureStorageBlobContainer"; private const string NfsMountValue = "NfsMount"; + private const string AzureStorageSmbFileShareValue = "AzureStorageSmbFileShare"; + private const string SmbMountValue = "SmbMount"; /// AzureStorageBlobContainer. public static EndpointType AzureStorageBlobContainer { get; } = new EndpointType(AzureStorageBlobContainerValue); /// NfsMount. public static EndpointType NfsMount { get; } = new EndpointType(NfsMountValue); + /// AzureStorageSmbFileShare. + public static EndpointType AzureStorageSmbFileShare { get; } = new EndpointType(AzureStorageSmbFileShareValue); + /// SmbMount. + public static EndpointType SmbMount { get; } = new EndpointType(SmbMountValue); /// Determines if two values are the same. public static bool operator ==(EndpointType left, EndpointType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/NfsMountEndpointProperties.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/NfsMountEndpointProperties.cs index 1d1822e8ba5f..194f6d99c30c 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/NfsMountEndpointProperties.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/NfsMountEndpointProperties.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.StorageMover.Models { - /// The NfsMountEndpointProperties. + /// The properties of NFS share endpoint. public partial class NfsMountEndpointProperties : EndpointBaseProperties { /// Initializes a new instance of NfsMountEndpointProperties. diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/NfsMountEndpointUpdateProperties.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/NfsMountEndpointUpdateProperties.Serialization.cs new file mode 100644 index 000000000000..8f67dd7cc6fa --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/NfsMountEndpointUpdateProperties.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + public partial class NfsMountEndpointUpdateProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("endpointType"u8); + writer.WriteStringValue(EndpointType.ToString()); + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/NfsMountEndpointUpdateProperties.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/NfsMountEndpointUpdateProperties.cs new file mode 100644 index 000000000000..b6d4e29b6d11 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/NfsMountEndpointUpdateProperties.cs @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// The NfsMountEndpointUpdateProperties. + public partial class NfsMountEndpointUpdateProperties : EndpointBaseUpdateProperties + { + /// Initializes a new instance of NfsMountEndpointUpdateProperties. + public NfsMountEndpointUpdateProperties() + { + EndpointType = EndpointType.NfsMount; + } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SmbMountEndpointProperties.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SmbMountEndpointProperties.Serialization.cs new file mode 100644 index 000000000000..34ee22829e68 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SmbMountEndpointProperties.Serialization.cs @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + public partial class SmbMountEndpointProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("host"u8); + writer.WriteStringValue(Host); + writer.WritePropertyName("shareName"u8); + writer.WriteStringValue(ShareName); + if (Optional.IsDefined(Credentials)) + { + writer.WritePropertyName("credentials"u8); + writer.WriteObjectValue(Credentials); + } + writer.WritePropertyName("endpointType"u8); + writer.WriteStringValue(EndpointType.ToString()); + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + writer.WriteEndObject(); + } + + internal static SmbMountEndpointProperties DeserializeSmbMountEndpointProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string host = default; + string shareName = default; + Optional credentials = default; + EndpointType endpointType = default; + Optional description = default; + Optional provisioningState = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("host"u8)) + { + host = property.Value.GetString(); + continue; + } + if (property.NameEquals("shareName"u8)) + { + shareName = property.Value.GetString(); + continue; + } + if (property.NameEquals("credentials"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + credentials = AzureKeyVaultSmbCredentials.DeserializeAzureKeyVaultSmbCredentials(property.Value); + continue; + } + if (property.NameEquals("endpointType"u8)) + { + endpointType = new EndpointType(property.Value.GetString()); + continue; + } + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new StorageMoverProvisioningState(property.Value.GetString()); + continue; + } + } + return new SmbMountEndpointProperties(endpointType, description.Value, Optional.ToNullable(provisioningState), host, shareName, credentials.Value); + } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SmbMountEndpointProperties.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SmbMountEndpointProperties.cs new file mode 100644 index 000000000000..9ff4ea2c7841 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SmbMountEndpointProperties.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// The properties of SMB share endpoint. + public partial class SmbMountEndpointProperties : EndpointBaseProperties + { + /// Initializes a new instance of SmbMountEndpointProperties. + /// The host name or IP address of the server exporting the file system. + /// The name of the SMB share being exported from the server. + /// or is null. + public SmbMountEndpointProperties(string host, string shareName) + { + Argument.AssertNotNull(host, nameof(host)); + Argument.AssertNotNull(shareName, nameof(shareName)); + + Host = host; + ShareName = shareName; + EndpointType = EndpointType.SmbMount; + } + + /// Initializes a new instance of SmbMountEndpointProperties. + /// The Endpoint resource type. + /// A description for the Endpoint. + /// The provisioning state of this resource. + /// The host name or IP address of the server exporting the file system. + /// The name of the SMB share being exported from the server. + /// The Azure Key Vault secret URIs which store the required credentials to access the SMB share. + internal SmbMountEndpointProperties(EndpointType endpointType, string description, StorageMoverProvisioningState? provisioningState, string host, string shareName, AzureKeyVaultSmbCredentials credentials) : base(endpointType, description, provisioningState) + { + Host = host; + ShareName = shareName; + Credentials = credentials; + EndpointType = endpointType; + } + + /// The host name or IP address of the server exporting the file system. + public string Host { get; set; } + /// The name of the SMB share being exported from the server. + public string ShareName { get; set; } + /// The Azure Key Vault secret URIs which store the required credentials to access the SMB share. + public AzureKeyVaultSmbCredentials Credentials { get; set; } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SmbMountEndpointUpdateProperties.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SmbMountEndpointUpdateProperties.Serialization.cs new file mode 100644 index 000000000000..8c70ccd6bf33 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SmbMountEndpointUpdateProperties.Serialization.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + public partial class SmbMountEndpointUpdateProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Credentials)) + { + writer.WritePropertyName("credentials"u8); + writer.WriteObjectValue(Credentials); + } + writer.WritePropertyName("endpointType"u8); + writer.WriteStringValue(EndpointType.ToString()); + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SmbMountEndpointUpdateProperties.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SmbMountEndpointUpdateProperties.cs new file mode 100644 index 000000000000..365955601657 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SmbMountEndpointUpdateProperties.cs @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// The properties of SMB share endpoint to update. + public partial class SmbMountEndpointUpdateProperties : EndpointBaseUpdateProperties + { + /// Initializes a new instance of SmbMountEndpointUpdateProperties. + public SmbMountEndpointUpdateProperties() + { + EndpointType = EndpointType.SmbMount; + } + + /// The Azure Key Vault secret URIs which store the required credentials to access the SMB share. + public AzureKeyVaultSmbCredentials Credentials { get; set; } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverCredentials.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverCredentials.Serialization.cs new file mode 100644 index 000000000000..123b6e3cf4cc --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverCredentials.Serialization.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + public partial class StorageMoverCredentials : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"u8); + writer.WriteStringValue(CredentialType.ToString()); + writer.WriteEndObject(); + } + + internal static StorageMoverCredentials DeserializeStorageMoverCredentials(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("type", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "AzureKeyVaultSmb": return AzureKeyVaultSmbCredentials.DeserializeAzureKeyVaultSmbCredentials(element); + } + } + return UnknownCredentials.DeserializeUnknownCredentials(element); + } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverCredentials.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverCredentials.cs new file mode 100644 index 000000000000..fd6334c444fe --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverCredentials.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// + /// The Credentials. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public abstract partial class StorageMoverCredentials + { + /// Initializes a new instance of StorageMoverCredentials. + protected StorageMoverCredentials() + { + } + + /// Initializes a new instance of StorageMoverCredentials. + /// The Credentials type. + internal StorageMoverCredentials(CredentialType credentialType) + { + CredentialType = credentialType; + } + + /// The Credentials type. + internal CredentialType CredentialType { get; set; } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverEndpointPatch.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverEndpointPatch.cs index 125572b68c27..61af6784ca2b 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverEndpointPatch.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverEndpointPatch.cs @@ -15,18 +15,11 @@ public StorageMoverEndpointPatch() { } - /// The Endpoint resource, which contains information about file sources and targets. - internal EndpointBaseUpdateProperties Properties { get; set; } - /// A description for the Endpoint. - public string EndpointBaseUpdateDescription - { - get => Properties is null ? default : Properties.Description; - set - { - if (Properties is null) - Properties = new EndpointBaseUpdateProperties(); - Properties.Description = value; - } - } + /// + /// The Endpoint resource, which contains information about file sources and targets. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + public EndpointBaseUpdateProperties Properties { get; set; } } } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/UnknownCredentials.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/UnknownCredentials.Serialization.cs new file mode 100644 index 000000000000..151d876072f4 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/UnknownCredentials.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + internal partial class UnknownCredentials : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"u8); + writer.WriteStringValue(CredentialType.ToString()); + writer.WriteEndObject(); + } + + internal static UnknownCredentials DeserializeUnknownCredentials(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + CredentialType type = "Unknown"; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type"u8)) + { + type = new CredentialType(property.Value.GetString()); + continue; + } + } + return new UnknownCredentials(type); + } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/UnknownCredentials.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/UnknownCredentials.cs new file mode 100644 index 000000000000..938dea57c446 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/UnknownCredentials.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// The UnknownCredentials. + internal partial class UnknownCredentials : StorageMoverCredentials + { + /// Initializes a new instance of UnknownCredentials. + /// The Credentials type. + internal UnknownCredentials(CredentialType credentialType) : base(credentialType) + { + CredentialType = credentialType; + } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/AgentsRestOperations.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/AgentsRestOperations.cs index 066e0782f93a..58a228ebb21b 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/AgentsRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/AgentsRestOperations.cs @@ -33,7 +33,7 @@ public AgentsRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/EndpointsRestOperations.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/EndpointsRestOperations.cs index cada89bec20d..d9e86467d3b1 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/EndpointsRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/EndpointsRestOperations.cs @@ -33,7 +33,7 @@ public EndpointsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobDefinitionsRestOperations.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobDefinitionsRestOperations.cs index 858f3599a854..8fba4aa8fc60 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobDefinitionsRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobDefinitionsRestOperations.cs @@ -33,7 +33,7 @@ public JobDefinitionsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobRunsRestOperations.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobRunsRestOperations.cs index 5697665f3fab..e1fd6316c7aa 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobRunsRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobRunsRestOperations.cs @@ -33,7 +33,7 @@ public JobRunsRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/ProjectsRestOperations.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/ProjectsRestOperations.cs index 6aff90eb1777..e3ce1e27b95f 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/ProjectsRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/ProjectsRestOperations.cs @@ -33,7 +33,7 @@ public ProjectsRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/StorageMoversRestOperations.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/StorageMoversRestOperations.cs index bf02debda1ed..9ca339d2e561 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/StorageMoversRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/StorageMoversRestOperations.cs @@ -33,7 +33,7 @@ public StorageMoversRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-03-01"; + _apiVersion = apiVersion ?? "2023-07-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointData.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointData.cs index fdd2d28bea11..07e56a8770ba 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointData.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointData.cs @@ -22,7 +22,7 @@ public partial class StorageMoverEndpointData : ResourceData /// /// The resource specific properties for the Storage Mover resource. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// The available derived classes include , , and . /// /// is null. public StorageMoverEndpointData(EndpointBaseProperties properties) @@ -40,7 +40,7 @@ public StorageMoverEndpointData(EndpointBaseProperties properties) /// /// The resource specific properties for the Storage Mover resource. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// The available derived classes include , , and . /// internal StorageMoverEndpointData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, EndpointBaseProperties properties) : base(id, name, resourceType, systemData) { @@ -50,7 +50,7 @@ internal StorageMoverEndpointData(ResourceIdentifier id, string name, ResourceTy /// /// The resource specific properties for the Storage Mover resource. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// The available derived classes include , , and . /// public EndpointBaseProperties Properties { get; set; } } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/autorest.md b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/autorest.md index 6c628e493225..9b160fc3c2b4 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/autorest.md +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/autorest.md @@ -7,7 +7,7 @@ azure-arm: true csharp: true library-name: StorageMover namespace: Azure.ResourceManager.StorageMover -require: https://github.com/Azure/azure-rest-api-specs/blob/0b1805b3ce076549ba4e9285a4f0f8727caf53a5/specification/storagemover/resource-manager/readme.md +require: https://github.com/Azure/azure-rest-api-specs/blob/ed9bde6a3db71b84fdba076ba0546213bcce56ee/specification/storagemover/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true @@ -22,6 +22,7 @@ rename-mapping: AgentStatus: StorageMoverAgentStatus CopyMode: StorageMoverCopyMode ProvisioningState: StorageMoverProvisioningState + Credentials : StorageMoverCredentials JobDefinition.properties.agentResourceId: -|arm-id JobDefinition.properties.latestJobRunResourceId: -|arm-id JobDefinition.properties.targetResourceId: -|arm-id @@ -30,12 +31,12 @@ rename-mapping: JobRun.properties.sourceResourceId: -|arm-id JobRun.properties.targetResourceId: -|arm-id JobRunResourceId.jobRunResourceId: -|arm-id + AzureStorageBlobContainerEndpointProperties.storageAccountResourceId: -|string format-by-name-rules: 'tenantId': 'uuid' 'ETag': 'etag' 'location': 'azure-location' - '*Uri': 'Uri' '*Uris': 'Uri' rename-rules: @@ -60,5 +61,6 @@ rename-rules: SSO: Sso URI: Uri Etag: ETag|etag - + PasswordUri: PasswordUriString + UsernameUri: UsernameUriString ``` diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Scenario/EndpointCollectionTests.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Scenario/EndpointCollectionTests.cs deleted file mode 100644 index 65355e01cf65..000000000000 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Scenario/EndpointCollectionTests.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System.Threading.Tasks; -using Azure.Core.TestFramework; -using Azure.ResourceManager.Resources; -using Azure.ResourceManager.StorageMover.Models; -using NUnit.Framework; - -namespace Azure.ResourceManager.StorageMover.Tests.Scenario -{ - public class EndpointCollectionTests : StorageMoverManagementTestBase - { - public EndpointCollectionTests(bool isAsync) - : base(isAsync) //, RecordedTestMode.Record) - { - } - - [Test] - [RecordedTest] - public async Task CreateUpdateGetTest() - { - ResourceGroupResource resourceGroup = await GetResourceGroupAsync(ResourceGroupName); - StorageMoverCollection storageMovers = resourceGroup.GetStorageMovers(); - StorageMoverEndpointCollection endpoints = (await storageMovers.GetAsync(StorageMoverName)).Value.GetStorageMoverEndpoints(); - - string cEndpointName = Recording.GenerateAssetName("conendpoint-"); - string nfsEndpointName = Recording.GenerateAssetName("nfsendpoint-"); - string accountResourceId = DefaultSubscription.Id.ToString() + "/resourceGroups/" + ResourceGroupName + - "/providers/Microsoft.Storage/storageAccounts/" + StorageAccountName; - - AzureStorageBlobContainerEndpointProperties containerEndpointProperties = - new AzureStorageBlobContainerEndpointProperties(accountResourceId, ContainerName); - StorageMoverEndpointData data = new StorageMoverEndpointData(containerEndpointProperties); - StorageMoverEndpointResource cEndpoint = (await endpoints.CreateOrUpdateAsync(WaitUntil.Completed, cEndpointName, data)).Value; - Assert.AreEqual(cEndpoint.Data.Name, cEndpointName); - Assert.AreEqual("AzureStorageBlobContainer", cEndpoint.Data.Properties.EndpointType.ToString()); - - NfsMountEndpointProperties nfsMountEndpointProperties = new NfsMountEndpointProperties("10.0.0.1", "/"); - data = new StorageMoverEndpointData(nfsMountEndpointProperties); - StorageMoverEndpointResource nfsEndpoint = (await endpoints.CreateOrUpdateAsync(WaitUntil.Completed, nfsEndpointName, data)).Value; - Assert.AreEqual(nfsEndpoint.Data.Name, nfsEndpointName); - Assert.AreEqual("NfsMount", nfsEndpoint.Data.Properties.EndpointType.ToString()); - - cEndpoint = (await endpoints.GetAsync(cEndpointName)).Value; - Assert.AreEqual(cEndpoint.Data.Name, cEndpointName); - Assert.AreEqual("AzureStorageBlobContainer", cEndpoint.Data.Properties.EndpointType.ToString()); - - int counter = 0; - await foreach (StorageMoverEndpointResource _ in endpoints.GetAllAsync()) - { - counter++; - } - Assert.Greater(counter, 1); - - Assert.IsTrue(await endpoints.ExistsAsync(cEndpointName)); - Assert.IsFalse(await endpoints.ExistsAsync(cEndpointName + "111")); - } - } -} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Scenario/EndpointResourceTests.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Scenario/EndpointResourceTests.cs deleted file mode 100644 index 12903f8e6ad1..000000000000 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Scenario/EndpointResourceTests.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System.Threading.Tasks; -using Azure.Core.TestFramework; -using Azure.ResourceManager.Resources; -using Azure.ResourceManager.StorageMover.Models; -using NUnit.Framework; - -namespace Azure.ResourceManager.StorageMover.Tests.Scenario -{ - public class EndpointResourceTests : StorageMoverManagementTestBase - { - public EndpointResourceTests(bool isAsync) - : base(isAsync) //, RecordedTestMode.Record) - { - } - - [Test] - [RecordedTest] - public async Task GetUpdateDeleteTest() - { - ResourceGroupResource resourceGroup = await GetResourceGroupAsync(ResourceGroupName); - StorageMoverCollection storageMovers = resourceGroup.GetStorageMovers(); - StorageMoverEndpointCollection endpoints = (await storageMovers.GetAsync(StorageMoverName)).Value.GetStorageMoverEndpoints(); - - string accountResourceId = DefaultSubscription.Id.ToString() + "/resourceGroups/" + ResourceGroupName + - "/providers/Microsoft.Storage/storageAccounts/" + StorageAccountName; - - string endpointName = Recording.GenerateAssetName("endpoint-"); - AzureStorageBlobContainerEndpointProperties containerEndpointProperties = - new AzureStorageBlobContainerEndpointProperties(accountResourceId, ContainerName); - StorageMoverEndpointData data = new StorageMoverEndpointData(containerEndpointProperties); - StorageMoverEndpointResource endpoint1 = (await endpoints.CreateOrUpdateAsync(WaitUntil.Completed, endpointName, data)).Value; - StorageMoverEndpointResource endpoint2 = (await endpoint1.GetAsync()).Value; - Assert.AreEqual(endpoint1.Data.Name, endpoint2.Data.Name); - Assert.AreEqual(endpoint1.Data.Properties.Description, endpoint2.Data.Properties.Description); - Assert.AreEqual(endpoint1.Id.Name, endpoint2.Id.Name); - Assert.AreEqual(endpoint1.Id.Location, endpoint2.Id.Location); - - StorageMoverEndpointPatch patch = new(); - patch.Properties = new EndpointBaseUpdateProperties(); - patch.Properties.Description = "this is an updated endpoint"; - endpoint1 = (await endpoint1.UpdateAsync(patch)).Value; - Assert.AreEqual("this is an updated endpoint", endpoint1.Data.Properties.Description); - - await endpoint1.DeleteAsync(WaitUntil.Completed); - Assert.IsFalse(await endpoints.ExistsAsync(endpointName)); - } - } -} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Scenario/EndpointTests.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Scenario/EndpointTests.cs new file mode 100644 index 000000000000..b15db92b456c --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Scenario/EndpointTests.cs @@ -0,0 +1,143 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Threading.Tasks; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Resources; +using Azure.ResourceManager.StorageMover.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.StorageMover.Tests.Scenario +{ + public class EndpointTests : StorageMoverManagementTestBase + { + public EndpointTests(bool isAsync) + : base(isAsync) //, RecordedTestMode.Record) + { + } + + [Test] + [RecordedTest] + public async Task CreateUpdateGetDeleteTest() + { + ResourceGroupResource resourceGroup = await GetResourceGroupAsync(ResourceGroupName); + StorageMoverCollection storageMovers = resourceGroup.GetStorageMovers(); + StorageMoverEndpointCollection endpoints = (await storageMovers.GetAsync(StorageMoverName)).Value.GetStorageMoverEndpoints(); + + string cEndpointName = Recording.GenerateAssetName("conendpoint-"); + string nfsEndpointName = Recording.GenerateAssetName("nfsendpoint-"); + string smbEndpointName = Recording.GenerateAssetName("smbendpoint-"); + string fsEndpointName = Recording.GenerateAssetName("fsendpoint-"); + string accountResourceId = DefaultSubscription.Id.ToString() + "/resourceGroups/" + ResourceGroupName + + "/providers/Microsoft.Storage/storageAccounts/" + StorageAccountName; + + // Create and get a container endpoint + AzureStorageBlobContainerEndpointProperties containerEndpointProperties = + new AzureStorageBlobContainerEndpointProperties(accountResourceId, ContainerName); + StorageMoverEndpointData data = new StorageMoverEndpointData(containerEndpointProperties); + data.Properties.Description = "New container endpoint"; + StorageMoverEndpointResource cEndpoint = (await endpoints.CreateOrUpdateAsync(WaitUntil.Completed, cEndpointName, data)).Value; + Assert.AreEqual(cEndpoint.Data.Name, cEndpointName); + Assert.AreEqual("AzureStorageBlobContainer", cEndpoint.Data.Properties.EndpointType.ToString()); + + StorageMoverEndpointResource cEndpoint2 = (await cEndpoint.GetAsync()).Value; + Assert.AreEqual(cEndpoint2.Data.Name, cEndpointName); + Assert.AreEqual(cEndpoint2.Data.Properties.EndpointType.ToString(), "AzureStorageBlobContainer"); + + cEndpoint = (await endpoints.GetAsync(cEndpointName)).Value; + Assert.AreEqual(cEndpoint.Data.Name, cEndpointName); + Assert.AreEqual("AzureStorageBlobContainer", cEndpoint.Data.Properties.EndpointType.ToString()); + + // Create and get a NFS endpoint + NfsMountEndpointProperties nfsMountEndpointProperties = new NfsMountEndpointProperties("10.0.0.1", "/"); + data = new StorageMoverEndpointData(nfsMountEndpointProperties); + data.Properties.Description = "New NFS endpoint"; + StorageMoverEndpointResource nfsEndpoint = (await endpoints.CreateOrUpdateAsync(WaitUntil.Completed, nfsEndpointName, data)).Value; + Assert.AreEqual(nfsEndpoint.Data.Name, nfsEndpointName); + Assert.AreEqual("NfsMount", nfsEndpoint.Data.Properties.EndpointType.ToString()); + Assert.AreEqual(((NfsMountEndpointProperties)nfsEndpoint.Data.Properties).Export, "/"); + Assert.AreEqual(((NfsMountEndpointProperties)nfsEndpoint.Data.Properties).Host, "10.0.0.1"); + + nfsEndpoint = (await endpoints.GetAsync(nfsEndpointName)).Value; + Assert.AreEqual(nfsEndpoint.Data.Name, nfsEndpointName); + Assert.AreEqual("NfsMount", nfsEndpoint.Data.Properties.EndpointType.ToString()); + Assert.AreEqual(((NfsMountEndpointProperties)nfsEndpoint.Data.Properties).Export, "/"); + Assert.AreEqual(((NfsMountEndpointProperties)nfsEndpoint.Data.Properties).Host, "10.0.0.1"); + + // Create, get, update and delete a SMB endpoint + SmbMountEndpointProperties smbMountEndpointProperties = new SmbMountEndpointProperties("10.0.0.1", "testshare"); + AzureKeyVaultSmbCredentials credentials = new AzureKeyVaultSmbCredentials + { + UsernameUriString = "https://examples-azureKeyVault.vault.azure.net/secrets/examples-username", + PasswordUriString = "https://examples-azureKeyVault.vault.azure.net/secrets/examples-password", + }; + data = new StorageMoverEndpointData(smbMountEndpointProperties); + smbMountEndpointProperties.Credentials = credentials; + data.Properties.Description = "New Smb mount endpoint"; + StorageMoverEndpointResource smbEndpoint = (await endpoints.CreateOrUpdateAsync(WaitUntil.Completed, smbEndpointName, data)).Value; + Assert.AreEqual(smbEndpoint.Data.Name, smbEndpointName); + Assert.AreEqual(smbEndpoint.Data.Properties.EndpointType.ToString(), "SmbMount"); + Assert.AreEqual(((SmbMountEndpointProperties)smbEndpoint.Data.Properties).Credentials.UsernameUriString, "https://examples-azureKeyVault.vault.azure.net/secrets/examples-username"); + Assert.AreEqual(((SmbMountEndpointProperties)smbEndpoint.Data.Properties).Credentials.PasswordUriString, "https://examples-azureKeyVault.vault.azure.net/secrets/examples-password"); + Assert.AreEqual(((SmbMountEndpointProperties)smbEndpoint.Data.Properties).Host, "10.0.0.1"); + Assert.AreEqual(((SmbMountEndpointProperties)smbEndpoint.Data.Properties).ShareName, "testshare"); + + smbEndpoint = (await endpoints.GetAsync(smbEndpointName)).Value; + Assert.AreEqual(smbEndpoint.Data.Name, smbEndpointName); + Assert.AreEqual(smbEndpoint.Data.Properties.EndpointType.ToString(), "SmbMount"); + Assert.AreEqual(((SmbMountEndpointProperties)smbEndpoint.Data.Properties).Credentials.UsernameUriString, "https://examples-azureKeyVault.vault.azure.net/secrets/examples-username"); + Assert.AreEqual(((SmbMountEndpointProperties)smbEndpoint.Data.Properties).Credentials.PasswordUriString, "https://examples-azureKeyVault.vault.azure.net/secrets/examples-password"); + Assert.AreEqual(((SmbMountEndpointProperties)smbEndpoint.Data.Properties).Host, "10.0.0.1"); + Assert.AreEqual(((SmbMountEndpointProperties)smbEndpoint.Data.Properties).ShareName, "testshare"); + + credentials.UsernameUriString = ""; + credentials.PasswordUriString = ""; + SmbMountEndpointUpdateProperties updateProperties = new SmbMountEndpointUpdateProperties + { + Credentials = credentials, + Description = "Update endpoint", + }; + StorageMoverEndpointPatch patch = new StorageMoverEndpointPatch + { + Properties = updateProperties, + }; + patch.Properties = updateProperties; + smbEndpoint = (await smbEndpoint.UpdateAsync(patch)).Value; + Assert.AreEqual(smbEndpoint.Data.Name, smbEndpointName); + Assert.AreEqual(smbEndpoint.Data.Properties.EndpointType.ToString(), "SmbMount"); + Assert.AreEqual(((SmbMountEndpointProperties)smbEndpoint.Data.Properties).Credentials.PasswordUriString, ""); + Assert.AreEqual(((SmbMountEndpointProperties)smbEndpoint.Data.Properties).Credentials.UsernameUriString, ""); + Assert.AreEqual(((SmbMountEndpointProperties)smbEndpoint.Data.Properties).Host, "10.0.0.1"); + Assert.AreEqual(((SmbMountEndpointProperties)smbEndpoint.Data.Properties).ShareName, "testshare"); + + await smbEndpoint.DeleteAsync(WaitUntil.Completed); + + // Create and get a file share endpoint + AzureStorageSmbFileShareEndpointProperties fileShareEndpointProperties = new AzureStorageSmbFileShareEndpointProperties(new Core.ResourceIdentifier(accountResourceId), "testfileshare"); + data = new StorageMoverEndpointData(fileShareEndpointProperties); + data.Properties.Description = "new file share endpoint"; + StorageMoverEndpointResource fsEndpoint = (await endpoints.CreateOrUpdateAsync(WaitUntil.Completed, fsEndpointName, data)).Value; + Assert.AreEqual(fsEndpoint.Data.Name, fsEndpointName); + Assert.AreEqual(fsEndpoint.Data.Properties.EndpointType.ToString(), "AzureStorageSmbFileShare"); + Assert.AreEqual(((AzureStorageSmbFileShareEndpointProperties)fsEndpoint.Data.Properties).FileShareName, "testfileshare"); + Assert.AreEqual(((AzureStorageSmbFileShareEndpointProperties)fsEndpoint.Data.Properties).Description, "new file share endpoint"); + + fsEndpoint = (await endpoints.GetAsync(fsEndpointName)).Value; + Assert.AreEqual(fsEndpoint.Data.Name, fsEndpointName); + Assert.AreEqual(fsEndpoint.Data.Properties.EndpointType.ToString(), "AzureStorageSmbFileShare"); + Assert.AreEqual(((AzureStorageSmbFileShareEndpointProperties)fsEndpoint.Data.Properties).FileShareName, "testfileshare"); + Assert.AreEqual(((AzureStorageSmbFileShareEndpointProperties)fsEndpoint.Data.Properties).Description, "new file share endpoint"); + + int counter = 0; + await foreach (StorageMoverEndpointResource _ in endpoints.GetAllAsync()) + { + counter++; + } + Assert.Greater(counter, 1); + + Assert.IsTrue(await endpoints.ExistsAsync(cEndpointName)); + Assert.IsFalse(await endpoints.ExistsAsync(cEndpointName + "111")); + Assert.IsFalse(await endpoints.ExistsAsync(smbEndpointName)); + } + } +} From b69e9e4a6c437cd96b56a8a8c80a09de3c7f402e Mon Sep 17 00:00:00 2001 From: Arthur Ma Date: Wed, 2 Aug 2023 18:26:36 +0800 Subject: [PATCH 21/54] [DataFactory] Polish and prepare for new beta release (#37958) --- .../CHANGELOG.md | 6 +- .../README.md | 4 +- ...ourceManager.DataFactory.netstandard2.0.cs | 1591 +++++++++-------- ..._DataFactoryChangeDataCaptureCollection.cs | 122 ++ ...le_DataFactoryChangeDataCaptureResource.cs | 164 ++ .../Sample_DataFactoryDataFlowCollection.cs | 4 +- .../Sample_DataFactoryDataFlowResource.cs | 4 +- ...le_DataFactoryGlobalParameterCollection.cs | 8 +- ...mple_DataFactoryGlobalParameterResource.cs | 8 +- ...e_DataFactoryIntegrationRuntimeResource.cs | 2 +- ...toryManagedIdentityCredentialCollection.cs | 4 +- ...actoryManagedIdentityCredentialResource.cs | 4 +- ...aFactoryManagedVirtualNetworkCollection.cs | 2 +- ...ataFactoryManagedVirtualNetworkResource.cs | 2 +- .../Sample_DataFactoryPipelineCollection.cs | 4 +- .../Sample_DataFactoryPipelineResource.cs | 4 +- ...le_DataFactoryPrivateEndpointCollection.cs | 2 +- ...mple_DataFactoryPrivateEndpointResource.cs | 2 +- .../Samples/Sample_DataFactoryResource.cs | 14 +- .../Sample_DataFactoryTriggerCollection.cs | 8 +- .../Sample_DataFactoryTriggerResource.cs | 8 +- .../samples/autorest.tests.md | 2 + .../DataFactoryChangeDataCaptureCollection.cs | 346 ++++ .../DataFactoryChangeDataCaptureData.cs | 128 ++ .../DataFactoryChangeDataCaptureResource.cs | 481 +++++ .../src/Generated/DataFactoryData.cs | 6 +- .../src/Generated/DataFactoryDataFlowData.cs | 18 +- .../src/Generated/DataFactoryDatasetData.cs | 18 +- .../DataFactoryGlobalParameterData.cs | 6 +- .../DataFactoryIntegrationRuntimeData.cs | 12 +- .../Generated/DataFactoryLinkedServiceData.cs | 12 +- ...ataFactoryManagedIdentityCredentialData.cs | 6 +- .../DataFactoryManagedVirtualNetworkData.cs | 6 +- .../src/Generated/DataFactoryPipelineData.cs | 14 +- ...ataFactoryPrivateEndpointConnectionData.cs | 4 +- .../DataFactoryPrivateEndpointData.cs | 6 +- .../src/Generated/DataFactoryResource.cs | 67 +- .../src/Generated/DataFactoryTriggerData.cs | 18 +- .../Extensions/DataFactoryExtensions.cs | 39 +- .../SubscriptionResourceExtensionClient.cs | 12 +- ...veMarkA.cs => ActivityOnInactiveMarkAs.cs} | 28 +- .../src/Generated/Models/ActivityState.cs | 51 - .../AmazonMwsLinkedService.Serialization.cs | 14 +- .../Models/AmazonMwsLinkedService.cs | 37 +- .../Models/AmazonMwsObjectDataset.cs | 2 +- ...RdsForOracleLinkedService.Serialization.cs | 14 +- .../Models/AmazonRdsForOracleLinkedService.cs | 37 +- .../Models/AmazonRdsForOracleTableDataset.cs | 2 +- ...ForSqlServerLinkedService.Serialization.cs | 14 +- .../AmazonRdsForSqlServerLinkedService.cs | 37 +- .../AmazonRdsForSqlServerTableDataset.cs | 2 +- ...azonRedshiftLinkedService.Serialization.cs | 14 +- .../Models/AmazonRedshiftLinkedService.cs | 37 +- .../Models/AmazonRedshiftTableDataset.cs | 2 +- ...S3CompatibleLinkedService.Serialization.cs | 14 +- .../Models/AmazonS3CompatibleLinkedService.cs | 37 +- .../src/Generated/Models/AmazonS3Dataset.cs | 2 +- .../AmazonS3LinkedService.Serialization.cs | 14 +- .../Generated/Models/AmazonS3LinkedService.cs | 37 +- .../Models/AppFiguresLinkedService.cs | 2 +- .../AppendVariableActivity.Serialization.cs | 20 +- .../Models/AppendVariableActivity.cs | 2 +- .../AsanaLinkedService.Serialization.cs | 14 +- .../Generated/Models/AsanaLinkedService.cs | 37 +- .../src/Generated/Models/AvroDataset.cs | 2 +- .../AzureBatchLinkedService.Serialization.cs | 14 +- .../Models/AzureBatchLinkedService.cs | 37 +- .../src/Generated/Models/AzureBlobDataset.cs | 2 +- .../Generated/Models/AzureBlobFSDataset.cs | 2 +- .../AzureBlobFSLinkedService.Serialization.cs | 14 +- .../Models/AzureBlobFSLinkedService.cs | 37 +- ...eBlobStorageLinkedService.Serialization.cs | 14 +- .../Models/AzureBlobStorageLinkedService.cs | 37 +- ...taExplorerCommandActivity.Serialization.cs | 24 +- .../AzureDataExplorerCommandActivity.cs | 2 +- .../Models/AzureDataExplorerLinkedService.cs | 2 +- .../Models/AzureDataExplorerTableDataset.cs | 2 +- ...akeAnalyticsLinkedService.Serialization.cs | 14 +- .../AzureDataLakeAnalyticsLinkedService.cs | 37 +- .../Models/AzureDataLakeStoreDataset.cs | 2 +- ...ataLakeStoreLinkedService.Serialization.cs | 14 +- .../Models/AzureDataLakeStoreLinkedService.cs | 37 +- .../Models/AzureDatabricksDeltaLakeDataset.cs | 2 +- ...cksDeltaLakeLinkedService.Serialization.cs | 14 +- .../AzureDatabricksDeltaLakeLinkedService.cs | 37 +- ...reDatabricksLinkedService.Serialization.cs | 14 +- .../Models/AzureDatabricksLinkedService.cs | 37 +- ...eFileStorageLinkedService.Serialization.cs | 14 +- .../Models/AzureFileStorageLinkedService.cs | 37 +- .../AzureFunctionActivity.Serialization.cs | 24 +- .../Generated/Models/AzureFunctionActivity.cs | 2 +- ...zureFunctionLinkedService.Serialization.cs | 14 +- .../Models/AzureFunctionLinkedService.cs | 37 +- .../Models/AzureKeyVaultLinkedService.cs | 2 +- ...eMLBatchExecutionActivity.Serialization.cs | 24 +- .../Models/AzureMLBatchExecutionActivity.cs | 2 +- ...MLExecutePipelineActivity.Serialization.cs | 40 +- .../Models/AzureMLExecutePipelineActivity.cs | 18 +- .../AzureMLLinkedService.Serialization.cs | 16 +- .../Generated/Models/AzureMLLinkedService.cs | 43 +- ...ureMLServiceLinkedService.Serialization.cs | 33 +- .../Models/AzureMLServiceLinkedService.cs | 47 +- ...eMLUpdateResourceActivity.Serialization.cs | 24 +- .../Models/AzureMLUpdateResourceActivity.cs | 2 +- ...AzureMariaDBLinkedService.Serialization.cs | 14 +- .../Models/AzureMariaDBLinkedService.cs | 37 +- .../Models/AzureMariaDBTableDataset.cs | 2 +- .../AzureMySqlLinkedService.Serialization.cs | 14 +- .../Models/AzureMySqlLinkedService.cs | 37 +- .../Models/AzureMySqlTableDataset.cs | 2 +- ...rePostgreSqlLinkedService.Serialization.cs | 14 +- .../Models/AzurePostgreSqlLinkedService.cs | 37 +- .../Models/AzurePostgreSqlTableDataset.cs | 2 +- .../Models/AzureSearchIndexDataset.cs | 2 +- .../AzureSearchLinkedService.Serialization.cs | 14 +- .../Models/AzureSearchLinkedService.cs | 37 +- .../AzureSqlDWLinkedService.Serialization.cs | 14 +- .../Models/AzureSqlDWLinkedService.cs | 37 +- .../Models/AzureSqlDWTableDataset.cs | 2 +- ...eSqlDatabaseLinkedService.Serialization.cs | 14 +- .../Models/AzureSqlDatabaseLinkedService.cs | 37 +- .../AzureSqlMILinkedService.Serialization.cs | 14 +- .../Models/AzureSqlMILinkedService.cs | 37 +- .../Models/AzureSqlMITableDataset.cs | 2 +- .../Generated/Models/AzureSqlTableDataset.cs | 2 +- ...AzureStorageLinkedService.Serialization.cs | 14 +- .../Models/AzureStorageLinkedService.cs | 37 +- .../AzureSynapseArtifactsLinkedService.cs | 2 +- .../src/Generated/Models/AzureTableDataset.cs | 2 +- ...TableStorageLinkedService.Serialization.cs | 14 +- .../Models/AzureTableStorageLinkedService.cs | 37 +- .../src/Generated/Models/BinaryDataset.cs | 2 +- .../CassandraLinkedService.Serialization.cs | 14 +- .../Models/CassandraLinkedService.cs | 37 +- .../Generated/Models/CassandraTableDataset.cs | 2 +- .../src/Generated/Models/ChainingTrigger.cs | 2 +- .../ChangeDataCaptureFolder.Serialization.cs | 44 + .../Models/ChangeDataCaptureFolder.cs | 28 + ...angeDataCaptureListResult.Serialization.cs | 46 + .../Models/ChangeDataCaptureListResult.cs | 43 + .../CommonDataServiceForAppsEntityDataset.cs | 2 +- ...rviceForAppsLinkedService.Serialization.cs | 14 +- .../CommonDataServiceForAppsLinkedService.cs | 37 +- .../ConcurLinkedService.Serialization.cs | 14 +- .../Generated/Models/ConcurLinkedService.cs | 37 +- .../Generated/Models/ConcurObjectDataset.cs | 2 +- .../src/Generated/Models/ConfigurationType.cs | 54 - .../Models/ControlActivity.Serialization.cs | 20 +- .../src/Generated/Models/ControlActivity.cs | 4 +- .../Models/CopyActivity.Serialization.cs | 28 +- .../src/Generated/Models/CopyActivity.cs | 10 +- .../CopyActivitySource.Serialization.cs | 2 +- .../Generated/Models/CopyActivitySource.cs | 2 +- .../CosmosDBLinkedService.Serialization.cs | 14 +- .../Generated/Models/CosmosDBLinkedService.cs | 37 +- .../CosmosDBMongoDBApiCollectionDataset.cs | 2 +- .../Models/CosmosDBMongoDBApiLinkedService.cs | 2 +- .../Models/CosmosDBSqlApiCollectionDataset.cs | 2 +- .../CouchbaseLinkedService.Serialization.cs | 14 +- .../Models/CouchbaseLinkedService.cs | 37 +- .../Generated/Models/CouchbaseTableDataset.cs | 2 +- .../Models/CustomActivity.Serialization.cs | 24 +- .../src/Generated/Models/CustomActivity.cs | 2 +- .../Models/CustomDataSourceLinkedService.cs | 2 +- .../src/Generated/Models/CustomDataset.cs | 2 +- ...toryChangeDataCaptureData.Serialization.cs | 200 +++ ...> DataFactoryCmkIdentity.Serialization.cs} | 6 +- ...efinition.cs => DataFactoryCmkIdentity.cs} | 10 +- ...=> DataFactoryCredential.Serialization.cs} | 6 +- ...Credential.cs => DataFactoryCredential.cs} | 14 +- ...toryCredentialListResult.Serialization.cs} | 6 +- ....cs => DataFactoryCredentialListResult.cs} | 10 +- .../Models/DataFactoryData.Serialization.cs | 6 +- .../DataFactoryDataFlowData.Serialization.cs | 4 +- .../Models/DataFactoryDataFlowDebugInfo.cs | 12 +- ...actoryDataFlowListResult.Serialization.cs} | 6 +- ...se.cs => DataFactoryDataFlowListResult.cs} | 10 +- ...actoryDataFlowProperties.Serialization.cs} | 10 +- ...on.cs => DataFactoryDataFlowProperties.cs} | 14 +- ...DataPlaneUserAccessPolicy.Serialization.cs | 27 +- .../DataFactoryDataPlaneUserAccessPolicy.cs | 16 +- .../DataFactoryDatasetData.Serialization.cs | 4 +- .../Models/DataFactoryDatasetDebugInfo.cs | 12 +- ...FactoryDatasetListResult.Serialization.cs} | 6 +- ...nse.cs => DataFactoryDatasetListResult.cs} | 10 +- ...FactoryDatasetProperties.Serialization.cs} | 6 +- ...ion.cs => DataFactoryDatasetProperties.cs} | 14 +- ...ryEncryptionConfiguration.Serialization.cs | 4 +- .../DataFactoryEncryptionConfiguration.cs | 6 +- ...=> DataFactoryExpression.Serialization.cs} | 6 +- ...Definition.cs => DataFactoryExpression.cs} | 6 +- ...FactoryFlowletProperties.Serialization.cs} | 6 +- ...ion.cs => DataFactoryFlowletProperties.cs} | 10 +- ...actoryGlobalParameterData.Serialization.cs | 6 +- ...lobalParameterListResult.Serialization.cs} | 6 +- ...> DataFactoryGlobalParameterListResult.cs} | 10 +- ...lobalParameterProperties.Serialization.cs} | 8 +- ...> DataFactoryGlobalParameterProperties.cs} | 12 +- .../Models/DataFactoryHttpDataset.cs | 2 +- ...oryIntegrationRuntimeData.Serialization.cs | 4 +- .../DataFactoryIntegrationRuntimeDebugInfo.cs | 8 +- ...grationRuntimeListResult.Serialization.cs} | 6 +- ...ataFactoryIntegrationRuntimeListResult.cs} | 10 +- .../DataFactoryIntegrationRuntimePatch.cs | 2 +- ...grationRuntimeProperties.Serialization.cs} | 4 +- ...ataFactoryIntegrationRuntimeProperties.cs} | 12 +- ...aFactoryLinkedServiceData.Serialization.cs | 4 +- .../DataFactoryLinkedServiceDebugInfo.cs | 8 +- ...yLinkedServiceListResult.Serialization.cs} | 6 +- ... => DataFactoryLinkedServiceListResult.cs} | 10 +- ...yLinkedServiceProperties.Serialization.cs} | 4 +- ... => DataFactoryLinkedServiceProperties.cs} | 12 +- ...> DataFactoryLogSettings.Serialization.cs} | 6 +- ...gSettings.cs => DataFactoryLogSettings.cs} | 10 +- ...gedIdentityCredentialData.Serialization.cs | 4 +- ...tityCredentialProperties.Serialization.cs} | 14 +- ...oryManagedIdentityCredentialProperties.cs} | 13 +- ...ManagedVirtualNetworkData.Serialization.cs | 4 +- ...VirtualNetworkListResult.Serialization.cs} | 6 +- ...FactoryManagedVirtualNetworkListResult.cs} | 10 +- ...VirtualNetworkProperties.Serialization.cs} | 10 +- ...FactoryManagedVirtualNetworkProperties.cs} | 10 +- ...appingDataFlowProperties.Serialization.cs} | 6 +- ...> DataFactoryMappingDataFlowProperties.cs} | 10 +- .../DataFactoryPipelineData.Serialization.cs | 6 +- .../Models/DataFactoryPipelineRunInfo.cs | 20 +- ...ateEndpointConnectionData.Serialization.cs | 4 +- ...ointConnectionListResult.Serialization.cs} | 6 +- ...oryPrivateEndpointConnectionListResult.cs} | 10 +- ...pointConnectionProperties.Serialization.cs | 70 + ...toryPrivateEndpointConnectionProperties.cs | 45 + ...actoryPrivateEndpointData.Serialization.cs | 4 +- ...rivateEndpointListResult.Serialization.cs} | 6 +- ...> DataFactoryPrivateEndpointListResult.cs} | 10 +- ...PrivateEndpointProperties.Serialization.cs | 92 +- .../DataFactoryPrivateEndpointProperties.cs | 80 +- .../Models/DataFactoryRecurrenceFrequency.cs | 66 + ...actoryRecurrenceSchedule.Serialization.cs} | 12 +- ...le.cs => DataFactoryRecurrenceSchedule.cs} | 14 +- ...rrenceScheduleOccurrence.Serialization.cs} | 10 +- ...ataFactoryRecurrenceScheduleOccurrence.cs} | 12 +- ...taFactoryScheduleTrigger.Serialization.cs} | 6 +- ...igger.cs => DataFactoryScheduleTrigger.cs} | 10 +- ... DataFactoryScriptAction.Serialization.cs} | 6 +- ...ptAction.cs => DataFactoryScriptAction.cs} | 10 +- ...ataFactoryScriptActivity.Serialization.cs} | 34 +- ...tivity.cs => DataFactoryScriptActivity.cs} | 12 +- .../Generated/Models/DataFactoryScriptType.cs | 51 + .../DataFactorySparkConfigurationType.cs | 54 + .../DataFactoryTriggerData.Serialization.cs | 4 +- ...FactoryTriggerProperties.Serialization.cs} | 6 +- ...ion.cs => DataFactoryTriggerProperties.cs} | 14 +- ...nglingDataFlowProperties.Serialization.cs} | 6 +- ...DataFactoryWranglingDataFlowProperties.cs} | 10 +- .../DataFlowDebugSessionInfo.Serialization.cs | 10 +- .../Models/DataFlowDebugSessionInfo.cs | 4 +- ...bugSessionInfoListResult.Serialization.cs} | 6 +- ... => DataFlowDebugSessionInfoListResult.cs} | 10 +- ...LakeAnalyticsUsqlActivity.Serialization.cs | 24 +- .../Models/DataLakeAnalyticsUsqlActivity.cs | 2 +- .../Models/DataMapperMapping.Serialization.cs | 105 ++ .../src/Generated/Models/DataMapperMapping.cs | 87 + ...atabricksNotebookActivity.Serialization.cs | 24 +- .../Models/DatabricksNotebookActivity.cs | 2 +- ...atabricksSparkJarActivity.Serialization.cs | 24 +- .../Models/DatabricksSparkJarActivity.cs | 2 +- ...bricksSparkPythonActivity.Serialization.cs | 24 +- .../Models/DatabricksSparkPythonActivity.cs | 2 +- .../DataworldLinkedService.Serialization.cs | 14 +- .../Models/DataworldLinkedService.cs | 37 +- .../Models/DayOfWeek.Serialization.cs | 38 - .../src/Generated/Models/DayOfWeek.cs | 28 - .../Models/Db2LinkedService.Serialization.cs | 14 +- .../src/Generated/Models/Db2LinkedService.cs | 37 +- .../src/Generated/Models/Db2TableDataset.cs | 2 +- .../Models/DeleteActivity.Serialization.cs | 24 +- .../src/Generated/Models/DeleteActivity.cs | 2 +- .../Generated/Models/DelimitedTextDataset.cs | 2 +- .../Models/DocumentDBCollectionDataset.cs | 2 +- .../DrillLinkedService.Serialization.cs | 14 +- .../Generated/Models/DrillLinkedService.cs | 37 +- .../src/Generated/Models/DrillTableDataset.cs | 2 +- .../DynamicsAXLinkedService.Serialization.cs | 14 +- .../Models/DynamicsAXLinkedService.cs | 37 +- .../Models/DynamicsAXResourceDataset.cs | 2 +- .../Models/DynamicsCrmEntityDataset.cs | 2 +- .../DynamicsCrmLinkedService.Serialization.cs | 14 +- .../Models/DynamicsCrmLinkedService.cs | 37 +- .../Generated/Models/DynamicsEntityDataset.cs | 2 +- .../DynamicsLinkedService.Serialization.cs | 14 +- .../Generated/Models/DynamicsLinkedService.cs | 37 +- .../EloquaLinkedService.Serialization.cs | 14 +- .../Generated/Models/EloquaLinkedService.cs | 37 +- .../Generated/Models/EloquaObjectDataset.cs | 2 +- .../src/Generated/Models/ExcelDataset.cs | 2 +- .../ExecuteDataFlowActivity.Serialization.cs | 28 +- .../Models/ExecuteDataFlowActivity.cs | 4 +- ...aFlowActivityComputeType.Serialization.cs} | 6 +- ... => ExecuteDataFlowActivityComputeType.cs} | 10 +- .../ExecutePipelineActivity.Serialization.cs | 20 +- .../Models/ExecutePipelineActivity.cs | 2 +- ...utePipelineActivityPolicy.Serialization.cs | 4 +- .../Models/ExecutePipelineActivityPolicy.cs | 8 +- ...xecuteSsisPackageActivity.Serialization.cs | 24 +- .../Models/ExecuteSsisPackageActivity.cs | 2 +- ...WranglingDataflowActivity.Serialization.cs | 28 +- .../ExecuteWranglingDataflowActivity.cs | 8 +- .../Models/ExecutionActivity.Serialization.cs | 26 +- .../src/Generated/Models/ExecutionActivity.cs | 8 +- ...actoryGitHubClientSecret.Serialization.cs} | 6 +- ...Secret.cs => FactoryGitHubClientSecret.cs} | 10 +- ...actoryGitHubConfiguration.Serialization.cs | 4 +- .../Models/FactoryGitHubConfiguration.cs | 4 +- ...cs => FactoryRepoContent.Serialization.cs} | 2 +- ...oryRepoUpdate.cs => FactoryRepoContent.cs} | 6 +- .../Models/FailActivity.Serialization.cs | 20 +- .../src/Generated/Models/FailActivity.cs | 2 +- .../FileServerLinkedService.Serialization.cs | 14 +- .../Models/FileServerLinkedService.cs | 37 +- .../src/Generated/Models/FileShareDataset.cs | 2 +- .../Models/FilterActivity.Serialization.cs | 28 +- .../src/Generated/Models/FilterActivity.cs | 8 +- .../Models/ForEachActivity.Serialization.cs | 30 +- .../src/Generated/Models/ForEachActivity.cs | 20 +- .../FtpServerLinkedService.Serialization.cs | 14 +- .../Models/FtpServerLinkedService.cs | 37 +- ...etDatasetMetadataActivity.Serialization.cs | 24 +- .../Models/GetDatasetMetadataActivity.cs | 2 +- .../Models/GitHubAccessTokenContent.cs | 2 +- ...oogleAdWordsLinkedService.Serialization.cs | 14 +- .../Models/GoogleAdWordsLinkedService.cs | 37 +- .../Models/GoogleAdWordsObjectDataset.cs | 2 +- ...ogleBigQueryLinkedService.Serialization.cs | 14 +- .../Models/GoogleBigQueryLinkedService.cs | 37 +- .../Models/GoogleBigQueryObjectDataset.cs | 2 +- ...CloudStorageLinkedService.Serialization.cs | 14 +- .../Models/GoogleCloudStorageLinkedService.cs | 37 +- ...GoogleSheetsLinkedService.Serialization.cs | 14 +- .../Models/GoogleSheetsLinkedService.cs | 37 +- .../GreenplumLinkedService.Serialization.cs | 14 +- .../Models/GreenplumLinkedService.cs | 37 +- .../Generated/Models/GreenplumTableDataset.cs | 2 +- .../HBaseLinkedService.Serialization.cs | 14 +- .../Generated/Models/HBaseLinkedService.cs | 37 +- .../Generated/Models/HBaseObjectDataset.cs | 2 +- .../HDInsightHiveActivity.Serialization.cs | 24 +- .../Generated/Models/HDInsightHiveActivity.cs | 2 +- .../HDInsightLinkedService.Serialization.cs | 14 +- .../Models/HDInsightLinkedService.cs | 37 +- ...DInsightMapReduceActivity.Serialization.cs | 24 +- .../Models/HDInsightMapReduceActivity.cs | 2 +- ...ightOnDemandLinkedService.Serialization.cs | 20 +- .../Models/HDInsightOnDemandLinkedService.cs | 41 +- .../HDInsightPigActivity.Serialization.cs | 24 +- .../Generated/Models/HDInsightPigActivity.cs | 2 +- .../HDInsightSparkActivity.Serialization.cs | 24 +- .../Models/HDInsightSparkActivity.cs | 2 +- ...DInsightStreamingActivity.Serialization.cs | 24 +- .../Models/HDInsightStreamingActivity.cs | 2 +- .../Models/HdfsLinkedService.Serialization.cs | 14 +- .../src/Generated/Models/HdfsLinkedService.cs | 37 +- .../Models/HiveLinkedService.Serialization.cs | 14 +- .../src/Generated/Models/HiveLinkedService.cs | 37 +- .../src/Generated/Models/HiveObjectDataset.cs | 2 +- .../Models/HttpLinkedService.Serialization.cs | 14 +- .../src/Generated/Models/HttpLinkedService.cs | 37 +- .../HubspotLinkedService.Serialization.cs | 14 +- .../Generated/Models/HubspotLinkedService.cs | 37 +- .../Generated/Models/HubspotObjectDataset.cs | 2 +- .../IfConditionActivity.Serialization.cs | 36 +- .../Generated/Models/IfConditionActivity.cs | 30 +- .../ImpalaLinkedService.Serialization.cs | 14 +- .../Generated/Models/ImpalaLinkedService.cs | 37 +- .../Generated/Models/ImpalaObjectDataset.cs | 2 +- .../InformixLinkedService.Serialization.cs | 14 +- .../Generated/Models/InformixLinkedService.cs | 37 +- .../Generated/Models/InformixTableDataset.cs | 2 +- ...s => IntegrationRuntimeAutoUpdateState.cs} | 26 +- ...nRuntimeComputeProperties.Serialization.cs | 10 +- .../IntegrationRuntimeComputeProperties.cs | 8 +- ...untimeDataFlowCustomItem.Serialization.cs} | 6 +- ...> IntegrationRuntimeDataFlowCustomItem.cs} | 12 +- ...RuntimeDataFlowProperties.Serialization.cs | 6 +- .../IntegrationRuntimeDataFlowProperties.cs | 6 +- ...ionRuntimeVnetProperties.Serialization.cs} | 10 +- ...cs => IntegrationRuntimeVnetProperties.cs} | 10 +- .../Models/JiraLinkedService.Serialization.cs | 14 +- .../src/Generated/Models/JiraLinkedService.cs | 37 +- .../src/Generated/Models/JiraObjectDataset.cs | 2 +- .../src/Generated/Models/JsonDataset.cs | 2 +- ...nRuntimeRbacAuthorization.Serialization.cs | 4 +- ...nkedIntegrationRuntimeRbacAuthorization.cs | 6 +- .../Models/LookupActivity.Serialization.cs | 24 +- .../src/Generated/Models/LookupActivity.cs | 8 +- .../MagentoLinkedService.Serialization.cs | 14 +- .../Generated/Models/MagentoLinkedService.cs | 37 +- .../Generated/Models/MagentoObjectDataset.cs | 2 +- .../Models/ManagedIntegrationRuntime.cs | 2 +- .../ManagedPrivateEndpoint.Serialization.cs | 130 -- .../Models/ManagedPrivateEndpoint.cs | 87 - .../MapperAttributeMapping.Serialization.cs | 122 ++ .../Models/MapperAttributeMapping.cs | 52 + .../MapperAttributeMappings.Serialization.cs | 59 + .../Models/MapperAttributeMappings.cs | 32 + .../MapperAttributeReference.Serialization.cs | 70 + .../Models/MapperAttributeReference.cs | 36 + .../Models/MapperConnection.Serialization.cs | 109 ++ .../src/Generated/Models/MapperConnection.cs | 51 + ...MapperConnectionReference.Serialization.cs | 59 + .../Models/MapperConnectionReference.cs | 32 + .../Generated/Models/MapperConnectionType.cs | 48 + ...perDslConnectorProperties.Serialization.cs | 64 + .../Models/MapperDslConnectorProperties.cs | 63 + .../Models/MapperPolicy.Serialization.cs | 59 + .../src/Generated/Models/MapperPolicy.cs | 32 + .../MapperPolicyRecurrence.Serialization.cs | 63 + .../Models/MapperPolicyRecurrence.cs | 32 + .../MapperPolicyRecurrenceFrequencyType.cs | 54 + ...pperSourceConnectionsInfo.Serialization.cs | 74 + .../Models/MapperSourceConnectionsInfo.cs | 36 + .../Models/MapperTable.Serialization.cs | 110 ++ .../src/Generated/Models/MapperTable.cs | 41 + .../Models/MapperTableSchema.Serialization.cs | 55 + .../src/Generated/Models/MapperTableSchema.cs | 32 + ...pperTargetConnectionsInfo.Serialization.cs | 141 ++ .../Models/MapperTargetConnectionsInfo.cs | 76 + .../src/Generated/Models/MappingType.cs | 54 + .../MariaDBLinkedService.Serialization.cs | 14 +- .../Generated/Models/MariaDBLinkedService.cs | 37 +- .../Generated/Models/MariaDBTableDataset.cs | 2 +- .../MarketoLinkedService.Serialization.cs | 14 +- .../Generated/Models/MarketoLinkedService.cs | 37 +- .../Generated/Models/MarketoObjectDataset.cs | 2 +- ...rosoftAccessLinkedService.Serialization.cs | 14 +- .../Models/MicrosoftAccessLinkedService.cs | 37 +- .../Models/MicrosoftAccessTableDataset.cs | 2 +- .../Models/MongoDBAtlasCollectionDataset.cs | 2 +- ...MongoDBAtlasLinkedService.Serialization.cs | 14 +- .../Models/MongoDBAtlasLinkedService.cs | 12 +- .../Models/MongoDBCollectionDataset.cs | 2 +- .../MongoDBLinkedService.Serialization.cs | 14 +- .../Generated/Models/MongoDBLinkedService.cs | 37 +- .../Models/MongoDBV2CollectionDataset.cs | 2 +- .../Models/MongoDBV2LinkedService.cs | 2 +- .../MultiplePipelineTrigger.Serialization.cs | 2 +- .../Models/MultiplePipelineTrigger.cs | 4 +- .../MySqlLinkedService.Serialization.cs | 14 +- .../Generated/Models/MySqlLinkedService.cs | 37 +- .../src/Generated/Models/MySqlTableDataset.cs | 2 +- .../NetezzaLinkedService.Serialization.cs | 14 +- .../Generated/Models/NetezzaLinkedService.cs | 37 +- .../Generated/Models/NetezzaTableDataset.cs | 2 +- .../ODataLinkedService.Serialization.cs | 14 +- .../Generated/Models/ODataLinkedService.cs | 37 +- .../Generated/Models/ODataResourceDataset.cs | 2 +- .../Models/OdbcLinkedService.Serialization.cs | 14 +- .../src/Generated/Models/OdbcLinkedService.cs | 37 +- .../src/Generated/Models/OdbcTableDataset.cs | 2 +- .../src/Generated/Models/Office365Dataset.cs | 2 +- .../Office365LinkedService.Serialization.cs | 14 +- .../Models/Office365LinkedService.cs | 37 +- .../Models/Office365Source.Serialization.cs | 4 +- .../src/Generated/Models/Office365Source.cs | 4 +- ...fice365TableOutputColumn.Serialization.cs} | 16 +- ...olumn.cs => Office365TableOutputColumn.cs} | 10 +- ...CloudStorageLinkedService.Serialization.cs | 14 +- .../Models/OracleCloudStorageLinkedService.cs | 37 +- .../OracleLinkedService.Serialization.cs | 14 +- .../Generated/Models/OracleLinkedService.cs | 37 +- ...ServiceCloudLinkedService.Serialization.cs | 14 +- .../Models/OracleServiceCloudLinkedService.cs | 37 +- .../Models/OracleServiceCloudObjectDataset.cs | 2 +- .../Generated/Models/OracleTableDataset.cs | 2 +- .../src/Generated/Models/OrcDataset.cs | 2 +- .../src/Generated/Models/ParquetDataset.cs | 2 +- .../PaypalLinkedService.Serialization.cs | 14 +- .../Generated/Models/PaypalLinkedService.cs | 37 +- .../Generated/Models/PaypalObjectDataset.cs | 2 +- .../PhoenixLinkedService.Serialization.cs | 14 +- .../Generated/Models/PhoenixLinkedService.cs | 37 +- .../Generated/Models/PhoenixObjectDataset.cs | 2 +- ...n.cs => PipelineActivity.Serialization.cs} | 6 +- ...FactoryActivity.cs => PipelineActivity.cs} | 26 +- ...pelineActivityDependency.Serialization.cs} | 6 +- ...dency.cs => PipelineActivityDependency.cs} | 10 +- ...> PipelineActivityPolicy.Serialization.cs} | 14 +- ...ityPolicy.cs => PipelineActivityPolicy.cs} | 22 +- ...neActivityRunInformation.Serialization.cs} | 6 +- ...o.cs => PipelineActivityRunInformation.cs} | 16 +- ...pelineActivityRunsResult.Serialization.cs} | 12 +- ...esult.cs => PipelineActivityRunsResult.cs} | 12 +- .../Generated/Models/PipelineActivityState.cs | 51 + ...lineActivityUserProperty.Serialization.cs} | 6 +- ...rty.cs => PipelineActivityUserProperty.cs} | 6 +- .../PostgreSqlLinkedService.Serialization.cs | 14 +- .../Models/PostgreSqlLinkedService.cs | 37 +- .../Models/PostgreSqlTableDataset.cs | 2 +- .../PrestoLinkedService.Serialization.cs | 14 +- .../Generated/Models/PrestoLinkedService.cs | 37 +- .../Generated/Models/PrestoObjectDataset.cs | 2 +- .../QuickBooksLinkedService.Serialization.cs | 14 +- .../Models/QuickBooksLinkedService.cs | 37 +- .../Models/QuickBooksObjectDataset.cs | 2 +- .../QuickbaseLinkedService.Serialization.cs | 14 +- .../Models/QuickbaseLinkedService.cs | 37 +- .../Generated/Models/RecurrenceFrequency.cs | 66 - .../Models/RelationalTableDataset.cs | 2 +- .../Models/RerunTumblingWindowTrigger.cs | 2 +- .../ResponsysLinkedService.Serialization.cs | 14 +- .../Models/ResponsysLinkedService.cs | 37 +- .../Models/ResponsysObjectDataset.cs | 2 +- .../Generated/Models/RestResourceDataset.cs | 2 +- .../RestServiceLinkedService.Serialization.cs | 14 +- .../Models/RestServiceLinkedService.cs | 37 +- .../SalesforceLinkedService.Serialization.cs | 14 +- .../Models/SalesforceLinkedService.cs | 37 +- ...rketingCloudLinkedService.Serialization.cs | 14 +- .../SalesforceMarketingCloudLinkedService.cs | 37 +- .../SalesforceMarketingCloudObjectDataset.cs | 2 +- .../Models/SalesforceObjectDataset.cs | 2 +- ...ServiceCloudLinkedService.Serialization.cs | 14 +- .../SalesforceServiceCloudLinkedService.cs | 37 +- .../SalesforceServiceCloudObjectDataset.cs | 2 +- ...esforceServiceCloudSource.Serialization.cs | 8 +- .../Models/SalesforceServiceCloudSource.cs | 8 +- .../Models/SalesforceSource.Serialization.cs | 8 +- .../src/Generated/Models/SalesforceSource.cs | 8 +- .../Models/SalesforceSourceReadBehavior.cs | 51 - ...n.cs => SapBWCubeDataset.Serialization.cs} | 6 +- ...apBwCubeDataset.cs => SapBWCubeDataset.cs} | 10 +- .../SapBWLinkedService.Serialization.cs | 14 +- .../Generated/Models/SapBWLinkedService.cs | 37 +- ...zation.cs => SapBWSource.Serialization.cs} | 6 +- .../Models/{SapBwSource.cs => SapBWSource.cs} | 10 +- ...dForCustomerLinkedService.Serialization.cs | 14 +- .../SapCloudForCustomerLinkedService.cs | 37 +- .../SapCloudForCustomerResourceDataset.cs | 2 +- .../SapEccLinkedService.Serialization.cs | 14 +- .../Generated/Models/SapEccLinkedService.cs | 37 +- .../Generated/Models/SapEccResourceDataset.cs | 2 +- .../SapHanaLinkedService.Serialization.cs | 14 +- .../Generated/Models/SapHanaLinkedService.cs | 37 +- .../Generated/Models/SapHanaTableDataset.cs | 2 +- .../SapOdpLinkedService.Serialization.cs | 14 +- .../Generated/Models/SapOdpLinkedService.cs | 37 +- .../Generated/Models/SapOdpResourceDataset.cs | 2 +- .../SapOpenHubLinkedService.Serialization.cs | 14 +- .../Models/SapOpenHubLinkedService.cs | 37 +- .../Models/SapOpenHubTableDataset.cs | 2 +- .../SapTableLinkedService.Serialization.cs | 14 +- .../Generated/Models/SapTableLinkedService.cs | 37 +- .../Models/SapTableResourceDataset.cs | 2 +- ...ScheduleTriggerRecurrence.Serialization.cs | 8 +- .../Models/ScheduleTriggerRecurrence.cs | 6 +- ...ScriptActivityScriptBlock.Serialization.cs | 4 +- .../Models/ScriptActivityScriptBlock.cs | 6 +- ...tActivityTypeLogSettings.Serialization.cs} | 6 +- ...gs.cs => ScriptActivityTypeLogSettings.cs} | 10 +- .../src/Generated/Models/ScriptType.cs | 51 - .../SecureInputOutputPolicy.Serialization.cs | 63 + .../Models/SecureInputOutputPolicy.cs | 32 + .../Models/SelfHostedIntegrationRuntime.cs | 2 +- ...dIntegrationRuntimeStatus.Serialization.cs | 4 +- .../SelfHostedIntegrationRuntimeStatus.cs | 4 +- .../ServiceNowLinkedService.Serialization.cs | 14 +- .../Models/ServiceNowLinkedService.cs | 37 +- .../Models/ServiceNowObjectDataset.cs | 2 +- .../Models/ServicePrincipalCredential.cs | 2 +- .../SetVariableActivity.Serialization.cs | 37 +- .../Generated/Models/SetVariableActivity.cs | 6 +- .../SftpServerLinkedService.Serialization.cs | 14 +- .../Models/SftpServerLinkedService.cs | 37 +- ...ntOnlineListLinkedService.Serialization.cs | 14 +- .../SharePointOnlineListLinkedService.cs | 37 +- .../SharePointOnlineListResourceDataset.cs | 2 +- .../ShopifyLinkedService.Serialization.cs | 14 +- .../Generated/Models/ShopifyLinkedService.cs | 37 +- .../Generated/Models/ShopifyObjectDataset.cs | 2 +- .../SmartsheetLinkedService.Serialization.cs | 14 +- .../Models/SmartsheetLinkedService.cs | 37 +- .../src/Generated/Models/SnowflakeDataset.cs | 2 +- .../SnowflakeLinkedService.Serialization.cs | 14 +- .../Models/SnowflakeLinkedService.cs | 37 +- .../SparkLinkedService.Serialization.cs | 14 +- .../Generated/Models/SparkLinkedService.cs | 37 +- .../Generated/Models/SparkObjectDataset.cs | 2 +- .../SqlServerLinkedService.Serialization.cs | 14 +- .../Models/SqlServerLinkedService.cs | 37 +- ...erStoredProcedureActivity.Serialization.cs | 24 +- .../SqlServerStoredProcedureActivity.cs | 2 +- .../Generated/Models/SqlServerTableDataset.cs | 2 +- .../SquareLinkedService.Serialization.cs | 14 +- .../Generated/Models/SquareLinkedService.cs | 37 +- .../Generated/Models/SquareObjectDataset.cs | 2 +- ...ObjectMetadataListResult.Serialization.cs} | 6 +- ...nse.cs => SsisObjectMetadataListResult.cs} | 10 +- .../Models/SwitchActivity.Serialization.cs | 30 +- .../src/Generated/Models/SwitchActivity.cs | 18 +- .../SwitchCaseActivity.Serialization.cs | 6 +- .../Generated/Models/SwitchCaseActivity.cs | 14 +- .../SybaseLinkedService.Serialization.cs | 14 +- .../Generated/Models/SybaseLinkedService.cs | 37 +- .../Generated/Models/SybaseTableDataset.cs | 2 +- .../SynapseNotebookActivity.Serialization.cs | 28 +- .../Models/SynapseNotebookActivity.cs | 4 +- ...parkJobDefinitionActivity.Serialization.cs | 28 +- .../SynapseSparkJobDefinitionActivity.cs | 4 +- .../Models/TabularSource.Serialization.cs | 2 +- .../src/Generated/Models/TabularSource.cs | 2 +- .../TeamDeskLinkedService.Serialization.cs | 14 +- .../Generated/Models/TeamDeskLinkedService.cs | 37 +- .../TeradataLinkedService.Serialization.cs | 14 +- .../Generated/Models/TeradataLinkedService.cs | 37 +- .../Generated/Models/TeradataTableDataset.cs | 2 +- .../Generated/Models/TumblingWindowTrigger.cs | 2 +- .../Generated/Models/TwilioLinkedService.cs | 2 +- .../Models/UnknownActivity.Serialization.cs | 20 +- .../src/Generated/Models/UnknownActivity.cs | 4 +- .../src/Generated/Models/UnknownCredential.cs | 2 +- .../src/Generated/Models/UnknownDataFlow.cs | 2 +- .../src/Generated/Models/UnknownDataset.cs | 2 +- .../Models/UnknownIntegrationRuntime.cs | 2 +- .../Generated/Models/UnknownLinkedService.cs | 2 +- .../src/Generated/Models/UnknownTrigger.cs | 2 +- .../Models/UntilActivity.Serialization.cs | 30 +- .../src/Generated/Models/UntilActivity.cs | 20 +- .../ValidationActivity.Serialization.cs | 20 +- .../Generated/Models/ValidationActivity.cs | 2 +- .../VerticaLinkedService.Serialization.cs | 14 +- .../Generated/Models/VerticaLinkedService.cs | 37 +- .../Generated/Models/VerticaTableDataset.cs | 2 +- .../Models/WaitActivity.Serialization.cs | 20 +- .../src/Generated/Models/WaitActivity.cs | 2 +- .../Models/WebActivity.Serialization.cs | 24 +- .../src/Generated/Models/WebActivity.cs | 2 +- .../Models/WebHookActivity.Serialization.cs | 20 +- .../src/Generated/Models/WebHookActivity.cs | 2 +- .../src/Generated/Models/WebLinkedService.cs | 2 +- .../src/Generated/Models/WebTableDataset.cs | 2 +- .../Models/XeroLinkedService.Serialization.cs | 14 +- .../src/Generated/Models/XeroLinkedService.cs | 37 +- .../src/Generated/Models/XeroObjectDataset.cs | 2 +- .../src/Generated/Models/XmlDataset.cs | 2 +- .../ZendeskLinkedService.Serialization.cs | 14 +- .../Generated/Models/ZendeskLinkedService.cs | 37 +- .../Models/ZohoLinkedService.Serialization.cs | 14 +- .../src/Generated/Models/ZohoLinkedService.cs | 37 +- .../src/Generated/Models/ZohoObjectDataset.cs | 2 +- .../ActivityRunsRestOperations.cs | 12 +- .../ChangeDataCaptureRestOperations.cs | 698 ++++++++ .../CredentialRestOperations.cs | 24 +- .../DataFlowDebugSessionRestOperations.cs | 24 +- .../RestOperations/DataFlowsRestOperations.cs | 24 +- .../RestOperations/DatasetsRestOperations.cs | 24 +- .../RestOperations/FactoriesRestOperations.cs | 28 +- .../GlobalParametersRestOperations.cs | 24 +- ...tionRuntimeObjectMetadataRestOperations.cs | 12 +- .../IntegrationRuntimesRestOperations.cs | 24 +- .../LinkedServicesRestOperations.cs | 24 +- .../ManagedPrivateEndpointsRestOperations.cs | 24 +- .../ManagedVirtualNetworksRestOperations.cs | 24 +- ...rivateEndPointConnectionsRestOperations.cs | 24 +- .../src/autorest.md | 314 ++-- .../tests/Samples/Readme.cs | 4 +- .../DataFactoryDatasetResourceTests.cs | 2 +- .../DataFactoryGlobalParameterTests.cs | 4 +- .../tests/Scenario/DataFactoryTriggerTests.cs | 2 +- .../IntegrationRuntimeResourceTests.cs | 2 +- .../Scenario/ManagedVirtualNetworkTests.cs | 2 +- 669 files changed, 8308 insertions(+), 7644 deletions(-) create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryChangeDataCaptureCollection.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryChangeDataCaptureResource.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryChangeDataCaptureCollection.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryChangeDataCaptureData.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryChangeDataCaptureResource.cs rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ActivityOnInactiveMarkA.cs => ActivityOnInactiveMarkAs.cs} (57%) delete mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityState.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ChangeDataCaptureFolder.Serialization.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ChangeDataCaptureFolder.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ChangeDataCaptureListResult.Serialization.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ChangeDataCaptureListResult.cs delete mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ConfigurationType.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryChangeDataCaptureData.Serialization.cs rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{CmkIdentityDefinition.Serialization.cs => DataFactoryCmkIdentity.Serialization.cs} (81%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{CmkIdentityDefinition.cs => DataFactoryCmkIdentity.cs} (67%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{Credential.Serialization.cs => DataFactoryCredential.Serialization.cs} (89%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{Credential.cs => DataFactoryCredential.cs} (85%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{CredentialListResponse.Serialization.cs => DataFactoryCredentialListResult.Serialization.cs} (84%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{CredentialListResponse.cs => DataFactoryCredentialListResult.cs} (71%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFlowListResponse.Serialization.cs => DataFactoryDataFlowListResult.Serialization.cs} (84%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFlowListResponse.cs => DataFactoryDataFlowListResult.cs} (72%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryDataFlowDefinition.Serialization.cs => DataFactoryDataFlowProperties.Serialization.cs} (81%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryDataFlowDefinition.cs => DataFactoryDataFlowProperties.cs} (89%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DatasetListResponse.Serialization.cs => DataFactoryDatasetListResult.Serialization.cs} (84%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DatasetListResponse.cs => DataFactoryDatasetListResult.cs} (72%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryDatasetDefinition.Serialization.cs => DataFactoryDatasetProperties.Serialization.cs} (98%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryDatasetDefinition.cs => DataFactoryDatasetProperties.cs} (96%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryExpressionDefinition.Serialization.cs => DataFactoryExpression.Serialization.cs} (82%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryExpressionDefinition.cs => DataFactoryExpression.cs} (83%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryFlowletDefinition.Serialization.cs => DataFactoryFlowletProperties.Serialization.cs} (97%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryFlowletDefinition.cs => DataFactoryFlowletProperties.cs} (91%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{GlobalParameterListResponse.Serialization.cs => DataFactoryGlobalParameterListResult.Serialization.cs} (82%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{GlobalParameterListResponse.cs => DataFactoryGlobalParameterListResult.cs} (71%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryGlobalParameterSpecification.Serialization.cs => DataFactoryGlobalParameterProperties.Serialization.cs} (79%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryGlobalParameterSpecification.cs => DataFactoryGlobalParameterProperties.cs} (82%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{IntegrationRuntimeListResponse.Serialization.cs => DataFactoryIntegrationRuntimeListResult.Serialization.cs} (82%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{IntegrationRuntimeListResponse.cs => DataFactoryIntegrationRuntimeListResult.cs} (70%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryIntegrationRuntimeDefinition.Serialization.cs => DataFactoryIntegrationRuntimeProperties.Serialization.cs} (89%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryIntegrationRuntimeDefinition.cs => DataFactoryIntegrationRuntimeProperties.cs} (88%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{LinkedServiceListResponse.Serialization.cs => DataFactoryLinkedServiceListResult.Serialization.cs} (83%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{LinkedServiceListResponse.cs => DataFactoryLinkedServiceListResult.cs} (71%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryLinkedServiceDefinition.Serialization.cs => DataFactoryLinkedServiceProperties.Serialization.cs} (98%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryLinkedServiceDefinition.cs => DataFactoryLinkedServiceProperties.cs} (96%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{LogSettings.Serialization.cs => DataFactoryLogSettings.Serialization.cs} (89%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{LogSettings.cs => DataFactoryLogSettings.cs} (79%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryManagedIdentityCredentialDefinition.Serialization.cs => DataFactoryManagedIdentityCredentialProperties.Serialization.cs} (87%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryManagedIdentityCredentialDefinition.cs => DataFactoryManagedIdentityCredentialProperties.cs} (71%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ManagedVirtualNetworkListResponse.Serialization.cs => DataFactoryManagedVirtualNetworkListResult.Serialization.cs} (82%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ManagedVirtualNetworkListResponse.cs => DataFactoryManagedVirtualNetworkListResult.cs} (70%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ManagedVirtualNetwork.Serialization.cs => DataFactoryManagedVirtualNetworkProperties.Serialization.cs} (79%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ManagedVirtualNetwork.cs => DataFactoryManagedVirtualNetworkProperties.cs} (83%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryMappingDataFlowDefinition.Serialization.cs => DataFactoryMappingDataFlowProperties.Serialization.cs} (97%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryMappingDataFlowDefinition.cs => DataFactoryMappingDataFlowProperties.cs} (90%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{PrivateEndpointConnectionListResponse.Serialization.cs => DataFactoryPrivateEndpointConnectionListResult.Serialization.cs} (81%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{PrivateEndpointConnectionListResponse.cs => DataFactoryPrivateEndpointConnectionListResult.cs} (69%) create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointConnectionProperties.Serialization.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointConnectionProperties.cs rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ManagedPrivateEndpointListResponse.Serialization.cs => DataFactoryPrivateEndpointListResult.Serialization.cs} (82%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ManagedPrivateEndpointListResponse.cs => DataFactoryPrivateEndpointListResult.cs} (71%) create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryRecurrenceFrequency.cs rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{RecurrenceSchedule.Serialization.cs => DataFactoryRecurrenceSchedule.Serialization.cs} (88%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{RecurrenceSchedule.cs => DataFactoryRecurrenceSchedule.cs} (80%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{RecurrenceScheduleOccurrence.Serialization.cs => DataFactoryRecurrenceScheduleOccurrence.Serialization.cs} (82%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{RecurrenceScheduleOccurrence.cs => DataFactoryRecurrenceScheduleOccurrence.cs} (80%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ScheduleTrigger.Serialization.cs => DataFactoryScheduleTrigger.Serialization.cs} (94%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ScheduleTrigger.cs => DataFactoryScheduleTrigger.cs} (68%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ScriptAction.Serialization.cs => DataFactoryScriptAction.Serialization.cs} (89%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ScriptAction.cs => DataFactoryScriptAction.cs} (88%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ScriptActivity.Serialization.cs => DataFactoryScriptActivity.Serialization.cs} (84%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ScriptActivity.cs => DataFactoryScriptActivity.cs} (71%) create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScriptType.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactorySparkConfigurationType.cs rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryTriggerDefinition.Serialization.cs => DataFactoryTriggerProperties.Serialization.cs} (90%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryTriggerDefinition.cs => DataFactoryTriggerProperties.cs} (92%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryWranglingDataFlowDefinition.Serialization.cs => DataFactoryWranglingDataFlowProperties.Serialization.cs} (96%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryWranglingDataFlowDefinition.cs => DataFactoryWranglingDataFlowProperties.cs} (87%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{QueryDataFlowDebugSessionsResponse.Serialization.cs => DataFlowDebugSessionInfoListResult.Serialization.cs} (85%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{QueryDataFlowDebugSessionsResponse.cs => DataFlowDebugSessionInfoListResult.cs} (73%) create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataMapperMapping.Serialization.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataMapperMapping.cs delete mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DayOfWeek.Serialization.cs delete mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DayOfWeek.cs rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ExecuteDataFlowActivityTypePropertiesCompute.Serialization.cs => ExecuteDataFlowActivityComputeType.Serialization.cs} (85%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ExecuteDataFlowActivityTypePropertiesCompute.cs => ExecuteDataFlowActivityComputeType.cs} (81%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{GitHubClientSecret.Serialization.cs => FactoryGitHubClientSecret.Serialization.cs} (86%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{GitHubClientSecret.cs => FactoryGitHubClientSecret.cs} (71%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{FactoryRepoUpdate.Serialization.cs => FactoryRepoContent.Serialization.cs} (92%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{FactoryRepoUpdate.cs => FactoryRepoContent.cs} (85%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{IntegrationRuntimeAutoUpdate.cs => IntegrationRuntimeAutoUpdateState.cs} (59%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem.Serialization.cs => IntegrationRuntimeDataFlowCustomItem.Serialization.cs} (78%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem.cs => IntegrationRuntimeDataFlowCustomItem.cs} (62%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{IntegrationRuntimeVNetProperties.Serialization.cs => IntegrationRuntimeVnetProperties.Serialization.cs} (90%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{IntegrationRuntimeVNetProperties.cs => IntegrationRuntimeVnetProperties.cs} (93%) delete mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedPrivateEndpoint.Serialization.cs delete mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedPrivateEndpoint.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMapping.Serialization.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMapping.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMappings.Serialization.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMappings.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeReference.Serialization.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeReference.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnection.Serialization.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnection.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnectionReference.Serialization.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnectionReference.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnectionType.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperDslConnectorProperties.Serialization.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperDslConnectorProperties.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperPolicy.Serialization.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperPolicy.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperPolicyRecurrence.Serialization.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperPolicyRecurrence.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperPolicyRecurrenceFrequencyType.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperSourceConnectionsInfo.Serialization.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperSourceConnectionsInfo.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTable.Serialization.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTable.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTableSchema.Serialization.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTableSchema.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTargetConnectionsInfo.Serialization.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTargetConnectionsInfo.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MappingType.cs rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{OutputColumn.Serialization.cs => Office365TableOutputColumn.Serialization.cs} (62%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{OutputColumn.cs => Office365TableOutputColumn.cs} (62%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryActivity.Serialization.cs => PipelineActivity.Serialization.cs} (96%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryActivity.cs => PipelineActivity.cs} (75%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ActivityDependency.Serialization.cs => PipelineActivityDependency.Serialization.cs} (89%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ActivityDependency.cs => PipelineActivityDependency.cs} (85%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ActivityPolicy.Serialization.cs => PipelineActivityPolicy.Serialization.cs} (86%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ActivityPolicy.cs => PipelineActivityPolicy.cs} (77%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryActivityRunInfo.Serialization.cs => PipelineActivityRunInformation.Serialization.cs} (90%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryActivityRunInfo.cs => PipelineActivityRunInformation.cs} (90%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryActivityRunsResult.Serialization.cs => PipelineActivityRunsResult.Serialization.cs} (65%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{DataFactoryActivityRunsResult.cs => PipelineActivityRunsResult.cs} (69%) create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityState.cs rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ActivityUserProperty.Serialization.cs => PipelineActivityUserProperty.Serialization.cs} (84%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ActivityUserProperty.cs => PipelineActivityUserProperty.cs} (81%) delete mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RecurrenceFrequency.cs delete mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceSourceReadBehavior.cs rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{SapBwCubeDataset.Serialization.cs => SapBWCubeDataset.Serialization.cs} (97%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{SapBwCubeDataset.cs => SapBWCubeDataset.cs} (87%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{SapBwSource.Serialization.cs => SapBWSource.Serialization.cs} (97%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{SapBwSource.cs => SapBWSource.cs} (90%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ScriptActivityTypePropertiesLogSettings.Serialization.cs => ScriptActivityTypeLogSettings.Serialization.cs} (83%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{ScriptActivityTypePropertiesLogSettings.cs => ScriptActivityTypeLogSettings.cs} (75%) delete mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptType.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SecureInputOutputPolicy.Serialization.cs create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SecureInputOutputPolicy.cs rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{SsisObjectMetadataListResponse.Serialization.cs => SsisObjectMetadataListResult.Serialization.cs} (83%) rename sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/{SsisObjectMetadataListResponse.cs => SsisObjectMetadataListResult.cs} (87%) create mode 100644 sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ChangeDataCaptureRestOperations.cs diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/CHANGELOG.md b/sdk/datafactory/Azure.ResourceManager.DataFactory/CHANGELOG.md index f27fc25764ea..71b164a4db34 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/CHANGELOG.md +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/CHANGELOG.md @@ -1,14 +1,16 @@ # Release History -## 1.0.0-beta.3 (Unreleased) +## 1.0.0-beta.3 (2023-08-02) ### Features Added - Supported the new `DataFactoryElement` expression type property. +- Upgraded API version. ### Other Changes -- Upgraded API version. +- Upgraded Azure.Core to 1.34.0. +- Upgraded Azure.ResourceManager to 1.7.0. ## 1.0.0-beta.2 (2022-08-29) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md b/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md index b87b63bb31ca..983e6692d10a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/README.md @@ -51,7 +51,7 @@ Code samples for using the management library for .NET can be found in the follo #### Assign `DataFactoryElement` with different literal types - int ```C# Snippet:Readme_DataFactoryElementInt -var policy = new ActivityPolicy +var policy = new PipelineActivityPolicy { Retry = DataFactoryElement.FromLiteral(1), }; @@ -82,7 +82,7 @@ Dictionary DictionaryValue = new() }; var activity = new AzureMLExecutePipelineActivity("name") { - MlPipelineParameters = DataFactoryElement?>.FromLiteral(DictionaryValue), + MLPipelineParameters = DataFactoryElement?>.FromLiteral(DictionaryValue), }; ``` diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/api/Azure.ResourceManager.DataFactory.netstandard2.0.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/api/Azure.ResourceManager.DataFactory.netstandard2.0.cs index cb8b8ab6c5a5..097dc506b29e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/api/Azure.ResourceManager.DataFactory.netstandard2.0.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/api/Azure.ResourceManager.DataFactory.netstandard2.0.cs @@ -1,5 +1,53 @@ namespace Azure.ResourceManager.DataFactory { + public partial class DataFactoryChangeDataCaptureCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected DataFactoryChangeDataCaptureCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string changeDataCaptureName, Azure.ResourceManager.DataFactory.DataFactoryChangeDataCaptureData data, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string changeDataCaptureName, Azure.ResourceManager.DataFactory.DataFactoryChangeDataCaptureData data, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string changeDataCaptureName, string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string changeDataCaptureName, string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string changeDataCaptureName, string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string changeDataCaptureName, string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class DataFactoryChangeDataCaptureData : Azure.ResourceManager.Models.ResourceData + { + public DataFactoryChangeDataCaptureData(System.Collections.Generic.IEnumerable sourceConnectionsInfo, System.Collections.Generic.IEnumerable targetConnectionsInfo, Azure.ResourceManager.DataFactory.Models.MapperPolicy policy) { } + public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } + public bool? AllowVnetOverride { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public Azure.ETag? ETag { get { throw null; } } + public string FolderName { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.MapperPolicy Policy { get { throw null; } set { } } + public System.Collections.Generic.IList SourceConnectionsInfo { get { throw null; } } + public string Status { get { throw null; } set { } } + public System.Collections.Generic.IList TargetConnectionsInfo { get { throw null; } } + } + public partial class DataFactoryChangeDataCaptureResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected DataFactoryChangeDataCaptureResource() { } + public virtual Azure.ResourceManager.DataFactory.DataFactoryChangeDataCaptureData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Start(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Status(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> StatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Stop(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task StopAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.DataFactory.DataFactoryChangeDataCaptureData data, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.DataFactory.DataFactoryChangeDataCaptureData data, string ifMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class DataFactoryCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected DataFactoryCollection() { } @@ -22,7 +70,7 @@ public DataFactoryData(Azure.Core.AzureLocation location) : base (default(Azure. public System.DateTimeOffset? CreatedOn { get { throw null; } } public Azure.ResourceManager.DataFactory.Models.DataFactoryEncryptionConfiguration Encryption { get { throw null; } set { } } public Azure.ETag? ETag { get { throw null; } } - public System.Collections.Generic.IDictionary GlobalParameters { get { throw null; } } + public System.Collections.Generic.IDictionary GlobalParameters { get { throw null; } } public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public string ProvisioningState { get { throw null; } } public Azure.ResourceManager.DataFactory.Models.DataFactoryPublicNetworkAccess? PublicNetworkAccess { get { throw null; } set { } } @@ -47,9 +95,9 @@ protected DataFactoryDataFlowCollection() { } } public partial class DataFactoryDataFlowData : Azure.ResourceManager.Models.ResourceData { - public DataFactoryDataFlowData(Azure.ResourceManager.DataFactory.Models.DataFactoryDataFlowDefinition properties) { } + public DataFactoryDataFlowData(Azure.ResourceManager.DataFactory.Models.DataFactoryDataFlowProperties properties) { } public Azure.ETag? ETag { get { throw null; } } - public Azure.ResourceManager.DataFactory.Models.DataFactoryDataFlowDefinition Properties { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.DataFactoryDataFlowProperties Properties { get { throw null; } set { } } } public partial class DataFactoryDataFlowResource : Azure.ResourceManager.ArmResource { @@ -82,9 +130,9 @@ protected DataFactoryDatasetCollection() { } } public partial class DataFactoryDatasetData : Azure.ResourceManager.Models.ResourceData { - public DataFactoryDatasetData(Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition properties) { } + public DataFactoryDatasetData(Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties properties) { } public Azure.ETag? ETag { get { throw null; } } - public Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition Properties { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties Properties { get { throw null; } set { } } } public partial class DataFactoryDatasetResource : Azure.ResourceManager.ArmResource { @@ -102,13 +150,14 @@ protected DataFactoryDatasetResource() { } } public static partial class DataFactoryExtensions { - public static Azure.Response ConfigureFactoryRepoInformation(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationId, Azure.ResourceManager.DataFactory.Models.FactoryRepoUpdate factoryRepoUpdate, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> ConfigureFactoryRepoInformationAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationId, Azure.ResourceManager.DataFactory.Models.FactoryRepoUpdate factoryRepoUpdate, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response ConfigureFactoryRepoInformation(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationId, Azure.ResourceManager.DataFactory.Models.FactoryRepoContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> ConfigureFactoryRepoInformationAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationId, Azure.ResourceManager.DataFactory.Models.FactoryRepoContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.DataFactory.DataFactoryCollection GetDataFactories(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } public static Azure.Pageable GetDataFactories(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetDataFactoriesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Response GetDataFactory(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string factoryName, string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetDataFactoryAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string factoryName, string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.DataFactory.DataFactoryChangeDataCaptureResource GetDataFactoryChangeDataCaptureResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.DataFactory.DataFactoryDataFlowResource GetDataFactoryDataFlowResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.DataFactory.DataFactoryDatasetResource GetDataFactoryDatasetResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.DataFactory.DataFactoryGlobalParameterResource GetDataFactoryGlobalParameterResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -141,9 +190,9 @@ protected DataFactoryGlobalParameterCollection() { } } public partial class DataFactoryGlobalParameterData : Azure.ResourceManager.Models.ResourceData { - public DataFactoryGlobalParameterData(System.Collections.Generic.IDictionary properties) { } + public DataFactoryGlobalParameterData(System.Collections.Generic.IDictionary properties) { } public Azure.ETag? ETag { get { throw null; } } - public System.Collections.Generic.IDictionary Properties { get { throw null; } } + public System.Collections.Generic.IDictionary Properties { get { throw null; } } } public partial class DataFactoryGlobalParameterResource : Azure.ResourceManager.ArmResource { @@ -176,9 +225,9 @@ protected DataFactoryIntegrationRuntimeCollection() { } } public partial class DataFactoryIntegrationRuntimeData : Azure.ResourceManager.Models.ResourceData { - public DataFactoryIntegrationRuntimeData(Azure.ResourceManager.DataFactory.Models.DataFactoryIntegrationRuntimeDefinition properties) { } + public DataFactoryIntegrationRuntimeData(Azure.ResourceManager.DataFactory.Models.DataFactoryIntegrationRuntimeProperties properties) { } public Azure.ETag? ETag { get { throw null; } } - public Azure.ResourceManager.DataFactory.Models.DataFactoryIntegrationRuntimeDefinition Properties { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.DataFactoryIntegrationRuntimeProperties Properties { get { throw null; } set { } } } public partial class DataFactoryIntegrationRuntimeResource : Azure.ResourceManager.ArmResource { @@ -247,9 +296,9 @@ protected DataFactoryLinkedServiceCollection() { } } public partial class DataFactoryLinkedServiceData : Azure.ResourceManager.Models.ResourceData { - public DataFactoryLinkedServiceData(Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition properties) { } + public DataFactoryLinkedServiceData(Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties properties) { } public Azure.ETag? ETag { get { throw null; } } - public Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition Properties { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties Properties { get { throw null; } set { } } } public partial class DataFactoryLinkedServiceResource : Azure.ResourceManager.ArmResource { @@ -282,9 +331,9 @@ protected DataFactoryManagedIdentityCredentialCollection() { } } public partial class DataFactoryManagedIdentityCredentialData : Azure.ResourceManager.Models.ResourceData { - public DataFactoryManagedIdentityCredentialData(Azure.ResourceManager.DataFactory.Models.DataFactoryManagedIdentityCredentialDefinition properties) { } + public DataFactoryManagedIdentityCredentialData(Azure.ResourceManager.DataFactory.Models.DataFactoryManagedIdentityCredentialProperties properties) { } public Azure.ETag? ETag { get { throw null; } } - public Azure.ResourceManager.DataFactory.Models.DataFactoryManagedIdentityCredentialDefinition Properties { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.DataFactoryManagedIdentityCredentialProperties Properties { get { throw null; } set { } } } public partial class DataFactoryManagedIdentityCredentialResource : Azure.ResourceManager.ArmResource { @@ -317,9 +366,9 @@ protected DataFactoryManagedVirtualNetworkCollection() { } } public partial class DataFactoryManagedVirtualNetworkData : Azure.ResourceManager.Models.ResourceData { - public DataFactoryManagedVirtualNetworkData(Azure.ResourceManager.DataFactory.Models.ManagedVirtualNetwork properties) { } + public DataFactoryManagedVirtualNetworkData(Azure.ResourceManager.DataFactory.Models.DataFactoryManagedVirtualNetworkProperties properties) { } public Azure.ETag? ETag { get { throw null; } } - public Azure.ResourceManager.DataFactory.Models.ManagedVirtualNetwork Properties { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.DataFactoryManagedVirtualNetworkProperties Properties { get { throw null; } set { } } } public partial class DataFactoryManagedVirtualNetworkResource : Azure.ResourceManager.ArmResource { @@ -354,7 +403,7 @@ protected DataFactoryPipelineCollection() { } public partial class DataFactoryPipelineData : Azure.ResourceManager.Models.ResourceData { public DataFactoryPipelineData() { } - public System.Collections.Generic.IList Activities { get { throw null; } } + public System.Collections.Generic.IList Activities { get { throw null; } } public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } public System.Collections.Generic.IList Annotations { get { throw null; } } public int? Concurrency { get { throw null; } set { } } @@ -416,7 +465,7 @@ public partial class DataFactoryPrivateEndpointConnectionData : Azure.ResourceMa { public DataFactoryPrivateEndpointConnectionData() { } public Azure.ETag? ETag { get { throw null; } } - public Azure.ResourceManager.DataFactory.Models.DataFactoryPrivateEndpointProperties Properties { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.DataFactoryPrivateEndpointConnectionProperties Properties { get { throw null; } set { } } } public partial class DataFactoryPrivateEndpointConnectionResource : Azure.ResourceManager.ArmResource { @@ -434,9 +483,9 @@ protected DataFactoryPrivateEndpointConnectionResource() { } } public partial class DataFactoryPrivateEndpointData : Azure.ResourceManager.Models.ResourceData { - public DataFactoryPrivateEndpointData(Azure.ResourceManager.DataFactory.Models.ManagedPrivateEndpoint properties) { } + public DataFactoryPrivateEndpointData(Azure.ResourceManager.DataFactory.Models.DataFactoryPrivateEndpointProperties properties) { } public Azure.ETag? ETag { get { throw null; } } - public Azure.ResourceManager.DataFactory.Models.ManagedPrivateEndpoint Properties { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.DataFactoryPrivateEndpointProperties Properties { get { throw null; } set { } } } public partial class DataFactoryPrivateEndpointResource : Azure.ResourceManager.ArmResource { @@ -474,9 +523,12 @@ protected DataFactoryResource() { } public virtual Azure.ResourceManager.ArmOperation ExecuteDataFlowDebugSessionCommand(Azure.WaitUntil waitUntil, Azure.ResourceManager.DataFactory.Models.DataFlowDebugCommandContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExecuteDataFlowDebugSessionCommandAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.DataFactory.Models.DataFlowDebugCommandContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetActivityRun(string runId, Azure.ResourceManager.DataFactory.Models.RunFilterContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetActivityRunAsync(string runId, Azure.ResourceManager.DataFactory.Models.RunFilterContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetActivityRun(string runId, Azure.ResourceManager.DataFactory.Models.RunFilterContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetActivityRunAsync(string runId, Azure.ResourceManager.DataFactory.Models.RunFilterContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetDataFactoryChangeDataCapture(string changeDataCaptureName, string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetDataFactoryChangeDataCaptureAsync(string changeDataCaptureName, string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.DataFactory.DataFactoryChangeDataCaptureCollection GetDataFactoryChangeDataCaptures() { throw null; } public virtual Azure.Response GetDataFactoryDataFlow(string dataFlowName, string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetDataFactoryDataFlowAsync(string dataFlowName, string ifNoneMatch = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.DataFactory.DataFactoryDataFlowCollection GetDataFactoryDataFlows() { throw null; } @@ -551,9 +603,9 @@ protected DataFactoryTriggerCollection() { } } public partial class DataFactoryTriggerData : Azure.ResourceManager.Models.ResourceData { - public DataFactoryTriggerData(Azure.ResourceManager.DataFactory.Models.DataFactoryTriggerDefinition properties) { } + public DataFactoryTriggerData(Azure.ResourceManager.DataFactory.Models.DataFactoryTriggerProperties properties) { } public Azure.ETag? ETag { get { throw null; } } - public Azure.ResourceManager.DataFactory.Models.DataFactoryTriggerDefinition Properties { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.DataFactoryTriggerProperties Properties { get { throw null; } set { } } } public partial class DataFactoryTriggerResource : Azure.ResourceManager.ArmResource { @@ -586,71 +638,30 @@ protected DataFactoryTriggerResource() { } } namespace Azure.ResourceManager.DataFactory.Models { - public partial class ActivityDependency - { - public ActivityDependency(string activity, System.Collections.Generic.IEnumerable dependencyConditions) { } - public string Activity { get { throw null; } set { } } - public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } - public System.Collections.Generic.IList DependencyConditions { get { throw null; } } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ActivityOnInactiveMarkA : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ActivityOnInactiveMarkA(string value) { throw null; } - public static Azure.ResourceManager.DataFactory.Models.ActivityOnInactiveMarkA Failed { get { throw null; } } - public static Azure.ResourceManager.DataFactory.Models.ActivityOnInactiveMarkA Skipped { get { throw null; } } - public static Azure.ResourceManager.DataFactory.Models.ActivityOnInactiveMarkA Succeeded { get { throw null; } } - public bool Equals(Azure.ResourceManager.DataFactory.Models.ActivityOnInactiveMarkA other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.DataFactory.Models.ActivityOnInactiveMarkA left, Azure.ResourceManager.DataFactory.Models.ActivityOnInactiveMarkA right) { throw null; } - public static implicit operator Azure.ResourceManager.DataFactory.Models.ActivityOnInactiveMarkA (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.DataFactory.Models.ActivityOnInactiveMarkA left, Azure.ResourceManager.DataFactory.Models.ActivityOnInactiveMarkA right) { throw null; } - public override string ToString() { throw null; } - } - public partial class ActivityPolicy - { - public ActivityPolicy() { } - public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } - public bool? EnableSecureInput { get { throw null; } set { } } - public bool? EnableSecureOutput { get { throw null; } set { } } - public Azure.Core.Expressions.DataFactory.DataFactoryElement Retry { get { throw null; } set { } } - public int? RetryIntervalInSeconds { get { throw null; } set { } } - public Azure.Core.Expressions.DataFactory.DataFactoryElement Timeout { get { throw null; } set { } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ActivityState : System.IEquatable + public readonly partial struct ActivityOnInactiveMarkAs : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public ActivityState(string value) { throw null; } - public static Azure.ResourceManager.DataFactory.Models.ActivityState Active { get { throw null; } } - public static Azure.ResourceManager.DataFactory.Models.ActivityState Inactive { get { throw null; } } - public bool Equals(Azure.ResourceManager.DataFactory.Models.ActivityState other) { throw null; } + public ActivityOnInactiveMarkAs(string value) { throw null; } + public static Azure.ResourceManager.DataFactory.Models.ActivityOnInactiveMarkAs Failed { get { throw null; } } + public static Azure.ResourceManager.DataFactory.Models.ActivityOnInactiveMarkAs Skipped { get { throw null; } } + public static Azure.ResourceManager.DataFactory.Models.ActivityOnInactiveMarkAs Succeeded { get { throw null; } } + public bool Equals(Azure.ResourceManager.DataFactory.Models.ActivityOnInactiveMarkAs other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.DataFactory.Models.ActivityState left, Azure.ResourceManager.DataFactory.Models.ActivityState right) { throw null; } - public static implicit operator Azure.ResourceManager.DataFactory.Models.ActivityState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.DataFactory.Models.ActivityState left, Azure.ResourceManager.DataFactory.Models.ActivityState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.DataFactory.Models.ActivityOnInactiveMarkAs left, Azure.ResourceManager.DataFactory.Models.ActivityOnInactiveMarkAs right) { throw null; } + public static implicit operator Azure.ResourceManager.DataFactory.Models.ActivityOnInactiveMarkAs (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.DataFactory.Models.ActivityOnInactiveMarkAs left, Azure.ResourceManager.DataFactory.Models.ActivityOnInactiveMarkAs right) { throw null; } public override string ToString() { throw null; } } - public partial class ActivityUserProperty - { - public ActivityUserProperty(string name, Azure.Core.Expressions.DataFactory.DataFactoryElement value) { } - public string Name { get { throw null; } set { } } - public Azure.Core.Expressions.DataFactory.DataFactoryElement Value { get { throw null; } set { } } - } - public partial class AmazonMwsLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AmazonMwsLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AmazonMwsLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement endpoint, Azure.Core.Expressions.DataFactory.DataFactoryElement marketplaceId, Azure.Core.Expressions.DataFactory.DataFactoryElement sellerId, Azure.Core.Expressions.DataFactory.DataFactoryElement accessKeyId) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AccessKeyId { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Endpoint { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement MarketplaceId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition MwsAuthToken { get { throw null; } set { } } @@ -660,7 +671,7 @@ public AmazonMwsLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElem public Azure.Core.Expressions.DataFactory.DataFactoryElement UseHostVerification { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UsePeerVerification { get { throw null; } set { } } } - public partial class AmazonMwsObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class AmazonMwsObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public AmazonMwsObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -670,11 +681,11 @@ public partial class AmazonMwsSource : Azure.ResourceManager.DataFactory.Models. public AmazonMwsSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class AmazonRdsForOracleLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AmazonRdsForOracleLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AmazonRdsForOracleLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement connectionString) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } } public partial class AmazonRdsForOraclePartitionSettings @@ -694,18 +705,18 @@ public AmazonRdsForOracleSource() { } public Azure.ResourceManager.DataFactory.Models.AmazonRdsForOraclePartitionSettings PartitionSettings { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement QueryTimeout { get { throw null; } set { } } } - public partial class AmazonRdsForOracleTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class AmazonRdsForOracleTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public AmazonRdsForOracleTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SchemaTypePropertiesSchema { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Table { get { throw null; } set { } } } - public partial class AmazonRdsForSqlServerLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AmazonRdsForSqlServerLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AmazonRdsForSqlServerLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement connectionString) { } public Azure.ResourceManager.DataFactory.Models.SqlAlwaysEncryptedProperties AlwaysEncryptedSettings { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UserName { get { throw null; } set { } } } @@ -720,17 +731,17 @@ public AmazonRdsForSqlServerSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SqlReaderStoredProcedureName { get { throw null; } set { } } public System.BinaryData StoredProcedureParameters { get { throw null; } set { } } } - public partial class AmazonRdsForSqlServerTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class AmazonRdsForSqlServerTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public AmazonRdsForSqlServerTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SchemaTypePropertiesSchema { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Table { get { throw null; } set { } } } - public partial class AmazonRedshiftLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AmazonRedshiftLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AmazonRedshiftLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement server, Azure.Core.Expressions.DataFactory.DataFactoryElement database) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Database { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Port { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Server { get { throw null; } set { } } @@ -742,18 +753,18 @@ public AmazonRedshiftSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.RedshiftUnloadSettings RedshiftUnloadSettings { get { throw null; } set { } } } - public partial class AmazonRedshiftTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class AmazonRedshiftTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public AmazonRedshiftTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SchemaTypePropertiesSchema { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Table { get { throw null; } set { } } public System.BinaryData TableName { get { throw null; } set { } } } - public partial class AmazonS3CompatibleLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AmazonS3CompatibleLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AmazonS3CompatibleLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AccessKeyId { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ForcePathStyle { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition SecretAccessKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ServiceUri { get { throw null; } set { } } @@ -778,7 +789,7 @@ public AmazonS3CompatibleReadSettings() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement WildcardFileName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement WildcardFolderPath { get { throw null; } set { } } } - public partial class AmazonS3Dataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class AmazonS3Dataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public AmazonS3Dataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName, Azure.Core.Expressions.DataFactory.DataFactoryElement bucketName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement BucketName { get { throw null; } set { } } @@ -790,12 +801,12 @@ public AmazonS3Dataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServi public Azure.Core.Expressions.DataFactory.DataFactoryElement Prefix { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Version { get { throw null; } set { } } } - public partial class AmazonS3LinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AmazonS3LinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AmazonS3LinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AccessKeyId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement AuthenticationType { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition SecretAccessKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ServiceUri { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition SessionToken { get { throw null; } set { } } @@ -826,20 +837,20 @@ public AppendVariableActivity(string name) : base (default(string)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Value { get { throw null; } set { } } public string VariableName { get { throw null; } set { } } } - public partial class AppFiguresLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AppFiguresLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AppFiguresLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement userName, Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition password, Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition clientKey) { } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ClientKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UserName { get { throw null; } set { } } } - public partial class AsanaLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AsanaLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AsanaLinkedService(Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition apiToken) { } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ApiToken { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } } - public partial class AvroDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class AvroDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public AvroDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AvroCompressionCodec { get { throw null; } set { } } @@ -871,18 +882,18 @@ public partial class AzPowerShellSetup : Azure.ResourceManager.DataFactory.Model public AzPowerShellSetup(string version) { } public string Version { get { throw null; } set { } } } - public partial class AzureBatchLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzureBatchLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzureBatchLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement accountName, Azure.Core.Expressions.DataFactory.DataFactoryElement batchUri, Azure.Core.Expressions.DataFactory.DataFactoryElement poolName, Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) { } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition AccessKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement AccountName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement BatchUri { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.DataFactoryCredentialReference Credential { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference LinkedServiceName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement PoolName { get { throw null; } set { } } } - public partial class AzureBlobDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class AzureBlobDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public AzureBlobDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.ResourceManager.DataFactory.Models.DatasetCompression Compression { get { throw null; } set { } } @@ -893,7 +904,7 @@ public AzureBlobDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServ public Azure.Core.Expressions.DataFactory.DataFactoryElement ModifiedDatetimeStart { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableRootLocation { get { throw null; } set { } } } - public partial class AzureBlobFSDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class AzureBlobFSDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public AzureBlobFSDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.ResourceManager.DataFactory.Models.DatasetCompression Compression { get { throw null; } set { } } @@ -901,13 +912,13 @@ public AzureBlobFSDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedSe public Azure.Core.Expressions.DataFactory.DataFactoryElement FolderPath { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.DatasetStorageFormat Format { get { throw null; } set { } } } - public partial class AzureBlobFSLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzureBlobFSLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzureBlobFSLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AccountKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement AzureCloudType { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.DataFactoryCredentialReference Credential { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition SasToken { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement SasUri { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ServicePrincipalCredential { get { throw null; } set { } } @@ -953,7 +964,7 @@ public partial class AzureBlobFSWriteSettings : Azure.ResourceManager.DataFactor public AzureBlobFSWriteSettings() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement BlockSizeInMB { get { throw null; } set { } } } - public partial class AzureBlobStorageLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzureBlobStorageLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzureBlobStorageLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference AccountKey { get { throw null; } set { } } @@ -963,7 +974,7 @@ public AzureBlobStorageLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ContainerUri { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.DataFactoryCredentialReference Credential { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference SasToken { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement SasUri { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ServiceEndpoint { get { throw null; } set { } } @@ -995,7 +1006,7 @@ public partial class AzureBlobStorageWriteSettings : Azure.ResourceManager.DataF public AzureBlobStorageWriteSettings() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement BlockSizeInMB { get { throw null; } set { } } } - public partial class AzureDatabricksDeltaLakeDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class AzureDatabricksDeltaLakeDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public AzureDatabricksDeltaLakeDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Database { get { throw null; } set { } } @@ -1013,14 +1024,14 @@ public AzureDatabricksDeltaLakeImportCommand() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement DateFormat { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement TimestampFormat { get { throw null; } set { } } } - public partial class AzureDatabricksDeltaLakeLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzureDatabricksDeltaLakeLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzureDatabricksDeltaLakeLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement domain) { } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition AccessToken { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ClusterId { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.DataFactoryCredentialReference Credential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Domain { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement WorkspaceResourceId { get { throw null; } set { } } } public partial class AzureDatabricksDeltaLakeSink : Azure.ResourceManager.DataFactory.Models.CopySink @@ -1035,14 +1046,14 @@ public AzureDatabricksDeltaLakeSource() { } public Azure.ResourceManager.DataFactory.Models.AzureDatabricksDeltaLakeExportCommand ExportSettings { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class AzureDatabricksLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzureDatabricksLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzureDatabricksLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement domain) { } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition AccessToken { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Authentication { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.DataFactoryCredentialReference Credential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Domain { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ExistingClusterId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement InstancePoolId { get { throw null; } set { } } public System.Collections.Generic.IDictionary NewClusterCustomTags { get { throw null; } } @@ -1064,7 +1075,7 @@ public AzureDataExplorerCommandActivity(string name, Azure.Core.Expressions.Data public Azure.Core.Expressions.DataFactory.DataFactoryElement Command { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement CommandTimeout { get { throw null; } set { } } } - public partial class AzureDataExplorerLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzureDataExplorerLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzureDataExplorerLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement endpoint, Azure.Core.Expressions.DataFactory.DataFactoryElement database) { } public Azure.ResourceManager.DataFactory.Models.DataFactoryCredentialReference Credential { get { throw null; } set { } } @@ -1089,24 +1100,24 @@ public AzureDataExplorerSource(Azure.Core.Expressions.DataFactory.DataFactoryEle public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement QueryTimeout { get { throw null; } set { } } } - public partial class AzureDataExplorerTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class AzureDataExplorerTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public AzureDataExplorerTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Table { get { throw null; } set { } } } - public partial class AzureDataLakeAnalyticsLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzureDataLakeAnalyticsLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzureDataLakeAnalyticsLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement accountName, Azure.Core.Expressions.DataFactory.DataFactoryElement tenant) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AccountName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement DataLakeAnalyticsUri { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ResourceGroupName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ServicePrincipalId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ServicePrincipalKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement SubscriptionId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Tenant { get { throw null; } set { } } } - public partial class AzureDataLakeStoreDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class AzureDataLakeStoreDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public AzureDataLakeStoreDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.ResourceManager.DataFactory.Models.DatasetCompression Compression { get { throw null; } set { } } @@ -1114,14 +1125,14 @@ public AzureDataLakeStoreDataset(Azure.Core.Expressions.DataFactory.DataFactoryL public Azure.Core.Expressions.DataFactory.DataFactoryElement FolderPath { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.DatasetStorageFormat Format { get { throw null; } set { } } } - public partial class AzureDataLakeStoreLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzureDataLakeStoreLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzureDataLakeStoreLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement dataLakeStoreUri) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AccountName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement AzureCloudType { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.DataFactoryCredentialReference Credential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement DataLakeStoreUri { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ResourceGroupName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ServicePrincipalId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ServicePrincipalKey { get { throw null; } set { } } @@ -1163,12 +1174,12 @@ public partial class AzureDataLakeStoreWriteSettings : Azure.ResourceManager.Dat public AzureDataLakeStoreWriteSettings() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ExpiryDateTime { get { throw null; } set { } } } - public partial class AzureFileStorageLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzureFileStorageLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzureFileStorageLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference AccountKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement FileShare { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Host { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } @@ -1230,27 +1241,27 @@ public AzureFunctionActivity(string name, Azure.ResourceManager.DataFactory.Mode public static bool operator !=(Azure.ResourceManager.DataFactory.Models.AzureFunctionActivityMethod left, Azure.ResourceManager.DataFactory.Models.AzureFunctionActivityMethod right) { throw null; } public override string ToString() { throw null; } } - public partial class AzureFunctionLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzureFunctionLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzureFunctionLinkedService(System.BinaryData functionAppUri) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Authentication { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.DataFactoryCredentialReference Credential { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public System.BinaryData FunctionAppUri { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition FunctionKey { get { throw null; } set { } } public System.BinaryData ResourceId { get { throw null; } set { } } } - public partial class AzureKeyVaultLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzureKeyVaultLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzureKeyVaultLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement baseUri) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement BaseUri { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.DataFactoryCredentialReference Credential { get { throw null; } set { } } } - public partial class AzureMariaDBLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzureMariaDBLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzureMariaDBLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference Password { get { throw null; } set { } } } public partial class AzureMariaDBSource : Azure.ResourceManager.DataFactory.Models.TabularSource @@ -1258,7 +1269,7 @@ public partial class AzureMariaDBSource : Azure.ResourceManager.DataFactory.Mode public AzureMariaDBSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class AzureMariaDBTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class AzureMariaDBTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public AzureMariaDBTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -1276,29 +1287,30 @@ public AzureMLExecutePipelineActivity(string name) : base (default(string)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ContinueOnStepFailure { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement> DataPathAssignments { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ExperimentName { get { throw null; } set { } } - public Azure.Core.Expressions.DataFactory.DataFactoryElement MlParentRunId { get { throw null; } set { } } - public Azure.Core.Expressions.DataFactory.DataFactoryElement MlPipelineEndpointId { get { throw null; } set { } } - public Azure.Core.Expressions.DataFactory.DataFactoryElement MlPipelineId { get { throw null; } set { } } - public Azure.Core.Expressions.DataFactory.DataFactoryElement> MlPipelineParameters { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement MLParentRunId { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement MLPipelineEndpointId { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement MLPipelineId { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement> MLPipelineParameters { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Version { get { throw null; } set { } } } - public partial class AzureMLLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzureMLLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzureMLLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement mlEndpoint, Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition apiKey) { } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ApiKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Authentication { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } - public Azure.Core.Expressions.DataFactory.DataFactoryElement MlEndpoint { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement MLEndpoint { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ServicePrincipalId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ServicePrincipalKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Tenant { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UpdateResourceEndpoint { get { throw null; } set { } } } - public partial class AzureMLServiceLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzureMLServiceLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzureMLServiceLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement subscriptionId, Azure.Core.Expressions.DataFactory.DataFactoryElement resourceGroupName, Azure.Core.Expressions.DataFactory.DataFactoryElement mlWorkspaceName) { } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } - public Azure.Core.Expressions.DataFactory.DataFactoryElement MlWorkspaceName { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement Authentication { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement MLWorkspaceName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ResourceGroupName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ServicePrincipalId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ServicePrincipalKey { get { throw null; } set { } } @@ -1318,11 +1330,11 @@ public AzureMLWebServiceFile(Azure.Core.Expressions.DataFactory.DataFactoryEleme public Azure.Core.Expressions.DataFactory.DataFactoryElement FilePath { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference LinkedServiceName { get { throw null; } set { } } } - public partial class AzureMySqlLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzureMySqlLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzureMySqlLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement connectionString) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference Password { get { throw null; } set { } } } public partial class AzureMySqlSink : Azure.ResourceManager.DataFactory.Models.CopySink @@ -1335,17 +1347,17 @@ public partial class AzureMySqlSource : Azure.ResourceManager.DataFactory.Models public AzureMySqlSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class AzureMySqlTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class AzureMySqlTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public AzureMySqlTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Table { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } } - public partial class AzurePostgreSqlLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzurePostgreSqlLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzurePostgreSqlLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference Password { get { throw null; } set { } } } public partial class AzurePostgreSqlSink : Azure.ResourceManager.DataFactory.Models.CopySink @@ -1358,7 +1370,7 @@ public partial class AzurePostgreSqlSource : Azure.ResourceManager.DataFactory.M public AzurePostgreSqlSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class AzurePostgreSqlTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class AzurePostgreSqlTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public AzurePostgreSqlTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SchemaTypePropertiesSchema { get { throw null; } set { } } @@ -1369,7 +1381,7 @@ public partial class AzureQueueSink : Azure.ResourceManager.DataFactory.Models.C { public AzureQueueSink() { } } - public partial class AzureSearchIndexDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class AzureSearchIndexDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public AzureSearchIndexDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName, Azure.Core.Expressions.DataFactory.DataFactoryElement indexName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement IndexName { get { throw null; } set { } } @@ -1397,59 +1409,59 @@ public AzureSearchIndexSink() { } public static bool operator !=(Azure.ResourceManager.DataFactory.Models.AzureSearchIndexWriteBehaviorType left, Azure.ResourceManager.DataFactory.Models.AzureSearchIndexWriteBehaviorType right) { throw null; } public override string ToString() { throw null; } } - public partial class AzureSearchLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzureSearchLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzureSearchLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement uri) { } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Key { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Uri { get { throw null; } set { } } } - public partial class AzureSqlDatabaseLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzureSqlDatabaseLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzureSqlDatabaseLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement connectionString) { } public Azure.ResourceManager.DataFactory.Models.SqlAlwaysEncryptedProperties AlwaysEncryptedSettings { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement AzureCloudType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.DataFactoryCredentialReference Credential { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ServicePrincipalId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ServicePrincipalKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Tenant { get { throw null; } set { } } } - public partial class AzureSqlDWLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzureSqlDWLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzureSqlDWLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement connectionString) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AzureCloudType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.DataFactoryCredentialReference Credential { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ServicePrincipalId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ServicePrincipalKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Tenant { get { throw null; } set { } } } - public partial class AzureSqlDWTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class AzureSqlDWTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public AzureSqlDWTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SchemaTypePropertiesSchema { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Table { get { throw null; } set { } } public System.BinaryData TableName { get { throw null; } set { } } } - public partial class AzureSqlMILinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzureSqlMILinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzureSqlMILinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement connectionString) { } public Azure.ResourceManager.DataFactory.Models.SqlAlwaysEncryptedProperties AlwaysEncryptedSettings { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement AzureCloudType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.DataFactoryCredentialReference Credential { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ServicePrincipalId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ServicePrincipalKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Tenant { get { throw null; } set { } } } - public partial class AzureSqlMITableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class AzureSqlMITableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public AzureSqlMITableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SchemaTypePropertiesSchema { get { throw null; } set { } } @@ -1480,7 +1492,7 @@ public AzureSqlSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SqlReaderStoredProcedureName { get { throw null; } set { } } public System.BinaryData StoredProcedureParameters { get { throw null; } set { } } } - public partial class AzureSqlTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class AzureSqlTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public AzureSqlTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SchemaTypePropertiesSchema { get { throw null; } set { } } @@ -1508,23 +1520,23 @@ public AzureSqlTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinked public static bool operator !=(Azure.ResourceManager.DataFactory.Models.AzureStorageAuthenticationType left, Azure.ResourceManager.DataFactory.Models.AzureStorageAuthenticationType right) { throw null; } public override string ToString() { throw null; } } - public partial class AzureStorageLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzureStorageLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzureStorageLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference AccountKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference SasToken { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement SasUri { get { throw null; } set { } } } - public partial class AzureSynapseArtifactsLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzureSynapseArtifactsLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzureSynapseArtifactsLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement endpoint) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Authentication { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Endpoint { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement WorkspaceResourceId { get { throw null; } set { } } } - public partial class AzureTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class AzureTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public AzureTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName, Azure.Core.Expressions.DataFactory.DataFactoryElement tableName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -1543,12 +1555,12 @@ public AzureTableSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AzureTableSourceIgnoreTableNotFound { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement AzureTableSourceQuery { get { throw null; } set { } } } - public partial class AzureTableStorageLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class AzureTableStorageLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public AzureTableStorageLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference AccountKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference SasToken { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement SasUri { get { throw null; } set { } } } @@ -1575,7 +1587,7 @@ public BigDataPoolParametrizationReference(Azure.ResourceManager.DataFactory.Mod public static bool operator !=(Azure.ResourceManager.DataFactory.Models.BigDataPoolReferenceType left, Azure.ResourceManager.DataFactory.Models.BigDataPoolReferenceType right) { throw null; } public override string ToString() { throw null; } } - public partial class BinaryDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class BinaryDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public BinaryDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.ResourceManager.DataFactory.Models.DatasetCompression Compression { get { throw null; } set { } } @@ -1597,11 +1609,11 @@ public BinarySource() { } public Azure.ResourceManager.DataFactory.Models.BinaryReadSettings FormatSettings { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.StoreReadSettings StoreSettings { get { throw null; } set { } } } - public partial class CassandraLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class CassandraLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public CassandraLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement host) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AuthenticationType { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Host { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Port { get { throw null; } set { } } @@ -1639,13 +1651,13 @@ public CassandraSource() { } public static bool operator !=(Azure.ResourceManager.DataFactory.Models.CassandraSourceReadConsistencyLevel left, Azure.ResourceManager.DataFactory.Models.CassandraSourceReadConsistencyLevel right) { throw null; } public override string ToString() { throw null; } } - public partial class CassandraTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class CassandraTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public CassandraTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Keyspace { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } } - public partial class ChainingTrigger : Azure.ResourceManager.DataFactory.Models.DataFactoryTriggerDefinition + public partial class ChainingTrigger : Azure.ResourceManager.DataFactory.Models.DataFactoryTriggerProperties { public ChainingTrigger(Azure.ResourceManager.DataFactory.Models.TriggerPipelineReference pipeline, System.Collections.Generic.IEnumerable dependsOn, string runDimension) { } public System.Collections.Generic.IList DependsOn { get { throw null; } } @@ -1659,17 +1671,17 @@ public CmdkeySetup(System.BinaryData targetName, System.BinaryData userName, Azu public System.BinaryData TargetName { get { throw null; } set { } } public System.BinaryData UserName { get { throw null; } set { } } } - public partial class CommonDataServiceForAppsEntityDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class CommonDataServiceForAppsEntityDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public CommonDataServiceForAppsEntityDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement EntityName { get { throw null; } set { } } } - public partial class CommonDataServiceForAppsLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class CommonDataServiceForAppsLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public CommonDataServiceForAppsLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement deploymentType, Azure.Core.Expressions.DataFactory.DataFactoryElement authenticationType) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AuthenticationType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement DeploymentType { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement HostName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement OrganizationName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } @@ -1704,19 +1716,19 @@ public partial class CompressionReadSettings public CompressionReadSettings() { } public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } } - public partial class ConcurLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class ConcurLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public ConcurLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement clientId, Azure.Core.Expressions.DataFactory.DataFactoryElement username) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ClientId { get { throw null; } set { } } public System.BinaryData ConnectionProperties { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseEncryptedEndpoints { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseHostVerification { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UsePeerVerification { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Username { get { throw null; } set { } } } - public partial class ConcurObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class ConcurObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public ConcurObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -1726,25 +1738,6 @@ public partial class ConcurSource : Azure.ResourceManager.DataFactory.Models.Tab public ConcurSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ConfigurationType : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ConfigurationType(string value) { throw null; } - public static Azure.ResourceManager.DataFactory.Models.ConfigurationType Artifact { get { throw null; } } - public static Azure.ResourceManager.DataFactory.Models.ConfigurationType Customized { get { throw null; } } - public static Azure.ResourceManager.DataFactory.Models.ConfigurationType Default { get { throw null; } } - public bool Equals(Azure.ResourceManager.DataFactory.Models.ConfigurationType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.DataFactory.Models.ConfigurationType left, Azure.ResourceManager.DataFactory.Models.ConfigurationType right) { throw null; } - public static implicit operator Azure.ResourceManager.DataFactory.Models.ConfigurationType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.DataFactory.Models.ConfigurationType left, Azure.ResourceManager.DataFactory.Models.ConfigurationType right) { throw null; } - public override string ToString() { throw null; } - } public partial class ConnectionStateProperties { public ConnectionStateProperties() { } @@ -1752,7 +1745,7 @@ public ConnectionStateProperties() { } public string Description { get { throw null; } } public string Status { get { throw null; } } } - public partial class ControlActivity : Azure.ResourceManager.DataFactory.Models.DataFactoryActivity + public partial class ControlActivity : Azure.ResourceManager.DataFactory.Models.PipelineActivity { public ControlActivity(string name) : base (default(string)) { } } @@ -1763,7 +1756,7 @@ public CopyActivity(string name, Azure.ResourceManager.DataFactory.Models.CopyAc public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableSkipIncompatibleRow { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableStaging { get { throw null; } set { } } public System.Collections.Generic.IList Inputs { get { throw null; } } - public Azure.ResourceManager.DataFactory.Models.LogSettings LogSettings { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.DataFactoryLogSettings LogSettings { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.LogStorageSettings LogStorageSettings { get { throw null; } set { } } public System.Collections.Generic.IList Outputs { get { throw null; } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ParallelCopies { get { throw null; } set { } } @@ -1828,7 +1821,7 @@ public CopySink() { } public static bool operator !=(Azure.ResourceManager.DataFactory.Models.CosmosDBConnectionMode left, Azure.ResourceManager.DataFactory.Models.CosmosDBConnectionMode right) { throw null; } public override string ToString() { throw null; } } - public partial class CosmosDBLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class CosmosDBLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public CosmosDBLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AccountEndpoint { get { throw null; } set { } } @@ -1838,18 +1831,18 @@ public CosmosDBLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.DataFactoryCredentialReference Credential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Database { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ServicePrincipalCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ServicePrincipalCredentialType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ServicePrincipalId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Tenant { get { throw null; } set { } } } - public partial class CosmosDBMongoDBApiCollectionDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class CosmosDBMongoDBApiCollectionDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public CosmosDBMongoDBApiCollectionDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName, Azure.Core.Expressions.DataFactory.DataFactoryElement collection) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Collection { get { throw null; } set { } } } - public partial class CosmosDBMongoDBApiLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class CosmosDBMongoDBApiLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public CosmosDBMongoDBApiLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement connectionString, Azure.Core.Expressions.DataFactory.DataFactoryElement database) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } @@ -1870,7 +1863,7 @@ public CosmosDBMongoDBApiSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Filter { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement QueryTimeout { get { throw null; } set { } } } - public partial class CosmosDBSqlApiCollectionDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class CosmosDBSqlApiCollectionDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public CosmosDBSqlApiCollectionDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName, Azure.Core.Expressions.DataFactory.DataFactoryElement collectionName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement CollectionName { get { throw null; } set { } } @@ -1889,19 +1882,19 @@ public CosmosDBSqlApiSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement> PreferredRegions { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class CouchbaseLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class CouchbaseLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public CouchbaseLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference CredString { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } } public partial class CouchbaseSource : Azure.ResourceManager.DataFactory.Models.TabularSource { public CouchbaseSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class CouchbaseTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class CouchbaseTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public CouchbaseTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -1914,13 +1907,6 @@ public CreateLinkedIntegrationRuntimeContent() { } public string Name { get { throw null; } set { } } public string SubscriptionId { get { throw null; } set { } } } - public partial class Credential - { - public Credential() { } - public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } - public System.Collections.Generic.IList Annotations { get { throw null; } } - public string Description { get { throw null; } set { } } - } public partial class CustomActivity : Azure.ResourceManager.DataFactory.Models.ExecutionActivity { public CustomActivity(string name, Azure.Core.Expressions.DataFactory.DataFactoryElement command) : base (default(string)) { } @@ -1938,12 +1924,12 @@ public CustomActivityReferenceObject() { } public System.Collections.Generic.IList Datasets { get { throw null; } } public System.Collections.Generic.IList LinkedServices { get { throw null; } } } - public partial class CustomDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class CustomDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public CustomDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public System.BinaryData TypeProperties { get { throw null; } set { } } } - public partial class CustomDataSourceLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class CustomDataSourceLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public CustomDataSourceLinkedService(System.BinaryData typeProperties) { } public System.BinaryData TypeProperties { get { throw null; } set { } } @@ -1981,35 +1967,6 @@ public DatabricksSparkPythonActivity(string name, Azure.Core.Expressions.DataFac public System.Collections.Generic.IList Parameters { get { throw null; } } public Azure.Core.Expressions.DataFactory.DataFactoryElement PythonFile { get { throw null; } set { } } } - public partial class DataFactoryActivity - { - public DataFactoryActivity(string name) { } - public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } - public System.Collections.Generic.IList DependsOn { get { throw null; } } - public string Description { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - public Azure.ResourceManager.DataFactory.Models.ActivityOnInactiveMarkA? OnInactiveMarkAs { get { throw null; } set { } } - public Azure.ResourceManager.DataFactory.Models.ActivityState? State { get { throw null; } set { } } - public System.Collections.Generic.IList UserProperties { get { throw null; } } - } - public partial class DataFactoryActivityRunInfo - { - internal DataFactoryActivityRunInfo() { } - public string ActivityName { get { throw null; } } - public System.Guid? ActivityRunId { get { throw null; } } - public System.DateTimeOffset? ActivityRunStart { get { throw null; } } - public string ActivityType { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary AdditionalProperties { get { throw null; } } - public int? DurationInMs { get { throw null; } } - public System.DateTimeOffset? EndOn { get { throw null; } } - public System.BinaryData Error { get { throw null; } } - public System.BinaryData Input { get { throw null; } } - public string LinkedServiceName { get { throw null; } } - public System.BinaryData Output { get { throw null; } } - public string PipelineName { get { throw null; } } - public System.Guid? PipelineRunId { get { throw null; } } - public string Status { get { throw null; } } - } public partial class DataFactoryBlobEventsTrigger : Azure.ResourceManager.DataFactory.Models.MultiplePipelineTrigger { public DataFactoryBlobEventsTrigger(System.Collections.Generic.IEnumerable events, string scope) { } @@ -2060,6 +2017,13 @@ public DataFactoryBlobTrigger(string folderPath, int maxConcurrency, Azure.Core. public Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference LinkedService { get { throw null; } set { } } public int MaxConcurrency { get { throw null; } set { } } } + public partial class DataFactoryCredential + { + public DataFactoryCredential() { } + public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } + public System.Collections.Generic.IList Annotations { get { throw null; } } + public string Description { get { throw null; } set { } } + } public partial class DataFactoryCredentialReference { public DataFactoryCredentialReference(Azure.ResourceManager.DataFactory.Models.DataFactoryCredentialReferenceType referenceType, string referenceName) { } @@ -2098,8 +2062,8 @@ internal DataFactoryDataFlowDebugCommandResult() { } } public partial class DataFactoryDataFlowDebugInfo : Azure.ResourceManager.DataFactory.Models.DataFactoryDebugInfo { - public DataFactoryDataFlowDebugInfo(Azure.ResourceManager.DataFactory.Models.DataFactoryDataFlowDefinition properties) { } - public Azure.ResourceManager.DataFactory.Models.DataFactoryDataFlowDefinition Properties { get { throw null; } } + public DataFactoryDataFlowDebugInfo(Azure.ResourceManager.DataFactory.Models.DataFactoryDataFlowProperties properties) { } + public Azure.ResourceManager.DataFactory.Models.DataFactoryDataFlowProperties Properties { get { throw null; } } } public partial class DataFactoryDataFlowDebugPackageContent { @@ -2121,9 +2085,9 @@ public DataFactoryDataFlowDebugSessionContent() { } public Azure.ResourceManager.DataFactory.Models.DataFactoryIntegrationRuntimeDebugInfo IntegrationRuntime { get { throw null; } set { } } public int? TimeToLiveInMinutes { get { throw null; } set { } } } - public abstract partial class DataFactoryDataFlowDefinition + public abstract partial class DataFactoryDataFlowProperties { - protected DataFactoryDataFlowDefinition() { } + protected DataFactoryDataFlowProperties() { } public System.Collections.Generic.IList Annotations { get { throw null; } } public string Description { get { throw null; } set { } } public string FolderName { get { throw null; } set { } } @@ -2144,19 +2108,19 @@ public partial class DataFactoryDataPlaneUserAccessPolicy { public DataFactoryDataPlaneUserAccessPolicy() { } public string AccessResourcePath { get { throw null; } set { } } - public string ExpireTime { get { throw null; } set { } } + public System.DateTimeOffset? ExpireOn { get { throw null; } set { } } public string Permissions { get { throw null; } set { } } public string ProfileName { get { throw null; } set { } } - public string StartTime { get { throw null; } set { } } + public System.DateTimeOffset? StartOn { get { throw null; } set { } } } public partial class DataFactoryDatasetDebugInfo : Azure.ResourceManager.DataFactory.Models.DataFactoryDebugInfo { - public DataFactoryDatasetDebugInfo(Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition properties) { } - public Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition Properties { get { throw null; } } + public DataFactoryDatasetDebugInfo(Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties properties) { } + public Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties Properties { get { throw null; } } } - public partial class DataFactoryDatasetDefinition + public partial class DataFactoryDatasetProperties { - public DataFactoryDatasetDefinition(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) { } + public DataFactoryDatasetProperties(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) { } public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } public System.Collections.Generic.IList Annotations { get { throw null; } } public string Description { get { throw null; } set { } } @@ -2189,9 +2153,9 @@ public DataFactoryEncryptionConfiguration(string keyName, System.Uri vaultBaseUr public string UserAssignedIdentity { get { throw null; } set { } } public System.Uri VaultBaseUri { get { throw null; } set { } } } - public partial class DataFactoryExpressionDefinition + public partial class DataFactoryExpression { - public DataFactoryExpressionDefinition(Azure.ResourceManager.DataFactory.Models.DataFactoryExpressionType expressionType, string value) { } + public DataFactoryExpression(Azure.ResourceManager.DataFactory.Models.DataFactoryExpressionType expressionType, string value) { } public Azure.ResourceManager.DataFactory.Models.DataFactoryExpressionType ExpressionType { get { throw null; } set { } } public string Value { get { throw null; } set { } } } @@ -2212,19 +2176,19 @@ public DataFactoryExpressionDefinition(Azure.ResourceManager.DataFactory.Models. public static bool operator !=(Azure.ResourceManager.DataFactory.Models.DataFactoryExpressionType left, Azure.ResourceManager.DataFactory.Models.DataFactoryExpressionType right) { throw null; } public override string ToString() { throw null; } } - public partial class DataFactoryFlowletDefinition : Azure.ResourceManager.DataFactory.Models.DataFactoryDataFlowDefinition + public partial class DataFactoryFlowletProperties : Azure.ResourceManager.DataFactory.Models.DataFactoryDataFlowProperties { - public DataFactoryFlowletDefinition() { } + public DataFactoryFlowletProperties() { } public string Script { get { throw null; } set { } } public System.Collections.Generic.IList ScriptLines { get { throw null; } } public System.Collections.Generic.IList Sinks { get { throw null; } } public System.Collections.Generic.IList Sources { get { throw null; } } public System.Collections.Generic.IList Transformations { get { throw null; } } } - public partial class DataFactoryGlobalParameterSpecification + public partial class DataFactoryGlobalParameterProperties { - public DataFactoryGlobalParameterSpecification(Azure.ResourceManager.DataFactory.Models.DataFactoryGlobalParameterType parameterType, System.BinaryData value) { } - public Azure.ResourceManager.DataFactory.Models.DataFactoryGlobalParameterType ParameterType { get { throw null; } set { } } + public DataFactoryGlobalParameterProperties(Azure.ResourceManager.DataFactory.Models.DataFactoryGlobalParameterType globalParameterType, System.BinaryData value) { } + public Azure.ResourceManager.DataFactory.Models.DataFactoryGlobalParameterType GlobalParameterType { get { throw null; } set { } } public System.BinaryData Value { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -2249,7 +2213,7 @@ public DataFactoryGlobalParameterSpecification(Azure.ResourceManager.DataFactory public static bool operator !=(Azure.ResourceManager.DataFactory.Models.DataFactoryGlobalParameterType left, Azure.ResourceManager.DataFactory.Models.DataFactoryGlobalParameterType right) { throw null; } public override string ToString() { throw null; } } - public partial class DataFactoryHttpDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class DataFactoryHttpDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public DataFactoryHttpDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AdditionalHeaders { get { throw null; } set { } } @@ -2266,21 +2230,21 @@ public DataFactoryHttpFileSource() { } } public partial class DataFactoryIntegrationRuntimeDebugInfo : Azure.ResourceManager.DataFactory.Models.DataFactoryDebugInfo { - public DataFactoryIntegrationRuntimeDebugInfo(Azure.ResourceManager.DataFactory.Models.DataFactoryIntegrationRuntimeDefinition properties) { } - public Azure.ResourceManager.DataFactory.Models.DataFactoryIntegrationRuntimeDefinition Properties { get { throw null; } } - } - public partial class DataFactoryIntegrationRuntimeDefinition - { - public DataFactoryIntegrationRuntimeDefinition() { } - public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } - public string Description { get { throw null; } set { } } + public DataFactoryIntegrationRuntimeDebugInfo(Azure.ResourceManager.DataFactory.Models.DataFactoryIntegrationRuntimeProperties properties) { } + public Azure.ResourceManager.DataFactory.Models.DataFactoryIntegrationRuntimeProperties Properties { get { throw null; } } } public partial class DataFactoryIntegrationRuntimePatch { public DataFactoryIntegrationRuntimePatch() { } - public Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeAutoUpdate? AutoUpdate { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeAutoUpdateState? AutoUpdate { get { throw null; } set { } } public System.TimeSpan? UpdateDelayOffset { get { throw null; } set { } } } + public partial class DataFactoryIntegrationRuntimeProperties + { + public DataFactoryIntegrationRuntimeProperties() { } + public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } + public string Description { get { throw null; } set { } } + } public partial class DataFactoryIntegrationRuntimeStatusResult { internal DataFactoryIntegrationRuntimeStatusResult() { } @@ -2289,26 +2253,40 @@ internal DataFactoryIntegrationRuntimeStatusResult() { } } public partial class DataFactoryLinkedServiceDebugInfo : Azure.ResourceManager.DataFactory.Models.DataFactoryDebugInfo { - public DataFactoryLinkedServiceDebugInfo(Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition properties) { } - public Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition Properties { get { throw null; } } + public DataFactoryLinkedServiceDebugInfo(Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties properties) { } + public Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties Properties { get { throw null; } } } - public partial class DataFactoryLinkedServiceDefinition + public partial class DataFactoryLinkedServiceProperties { - public DataFactoryLinkedServiceDefinition() { } + public DataFactoryLinkedServiceProperties() { } public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } public System.Collections.Generic.IList Annotations { get { throw null; } } public Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeReference ConnectVia { get { throw null; } set { } } public string Description { get { throw null; } set { } } public System.Collections.Generic.IDictionary Parameters { get { throw null; } } } - public partial class DataFactoryManagedIdentityCredentialDefinition : Azure.ResourceManager.DataFactory.Models.Credential + public partial class DataFactoryLogSettings { - public DataFactoryManagedIdentityCredentialDefinition() { } - public string ResourceId { get { throw null; } set { } } + public DataFactoryLogSettings(Azure.ResourceManager.DataFactory.Models.LogLocationSettings logLocationSettings) { } + public Azure.ResourceManager.DataFactory.Models.CopyActivityLogSettings CopyActivityLogSettings { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableCopyActivityLog { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.LogLocationSettings LogLocationSettings { get { throw null; } set { } } } - public partial class DataFactoryMappingDataFlowDefinition : Azure.ResourceManager.DataFactory.Models.DataFactoryDataFlowDefinition + public partial class DataFactoryManagedIdentityCredentialProperties : Azure.ResourceManager.DataFactory.Models.DataFactoryCredential { - public DataFactoryMappingDataFlowDefinition() { } + public DataFactoryManagedIdentityCredentialProperties() { } + public Azure.Core.ResourceIdentifier ResourceId { get { throw null; } set { } } + } + public partial class DataFactoryManagedVirtualNetworkProperties + { + public DataFactoryManagedVirtualNetworkProperties() { } + public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } + public string Alias { get { throw null; } } + public System.Guid? VnetId { get { throw null; } } + } + public partial class DataFactoryMappingDataFlowProperties : Azure.ResourceManager.DataFactory.Models.DataFactoryDataFlowProperties + { + public DataFactoryMappingDataFlowProperties() { } public string Script { get { throw null; } set { } } public System.Collections.Generic.IList ScriptLines { get { throw null; } } public System.Collections.Generic.IList Sinks { get { throw null; } } @@ -2374,15 +2352,15 @@ internal DataFactoryPipelineRunInfo() { } public int? DurationInMs { get { throw null; } } public Azure.ResourceManager.DataFactory.Models.DataFactoryPipelineRunEntityInfo InvokedBy { get { throw null; } } public bool? IsLatest { get { throw null; } } - public System.DateTimeOffset? LastUpdated { get { throw null; } } + public System.DateTimeOffset? LastUpdatedOn { get { throw null; } } public string Message { get { throw null; } } public System.Collections.Generic.IReadOnlyDictionary Parameters { get { throw null; } } public string PipelineName { get { throw null; } } public System.Collections.Generic.IReadOnlyDictionary RunDimensions { get { throw null; } } - public System.DateTimeOffset? RunEnd { get { throw null; } } + public System.DateTimeOffset? RunEndOn { get { throw null; } } public string RunGroupId { get { throw null; } } public System.Guid? RunId { get { throw null; } } - public System.DateTimeOffset? RunStart { get { throw null; } } + public System.DateTimeOffset? RunStartOn { get { throw null; } } public string Status { get { throw null; } } } public partial class DataFactoryPrivateEndpointConnectionCreateOrUpdateContent : Azure.ResourceManager.Models.ResourceData @@ -2391,13 +2369,24 @@ public DataFactoryPrivateEndpointConnectionCreateOrUpdateContent() { } public Azure.ETag? ETag { get { throw null; } } public Azure.ResourceManager.DataFactory.Models.PrivateLinkConnectionApprovalRequest Properties { get { throw null; } set { } } } - public partial class DataFactoryPrivateEndpointProperties + public partial class DataFactoryPrivateEndpointConnectionProperties { - public DataFactoryPrivateEndpointProperties() { } + public DataFactoryPrivateEndpointConnectionProperties() { } public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } } public Azure.ResourceManager.DataFactory.Models.PrivateLinkConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } public string ProvisioningState { get { throw null; } } } + public partial class DataFactoryPrivateEndpointProperties + { + public DataFactoryPrivateEndpointProperties() { } + public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } + public Azure.ResourceManager.DataFactory.Models.ConnectionStateProperties ConnectionState { get { throw null; } set { } } + public System.Collections.Generic.IList Fqdns { get { throw null; } } + public string GroupId { get { throw null; } set { } } + public bool? IsReserved { get { throw null; } } + public Azure.Core.ResourceIdentifier PrivateLinkResourceId { get { throw null; } set { } } + public string ProvisioningState { get { throw null; } } + } public partial class DataFactoryPrivateLinkResource : Azure.ResourceManager.Models.ResourceData { public DataFactoryPrivateLinkResource() { } @@ -2429,9 +2418,106 @@ public DataFactoryPrivateLinkResourceProperties() { } public static bool operator !=(Azure.ResourceManager.DataFactory.Models.DataFactoryPublicNetworkAccess left, Azure.ResourceManager.DataFactory.Models.DataFactoryPublicNetworkAccess right) { throw null; } public override string ToString() { throw null; } } - public partial class DataFactoryTriggerDefinition + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct DataFactoryRecurrenceFrequency : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public DataFactoryRecurrenceFrequency(string value) { throw null; } + public static Azure.ResourceManager.DataFactory.Models.DataFactoryRecurrenceFrequency Day { get { throw null; } } + public static Azure.ResourceManager.DataFactory.Models.DataFactoryRecurrenceFrequency Hour { get { throw null; } } + public static Azure.ResourceManager.DataFactory.Models.DataFactoryRecurrenceFrequency Minute { get { throw null; } } + public static Azure.ResourceManager.DataFactory.Models.DataFactoryRecurrenceFrequency Month { get { throw null; } } + public static Azure.ResourceManager.DataFactory.Models.DataFactoryRecurrenceFrequency NotSpecified { get { throw null; } } + public static Azure.ResourceManager.DataFactory.Models.DataFactoryRecurrenceFrequency Week { get { throw null; } } + public static Azure.ResourceManager.DataFactory.Models.DataFactoryRecurrenceFrequency Year { get { throw null; } } + public bool Equals(Azure.ResourceManager.DataFactory.Models.DataFactoryRecurrenceFrequency other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.DataFactory.Models.DataFactoryRecurrenceFrequency left, Azure.ResourceManager.DataFactory.Models.DataFactoryRecurrenceFrequency right) { throw null; } + public static implicit operator Azure.ResourceManager.DataFactory.Models.DataFactoryRecurrenceFrequency (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.DataFactory.Models.DataFactoryRecurrenceFrequency left, Azure.ResourceManager.DataFactory.Models.DataFactoryRecurrenceFrequency right) { throw null; } + public override string ToString() { throw null; } + } + public partial class DataFactoryRecurrenceSchedule + { + public DataFactoryRecurrenceSchedule() { } + public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } + public System.Collections.Generic.IList Hours { get { throw null; } } + public System.Collections.Generic.IList Minutes { get { throw null; } } + public System.Collections.Generic.IList MonthDays { get { throw null; } } + public System.Collections.Generic.IList MonthlyOccurrences { get { throw null; } } + public System.Collections.Generic.IList WeekDays { get { throw null; } } + } + public partial class DataFactoryRecurrenceScheduleOccurrence { - public DataFactoryTriggerDefinition() { } + public DataFactoryRecurrenceScheduleOccurrence() { } + public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } + public Azure.ResourceManager.DataFactory.Models.DataFactoryDayOfWeek? Day { get { throw null; } set { } } + public int? Occurrence { get { throw null; } set { } } + } + public partial class DataFactoryScheduleTrigger : Azure.ResourceManager.DataFactory.Models.MultiplePipelineTrigger + { + public DataFactoryScheduleTrigger(Azure.ResourceManager.DataFactory.Models.ScheduleTriggerRecurrence recurrence) { } + public Azure.ResourceManager.DataFactory.Models.ScheduleTriggerRecurrence Recurrence { get { throw null; } set { } } + } + public partial class DataFactoryScriptAction + { + public DataFactoryScriptAction(string name, System.Uri uri, System.BinaryData roles) { } + public string Name { get { throw null; } set { } } + public string Parameters { get { throw null; } set { } } + public System.BinaryData Roles { get { throw null; } set { } } + public System.Uri Uri { get { throw null; } set { } } + } + public partial class DataFactoryScriptActivity : Azure.ResourceManager.DataFactory.Models.ExecutionActivity + { + public DataFactoryScriptActivity(string name) : base (default(string)) { } + public Azure.ResourceManager.DataFactory.Models.ScriptActivityTypeLogSettings LogSettings { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement ScriptBlockExecutionTimeout { get { throw null; } set { } } + public System.Collections.Generic.IList Scripts { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct DataFactoryScriptType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public DataFactoryScriptType(string value) { throw null; } + public static Azure.ResourceManager.DataFactory.Models.DataFactoryScriptType NonQuery { get { throw null; } } + public static Azure.ResourceManager.DataFactory.Models.DataFactoryScriptType Query { get { throw null; } } + public bool Equals(Azure.ResourceManager.DataFactory.Models.DataFactoryScriptType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.DataFactory.Models.DataFactoryScriptType left, Azure.ResourceManager.DataFactory.Models.DataFactoryScriptType right) { throw null; } + public static implicit operator Azure.ResourceManager.DataFactory.Models.DataFactoryScriptType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.DataFactory.Models.DataFactoryScriptType left, Azure.ResourceManager.DataFactory.Models.DataFactoryScriptType right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct DataFactorySparkConfigurationType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public DataFactorySparkConfigurationType(string value) { throw null; } + public static Azure.ResourceManager.DataFactory.Models.DataFactorySparkConfigurationType Artifact { get { throw null; } } + public static Azure.ResourceManager.DataFactory.Models.DataFactorySparkConfigurationType Customized { get { throw null; } } + public static Azure.ResourceManager.DataFactory.Models.DataFactorySparkConfigurationType Default { get { throw null; } } + public bool Equals(Azure.ResourceManager.DataFactory.Models.DataFactorySparkConfigurationType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.DataFactory.Models.DataFactorySparkConfigurationType left, Azure.ResourceManager.DataFactory.Models.DataFactorySparkConfigurationType right) { throw null; } + public static implicit operator Azure.ResourceManager.DataFactory.Models.DataFactorySparkConfigurationType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.DataFactory.Models.DataFactorySparkConfigurationType left, Azure.ResourceManager.DataFactory.Models.DataFactorySparkConfigurationType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class DataFactoryTriggerProperties + { + public DataFactoryTriggerProperties() { } public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } public System.Collections.Generic.IList Annotations { get { throw null; } } public string Description { get { throw null; } set { } } @@ -2519,9 +2605,9 @@ internal DataFactoryTriggerSubscriptionOperationResult() { } public Azure.ResourceManager.DataFactory.Models.EventSubscriptionStatus? Status { get { throw null; } } public string TriggerName { get { throw null; } } } - public partial class DataFactoryWranglingDataFlowDefinition : Azure.ResourceManager.DataFactory.Models.DataFactoryDataFlowDefinition + public partial class DataFactoryWranglingDataFlowProperties : Azure.ResourceManager.DataFactory.Models.DataFactoryDataFlowProperties { - public DataFactoryWranglingDataFlowDefinition() { } + public DataFactoryWranglingDataFlowProperties() { } public string DocumentLocale { get { throw null; } set { } } public string Script { get { throw null; } set { } } public System.Collections.Generic.IList Sources { get { throw null; } } @@ -2597,7 +2683,7 @@ internal DataFlowDebugSessionInfo() { } public System.DateTimeOffset? LastActivityOn { get { throw null; } } public int? NodeCount { get { throw null; } } public System.Guid? SessionId { get { throw null; } } - public string StartOn { get { throw null; } } + public System.DateTimeOffset? StartOn { get { throw null; } } public int? TimeToLiveInMinutes { get { throw null; } } } public partial class DataFlowReference @@ -2670,6 +2756,15 @@ public DataLakeAnalyticsUsqlActivity(string name, Azure.Core.Expressions.DataFac public Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference ScriptLinkedService { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ScriptPath { get { throw null; } set { } } } + public partial class DataMapperMapping + { + public DataMapperMapping() { } + public System.Collections.Generic.IList AttributeMappings { get { throw null; } } + public Azure.ResourceManager.DataFactory.Models.MapperConnectionReference SourceConnectionReference { get { throw null; } set { } } + public System.BinaryData SourceDenormalizeInfo { get { throw null; } set { } } + public string SourceEntityName { get { throw null; } set { } } + public string TargetEntityName { get { throw null; } set { } } + } public partial class DatasetAvroFormat : Azure.ResourceManager.DataFactory.Models.DatasetStorageFormat { public DatasetAvroFormat() { } @@ -2762,21 +2857,11 @@ public DatasetTextFormat() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SkipLineCount { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement TreatEmptyAsNull { get { throw null; } set { } } } - public partial class DataworldLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class DataworldLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public DataworldLinkedService(Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition apiToken) { } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ApiToken { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } - } - public enum DayOfWeek - { - Sunday = 0, - Monday = 1, - Tuesday = 2, - Wednesday = 3, - Thursday = 4, - Friday = 5, - Saturday = 6, + public string EncryptedCredential { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct Db2AuthenticationType : System.IEquatable @@ -2795,14 +2880,14 @@ public enum DayOfWeek public static bool operator !=(Azure.ResourceManager.DataFactory.Models.Db2AuthenticationType left, Azure.ResourceManager.DataFactory.Models.Db2AuthenticationType right) { throw null; } public override string ToString() { throw null; } } - public partial class Db2LinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class Db2LinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public Db2LinkedService() { } public Azure.ResourceManager.DataFactory.Models.Db2AuthenticationType? AuthenticationType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement CertificateCommonName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Database { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement PackageCollection { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Server { get { throw null; } set { } } @@ -2813,7 +2898,7 @@ public partial class Db2Source : Azure.ResourceManager.DataFactory.Models.Tabula public Db2Source() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class Db2TableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class Db2TableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public Db2TableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SchemaTypePropertiesSchema { get { throw null; } set { } } @@ -2835,7 +2920,7 @@ public partial class DeleteDataFlowDebugSessionContent public DeleteDataFlowDebugSessionContent() { } public System.Guid? SessionId { get { throw null; } set { } } } - public partial class DelimitedTextDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class DelimitedTextDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public DelimitedTextDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ColumnDelimiter { get { throw null; } set { } } @@ -2907,7 +2992,7 @@ public DistcpSettings(Azure.Core.Expressions.DataFactory.DataFactoryElement ResourceManagerEndpoint { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement TempScriptPath { get { throw null; } set { } } } - public partial class DocumentDBCollectionDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class DocumentDBCollectionDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public DocumentDBCollectionDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName, Azure.Core.Expressions.DataFactory.DataFactoryElement collectionName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement CollectionName { get { throw null; } set { } } @@ -2926,11 +3011,11 @@ public DocumentDBCollectionSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement QueryTimeout { get { throw null; } set { } } } - public partial class DrillLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class DrillLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public DrillLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference Password { get { throw null; } set { } } } public partial class DrillSource : Azure.ResourceManager.DataFactory.Models.TabularSource @@ -2938,7 +3023,7 @@ public partial class DrillSource : Azure.ResourceManager.DataFactory.Models.Tabu public DrillSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class DrillTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class DrillTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public DrillTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SchemaTypePropertiesSchema { get { throw null; } set { } } @@ -2957,17 +3042,17 @@ public DWCopyCommandSettings() { } public System.Collections.Generic.IDictionary AdditionalOptions { get { throw null; } } public System.Collections.Generic.IList DefaultValues { get { throw null; } } } - public partial class DynamicsAXLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class DynamicsAXLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public DynamicsAXLinkedService(System.BinaryData uri, Azure.Core.Expressions.DataFactory.DataFactoryElement servicePrincipalId, Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition servicePrincipalKey, Azure.Core.Expressions.DataFactory.DataFactoryElement tenant, Azure.Core.Expressions.DataFactory.DataFactoryElement aadResourceId) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AadResourceId { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ServicePrincipalId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ServicePrincipalKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Tenant { get { throw null; } set { } } public System.BinaryData Uri { get { throw null; } set { } } } - public partial class DynamicsAXResourceDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class DynamicsAXResourceDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public DynamicsAXResourceDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName, Azure.Core.Expressions.DataFactory.DataFactoryElement path) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Path { get { throw null; } set { } } @@ -2978,17 +3063,17 @@ public DynamicsAXSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement HttpRequestTimeout { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class DynamicsCrmEntityDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class DynamicsCrmEntityDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public DynamicsCrmEntityDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement EntityName { get { throw null; } set { } } } - public partial class DynamicsCrmLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class DynamicsCrmLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public DynamicsCrmLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement deploymentType, Azure.Core.Expressions.DataFactory.DataFactoryElement authenticationType) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AuthenticationType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement DeploymentType { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement HostName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement OrganizationName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } @@ -3012,18 +3097,18 @@ public DynamicsCrmSource() { } public System.BinaryData AdditionalColumns { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class DynamicsEntityDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class DynamicsEntityDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public DynamicsEntityDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement EntityName { get { throw null; } set { } } } - public partial class DynamicsLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class DynamicsLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public DynamicsLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement deploymentType, Azure.Core.Expressions.DataFactory.DataFactoryElement authenticationType) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AuthenticationType { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.DataFactoryCredentialReference Credential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement DeploymentType { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement HostName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement OrganizationName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } @@ -3064,10 +3149,10 @@ public DynamicsSource() { } public System.BinaryData AdditionalColumns { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class EloquaLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class EloquaLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public EloquaLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement endpoint, Azure.Core.Expressions.DataFactory.DataFactoryElement username) { } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Endpoint { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseEncryptedEndpoints { get { throw null; } set { } } @@ -3075,7 +3160,7 @@ public EloquaLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement public Azure.Core.Expressions.DataFactory.DataFactoryElement UsePeerVerification { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Username { get { throw null; } set { } } } - public partial class EloquaObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class EloquaObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public EloquaObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -3147,7 +3232,7 @@ public EnvironmentVariableSetup(string variableName, string variableValue) { } public static bool operator !=(Azure.ResourceManager.DataFactory.Models.EventSubscriptionStatus left, Azure.ResourceManager.DataFactory.Models.EventSubscriptionStatus right) { throw null; } public override string ToString() { throw null; } } - public partial class ExcelDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class ExcelDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public ExcelDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.ResourceManager.DataFactory.Models.DatasetCompression Compression { get { throw null; } set { } } @@ -3167,7 +3252,7 @@ public ExcelSource() { } public partial class ExecuteDataFlowActivity : Azure.ResourceManager.DataFactory.Models.ExecutionActivity { public ExecuteDataFlowActivity(string name, Azure.ResourceManager.DataFactory.Models.DataFlowReference dataFlow) : base (default(string)) { } - public Azure.ResourceManager.DataFactory.Models.ExecuteDataFlowActivityTypePropertiesCompute Compute { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.ExecuteDataFlowActivityComputeType Compute { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ContinueOnError { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.DataFlowReference DataFlow { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeReference IntegrationRuntime { get { throw null; } set { } } @@ -3176,9 +3261,9 @@ public ExecuteDataFlowActivity(string name, Azure.ResourceManager.DataFactory.Mo public Azure.ResourceManager.DataFactory.Models.DataFlowStagingInfo Staging { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement TraceLevel { get { throw null; } set { } } } - public partial class ExecuteDataFlowActivityTypePropertiesCompute + public partial class ExecuteDataFlowActivityComputeType { - public ExecuteDataFlowActivityTypePropertiesCompute() { } + public ExecuteDataFlowActivityComputeType() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ComputeType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement CoreCount { get { throw null; } set { } } } @@ -3194,7 +3279,7 @@ public partial class ExecutePipelineActivityPolicy { public ExecutePipelineActivityPolicy() { } public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } - public bool? EnableSecureInput { get { throw null; } set { } } + public bool? IsSecureInputEnabled { get { throw null; } set { } } } public partial class ExecuteSsisPackageActivity : Azure.ResourceManager.DataFactory.Models.ExecutionActivity { @@ -3212,14 +3297,14 @@ public ExecuteSsisPackageActivity(string name, Azure.ResourceManager.DataFactory public System.Collections.Generic.IDictionary PropertyOverrides { get { throw null; } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Runtime { get { throw null; } set { } } } - public partial class ExecuteWranglingDataflowActivity : Azure.ResourceManager.DataFactory.Models.DataFactoryActivity + public partial class ExecuteWranglingDataflowActivity : Azure.ResourceManager.DataFactory.Models.PipelineActivity { public ExecuteWranglingDataflowActivity(string name, Azure.ResourceManager.DataFactory.Models.DataFlowReference dataFlow) : base (default(string)) { } - public Azure.ResourceManager.DataFactory.Models.ExecuteDataFlowActivityTypePropertiesCompute Compute { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.ExecuteDataFlowActivityComputeType Compute { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ContinueOnError { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.DataFlowReference DataFlow { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeReference IntegrationRuntime { get { throw null; } set { } } - public Azure.ResourceManager.DataFactory.Models.ActivityPolicy Policy { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.PipelineActivityPolicy Policy { get { throw null; } set { } } public System.Collections.Generic.IList Queries { get { throw null; } } public Azure.Core.Expressions.DataFactory.DataFactoryElement RunConcurrently { get { throw null; } set { } } public System.Collections.Generic.IDictionary Sinks { get { throw null; } } @@ -3227,11 +3312,11 @@ public ExecuteWranglingDataflowActivity(string name, Azure.ResourceManager.DataF public Azure.ResourceManager.DataFactory.Models.DataFlowStagingInfo Staging { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement TraceLevel { get { throw null; } set { } } } - public partial class ExecutionActivity : Azure.ResourceManager.DataFactory.Models.DataFactoryActivity + public partial class ExecutionActivity : Azure.ResourceManager.DataFactory.Models.PipelineActivity { public ExecutionActivity(string name) : base (default(string)) { } public Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference LinkedServiceName { get { throw null; } set { } } - public Azure.ResourceManager.DataFactory.Models.ActivityPolicy Policy { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.PipelineActivityPolicy Policy { get { throw null; } set { } } } public partial class ExportSettings { @@ -3260,11 +3345,17 @@ internal ExposureControlResult() { } public string FeatureName { get { throw null; } } public string Value { get { throw null; } } } + public partial class FactoryGitHubClientSecret + { + public FactoryGitHubClientSecret() { } + public System.Uri ByoaSecretAkvUri { get { throw null; } set { } } + public string ByoaSecretName { get { throw null; } set { } } + } public partial class FactoryGitHubConfiguration : Azure.ResourceManager.DataFactory.Models.FactoryRepoConfiguration { public FactoryGitHubConfiguration(string accountName, string repositoryName, string collaborationBranch, string rootFolder) : base (default(string), default(string), default(string), default(string)) { } public string ClientId { get { throw null; } set { } } - public Azure.ResourceManager.DataFactory.Models.GitHubClientSecret ClientSecret { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.FactoryGitHubClientSecret ClientSecret { get { throw null; } set { } } public string HostName { get { throw null; } set { } } } public abstract partial class FactoryRepoConfiguration @@ -3277,9 +3368,9 @@ protected FactoryRepoConfiguration(string accountName, string repositoryName, st public string RepositoryName { get { throw null; } set { } } public string RootFolder { get { throw null; } set { } } } - public partial class FactoryRepoUpdate + public partial class FactoryRepoContent { - public FactoryRepoUpdate() { } + public FactoryRepoContent() { } public Azure.Core.ResourceIdentifier FactoryResourceId { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.FactoryRepoConfiguration RepoConfiguration { get { throw null; } set { } } } @@ -3295,10 +3386,10 @@ public FailActivity(string name, Azure.Core.Expressions.DataFactory.DataFactoryE public Azure.Core.Expressions.DataFactory.DataFactoryElement ErrorCode { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Message { get { throw null; } set { } } } - public partial class FileServerLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class FileServerLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public FileServerLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement host) { } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Host { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UserId { get { throw null; } set { } } @@ -3325,7 +3416,7 @@ public partial class FileServerWriteSettings : Azure.ResourceManager.DataFactory { public FileServerWriteSettings() { } } - public partial class FileShareDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class FileShareDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public FileShareDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.ResourceManager.DataFactory.Models.DatasetCompression Compression { get { throw null; } set { } } @@ -3349,17 +3440,17 @@ public FileSystemSource() { } } public partial class FilterActivity : Azure.ResourceManager.DataFactory.Models.ControlActivity { - public FilterActivity(string name, Azure.ResourceManager.DataFactory.Models.DataFactoryExpressionDefinition items, Azure.ResourceManager.DataFactory.Models.DataFactoryExpressionDefinition condition) : base (default(string)) { } - public Azure.ResourceManager.DataFactory.Models.DataFactoryExpressionDefinition Condition { get { throw null; } set { } } - public Azure.ResourceManager.DataFactory.Models.DataFactoryExpressionDefinition Items { get { throw null; } set { } } + public FilterActivity(string name, Azure.ResourceManager.DataFactory.Models.DataFactoryExpression items, Azure.ResourceManager.DataFactory.Models.DataFactoryExpression condition) : base (default(string)) { } + public Azure.ResourceManager.DataFactory.Models.DataFactoryExpression Condition { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.DataFactoryExpression Items { get { throw null; } set { } } } public partial class ForEachActivity : Azure.ResourceManager.DataFactory.Models.ControlActivity { - public ForEachActivity(string name, Azure.ResourceManager.DataFactory.Models.DataFactoryExpressionDefinition items, System.Collections.Generic.IEnumerable activities) : base (default(string)) { } - public System.Collections.Generic.IList Activities { get { throw null; } } + public ForEachActivity(string name, Azure.ResourceManager.DataFactory.Models.DataFactoryExpression items, System.Collections.Generic.IEnumerable activities) : base (default(string)) { } + public System.Collections.Generic.IList Activities { get { throw null; } } public int? BatchCount { get { throw null; } set { } } public bool? IsSequential { get { throw null; } set { } } - public Azure.ResourceManager.DataFactory.Models.DataFactoryExpressionDefinition Items { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.DataFactoryExpression Items { get { throw null; } set { } } } public partial class FormatReadSettings { @@ -3402,13 +3493,13 @@ public FtpReadSettings() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement WildcardFileName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement WildcardFolderPath { get { throw null; } set { } } } - public partial class FtpServerLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class FtpServerLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public FtpServerLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement host) { } public Azure.ResourceManager.DataFactory.Models.FtpAuthenticationType? AuthenticationType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableServerCertificateValidation { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableSsl { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Host { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Port { get { throw null; } set { } } @@ -3437,19 +3528,13 @@ public GitHubAccessTokenContent(string gitHubAccessCode, System.Uri gitHubAccess public string GitHubAccessCode { get { throw null; } } public System.Uri GitHubAccessTokenBaseUri { get { throw null; } } public string GitHubClientId { get { throw null; } set { } } - public Azure.ResourceManager.DataFactory.Models.GitHubClientSecret GitHubClientSecret { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.FactoryGitHubClientSecret GitHubClientSecret { get { throw null; } set { } } } public partial class GitHubAccessTokenResult { internal GitHubAccessTokenResult() { } public string GitHubAccessToken { get { throw null; } } } - public partial class GitHubClientSecret - { - public GitHubClientSecret() { } - public System.Uri ByoaSecretAkvUri { get { throw null; } set { } } - public string ByoaSecretName { get { throw null; } set { } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct GoogleAdWordsAuthenticationType : System.IEquatable { @@ -3468,7 +3553,7 @@ public GitHubClientSecret() { } public static bool operator !=(Azure.ResourceManager.DataFactory.Models.GoogleAdWordsAuthenticationType left, Azure.ResourceManager.DataFactory.Models.GoogleAdWordsAuthenticationType right) { throw null; } public override string ToString() { throw null; } } - public partial class GoogleAdWordsLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class GoogleAdWordsLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public GoogleAdWordsLinkedService() { } public Azure.ResourceManager.DataFactory.Models.GoogleAdWordsAuthenticationType? AuthenticationType { get { throw null; } set { } } @@ -3478,13 +3563,13 @@ public GoogleAdWordsLinkedService() { } public System.BinaryData ConnectionProperties { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition DeveloperToken { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Email { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement KeyFilePath { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition RefreshToken { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement TrustedCertPath { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseSystemTrustStore { get { throw null; } set { } } } - public partial class GoogleAdWordsObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class GoogleAdWordsObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public GoogleAdWordsObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -3512,7 +3597,7 @@ public GoogleAdWordsSource() { } public static bool operator !=(Azure.ResourceManager.DataFactory.Models.GoogleBigQueryAuthenticationType left, Azure.ResourceManager.DataFactory.Models.GoogleBigQueryAuthenticationType right) { throw null; } public override string ToString() { throw null; } } - public partial class GoogleBigQueryLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class GoogleBigQueryLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public GoogleBigQueryLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement project, Azure.ResourceManager.DataFactory.Models.GoogleBigQueryAuthenticationType authenticationType) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AdditionalProjects { get { throw null; } set { } } @@ -3520,7 +3605,7 @@ public GoogleBigQueryLinkedService(Azure.Core.Expressions.DataFactory.DataFactor public Azure.Core.Expressions.DataFactory.DataFactoryElement ClientId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ClientSecret { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Email { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement KeyFilePath { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Project { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition RefreshToken { get { throw null; } set { } } @@ -3528,7 +3613,7 @@ public GoogleBigQueryLinkedService(Azure.Core.Expressions.DataFactory.DataFactor public Azure.Core.Expressions.DataFactory.DataFactoryElement TrustedCertPath { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseSystemTrustStore { get { throw null; } set { } } } - public partial class GoogleBigQueryObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class GoogleBigQueryObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public GoogleBigQueryObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Dataset { get { throw null; } set { } } @@ -3540,11 +3625,11 @@ public partial class GoogleBigQuerySource : Azure.ResourceManager.DataFactory.Mo public GoogleBigQuerySource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class GoogleCloudStorageLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class GoogleCloudStorageLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public GoogleCloudStorageLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AccessKeyId { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition SecretAccessKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ServiceUri { get { throw null; } set { } } } @@ -3568,17 +3653,17 @@ public GoogleCloudStorageReadSettings() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement WildcardFileName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement WildcardFolderPath { get { throw null; } set { } } } - public partial class GoogleSheetsLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class GoogleSheetsLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public GoogleSheetsLinkedService(Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition apiToken) { } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ApiToken { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } } - public partial class GreenplumLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class GreenplumLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public GreenplumLinkedService() { } public System.BinaryData ConnectionString { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference Password { get { throw null; } set { } } } public partial class GreenplumSource : Azure.ResourceManager.DataFactory.Models.TabularSource @@ -3586,7 +3671,7 @@ public partial class GreenplumSource : Azure.ResourceManager.DataFactory.Models. public GreenplumSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class GreenplumTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class GreenplumTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public GreenplumTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SchemaTypePropertiesSchema { get { throw null; } set { } } @@ -3611,14 +3696,14 @@ public GreenplumTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinke public static bool operator !=(Azure.ResourceManager.DataFactory.Models.HBaseAuthenticationType left, Azure.ResourceManager.DataFactory.Models.HBaseAuthenticationType right) { throw null; } public override string ToString() { throw null; } } - public partial class HBaseLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class HBaseLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public HBaseLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement host, Azure.ResourceManager.DataFactory.Models.HBaseAuthenticationType authenticationType) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowHostNameCNMismatch { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowSelfSignedServerCert { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.HBaseAuthenticationType AuthenticationType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableSsl { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Host { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement HttpPath { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } @@ -3626,7 +3711,7 @@ public HBaseLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement< public Azure.Core.Expressions.DataFactory.DataFactoryElement TrustedCertPath { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Username { get { throw null; } set { } } } - public partial class HBaseObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class HBaseObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public HBaseObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -3636,11 +3721,11 @@ public partial class HBaseSource : Azure.ResourceManager.DataFactory.Models.Tabu public HBaseSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class HdfsLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class HdfsLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public HdfsLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement uri) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AuthenticationType { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Uri { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UserName { get { throw null; } set { } } @@ -3700,11 +3785,11 @@ public HDInsightHiveActivity(string name) : base (default(string)) { } public System.Collections.Generic.IList StorageLinkedServices { get { throw null; } } public System.Collections.Generic.IDictionary Variables { get { throw null; } } } - public partial class HDInsightLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class HDInsightLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public HDInsightLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement clusterUri) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ClusterUri { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement FileSystem { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference HcatalogLinkedServiceName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement IsEspEnabled { get { throw null; } set { } } @@ -3724,7 +3809,7 @@ public HDInsightMapReduceActivity(string name, Azure.Core.Expressions.DataFactor public Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference JarLinkedService { get { throw null; } set { } } public System.Collections.Generic.IList StorageLinkedServices { get { throw null; } } } - public partial class HDInsightOnDemandLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class HDInsightOnDemandLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public HDInsightOnDemandLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement clusterSize, Azure.Core.Expressions.DataFactory.DataFactoryElement timeToLiveExpression, Azure.Core.Expressions.DataFactory.DataFactoryElement version, Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName, Azure.Core.Expressions.DataFactory.DataFactoryElement hostSubscriptionId, Azure.Core.Expressions.DataFactory.DataFactoryElement tenant, Azure.Core.Expressions.DataFactory.DataFactoryElement clusterResourceGroup) { } public System.Collections.Generic.IList AdditionalLinkedServiceNames { get { throw null; } } @@ -3739,7 +3824,7 @@ public HDInsightOnDemandLinkedService(Azure.Core.Expressions.DataFactory.DataFac public System.BinaryData CoreConfiguration { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.DataFactoryCredentialReference Credential { get { throw null; } set { } } public System.BinaryData DataNodeSize { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public System.BinaryData HBaseConfiguration { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference HcatalogLinkedServiceName { get { throw null; } set { } } public System.BinaryData HdfsConfiguration { get { throw null; } set { } } @@ -3749,7 +3834,7 @@ public HDInsightOnDemandLinkedService(Azure.Core.Expressions.DataFactory.DataFac public Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference LinkedServiceName { get { throw null; } set { } } public System.BinaryData MapReduceConfiguration { get { throw null; } set { } } public System.BinaryData OozieConfiguration { get { throw null; } set { } } - public System.Collections.Generic.IList ScriptActions { get { throw null; } } + public System.Collections.Generic.IList ScriptActions { get { throw null; } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ServicePrincipalId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ServicePrincipalKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement SparkVersion { get { throw null; } set { } } @@ -3820,14 +3905,14 @@ public HDInsightStreamingActivity(string name, Azure.Core.Expressions.DataFactor public static bool operator !=(Azure.ResourceManager.DataFactory.Models.HiveAuthenticationType left, Azure.ResourceManager.DataFactory.Models.HiveAuthenticationType right) { throw null; } public override string ToString() { throw null; } } - public partial class HiveLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class HiveLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public HiveLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement host, Azure.ResourceManager.DataFactory.Models.HiveAuthenticationType authenticationType) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowHostNameCNMismatch { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowSelfSignedServerCert { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.HiveAuthenticationType AuthenticationType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableSsl { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Host { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement HttpPath { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } @@ -3841,7 +3926,7 @@ public HiveLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement UseSystemTrustStore { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ZooKeeperNameSpace { get { throw null; } set { } } } - public partial class HiveObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class HiveObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public HiveObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SchemaTypePropertiesSchema { get { throw null; } set { } } @@ -3912,7 +3997,7 @@ public HiveSource() { } public static bool operator !=(Azure.ResourceManager.DataFactory.Models.HttpAuthenticationType left, Azure.ResourceManager.DataFactory.Models.HttpAuthenticationType right) { throw null; } public override string ToString() { throw null; } } - public partial class HttpLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class HttpLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public HttpLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement uri) { } public Azure.ResourceManager.DataFactory.Models.HttpAuthenticationType? AuthenticationType { get { throw null; } set { } } @@ -3920,7 +4005,7 @@ public HttpLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement CertThumbprint { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement EmbeddedCertData { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableServerCertificateValidation { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Uri { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UserName { get { throw null; } set { } } @@ -3939,19 +4024,19 @@ public partial class HttpServerLocation : Azure.ResourceManager.DataFactory.Mode public HttpServerLocation() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement RelativeUri { get { throw null; } set { } } } - public partial class HubspotLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class HubspotLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public HubspotLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement clientId) { } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition AccessToken { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ClientId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ClientSecret { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition RefreshToken { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseEncryptedEndpoints { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseHostVerification { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UsePeerVerification { get { throw null; } set { } } } - public partial class HubspotObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class HubspotObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public HubspotObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -3963,10 +4048,10 @@ public HubspotSource() { } } public partial class IfConditionActivity : Azure.ResourceManager.DataFactory.Models.ControlActivity { - public IfConditionActivity(string name, Azure.ResourceManager.DataFactory.Models.DataFactoryExpressionDefinition expression) : base (default(string)) { } - public Azure.ResourceManager.DataFactory.Models.DataFactoryExpressionDefinition Expression { get { throw null; } set { } } - public System.Collections.Generic.IList IfFalseActivities { get { throw null; } } - public System.Collections.Generic.IList IfTrueActivities { get { throw null; } } + public IfConditionActivity(string name, Azure.ResourceManager.DataFactory.Models.DataFactoryExpression expression) : base (default(string)) { } + public Azure.ResourceManager.DataFactory.Models.DataFactoryExpression Expression { get { throw null; } set { } } + public System.Collections.Generic.IList IfFalseActivities { get { throw null; } } + public System.Collections.Generic.IList IfTrueActivities { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ImpalaAuthenticationType : System.IEquatable @@ -3987,14 +4072,14 @@ public IfConditionActivity(string name, Azure.ResourceManager.DataFactory.Models public static bool operator !=(Azure.ResourceManager.DataFactory.Models.ImpalaAuthenticationType left, Azure.ResourceManager.DataFactory.Models.ImpalaAuthenticationType right) { throw null; } public override string ToString() { throw null; } } - public partial class ImpalaLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class ImpalaLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public ImpalaLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement host, Azure.ResourceManager.DataFactory.Models.ImpalaAuthenticationType authenticationType) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowHostNameCNMismatch { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowSelfSignedServerCert { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.ImpalaAuthenticationType AuthenticationType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableSsl { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Host { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Port { get { throw null; } set { } } @@ -4002,7 +4087,7 @@ public ImpalaLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement public Azure.Core.Expressions.DataFactory.DataFactoryElement Username { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseSystemTrustStore { get { throw null; } set { } } } - public partial class ImpalaObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class ImpalaObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public ImpalaObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SchemaTypePropertiesSchema { get { throw null; } set { } } @@ -4019,13 +4104,13 @@ public partial class ImportSettings public ImportSettings() { } public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } } - public partial class InformixLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class InformixLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public InformixLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement connectionString) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AuthenticationType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Credential { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UserName { get { throw null; } set { } } } @@ -4039,7 +4124,7 @@ public partial class InformixSource : Azure.ResourceManager.DataFactory.Models.T public InformixSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class InformixTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class InformixTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public InformixTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -4069,21 +4154,21 @@ internal IntegrationRuntimeAuthKeys() { } public string AuthKey2 { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct IntegrationRuntimeAutoUpdate : System.IEquatable + public readonly partial struct IntegrationRuntimeAutoUpdateState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public IntegrationRuntimeAutoUpdate(string value) { throw null; } - public static Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeAutoUpdate Off { get { throw null; } } - public static Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeAutoUpdate On { get { throw null; } } - public bool Equals(Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeAutoUpdate other) { throw null; } + public IntegrationRuntimeAutoUpdateState(string value) { throw null; } + public static Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeAutoUpdateState Off { get { throw null; } } + public static Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeAutoUpdateState On { get { throw null; } } + public bool Equals(Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeAutoUpdateState other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeAutoUpdate left, Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeAutoUpdate right) { throw null; } - public static implicit operator Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeAutoUpdate (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeAutoUpdate left, Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeAutoUpdate right) { throw null; } + public static bool operator ==(Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeAutoUpdateState left, Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeAutoUpdateState right) { throw null; } + public static implicit operator Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeAutoUpdateState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeAutoUpdateState left, Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeAutoUpdateState right) { throw null; } public override string ToString() { throw null; } } public partial class IntegrationRuntimeComputeProperties @@ -4097,7 +4182,7 @@ public IntegrationRuntimeComputeProperties() { } public string NodeSize { get { throw null; } set { } } public int? NumberOfNodes { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.PipelineExternalComputeScaleProperties PipelineExternalComputeScaleProperties { get { throw null; } set { } } - public Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeVNetProperties VNetProperties { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeVnetProperties VnetProperties { get { throw null; } set { } } } public partial class IntegrationRuntimeConnectionInfo { @@ -4116,22 +4201,22 @@ public IntegrationRuntimeCustomSetupScriptProperties() { } public System.Uri BlobContainerUri { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretString SasToken { get { throw null; } set { } } } + public partial class IntegrationRuntimeDataFlowCustomItem + { + public IntegrationRuntimeDataFlowCustomItem() { } + public string Name { get { throw null; } set { } } + public string Value { get { throw null; } set { } } + } public partial class IntegrationRuntimeDataFlowProperties { public IntegrationRuntimeDataFlowProperties() { } public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } public Azure.ResourceManager.DataFactory.Models.DataFlowComputeType? ComputeType { get { throw null; } set { } } public int? CoreCount { get { throw null; } set { } } - public System.Collections.Generic.IList CustomProperties { get { throw null; } } + public System.Collections.Generic.IList CustomProperties { get { throw null; } } public bool? ShouldCleanupAfterTtl { get { throw null; } set { } } public int? TimeToLiveInMinutes { get { throw null; } set { } } } - public partial class IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem - { - public IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem() { } - public string Name { get { throw null; } set { } } - public string Value { get { throw null; } set { } } - } public partial class IntegrationRuntimeDataProxyProperties { public IntegrationRuntimeDataProxyProperties() { } @@ -4377,19 +4462,19 @@ internal IntegrationRuntimeStatus() { } public static bool operator !=(Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeUpdateResult left, Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeUpdateResult right) { throw null; } public override string ToString() { throw null; } } - public partial class IntegrationRuntimeVNetProperties + public partial class IntegrationRuntimeVnetProperties { - public IntegrationRuntimeVNetProperties() { } + public IntegrationRuntimeVnetProperties() { } public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } public System.Collections.Generic.IList PublicIPs { get { throw null; } } public string Subnet { get { throw null; } set { } } public Azure.Core.ResourceIdentifier SubnetId { get { throw null; } set { } } public System.Guid? VnetId { get { throw null; } set { } } } - public partial class JiraLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class JiraLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public JiraLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement host, Azure.Core.Expressions.DataFactory.DataFactoryElement username) { } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Host { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Port { get { throw null; } set { } } @@ -4398,7 +4483,7 @@ public JiraLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement UsePeerVerification { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Username { get { throw null; } set { } } } - public partial class JiraObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class JiraObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public JiraObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -4408,7 +4493,7 @@ public partial class JiraSource : Azure.ResourceManager.DataFactory.Models.Tabul public JiraSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class JsonDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class JsonDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public JsonDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.ResourceManager.DataFactory.Models.DatasetCompression Compression { get { throw null; } set { } } @@ -4459,9 +4544,9 @@ public LinkedIntegrationRuntimeKeyAuthorization(Azure.Core.Expressions.DataFacto } public partial class LinkedIntegrationRuntimeRbacAuthorization : Azure.ResourceManager.DataFactory.Models.LinkedIntegrationRuntimeType { - public LinkedIntegrationRuntimeRbacAuthorization(string resourceId) { } + public LinkedIntegrationRuntimeRbacAuthorization(Azure.Core.ResourceIdentifier resourceId) { } public Azure.ResourceManager.DataFactory.Models.DataFactoryCredentialReference Credential { get { throw null; } set { } } - public string ResourceId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier ResourceId { get { throw null; } set { } } } public abstract partial class LinkedIntegrationRuntimeType { @@ -4473,13 +4558,6 @@ public LogLocationSettings(Azure.Core.Expressions.DataFactory.DataFactoryLinkedS public Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference LinkedServiceName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Path { get { throw null; } set { } } } - public partial class LogSettings - { - public LogSettings(Azure.ResourceManager.DataFactory.Models.LogLocationSettings logLocationSettings) { } - public Azure.ResourceManager.DataFactory.Models.CopyActivityLogSettings CopyActivityLogSettings { get { throw null; } set { } } - public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableCopyActivityLog { get { throw null; } set { } } - public Azure.ResourceManager.DataFactory.Models.LogLocationSettings LogLocationSettings { get { throw null; } set { } } - } public partial class LogStorageSettings { public LogStorageSettings(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) { } @@ -4496,17 +4574,17 @@ public LookupActivity(string name, Azure.ResourceManager.DataFactory.Models.Copy public Azure.Core.Expressions.DataFactory.DataFactoryElement FirstRowOnly { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.CopyActivitySource Source { get { throw null; } set { } } } - public partial class MagentoLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class MagentoLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public MagentoLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement host) { } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition AccessToken { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Host { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseEncryptedEndpoints { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseHostVerification { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UsePeerVerification { get { throw null; } set { } } } - public partial class MagentoObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class MagentoObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public MagentoObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -4516,7 +4594,7 @@ public partial class MagentoSource : Azure.ResourceManager.DataFactory.Models.Ta public MagentoSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class ManagedIntegrationRuntime : Azure.ResourceManager.DataFactory.Models.DataFactoryIntegrationRuntimeDefinition + public partial class ManagedIntegrationRuntime : Azure.ResourceManager.DataFactory.Models.DataFactoryIntegrationRuntimeProperties { public ManagedIntegrationRuntime() { } public Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeComputeProperties ComputeProperties { get { throw null; } set { } } @@ -4581,24 +4659,6 @@ internal ManagedIntegrationRuntimeStatus() { } public System.Collections.Generic.IReadOnlyList Nodes { get { throw null; } } public System.Collections.Generic.IReadOnlyList OtherErrors { get { throw null; } } } - public partial class ManagedPrivateEndpoint - { - public ManagedPrivateEndpoint() { } - public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } - public Azure.ResourceManager.DataFactory.Models.ConnectionStateProperties ConnectionState { get { throw null; } set { } } - public System.Collections.Generic.IList Fqdns { get { throw null; } } - public string GroupId { get { throw null; } set { } } - public bool? IsReserved { get { throw null; } } - public Azure.Core.ResourceIdentifier PrivateLinkResourceId { get { throw null; } set { } } - public string ProvisioningState { get { throw null; } } - } - public partial class ManagedVirtualNetwork - { - public ManagedVirtualNetwork() { } - public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } - public string Alias { get { throw null; } } - public System.Guid? VnetId { get { throw null; } } - } public partial class ManagedVirtualNetworkReference { public ManagedVirtualNetworkReference(Azure.ResourceManager.DataFactory.Models.ManagedVirtualNetworkReferenceType referenceType, string referenceName) { } @@ -4622,11 +4682,143 @@ public ManagedVirtualNetworkReference(Azure.ResourceManager.DataFactory.Models.M public static bool operator !=(Azure.ResourceManager.DataFactory.Models.ManagedVirtualNetworkReferenceType left, Azure.ResourceManager.DataFactory.Models.ManagedVirtualNetworkReferenceType right) { throw null; } public override string ToString() { throw null; } } - public partial class MariaDBLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class MapperAttributeMapping + { + public MapperAttributeMapping() { } + public Azure.ResourceManager.DataFactory.Models.MapperAttributeReference AttributeReference { get { throw null; } set { } } + public System.Collections.Generic.IList AttributeReferences { get { throw null; } } + public string Expression { get { throw null; } set { } } + public string FunctionName { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.MappingType? MappingType { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + } + public partial class MapperAttributeReference + { + public MapperAttributeReference() { } + public string Entity { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.MapperConnectionReference EntityConnectionReference { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + } + public partial class MapperConnection + { + public MapperConnection(Azure.ResourceManager.DataFactory.Models.MapperConnectionType connectionType) { } + public System.Collections.Generic.IList CommonDslConnectorProperties { get { throw null; } } + public Azure.ResourceManager.DataFactory.Models.MapperConnectionType ConnectionType { get { throw null; } set { } } + public bool? IsInlineDataset { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference LinkedService { get { throw null; } set { } } + public string LinkedServiceType { get { throw null; } set { } } + } + public partial class MapperConnectionReference + { + public MapperConnectionReference() { } + public string ConnectionName { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.MapperConnectionType? ConnectionType { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MapperConnectionType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MapperConnectionType(string value) { throw null; } + public static Azure.ResourceManager.DataFactory.Models.MapperConnectionType Linkedservicetype { get { throw null; } } + public bool Equals(Azure.ResourceManager.DataFactory.Models.MapperConnectionType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.DataFactory.Models.MapperConnectionType left, Azure.ResourceManager.DataFactory.Models.MapperConnectionType right) { throw null; } + public static implicit operator Azure.ResourceManager.DataFactory.Models.MapperConnectionType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.DataFactory.Models.MapperConnectionType left, Azure.ResourceManager.DataFactory.Models.MapperConnectionType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class MapperDslConnectorProperties + { + public MapperDslConnectorProperties() { } + public string Name { get { throw null; } set { } } + public System.BinaryData Value { get { throw null; } set { } } + } + public partial class MapperPolicy + { + public MapperPolicy() { } + public string Mode { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.MapperPolicyRecurrence Recurrence { get { throw null; } set { } } + } + public partial class MapperPolicyRecurrence + { + public MapperPolicyRecurrence() { } + public Azure.ResourceManager.DataFactory.Models.MapperPolicyRecurrenceFrequencyType? Frequency { get { throw null; } set { } } + public int? Interval { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MapperPolicyRecurrenceFrequencyType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MapperPolicyRecurrenceFrequencyType(string value) { throw null; } + public static Azure.ResourceManager.DataFactory.Models.MapperPolicyRecurrenceFrequencyType Hour { get { throw null; } } + public static Azure.ResourceManager.DataFactory.Models.MapperPolicyRecurrenceFrequencyType Minute { get { throw null; } } + public static Azure.ResourceManager.DataFactory.Models.MapperPolicyRecurrenceFrequencyType Second { get { throw null; } } + public bool Equals(Azure.ResourceManager.DataFactory.Models.MapperPolicyRecurrenceFrequencyType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.DataFactory.Models.MapperPolicyRecurrenceFrequencyType left, Azure.ResourceManager.DataFactory.Models.MapperPolicyRecurrenceFrequencyType right) { throw null; } + public static implicit operator Azure.ResourceManager.DataFactory.Models.MapperPolicyRecurrenceFrequencyType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.DataFactory.Models.MapperPolicyRecurrenceFrequencyType left, Azure.ResourceManager.DataFactory.Models.MapperPolicyRecurrenceFrequencyType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class MapperSourceConnectionsInfo + { + public MapperSourceConnectionsInfo() { } + public Azure.ResourceManager.DataFactory.Models.MapperConnection Connection { get { throw null; } set { } } + public System.Collections.Generic.IList SourceEntities { get { throw null; } } + } + public partial class MapperTable + { + public MapperTable() { } + public System.Collections.Generic.IList DslConnectorProperties { get { throw null; } } + public string Name { get { throw null; } set { } } + public System.Collections.Generic.IList Schema { get { throw null; } } + } + public partial class MapperTableSchema + { + public MapperTableSchema() { } + public string DataType { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + } + public partial class MapperTargetConnectionsInfo + { + public MapperTargetConnectionsInfo() { } + public Azure.ResourceManager.DataFactory.Models.MapperConnection Connection { get { throw null; } set { } } + public System.Collections.Generic.IList DataMapperMappings { get { throw null; } } + public System.Collections.Generic.IList Relationships { get { throw null; } } + public System.Collections.Generic.IList TargetEntities { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MappingType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MappingType(string value) { throw null; } + public static Azure.ResourceManager.DataFactory.Models.MappingType Aggregate { get { throw null; } } + public static Azure.ResourceManager.DataFactory.Models.MappingType Derived { get { throw null; } } + public static Azure.ResourceManager.DataFactory.Models.MappingType Direct { get { throw null; } } + public bool Equals(Azure.ResourceManager.DataFactory.Models.MappingType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.DataFactory.Models.MappingType left, Azure.ResourceManager.DataFactory.Models.MappingType right) { throw null; } + public static implicit operator Azure.ResourceManager.DataFactory.Models.MappingType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.DataFactory.Models.MappingType left, Azure.ResourceManager.DataFactory.Models.MappingType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class MariaDBLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public MariaDBLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference Password { get { throw null; } set { } } } public partial class MariaDBSource : Azure.ResourceManager.DataFactory.Models.TabularSource @@ -4634,23 +4826,23 @@ public partial class MariaDBSource : Azure.ResourceManager.DataFactory.Models.Ta public MariaDBSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class MariaDBTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class MariaDBTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public MariaDBTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } } - public partial class MarketoLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class MarketoLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public MarketoLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement endpoint, Azure.Core.Expressions.DataFactory.DataFactoryElement clientId) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ClientId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ClientSecret { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Endpoint { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseEncryptedEndpoints { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseHostVerification { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UsePeerVerification { get { throw null; } set { } } } - public partial class MarketoObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class MarketoObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public MarketoObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -4660,13 +4852,13 @@ public partial class MarketoSource : Azure.ResourceManager.DataFactory.Models.Ta public MarketoSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class MicrosoftAccessLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class MicrosoftAccessLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public MicrosoftAccessLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement connectionString) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AuthenticationType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Credential { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UserName { get { throw null; } set { } } } @@ -4681,22 +4873,22 @@ public MicrosoftAccessSource() { } public System.BinaryData AdditionalColumns { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class MicrosoftAccessTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class MicrosoftAccessTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public MicrosoftAccessTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } } - public partial class MongoDBAtlasCollectionDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class MongoDBAtlasCollectionDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public MongoDBAtlasCollectionDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName, Azure.Core.Expressions.DataFactory.DataFactoryElement collection) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Collection { get { throw null; } set { } } } - public partial class MongoDBAtlasLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class MongoDBAtlasLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public MongoDBAtlasLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement connectionString, Azure.Core.Expressions.DataFactory.DataFactoryElement database) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Database { get { throw null; } set { } } - public Azure.Core.Expressions.DataFactory.DataFactoryElement MongoDBAtlasDriverVersion { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement DriverVersion { get { throw null; } set { } } } public partial class MongoDBAtlasSink : Azure.ResourceManager.DataFactory.Models.CopySink { @@ -4730,7 +4922,7 @@ public MongoDBAtlasSource() { } public static bool operator !=(Azure.ResourceManager.DataFactory.Models.MongoDBAuthenticationType left, Azure.ResourceManager.DataFactory.Models.MongoDBAuthenticationType right) { throw null; } public override string ToString() { throw null; } } - public partial class MongoDBCollectionDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class MongoDBCollectionDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public MongoDBCollectionDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName, Azure.Core.Expressions.DataFactory.DataFactoryElement collectionName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement CollectionName { get { throw null; } set { } } @@ -4744,7 +4936,7 @@ public MongoDBCursorMethodsProperties() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Skip { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Sort { get { throw null; } set { } } } - public partial class MongoDBLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class MongoDBLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public MongoDBLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement server, Azure.Core.Expressions.DataFactory.DataFactoryElement databaseName) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowSelfSignedServerCert { get { throw null; } set { } } @@ -4752,7 +4944,7 @@ public MongoDBLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElemen public Azure.Core.Expressions.DataFactory.DataFactoryElement AuthSource { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement DatabaseName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableSsl { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Port { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Server { get { throw null; } set { } } @@ -4764,12 +4956,12 @@ public MongoDBSource() { } public System.BinaryData AdditionalColumns { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class MongoDBV2CollectionDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class MongoDBV2CollectionDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public MongoDBV2CollectionDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName, Azure.Core.Expressions.DataFactory.DataFactoryElement collection) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Collection { get { throw null; } set { } } } - public partial class MongoDBV2LinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class MongoDBV2LinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public MongoDBV2LinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement connectionString, Azure.Core.Expressions.DataFactory.DataFactoryElement database) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } @@ -4789,16 +4981,16 @@ public MongoDBV2Source() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Filter { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement QueryTimeout { get { throw null; } set { } } } - public partial class MultiplePipelineTrigger : Azure.ResourceManager.DataFactory.Models.DataFactoryTriggerDefinition + public partial class MultiplePipelineTrigger : Azure.ResourceManager.DataFactory.Models.DataFactoryTriggerProperties { public MultiplePipelineTrigger() { } public System.Collections.Generic.IList Pipelines { get { throw null; } } } - public partial class MySqlLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class MySqlLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public MySqlLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement connectionString) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference Password { get { throw null; } set { } } } public partial class MySqlSource : Azure.ResourceManager.DataFactory.Models.TabularSource @@ -4806,16 +4998,16 @@ public partial class MySqlSource : Azure.ResourceManager.DataFactory.Models.Tabu public MySqlSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class MySqlTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class MySqlTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public MySqlTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } } - public partial class NetezzaLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class NetezzaLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public NetezzaLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference Password { get { throw null; } set { } } } public partial class NetezzaPartitionSettings @@ -4832,7 +5024,7 @@ public NetezzaSource() { } public Azure.ResourceManager.DataFactory.Models.NetezzaPartitionSettings PartitionSettings { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class NetezzaTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class NetezzaTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public NetezzaTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SchemaTypePropertiesSchema { get { throw null; } set { } } @@ -4921,7 +5113,7 @@ public NotebookParameter() { } public static bool operator !=(Azure.ResourceManager.DataFactory.Models.ODataAuthenticationType left, Azure.ResourceManager.DataFactory.Models.ODataAuthenticationType right) { throw null; } public override string ToString() { throw null; } } - public partial class ODataLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class ODataLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public ODataLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement uri) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AadResourceId { get { throw null; } set { } } @@ -4929,7 +5121,7 @@ public ODataLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement< public Azure.ResourceManager.DataFactory.Models.ODataAuthenticationType? AuthenticationType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement AuthHeaders { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement AzureCloudType { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ServicePrincipalEmbeddedCert { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ServicePrincipalEmbeddedCertPassword { get { throw null; } set { } } @@ -4939,7 +5131,7 @@ public ODataLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement< public Azure.Core.Expressions.DataFactory.DataFactoryElement Uri { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UserName { get { throw null; } set { } } } - public partial class ODataResourceDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class ODataResourceDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public ODataResourceDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Path { get { throw null; } set { } } @@ -4951,13 +5143,13 @@ public ODataSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement HttpRequestTimeout { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class OdbcLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class OdbcLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public OdbcLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement connectionString) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AuthenticationType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Credential { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UserName { get { throw null; } set { } } } @@ -4971,21 +5163,21 @@ public partial class OdbcSource : Azure.ResourceManager.DataFactory.Models.Tabul public OdbcSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class OdbcTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class OdbcTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public OdbcTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } } - public partial class Office365Dataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class Office365Dataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public Office365Dataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName, Azure.Core.Expressions.DataFactory.DataFactoryElement tableName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Predicate { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } } - public partial class Office365LinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class Office365LinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public Office365LinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement office365TenantId, Azure.Core.Expressions.DataFactory.DataFactoryElement servicePrincipalTenantId, Azure.Core.Expressions.DataFactory.DataFactoryElement servicePrincipalId, Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition servicePrincipalKey) { } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Office365TenantId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ServicePrincipalId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ServicePrincipalKey { get { throw null; } set { } } @@ -4997,15 +5189,20 @@ public Office365Source() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement> AllowedGroups { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement DateFilterColumn { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement EndOn { get { throw null; } set { } } - public Azure.Core.Expressions.DataFactory.DataFactoryElement> OutputColumns { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement> OutputColumns { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement StartOn { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UserScopeFilterUri { get { throw null; } set { } } } - public partial class OracleCloudStorageLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class Office365TableOutputColumn + { + public Office365TableOutputColumn() { } + public string Name { get { throw null; } set { } } + } + public partial class OracleCloudStorageLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public OracleCloudStorageLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AccessKeyId { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition SecretAccessKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ServiceUri { get { throw null; } set { } } } @@ -5029,11 +5226,11 @@ public OracleCloudStorageReadSettings() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement WildcardFileName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement WildcardFolderPath { get { throw null; } set { } } } - public partial class OracleLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class OracleLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public OracleLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement connectionString) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference Password { get { throw null; } set { } } } public partial class OraclePartitionSettings @@ -5044,10 +5241,10 @@ public OraclePartitionSettings() { } public System.BinaryData PartitionNames { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement PartitionUpperBound { get { throw null; } set { } } } - public partial class OracleServiceCloudLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class OracleServiceCloudLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public OracleServiceCloudLinkedService(System.BinaryData host, System.BinaryData username, Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition password) { } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public System.BinaryData Host { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseEncryptedEndpoints { get { throw null; } set { } } @@ -5055,7 +5252,7 @@ public OracleServiceCloudLinkedService(System.BinaryData host, System.BinaryData public Azure.Core.Expressions.DataFactory.DataFactoryElement UsePeerVerification { get { throw null; } set { } } public System.BinaryData Username { get { throw null; } set { } } } - public partial class OracleServiceCloudObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class OracleServiceCloudObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public OracleServiceCloudObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -5079,14 +5276,14 @@ public OracleSource() { } public Azure.ResourceManager.DataFactory.Models.OraclePartitionSettings PartitionSettings { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement QueryTimeout { get { throw null; } set { } } } - public partial class OracleTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class OracleTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public OracleTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SchemaTypePropertiesSchema { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Table { get { throw null; } set { } } public System.BinaryData TableName { get { throw null; } set { } } } - public partial class OrcDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class OrcDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public OrcDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.ResourceManager.DataFactory.Models.DatasetLocation DataLocation { get { throw null; } set { } } @@ -5110,12 +5307,7 @@ public OrcWriteSettings() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement FileNamePrefix { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement MaxRowsPerFile { get { throw null; } set { } } } - public partial class OutputColumn - { - public OutputColumn() { } - public string Name { get { throw null; } set { } } - } - public partial class ParquetDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class ParquetDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public ParquetDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement CompressionCodec { get { throw null; } set { } } @@ -5139,18 +5331,18 @@ public ParquetWriteSettings() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement FileNamePrefix { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement MaxRowsPerFile { get { throw null; } set { } } } - public partial class PaypalLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class PaypalLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public PaypalLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement host, Azure.Core.Expressions.DataFactory.DataFactoryElement clientId) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ClientId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ClientSecret { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Host { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseEncryptedEndpoints { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseHostVerification { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UsePeerVerification { get { throw null; } set { } } } - public partial class PaypalObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class PaypalObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public PaypalObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -5179,14 +5371,14 @@ public PaypalSource() { } public static bool operator !=(Azure.ResourceManager.DataFactory.Models.PhoenixAuthenticationType left, Azure.ResourceManager.DataFactory.Models.PhoenixAuthenticationType right) { throw null; } public override string ToString() { throw null; } } - public partial class PhoenixLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class PhoenixLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public PhoenixLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement host, Azure.ResourceManager.DataFactory.Models.PhoenixAuthenticationType authenticationType) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowHostNameCNMismatch { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowSelfSignedServerCert { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.PhoenixAuthenticationType AuthenticationType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableSsl { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Host { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement HttpPath { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } @@ -5195,7 +5387,7 @@ public PhoenixLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElemen public Azure.Core.Expressions.DataFactory.DataFactoryElement Username { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseSystemTrustStore { get { throw null; } set { } } } - public partial class PhoenixObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class PhoenixObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public PhoenixObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SchemaTypePropertiesSchema { get { throw null; } set { } } @@ -5207,6 +5399,76 @@ public partial class PhoenixSource : Azure.ResourceManager.DataFactory.Models.Ta public PhoenixSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } + public partial class PipelineActivity + { + public PipelineActivity(string name) { } + public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } + public System.Collections.Generic.IList DependsOn { get { throw null; } } + public string Description { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.ActivityOnInactiveMarkAs? OnInactiveMarkAs { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.PipelineActivityState? State { get { throw null; } set { } } + public System.Collections.Generic.IList UserProperties { get { throw null; } } + } + public partial class PipelineActivityDependency + { + public PipelineActivityDependency(string activity, System.Collections.Generic.IEnumerable dependencyConditions) { } + public string Activity { get { throw null; } set { } } + public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } + public System.Collections.Generic.IList DependencyConditions { get { throw null; } } + } + public partial class PipelineActivityPolicy + { + public PipelineActivityPolicy() { } + public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } + public bool? IsSecureInputEnabled { get { throw null; } set { } } + public bool? IsSecureOutputEnabled { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement Retry { get { throw null; } set { } } + public int? RetryIntervalInSeconds { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement Timeout { get { throw null; } set { } } + } + public partial class PipelineActivityRunInformation + { + internal PipelineActivityRunInformation() { } + public string ActivityName { get { throw null; } } + public System.Guid? ActivityRunId { get { throw null; } } + public string ActivityType { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary AdditionalProperties { get { throw null; } } + public int? DurationInMs { get { throw null; } } + public System.DateTimeOffset? EndOn { get { throw null; } } + public System.BinaryData Error { get { throw null; } } + public System.BinaryData Input { get { throw null; } } + public string LinkedServiceName { get { throw null; } } + public System.BinaryData Output { get { throw null; } } + public string PipelineName { get { throw null; } } + public System.Guid? PipelineRunId { get { throw null; } } + public System.DateTimeOffset? StartOn { get { throw null; } } + public string Status { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct PipelineActivityState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public PipelineActivityState(string value) { throw null; } + public static Azure.ResourceManager.DataFactory.Models.PipelineActivityState Active { get { throw null; } } + public static Azure.ResourceManager.DataFactory.Models.PipelineActivityState Inactive { get { throw null; } } + public bool Equals(Azure.ResourceManager.DataFactory.Models.PipelineActivityState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.DataFactory.Models.PipelineActivityState left, Azure.ResourceManager.DataFactory.Models.PipelineActivityState right) { throw null; } + public static implicit operator Azure.ResourceManager.DataFactory.Models.PipelineActivityState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.DataFactory.Models.PipelineActivityState left, Azure.ResourceManager.DataFactory.Models.PipelineActivityState right) { throw null; } + public override string ToString() { throw null; } + } + public partial class PipelineActivityUserProperty + { + public PipelineActivityUserProperty(string name, Azure.Core.Expressions.DataFactory.DataFactoryElement value) { } + public string Name { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement Value { get { throw null; } set { } } + } public partial class PipelineCreateRunResult { internal PipelineCreateRunResult() { } @@ -5270,11 +5532,11 @@ public PolybaseSettings() { } public static bool operator !=(Azure.ResourceManager.DataFactory.Models.PolybaseSettingsRejectType left, Azure.ResourceManager.DataFactory.Models.PolybaseSettingsRejectType right) { throw null; } public override string ToString() { throw null; } } - public partial class PostgreSqlLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class PostgreSqlLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public PostgreSqlLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement connectionString) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference Password { get { throw null; } set { } } } public partial class PostgreSqlSource : Azure.ResourceManager.DataFactory.Models.TabularSource @@ -5282,7 +5544,7 @@ public partial class PostgreSqlSource : Azure.ResourceManager.DataFactory.Models public PostgreSqlSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class PostgreSqlTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class PostgreSqlTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public PostgreSqlTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SchemaTypePropertiesSchema { get { throw null; } set { } } @@ -5323,7 +5585,7 @@ public PowerQuerySource(string name) : base (default(string)) { } public static bool operator !=(Azure.ResourceManager.DataFactory.Models.PrestoAuthenticationType left, Azure.ResourceManager.DataFactory.Models.PrestoAuthenticationType right) { throw null; } public override string ToString() { throw null; } } - public partial class PrestoLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class PrestoLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public PrestoLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement host, Azure.Core.Expressions.DataFactory.DataFactoryElement serverVersion, Azure.Core.Expressions.DataFactory.DataFactoryElement catalog, Azure.ResourceManager.DataFactory.Models.PrestoAuthenticationType authenticationType) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowHostNameCNMismatch { get { throw null; } set { } } @@ -5331,7 +5593,7 @@ public PrestoLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement public Azure.ResourceManager.DataFactory.Models.PrestoAuthenticationType AuthenticationType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Catalog { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableSsl { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Host { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Port { get { throw null; } set { } } @@ -5341,7 +5603,7 @@ public PrestoLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement public Azure.Core.Expressions.DataFactory.DataFactoryElement Username { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseSystemTrustStore { get { throw null; } set { } } } - public partial class PrestoObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class PrestoObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public PrestoObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SchemaTypePropertiesSchema { get { throw null; } set { } } @@ -5366,14 +5628,14 @@ public PrivateLinkConnectionState() { } public string Description { get { throw null; } set { } } public string Status { get { throw null; } set { } } } - public partial class QuickbaseLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class QuickbaseLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public QuickbaseLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement uri, Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition userToken) { } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Uri { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition UserToken { get { throw null; } set { } } } - public partial class QuickBooksLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class QuickBooksLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public QuickBooksLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition AccessToken { get { throw null; } set { } } @@ -5382,11 +5644,11 @@ public QuickBooksLinkedService() { } public System.BinaryData ConnectionProperties { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConsumerKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ConsumerSecret { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Endpoint { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseEncryptedEndpoints { get { throw null; } set { } } } - public partial class QuickBooksObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class QuickBooksObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public QuickBooksObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -5396,46 +5658,6 @@ public partial class QuickBooksSource : Azure.ResourceManager.DataFactory.Models public QuickBooksSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct RecurrenceFrequency : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public RecurrenceFrequency(string value) { throw null; } - public static Azure.ResourceManager.DataFactory.Models.RecurrenceFrequency Day { get { throw null; } } - public static Azure.ResourceManager.DataFactory.Models.RecurrenceFrequency Hour { get { throw null; } } - public static Azure.ResourceManager.DataFactory.Models.RecurrenceFrequency Minute { get { throw null; } } - public static Azure.ResourceManager.DataFactory.Models.RecurrenceFrequency Month { get { throw null; } } - public static Azure.ResourceManager.DataFactory.Models.RecurrenceFrequency NotSpecified { get { throw null; } } - public static Azure.ResourceManager.DataFactory.Models.RecurrenceFrequency Week { get { throw null; } } - public static Azure.ResourceManager.DataFactory.Models.RecurrenceFrequency Year { get { throw null; } } - public bool Equals(Azure.ResourceManager.DataFactory.Models.RecurrenceFrequency other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.DataFactory.Models.RecurrenceFrequency left, Azure.ResourceManager.DataFactory.Models.RecurrenceFrequency right) { throw null; } - public static implicit operator Azure.ResourceManager.DataFactory.Models.RecurrenceFrequency (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.DataFactory.Models.RecurrenceFrequency left, Azure.ResourceManager.DataFactory.Models.RecurrenceFrequency right) { throw null; } - public override string ToString() { throw null; } - } - public partial class RecurrenceSchedule - { - public RecurrenceSchedule() { } - public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } - public System.Collections.Generic.IList Hours { get { throw null; } } - public System.Collections.Generic.IList Minutes { get { throw null; } } - public System.Collections.Generic.IList MonthDays { get { throw null; } } - public System.Collections.Generic.IList MonthlyOccurrences { get { throw null; } } - public System.Collections.Generic.IList WeekDays { get { throw null; } } - } - public partial class RecurrenceScheduleOccurrence - { - public RecurrenceScheduleOccurrence() { } - public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } - public Azure.ResourceManager.DataFactory.Models.DayOfWeek? Day { get { throw null; } set { } } - public int? Occurrence { get { throw null; } set { } } - } public partial class RedirectIncompatibleRowSettings { public RedirectIncompatibleRowSettings(Azure.Core.Expressions.DataFactory.DataFactoryElement linkedServiceName) { } @@ -5455,12 +5677,12 @@ public RelationalSource() { } public System.BinaryData AdditionalColumns { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class RelationalTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class RelationalTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public RelationalTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } } - public partial class RerunTumblingWindowTrigger : Azure.ResourceManager.DataFactory.Models.DataFactoryTriggerDefinition + public partial class RerunTumblingWindowTrigger : Azure.ResourceManager.DataFactory.Models.DataFactoryTriggerProperties { public RerunTumblingWindowTrigger(System.BinaryData parentTrigger, System.DateTimeOffset requestedStartOn, System.DateTimeOffset requestedEndOn, int rerunConcurrency) { } public System.BinaryData ParentTrigger { get { throw null; } set { } } @@ -5468,18 +5690,18 @@ public RerunTumblingWindowTrigger(System.BinaryData parentTrigger, System.DateTi public System.DateTimeOffset RequestedStartOn { get { throw null; } set { } } public int RerunConcurrency { get { throw null; } set { } } } - public partial class ResponsysLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class ResponsysLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public ResponsysLinkedService(System.BinaryData endpoint, Azure.Core.Expressions.DataFactory.DataFactoryElement clientId) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ClientId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ClientSecret { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public System.BinaryData Endpoint { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseEncryptedEndpoints { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseHostVerification { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UsePeerVerification { get { throw null; } set { } } } - public partial class ResponsysObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class ResponsysObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public ResponsysObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -5489,7 +5711,7 @@ public partial class ResponsysSource : Azure.ResourceManager.DataFactory.Models. public ResponsysSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class RestResourceDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class RestResourceDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public RestResourceDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public System.Collections.Generic.IDictionary AdditionalHeaders { get { throw null; } } @@ -5519,7 +5741,7 @@ public RestResourceDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedS public static bool operator !=(Azure.ResourceManager.DataFactory.Models.RestServiceAuthenticationType left, Azure.ResourceManager.DataFactory.Models.RestServiceAuthenticationType right) { throw null; } public override string ToString() { throw null; } } - public partial class RestServiceLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class RestServiceLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public RestServiceLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement uri, Azure.ResourceManager.DataFactory.Models.RestServiceAuthenticationType authenticationType) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AadResourceId { get { throw null; } set { } } @@ -5530,7 +5752,7 @@ public RestServiceLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryEl public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ClientSecret { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.DataFactoryCredentialReference Credential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableServerCertificateValidation { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Resource { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Scope { get { throw null; } set { } } @@ -5680,28 +5902,28 @@ public RunQueryOrderBy(Azure.ResourceManager.DataFactory.Models.RunQueryOrderByF public static bool operator !=(Azure.ResourceManager.DataFactory.Models.RunQueryOrderByField left, Azure.ResourceManager.DataFactory.Models.RunQueryOrderByField right) { throw null; } public override string ToString() { throw null; } } - public partial class SalesforceLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class SalesforceLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public SalesforceLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ApiVersion { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement EnvironmentUri { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition SecurityToken { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Username { get { throw null; } set { } } } - public partial class SalesforceMarketingCloudLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class SalesforceMarketingCloudLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public SalesforceMarketingCloudLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ClientId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ClientSecret { get { throw null; } set { } } public System.BinaryData ConnectionProperties { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseEncryptedEndpoints { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseHostVerification { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UsePeerVerification { get { throw null; } set { } } } - public partial class SalesforceMarketingCloudObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class SalesforceMarketingCloudObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public SalesforceMarketingCloudObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -5711,23 +5933,23 @@ public partial class SalesforceMarketingCloudSource : Azure.ResourceManager.Data public SalesforceMarketingCloudSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class SalesforceObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class SalesforceObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public SalesforceObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ObjectApiName { get { throw null; } set { } } } - public partial class SalesforceServiceCloudLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class SalesforceServiceCloudLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public SalesforceServiceCloudLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ApiVersion { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement EnvironmentUri { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ExtendedProperties { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition SecurityToken { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Username { get { throw null; } set { } } } - public partial class SalesforceServiceCloudObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class SalesforceServiceCloudObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public SalesforceServiceCloudObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ObjectApiName { get { throw null; } set { } } @@ -5744,7 +5966,7 @@ public partial class SalesforceServiceCloudSource : Azure.ResourceManager.DataFa public SalesforceServiceCloudSource() { } public System.BinaryData AdditionalColumns { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } - public Azure.ResourceManager.DataFactory.Models.SalesforceSourceReadBehavior? ReadBehavior { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement ReadBehavior { get { throw null; } set { } } } public partial class SalesforceSink : Azure.ResourceManager.DataFactory.Models.CopySink { @@ -5775,54 +5997,36 @@ public partial class SalesforceSource : Azure.ResourceManager.DataFactory.Models { public SalesforceSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } - public Azure.ResourceManager.DataFactory.Models.SalesforceSourceReadBehavior? ReadBehavior { get { throw null; } set { } } + public Azure.Core.Expressions.DataFactory.DataFactoryElement ReadBehavior { get { throw null; } set { } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct SalesforceSourceReadBehavior : System.IEquatable + public partial class SapBWCubeDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public SalesforceSourceReadBehavior(string value) { throw null; } - public static Azure.ResourceManager.DataFactory.Models.SalesforceSourceReadBehavior Query { get { throw null; } } - public static Azure.ResourceManager.DataFactory.Models.SalesforceSourceReadBehavior QueryAll { get { throw null; } } - public bool Equals(Azure.ResourceManager.DataFactory.Models.SalesforceSourceReadBehavior other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.DataFactory.Models.SalesforceSourceReadBehavior left, Azure.ResourceManager.DataFactory.Models.SalesforceSourceReadBehavior right) { throw null; } - public static implicit operator Azure.ResourceManager.DataFactory.Models.SalesforceSourceReadBehavior (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.DataFactory.Models.SalesforceSourceReadBehavior left, Azure.ResourceManager.DataFactory.Models.SalesforceSourceReadBehavior right) { throw null; } - public override string ToString() { throw null; } + public SapBWCubeDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } } - public partial class SapBwCubeDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition - { - public SapBwCubeDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } - } - public partial class SapBWLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class SapBWLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public SapBWLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement server, Azure.Core.Expressions.DataFactory.DataFactoryElement systemNumber, Azure.Core.Expressions.DataFactory.DataFactoryElement clientId) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ClientId { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Server { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement SystemNumber { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UserName { get { throw null; } set { } } } - public partial class SapBwSource : Azure.ResourceManager.DataFactory.Models.TabularSource + public partial class SapBWSource : Azure.ResourceManager.DataFactory.Models.TabularSource { - public SapBwSource() { } + public SapBWSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class SapCloudForCustomerLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class SapCloudForCustomerLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public SapCloudForCustomerLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement uri) { } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Uri { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Username { get { throw null; } set { } } } - public partial class SapCloudForCustomerResourceDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class SapCloudForCustomerResourceDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public SapCloudForCustomerResourceDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName, Azure.Core.Expressions.DataFactory.DataFactoryElement path) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Path { get { throw null; } set { } } @@ -5857,15 +6061,15 @@ public SapCloudForCustomerSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement HttpRequestTimeout { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class SapEccLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class SapEccLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public SapEccLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement uri) { } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Uri { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Username { get { throw null; } set { } } } - public partial class SapEccResourceDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class SapEccResourceDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public SapEccResourceDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName, Azure.Core.Expressions.DataFactory.DataFactoryElement path) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Path { get { throw null; } set { } } @@ -5894,12 +6098,12 @@ public SapEccSource() { } public static bool operator !=(Azure.ResourceManager.DataFactory.Models.SapHanaAuthenticationType left, Azure.ResourceManager.DataFactory.Models.SapHanaAuthenticationType right) { throw null; } public override string ToString() { throw null; } } - public partial class SapHanaLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class SapHanaLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public SapHanaLinkedService() { } public Azure.ResourceManager.DataFactory.Models.SapHanaAuthenticationType? AuthenticationType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Server { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UserName { get { throw null; } set { } } @@ -5912,17 +6116,17 @@ public SapHanaSource() { } public System.BinaryData PartitionOption { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class SapHanaTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class SapHanaTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public SapHanaTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SchemaTypePropertiesSchema { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Table { get { throw null; } set { } } } - public partial class SapOdpLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class SapOdpLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public SapOdpLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ClientId { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Language { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement LogonGroup { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement MessageServer { get { throw null; } set { } } @@ -5940,7 +6144,7 @@ public SapOdpLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement UserName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement X509CertificatePath { get { throw null; } set { } } } - public partial class SapOdpResourceDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class SapOdpResourceDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public SapOdpResourceDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName, Azure.Core.Expressions.DataFactory.DataFactoryElement context, Azure.Core.Expressions.DataFactory.DataFactoryElement objectName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Context { get { throw null; } set { } } @@ -5954,11 +6158,11 @@ public SapOdpSource() { } public System.BinaryData Selection { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement SubscriberProcess { get { throw null; } set { } } } - public partial class SapOpenHubLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class SapOpenHubLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public SapOpenHubLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ClientId { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Language { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement LogonGroup { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement MessageServer { get { throw null; } set { } } @@ -5977,18 +6181,18 @@ public SapOpenHubSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ExcludeLastRequest { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement SapDataColumnDelimiter { get { throw null; } set { } } } - public partial class SapOpenHubTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class SapOpenHubTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public SapOpenHubTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName, Azure.Core.Expressions.DataFactory.DataFactoryElement openHubDestinationName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement BaseRequestId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ExcludeLastRequest { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement OpenHubDestinationName { get { throw null; } set { } } } - public partial class SapTableLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class SapTableLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public SapTableLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ClientId { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Language { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement LogonGroup { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement MessageServer { get { throw null; } set { } } @@ -6012,7 +6216,7 @@ public SapTablePartitionSettings() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement PartitionLowerBound { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement PartitionUpperBound { get { throw null; } set { } } } - public partial class SapTableResourceDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class SapTableResourceDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public SapTableResourceDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName, Azure.Core.Expressions.DataFactory.DataFactoryElement tableName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -6030,37 +6234,17 @@ public SapTableSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement RowSkips { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement SapDataColumnDelimiter { get { throw null; } set { } } } - public partial class ScheduleTrigger : Azure.ResourceManager.DataFactory.Models.MultiplePipelineTrigger - { - public ScheduleTrigger(Azure.ResourceManager.DataFactory.Models.ScheduleTriggerRecurrence recurrence) { } - public Azure.ResourceManager.DataFactory.Models.ScheduleTriggerRecurrence Recurrence { get { throw null; } set { } } - } public partial class ScheduleTriggerRecurrence { public ScheduleTriggerRecurrence() { } public System.Collections.Generic.IDictionary AdditionalProperties { get { throw null; } } public System.DateTimeOffset? EndOn { get { throw null; } set { } } - public Azure.ResourceManager.DataFactory.Models.RecurrenceFrequency? Frequency { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.DataFactoryRecurrenceFrequency? Frequency { get { throw null; } set { } } public int? Interval { get { throw null; } set { } } - public Azure.ResourceManager.DataFactory.Models.RecurrenceSchedule Schedule { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.DataFactoryRecurrenceSchedule Schedule { get { throw null; } set { } } public System.DateTimeOffset? StartOn { get { throw null; } set { } } public string TimeZone { get { throw null; } set { } } } - public partial class ScriptAction - { - public ScriptAction(string name, System.Uri uri, System.BinaryData roles) { } - public string Name { get { throw null; } set { } } - public string Parameters { get { throw null; } set { } } - public System.BinaryData Roles { get { throw null; } set { } } - public System.Uri Uri { get { throw null; } set { } } - } - public partial class ScriptActivity : Azure.ResourceManager.DataFactory.Models.ExecutionActivity - { - public ScriptActivity(string name) : base (default(string)) { } - public Azure.ResourceManager.DataFactory.Models.ScriptActivityTypePropertiesLogSettings LogSettings { get { throw null; } set { } } - public Azure.Core.Expressions.DataFactory.DataFactoryElement ScriptBlockExecutionTimeout { get { throw null; } set { } } - public System.Collections.Generic.IList Scripts { get { throw null; } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ScriptActivityLogDestination : System.IEquatable { @@ -6137,34 +6321,22 @@ public ScriptActivityParameter() { } } public partial class ScriptActivityScriptBlock { - public ScriptActivityScriptBlock(Azure.Core.Expressions.DataFactory.DataFactoryElement text, Azure.ResourceManager.DataFactory.Models.ScriptType scriptType) { } + public ScriptActivityScriptBlock(Azure.Core.Expressions.DataFactory.DataFactoryElement text, Azure.ResourceManager.DataFactory.Models.DataFactoryScriptType scriptType) { } public System.Collections.Generic.IList Parameters { get { throw null; } } - public Azure.ResourceManager.DataFactory.Models.ScriptType ScriptType { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.DataFactoryScriptType ScriptType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Text { get { throw null; } set { } } } - public partial class ScriptActivityTypePropertiesLogSettings + public partial class ScriptActivityTypeLogSettings { - public ScriptActivityTypePropertiesLogSettings(Azure.ResourceManager.DataFactory.Models.ScriptActivityLogDestination logDestination) { } + public ScriptActivityTypeLogSettings(Azure.ResourceManager.DataFactory.Models.ScriptActivityLogDestination logDestination) { } public Azure.ResourceManager.DataFactory.Models.ScriptActivityLogDestination LogDestination { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.LogLocationSettings LogLocationSettings { get { throw null; } set { } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ScriptType : System.IEquatable + public partial class SecureInputOutputPolicy { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ScriptType(string value) { throw null; } - public static Azure.ResourceManager.DataFactory.Models.ScriptType NonQuery { get { throw null; } } - public static Azure.ResourceManager.DataFactory.Models.ScriptType Query { get { throw null; } } - public bool Equals(Azure.ResourceManager.DataFactory.Models.ScriptType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.DataFactory.Models.ScriptType left, Azure.ResourceManager.DataFactory.Models.ScriptType right) { throw null; } - public static implicit operator Azure.ResourceManager.DataFactory.Models.ScriptType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.DataFactory.Models.ScriptType left, Azure.ResourceManager.DataFactory.Models.ScriptType right) { throw null; } - public override string ToString() { throw null; } + public SecureInputOutputPolicy() { } + public bool? IsSecureInputEnabled { get { throw null; } set { } } + public bool? IsSecureOutputEnabled { get { throw null; } set { } } } public partial class SelfDependencyTumblingWindowTriggerReference : Azure.ResourceManager.DataFactory.Models.DependencyReference { @@ -6172,7 +6344,7 @@ public SelfDependencyTumblingWindowTriggerReference(string offset) { } public string Offset { get { throw null; } set { } } public string Size { get { throw null; } set { } } } - public partial class SelfHostedIntegrationRuntime : Azure.ResourceManager.DataFactory.Models.DataFactoryIntegrationRuntimeDefinition + public partial class SelfHostedIntegrationRuntime : Azure.ResourceManager.DataFactory.Models.DataFactoryIntegrationRuntimeProperties { public SelfHostedIntegrationRuntime() { } public Azure.ResourceManager.DataFactory.Models.LinkedIntegrationRuntimeType LinkedInfo { get { throw null; } set { } } @@ -6226,7 +6398,7 @@ internal SelfHostedIntegrationRuntimeNode() { } public partial class SelfHostedIntegrationRuntimeStatus : Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeStatus { internal SelfHostedIntegrationRuntimeStatus() { } - public Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeAutoUpdate? AutoUpdate { get { throw null; } } + public Azure.ResourceManager.DataFactory.Models.IntegrationRuntimeAutoUpdateState? AutoUpdate { get { throw null; } } public System.DateTimeOffset? AutoUpdateEta { get { throw null; } } public System.Collections.Generic.IReadOnlyDictionary Capabilities { get { throw null; } } public System.DateTimeOffset? CreatedOn { get { throw null; } } @@ -6261,13 +6433,13 @@ internal SelfHostedIntegrationRuntimeStatus() { } public static bool operator !=(Azure.ResourceManager.DataFactory.Models.ServiceNowAuthenticationType left, Azure.ResourceManager.DataFactory.Models.ServiceNowAuthenticationType right) { throw null; } public override string ToString() { throw null; } } - public partial class ServiceNowLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class ServiceNowLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public ServiceNowLinkedService(System.BinaryData endpoint, Azure.ResourceManager.DataFactory.Models.ServiceNowAuthenticationType authenticationType) { } public Azure.ResourceManager.DataFactory.Models.ServiceNowAuthenticationType AuthenticationType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ClientId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ClientSecret { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public System.BinaryData Endpoint { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseEncryptedEndpoints { get { throw null; } set { } } @@ -6275,7 +6447,7 @@ public ServiceNowLinkedService(System.BinaryData endpoint, Azure.ResourceManager public Azure.Core.Expressions.DataFactory.DataFactoryElement UsePeerVerification { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Username { get { throw null; } set { } } } - public partial class ServiceNowObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class ServiceNowObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public ServiceNowObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -6285,7 +6457,7 @@ public partial class ServiceNowSource : Azure.ResourceManager.DataFactory.Models public ServiceNowSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class ServicePrincipalCredential : Azure.ResourceManager.DataFactory.Models.Credential + public partial class ServicePrincipalCredential : Azure.ResourceManager.DataFactory.Models.DataFactoryCredential { public ServicePrincipalCredential() { } public System.BinaryData ServicePrincipalId { get { throw null; } set { } } @@ -6295,6 +6467,7 @@ public ServicePrincipalCredential() { } public partial class SetVariableActivity : Azure.ResourceManager.DataFactory.Models.ControlActivity { public SetVariableActivity(string name) : base (default(string)) { } + public Azure.ResourceManager.DataFactory.Models.SecureInputOutputPolicy Policy { get { throw null; } set { } } public bool? SetSystemVariable { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Value { get { throw null; } set { } } public string VariableName { get { throw null; } set { } } @@ -6336,11 +6509,11 @@ public SftpReadSettings() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement WildcardFileName { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement WildcardFolderPath { get { throw null; } set { } } } - public partial class SftpServerLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class SftpServerLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public SftpServerLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement host) { } public Azure.ResourceManager.DataFactory.Models.SftpAuthenticationType? AuthenticationType { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Host { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement HostKeyFingerprint { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition PassPhrase { get { throw null; } set { } } @@ -6357,16 +6530,16 @@ public SftpWriteSettings() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement OperationTimeout { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseTempFileRename { get { throw null; } set { } } } - public partial class SharePointOnlineListLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class SharePointOnlineListLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public SharePointOnlineListLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement siteUri, Azure.Core.Expressions.DataFactory.DataFactoryElement tenantId, Azure.Core.Expressions.DataFactory.DataFactoryElement servicePrincipalId, Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition servicePrincipalKey) { } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ServicePrincipalId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ServicePrincipalKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement SiteUri { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement TenantId { get { throw null; } set { } } } - public partial class SharePointOnlineListResourceDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class SharePointOnlineListResourceDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public SharePointOnlineListResourceDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ListName { get { throw null; } set { } } @@ -6377,17 +6550,17 @@ public SharePointOnlineListSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement HttpRequestTimeout { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class ShopifyLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class ShopifyLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public ShopifyLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement host) { } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition AccessToken { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Host { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseEncryptedEndpoints { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseHostVerification { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UsePeerVerification { get { throw null; } set { } } } - public partial class ShopifyObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class ShopifyObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public ShopifyObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -6403,13 +6576,13 @@ public SkipErrorFile() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement DataInconsistency { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement FileMissing { get { throw null; } set { } } } - public partial class SmartsheetLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class SmartsheetLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public SmartsheetLinkedService(Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition apiToken) { } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ApiToken { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } } - public partial class SnowflakeDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class SnowflakeDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public SnowflakeDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SchemaTypePropertiesSchema { get { throw null; } set { } } @@ -6427,11 +6600,11 @@ public SnowflakeImportCopyCommand() { } public System.Collections.Generic.IDictionary AdditionalCopyOptions { get { throw null; } } public System.Collections.Generic.IDictionary AdditionalFormatOptions { get { throw null; } } } - public partial class SnowflakeLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class SnowflakeLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public SnowflakeLinkedService(System.BinaryData connectionString) { } public System.BinaryData ConnectionString { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference Password { get { throw null; } set { } } } public partial class SnowflakeSink : Azure.ResourceManager.DataFactory.Models.CopySink @@ -6506,14 +6679,14 @@ public SparkConfigurationParametrizationReference(Azure.ResourceManager.DataFact public static bool operator !=(Azure.ResourceManager.DataFactory.Models.SparkJobReferenceType left, Azure.ResourceManager.DataFactory.Models.SparkJobReferenceType right) { throw null; } public override string ToString() { throw null; } } - public partial class SparkLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class SparkLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public SparkLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement host, Azure.Core.Expressions.DataFactory.DataFactoryElement port, Azure.ResourceManager.DataFactory.Models.SparkAuthenticationType authenticationType) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowHostNameCNMismatch { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement AllowSelfSignedServerCert { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.SparkAuthenticationType AuthenticationType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement EnableSsl { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Host { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement HttpPath { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } @@ -6524,7 +6697,7 @@ public SparkLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement< public Azure.Core.Expressions.DataFactory.DataFactoryElement Username { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseSystemTrustStore { get { throw null; } set { } } } - public partial class SparkObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class SparkObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public SparkObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SchemaTypePropertiesSchema { get { throw null; } set { } } @@ -6661,12 +6834,12 @@ public SqlPartitionSettings() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement PartitionLowerBound { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement PartitionUpperBound { get { throw null; } set { } } } - public partial class SqlServerLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class SqlServerLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public SqlServerLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement connectionString) { } public Azure.ResourceManager.DataFactory.Models.SqlAlwaysEncryptedProperties AlwaysEncryptedSettings { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UserName { get { throw null; } set { } } } @@ -6700,7 +6873,7 @@ public SqlServerStoredProcedureActivity(string name, Azure.Core.Expressions.Data public Azure.Core.Expressions.DataFactory.DataFactoryElement StoredProcedureName { get { throw null; } set { } } public System.BinaryData StoredProcedureParameters { get { throw null; } set { } } } - public partial class SqlServerTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class SqlServerTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public SqlServerTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SchemaTypePropertiesSchema { get { throw null; } set { } } @@ -6737,20 +6910,20 @@ public SqlUpsertSettings() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement> Keys { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseTempDB { get { throw null; } set { } } } - public partial class SquareLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class SquareLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public SquareLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ClientId { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ClientSecret { get { throw null; } set { } } public System.BinaryData ConnectionProperties { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Host { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement RedirectUri { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseEncryptedEndpoints { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseHostVerification { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UsePeerVerification { get { throw null; } set { } } } - public partial class SquareObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class SquareObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public SquareObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -6953,15 +7126,15 @@ public StoreWriteSettings() { } } public partial class SwitchActivity : Azure.ResourceManager.DataFactory.Models.ControlActivity { - public SwitchActivity(string name, Azure.ResourceManager.DataFactory.Models.DataFactoryExpressionDefinition on) : base (default(string)) { } + public SwitchActivity(string name, Azure.ResourceManager.DataFactory.Models.DataFactoryExpression on) : base (default(string)) { } public System.Collections.Generic.IList Cases { get { throw null; } } - public System.Collections.Generic.IList DefaultActivities { get { throw null; } } - public Azure.ResourceManager.DataFactory.Models.DataFactoryExpressionDefinition On { get { throw null; } set { } } + public System.Collections.Generic.IList DefaultActivities { get { throw null; } } + public Azure.ResourceManager.DataFactory.Models.DataFactoryExpression On { get { throw null; } set { } } } public partial class SwitchCaseActivity { public SwitchCaseActivity() { } - public System.Collections.Generic.IList Activities { get { throw null; } } + public System.Collections.Generic.IList Activities { get { throw null; } } public string Value { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -6982,12 +7155,12 @@ public SwitchCaseActivity() { } public static bool operator !=(Azure.ResourceManager.DataFactory.Models.SybaseAuthenticationType left, Azure.ResourceManager.DataFactory.Models.SybaseAuthenticationType right) { throw null; } public override string ToString() { throw null; } } - public partial class SybaseLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class SybaseLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public SybaseLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement server, Azure.Core.Expressions.DataFactory.DataFactoryElement database) { } public Azure.ResourceManager.DataFactory.Models.SybaseAuthenticationType? AuthenticationType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Database { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Schema { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Server { get { throw null; } set { } } @@ -6998,7 +7171,7 @@ public partial class SybaseSource : Azure.ResourceManager.DataFactory.Models.Tab public SybaseSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class SybaseTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class SybaseTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public SybaseTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -7007,7 +7180,7 @@ public partial class SynapseNotebookActivity : Azure.ResourceManager.DataFactory { public SynapseNotebookActivity(string name, Azure.ResourceManager.DataFactory.Models.SynapseNotebookReference notebook) : base (default(string)) { } public System.BinaryData Conf { get { throw null; } set { } } - public Azure.ResourceManager.DataFactory.Models.ConfigurationType? ConfigurationType { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.DataFactorySparkConfigurationType? ConfigurationType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement DriverSize { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ExecutorSize { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.SynapseNotebookReference Notebook { get { throw null; } set { } } @@ -7029,7 +7202,7 @@ public SynapseSparkJobDefinitionActivity(string name, Azure.ResourceManager.Data public System.Collections.Generic.IList Arguments { get { throw null; } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ClassName { get { throw null; } set { } } public System.BinaryData Conf { get { throw null; } set { } } - public Azure.ResourceManager.DataFactory.Models.ConfigurationType? ConfigurationType { get { throw null; } set { } } + public Azure.ResourceManager.DataFactory.Models.DataFactorySparkConfigurationType? ConfigurationType { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement DriverSize { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement ExecutorSize { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement File { get { throw null; } set { } } @@ -7083,12 +7256,12 @@ public TarReadSettings() { } public static bool operator !=(Azure.ResourceManager.DataFactory.Models.TeamDeskAuthenticationType left, Azure.ResourceManager.DataFactory.Models.TeamDeskAuthenticationType right) { throw null; } public override string ToString() { throw null; } } - public partial class TeamDeskLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class TeamDeskLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public TeamDeskLinkedService(Azure.ResourceManager.DataFactory.Models.TeamDeskAuthenticationType authenticationType, Azure.Core.Expressions.DataFactory.DataFactoryElement uri) { } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ApiToken { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.TeamDeskAuthenticationType AuthenticationType { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Uri { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UserName { get { throw null; } set { } } @@ -7111,12 +7284,12 @@ public TeamDeskLinkedService(Azure.ResourceManager.DataFactory.Models.TeamDeskAu public static bool operator !=(Azure.ResourceManager.DataFactory.Models.TeradataAuthenticationType left, Azure.ResourceManager.DataFactory.Models.TeradataAuthenticationType right) { throw null; } public override string ToString() { throw null; } } - public partial class TeradataLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class TeradataLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public TeradataLinkedService() { } public Azure.ResourceManager.DataFactory.Models.TeradataAuthenticationType? AuthenticationType { get { throw null; } set { } } public System.BinaryData ConnectionString { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Server { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Username { get { throw null; } set { } } @@ -7135,7 +7308,7 @@ public TeradataSource() { } public Azure.ResourceManager.DataFactory.Models.TeradataPartitionSettings PartitionSettings { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class TeradataTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class TeradataTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public TeradataTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Database { get { throw null; } set { } } @@ -7177,7 +7350,7 @@ public TriggerPipelineReference() { } public static bool operator !=(Azure.ResourceManager.DataFactory.Models.TumblingWindowFrequency left, Azure.ResourceManager.DataFactory.Models.TumblingWindowFrequency right) { throw null; } public override string ToString() { throw null; } } - public partial class TumblingWindowTrigger : Azure.ResourceManager.DataFactory.Models.DataFactoryTriggerDefinition + public partial class TumblingWindowTrigger : Azure.ResourceManager.DataFactory.Models.DataFactoryTriggerProperties { public TumblingWindowTrigger(Azure.ResourceManager.DataFactory.Models.TriggerPipelineReference pipeline, Azure.ResourceManager.DataFactory.Models.TumblingWindowFrequency frequency, int interval, System.DateTimeOffset startOn, int maxConcurrency) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Delay { get { throw null; } set { } } @@ -7196,7 +7369,7 @@ public TumblingWindowTriggerDependencyReference(Azure.ResourceManager.DataFactor public string Offset { get { throw null; } set { } } public string Size { get { throw null; } set { } } } - public partial class TwilioLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class TwilioLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public TwilioLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement userName, Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition password) { } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } @@ -7204,9 +7377,9 @@ public TwilioLinkedService(Azure.Core.Expressions.DataFactory.DataFactoryElement } public partial class UntilActivity : Azure.ResourceManager.DataFactory.Models.ControlActivity { - public UntilActivity(string name, Azure.ResourceManager.DataFactory.Models.DataFactoryExpressionDefinition expression, System.Collections.Generic.IEnumerable activities) : base (default(string)) { } - public System.Collections.Generic.IList Activities { get { throw null; } } - public Azure.ResourceManager.DataFactory.Models.DataFactoryExpressionDefinition Expression { get { throw null; } set { } } + public UntilActivity(string name, Azure.ResourceManager.DataFactory.Models.DataFactoryExpression expression, System.Collections.Generic.IEnumerable activities) : base (default(string)) { } + public System.Collections.Generic.IList Activities { get { throw null; } } + public Azure.ResourceManager.DataFactory.Models.DataFactoryExpression Expression { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Timeout { get { throw null; } set { } } } public partial class UpdateIntegrationRuntimeNodeContent @@ -7223,11 +7396,11 @@ public ValidationActivity(string name, Azure.ResourceManager.DataFactory.Models. public Azure.Core.Expressions.DataFactory.DataFactoryElement Sleep { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Timeout { get { throw null; } set { } } } - public partial class VerticaLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class VerticaLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public VerticaLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement ConnectionString { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryKeyVaultSecretReference Password { get { throw null; } set { } } } public partial class VerticaSource : Azure.ResourceManager.DataFactory.Models.TabularSource @@ -7235,7 +7408,7 @@ public partial class VerticaSource : Azure.ResourceManager.DataFactory.Models.Ta public VerticaSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class VerticaTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class VerticaTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public VerticaTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement SchemaTypePropertiesSchema { get { throw null; } set { } } @@ -7335,7 +7508,7 @@ public WebHookActivity(string name, Azure.ResourceManager.DataFactory.Models.Web public static bool operator !=(Azure.ResourceManager.DataFactory.Models.WebHookActivityMethod left, Azure.ResourceManager.DataFactory.Models.WebHookActivityMethod right) { throw null; } public override string ToString() { throw null; } } - public partial class WebLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class WebLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public WebLinkedService(Azure.ResourceManager.DataFactory.Models.WebLinkedServiceTypeProperties typeProperties) { } public Azure.ResourceManager.DataFactory.Models.WebLinkedServiceTypeProperties TypeProperties { get { throw null; } set { } } @@ -7350,25 +7523,25 @@ public partial class WebSource : Azure.ResourceManager.DataFactory.Models.CopyAc public WebSource() { } public System.BinaryData AdditionalColumns { get { throw null; } set { } } } - public partial class WebTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class WebTableDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public WebTableDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName, Azure.Core.Expressions.DataFactory.DataFactoryElement index) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Index { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Path { get { throw null; } set { } } } - public partial class XeroLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class XeroLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public XeroLinkedService() { } public System.BinaryData ConnectionProperties { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ConsumerKey { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Host { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition PrivateKey { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseEncryptedEndpoints { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseHostVerification { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UsePeerVerification { get { throw null; } set { } } } - public partial class XeroObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class XeroObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public XeroObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } @@ -7378,7 +7551,7 @@ public partial class XeroSource : Azure.ResourceManager.DataFactory.Models.Tabul public XeroSource() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement Query { get { throw null; } set { } } } - public partial class XmlDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class XmlDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public XmlDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.ResourceManager.DataFactory.Models.DatasetCompression Compression { get { throw null; } set { } } @@ -7420,12 +7593,12 @@ public XmlSource() { } public static bool operator !=(Azure.ResourceManager.DataFactory.Models.ZendeskAuthenticationType left, Azure.ResourceManager.DataFactory.Models.ZendeskAuthenticationType right) { throw null; } public override string ToString() { throw null; } } - public partial class ZendeskLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class ZendeskLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public ZendeskLinkedService(Azure.ResourceManager.DataFactory.Models.ZendeskAuthenticationType authenticationType, Azure.Core.Expressions.DataFactory.DataFactoryElement uri) { } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition ApiToken { get { throw null; } set { } } public Azure.ResourceManager.DataFactory.Models.ZendeskAuthenticationType AuthenticationType { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition Password { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Uri { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UserName { get { throw null; } set { } } @@ -7435,18 +7608,18 @@ public partial class ZipDeflateReadSettings : Azure.ResourceManager.DataFactory. public ZipDeflateReadSettings() { } public Azure.Core.Expressions.DataFactory.DataFactoryElement PreserveZipFileNameAsFolder { get { throw null; } set { } } } - public partial class ZohoLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceDefinition + public partial class ZohoLinkedService : Azure.ResourceManager.DataFactory.Models.DataFactoryLinkedServiceProperties { public ZohoLinkedService() { } public Azure.Core.Expressions.DataFactory.DataFactorySecretBaseDefinition AccessToken { get { throw null; } set { } } public System.BinaryData ConnectionProperties { get { throw null; } set { } } - public System.BinaryData EncryptedCredential { get { throw null; } set { } } + public string EncryptedCredential { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement Endpoint { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseEncryptedEndpoints { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UseHostVerification { get { throw null; } set { } } public Azure.Core.Expressions.DataFactory.DataFactoryElement UsePeerVerification { get { throw null; } set { } } } - public partial class ZohoObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetDefinition + public partial class ZohoObjectDataset : Azure.ResourceManager.DataFactory.Models.DataFactoryDatasetProperties { public ZohoObjectDataset(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference linkedServiceName) : base (default(Azure.Core.Expressions.DataFactory.DataFactoryLinkedServiceReference)) { } public Azure.Core.Expressions.DataFactory.DataFactoryElement TableName { get { throw null; } set { } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryChangeDataCaptureCollection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryChangeDataCaptureCollection.cs new file mode 100644 index 000000000000..0c59a740a25f --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryChangeDataCaptureCollection.cs @@ -0,0 +1,122 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.DataFactory; + +namespace Azure.ResourceManager.DataFactory.Samples +{ + public partial class Sample_DataFactoryChangeDataCaptureCollection + { + // ChangeDataCapture_ListByFactory + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_ChangeDataCaptureListByFactory() + { + // Generated from example definition: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_ListByFactory.json + // this example is just showing the usage of "ChangeDataCapture_ListByFactory" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this DataFactoryResource created on azure + // for more information of creating DataFactoryResource, please refer to the document of DataFactoryResource + string subscriptionId = "12345678-1234-1234-1234-12345678abc"; + string resourceGroupName = "exampleResourceGroup"; + string factoryName = "exampleFactoryName"; + ResourceIdentifier dataFactoryResourceId = DataFactoryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName); + DataFactoryResource dataFactory = client.GetDataFactoryResource(dataFactoryResourceId); + + // get the collection of this DataFactoryChangeDataCaptureResource + DataFactoryChangeDataCaptureCollection collection = dataFactory.GetDataFactoryChangeDataCaptures(); + + // invoke the operation and iterate over the result + await foreach (DataFactoryChangeDataCaptureResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + DataFactoryChangeDataCaptureData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // ChangeDataCapture_Get + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_ChangeDataCaptureGet() + { + // Generated from example definition: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Get.json + // this example is just showing the usage of "ChangeDataCapture_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this DataFactoryResource created on azure + // for more information of creating DataFactoryResource, please refer to the document of DataFactoryResource + string subscriptionId = "12345678-1234-1234-1234-12345678abc"; + string resourceGroupName = "exampleResourceGroup"; + string factoryName = "exampleFactoryName"; + ResourceIdentifier dataFactoryResourceId = DataFactoryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName); + DataFactoryResource dataFactory = client.GetDataFactoryResource(dataFactoryResourceId); + + // get the collection of this DataFactoryChangeDataCaptureResource + DataFactoryChangeDataCaptureCollection collection = dataFactory.GetDataFactoryChangeDataCaptures(); + + // invoke the operation + string changeDataCaptureName = "exampleChangeDataCapture"; + DataFactoryChangeDataCaptureResource result = await collection.GetAsync(changeDataCaptureName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + DataFactoryChangeDataCaptureData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // ChangeDataCapture_Get + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_ChangeDataCaptureGet() + { + // Generated from example definition: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Get.json + // this example is just showing the usage of "ChangeDataCapture_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this DataFactoryResource created on azure + // for more information of creating DataFactoryResource, please refer to the document of DataFactoryResource + string subscriptionId = "12345678-1234-1234-1234-12345678abc"; + string resourceGroupName = "exampleResourceGroup"; + string factoryName = "exampleFactoryName"; + ResourceIdentifier dataFactoryResourceId = DataFactoryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName); + DataFactoryResource dataFactory = client.GetDataFactoryResource(dataFactoryResourceId); + + // get the collection of this DataFactoryChangeDataCaptureResource + DataFactoryChangeDataCaptureCollection collection = dataFactory.GetDataFactoryChangeDataCaptures(); + + // invoke the operation + string changeDataCaptureName = "exampleChangeDataCapture"; + bool result = await collection.ExistsAsync(changeDataCaptureName); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryChangeDataCaptureResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryChangeDataCaptureResource.cs new file mode 100644 index 000000000000..4a5709973b33 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryChangeDataCaptureResource.cs @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.DataFactory; + +namespace Azure.ResourceManager.DataFactory.Samples +{ + public partial class Sample_DataFactoryChangeDataCaptureResource + { + // ChangeDataCapture_Get + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_ChangeDataCaptureGet() + { + // Generated from example definition: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Get.json + // this example is just showing the usage of "ChangeDataCapture_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this DataFactoryChangeDataCaptureResource created on azure + // for more information of creating DataFactoryChangeDataCaptureResource, please refer to the document of DataFactoryChangeDataCaptureResource + string subscriptionId = "12345678-1234-1234-1234-12345678abc"; + string resourceGroupName = "exampleResourceGroup"; + string factoryName = "exampleFactoryName"; + string changeDataCaptureName = "exampleChangeDataCapture"; + ResourceIdentifier dataFactoryChangeDataCaptureResourceId = DataFactoryChangeDataCaptureResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName, changeDataCaptureName); + DataFactoryChangeDataCaptureResource dataFactoryChangeDataCapture = client.GetDataFactoryChangeDataCaptureResource(dataFactoryChangeDataCaptureResourceId); + + // invoke the operation + DataFactoryChangeDataCaptureResource result = await dataFactoryChangeDataCapture.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + DataFactoryChangeDataCaptureData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // ChangeDataCapture_Delete + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_ChangeDataCaptureDelete() + { + // Generated from example definition: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Delete.json + // this example is just showing the usage of "ChangeDataCapture_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this DataFactoryChangeDataCaptureResource created on azure + // for more information of creating DataFactoryChangeDataCaptureResource, please refer to the document of DataFactoryChangeDataCaptureResource + string subscriptionId = "12345678-1234-1234-1234-12345678abc"; + string resourceGroupName = "exampleResourceGroup"; + string factoryName = "exampleFactoryName"; + string changeDataCaptureName = "exampleChangeDataCapture"; + ResourceIdentifier dataFactoryChangeDataCaptureResourceId = DataFactoryChangeDataCaptureResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName, changeDataCaptureName); + DataFactoryChangeDataCaptureResource dataFactoryChangeDataCapture = client.GetDataFactoryChangeDataCaptureResource(dataFactoryChangeDataCaptureResourceId); + + // invoke the operation + await dataFactoryChangeDataCapture.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // ChangeDataCapture_Start + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Start_ChangeDataCaptureStart() + { + // Generated from example definition: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Start.json + // this example is just showing the usage of "ChangeDataCapture_Start" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this DataFactoryChangeDataCaptureResource created on azure + // for more information of creating DataFactoryChangeDataCaptureResource, please refer to the document of DataFactoryChangeDataCaptureResource + string subscriptionId = "12345678-1234-1234-1234-12345678abc"; + string resourceGroupName = "exampleResourceGroup"; + string factoryName = "exampleFactoryName"; + string changeDataCaptureName = "exampleChangeDataCapture"; + ResourceIdentifier dataFactoryChangeDataCaptureResourceId = DataFactoryChangeDataCaptureResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName, changeDataCaptureName); + DataFactoryChangeDataCaptureResource dataFactoryChangeDataCapture = client.GetDataFactoryChangeDataCaptureResource(dataFactoryChangeDataCaptureResourceId); + + // invoke the operation + await dataFactoryChangeDataCapture.StartAsync(); + + Console.WriteLine($"Succeeded"); + } + + // ChangeDataCapture_Stop + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Stop_ChangeDataCaptureStop() + { + // Generated from example definition: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Stop.json + // this example is just showing the usage of "ChangeDataCapture_Stop" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this DataFactoryChangeDataCaptureResource created on azure + // for more information of creating DataFactoryChangeDataCaptureResource, please refer to the document of DataFactoryChangeDataCaptureResource + string subscriptionId = "12345678-1234-1234-1234-12345678abc"; + string resourceGroupName = "exampleResourceGroup"; + string factoryName = "exampleFactoryName"; + string changeDataCaptureName = "exampleChangeDataCapture"; + ResourceIdentifier dataFactoryChangeDataCaptureResourceId = DataFactoryChangeDataCaptureResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName, changeDataCaptureName); + DataFactoryChangeDataCaptureResource dataFactoryChangeDataCapture = client.GetDataFactoryChangeDataCaptureResource(dataFactoryChangeDataCaptureResourceId); + + // invoke the operation + await dataFactoryChangeDataCapture.StopAsync(); + + Console.WriteLine($"Succeeded"); + } + + // ChangeDataCapture_Start + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Status_ChangeDataCaptureStart() + { + // Generated from example definition: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Status.json + // this example is just showing the usage of "ChangeDataCapture_Status" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this DataFactoryChangeDataCaptureResource created on azure + // for more information of creating DataFactoryChangeDataCaptureResource, please refer to the document of DataFactoryChangeDataCaptureResource + string subscriptionId = "12345678-1234-1234-1234-12345678abc"; + string resourceGroupName = "exampleResourceGroup"; + string factoryName = "exampleFactoryName"; + string changeDataCaptureName = "exampleChangeDataCapture"; + ResourceIdentifier dataFactoryChangeDataCaptureResourceId = DataFactoryChangeDataCaptureResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, factoryName, changeDataCaptureName); + DataFactoryChangeDataCaptureResource dataFactoryChangeDataCapture = client.GetDataFactoryChangeDataCaptureResource(dataFactoryChangeDataCaptureResourceId); + + // invoke the operation + string result = await dataFactoryChangeDataCapture.StatusAsync(); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryDataFlowCollection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryDataFlowCollection.cs index 066414dcfebe..b07895c66e0a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryDataFlowCollection.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryDataFlowCollection.cs @@ -44,7 +44,7 @@ public async Task CreateOrUpdate_DataFlowsCreate() // invoke the operation string dataFlowName = "exampleDataFlow"; - DataFactoryDataFlowData data = new DataFactoryDataFlowData(new DataFactoryMappingDataFlowDefinition() + DataFactoryDataFlowData data = new DataFactoryDataFlowData(new DataFactoryMappingDataFlowProperties() { Sources = { @@ -108,7 +108,7 @@ public async Task CreateOrUpdate_DataFlowsUpdate() // invoke the operation string dataFlowName = "exampleDataFlow"; - DataFactoryDataFlowData data = new DataFactoryDataFlowData(new DataFactoryMappingDataFlowDefinition() + DataFactoryDataFlowData data = new DataFactoryDataFlowData(new DataFactoryMappingDataFlowProperties() { Sources = { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryDataFlowResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryDataFlowResource.cs index bc6bfe7804a4..215a8f95226d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryDataFlowResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryDataFlowResource.cs @@ -41,7 +41,7 @@ public async Task Update_DataFlowsCreate() DataFactoryDataFlowResource dataFactoryDataFlow = client.GetDataFactoryDataFlowResource(dataFactoryDataFlowResourceId); // invoke the operation - DataFactoryDataFlowData data = new DataFactoryDataFlowData(new DataFactoryMappingDataFlowDefinition() + DataFactoryDataFlowData data = new DataFactoryDataFlowData(new DataFactoryMappingDataFlowProperties() { Sources = { @@ -102,7 +102,7 @@ public async Task Update_DataFlowsUpdate() DataFactoryDataFlowResource dataFactoryDataFlow = client.GetDataFactoryDataFlowResource(dataFactoryDataFlowResourceId); // invoke the operation - DataFactoryDataFlowData data = new DataFactoryDataFlowData(new DataFactoryMappingDataFlowDefinition() + DataFactoryDataFlowData data = new DataFactoryDataFlowData(new DataFactoryMappingDataFlowProperties() { Sources = { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryGlobalParameterCollection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryGlobalParameterCollection.cs index 7c9bcf18cf16..a19bc71c3880 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryGlobalParameterCollection.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryGlobalParameterCollection.cs @@ -148,9 +148,9 @@ public async Task CreateOrUpdate_GlobalParametersCreate() // invoke the operation string globalParameterName = "default"; - DataFactoryGlobalParameterData data = new DataFactoryGlobalParameterData(new Dictionary() + DataFactoryGlobalParameterData data = new DataFactoryGlobalParameterData(new Dictionary() { - ["waitTime"] = new DataFactoryGlobalParameterSpecification(DataFactoryGlobalParameterType.Int, BinaryData.FromString("5")), + ["waitTime"] = new DataFactoryGlobalParameterProperties(DataFactoryGlobalParameterType.Int, BinaryData.FromString("5")), }); ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, globalParameterName, data); DataFactoryGlobalParameterResource result = lro.Value; @@ -188,9 +188,9 @@ public async Task CreateOrUpdate_GlobalParametersUpdate() // invoke the operation string globalParameterName = "default"; - DataFactoryGlobalParameterData data = new DataFactoryGlobalParameterData(new Dictionary() + DataFactoryGlobalParameterData data = new DataFactoryGlobalParameterData(new Dictionary() { - ["waitTime"] = new DataFactoryGlobalParameterSpecification(DataFactoryGlobalParameterType.Int, BinaryData.FromString("5")), + ["waitTime"] = new DataFactoryGlobalParameterProperties(DataFactoryGlobalParameterType.Int, BinaryData.FromString("5")), }); ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, globalParameterName, data); DataFactoryGlobalParameterResource result = lro.Value; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryGlobalParameterResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryGlobalParameterResource.cs index 609d88db6df0..d704e095a234 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryGlobalParameterResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryGlobalParameterResource.cs @@ -74,9 +74,9 @@ public async Task Update_GlobalParametersCreate() DataFactoryGlobalParameterResource dataFactoryGlobalParameter = client.GetDataFactoryGlobalParameterResource(dataFactoryGlobalParameterResourceId); // invoke the operation - DataFactoryGlobalParameterData data = new DataFactoryGlobalParameterData(new Dictionary() + DataFactoryGlobalParameterData data = new DataFactoryGlobalParameterData(new Dictionary() { - ["waitTime"] = new DataFactoryGlobalParameterSpecification(DataFactoryGlobalParameterType.Int, BinaryData.FromString("5")), + ["waitTime"] = new DataFactoryGlobalParameterProperties(DataFactoryGlobalParameterType.Int, BinaryData.FromString("5")), }); ArmOperation lro = await dataFactoryGlobalParameter.UpdateAsync(WaitUntil.Completed, data); DataFactoryGlobalParameterResource result = lro.Value; @@ -111,9 +111,9 @@ public async Task Update_GlobalParametersUpdate() DataFactoryGlobalParameterResource dataFactoryGlobalParameter = client.GetDataFactoryGlobalParameterResource(dataFactoryGlobalParameterResourceId); // invoke the operation - DataFactoryGlobalParameterData data = new DataFactoryGlobalParameterData(new Dictionary() + DataFactoryGlobalParameterData data = new DataFactoryGlobalParameterData(new Dictionary() { - ["waitTime"] = new DataFactoryGlobalParameterSpecification(DataFactoryGlobalParameterType.Int, BinaryData.FromString("5")), + ["waitTime"] = new DataFactoryGlobalParameterProperties(DataFactoryGlobalParameterType.Int, BinaryData.FromString("5")), }); ArmOperation lro = await dataFactoryGlobalParameter.UpdateAsync(WaitUntil.Completed, data); DataFactoryGlobalParameterResource result = lro.Value; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryIntegrationRuntimeResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryIntegrationRuntimeResource.cs index 03bd48a9d39b..4ac45df425f7 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryIntegrationRuntimeResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryIntegrationRuntimeResource.cs @@ -76,7 +76,7 @@ public async Task Update_IntegrationRuntimesUpdate() // invoke the operation DataFactoryIntegrationRuntimePatch patch = new DataFactoryIntegrationRuntimePatch() { - AutoUpdate = IntegrationRuntimeAutoUpdate.Off, + AutoUpdate = IntegrationRuntimeAutoUpdateState.Off, UpdateDelayOffset = XmlConvert.ToTimeSpan("\"PT3H\""), }; DataFactoryIntegrationRuntimeResource result = await dataFactoryIntegrationRuntime.UpdateAsync(patch); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryManagedIdentityCredentialCollection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryManagedIdentityCredentialCollection.cs index 8cf731acea67..4d6526197b31 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryManagedIdentityCredentialCollection.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryManagedIdentityCredentialCollection.cs @@ -81,9 +81,9 @@ public async Task CreateOrUpdate_CredentialsCreate() // invoke the operation string credentialName = "exampleCredential"; - DataFactoryManagedIdentityCredentialData data = new DataFactoryManagedIdentityCredentialData(new DataFactoryManagedIdentityCredentialDefinition() + DataFactoryManagedIdentityCredentialData data = new DataFactoryManagedIdentityCredentialData(new DataFactoryManagedIdentityCredentialProperties() { - ResourceId = "/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami", + ResourceId = new ResourceIdentifier("/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami"), }); ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, credentialName, data); DataFactoryManagedIdentityCredentialResource result = lro.Value; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryManagedIdentityCredentialResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryManagedIdentityCredentialResource.cs index c0ce2cc59b3e..5540c32022eb 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryManagedIdentityCredentialResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryManagedIdentityCredentialResource.cs @@ -41,9 +41,9 @@ public async Task Update_CredentialsCreate() DataFactoryManagedIdentityCredentialResource dataFactoryManagedIdentityCredential = client.GetDataFactoryManagedIdentityCredentialResource(dataFactoryManagedIdentityCredentialResourceId); // invoke the operation - DataFactoryManagedIdentityCredentialData data = new DataFactoryManagedIdentityCredentialData(new DataFactoryManagedIdentityCredentialDefinition() + DataFactoryManagedIdentityCredentialData data = new DataFactoryManagedIdentityCredentialData(new DataFactoryManagedIdentityCredentialProperties() { - ResourceId = "/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami", + ResourceId = new ResourceIdentifier("/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami"), }); ArmOperation lro = await dataFactoryManagedIdentityCredential.UpdateAsync(WaitUntil.Completed, data); DataFactoryManagedIdentityCredentialResource result = lro.Value; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryManagedVirtualNetworkCollection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryManagedVirtualNetworkCollection.cs index b57f5a25229a..a35bb5674f2e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryManagedVirtualNetworkCollection.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryManagedVirtualNetworkCollection.cs @@ -81,7 +81,7 @@ public async Task CreateOrUpdate_ManagedVirtualNetworksCreate() // invoke the operation string managedVirtualNetworkName = "exampleManagedVirtualNetworkName"; - DataFactoryManagedVirtualNetworkData data = new DataFactoryManagedVirtualNetworkData(new ManagedVirtualNetwork()); + DataFactoryManagedVirtualNetworkData data = new DataFactoryManagedVirtualNetworkData(new DataFactoryManagedVirtualNetworkProperties()); ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, managedVirtualNetworkName, data); DataFactoryManagedVirtualNetworkResource result = lro.Value; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryManagedVirtualNetworkResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryManagedVirtualNetworkResource.cs index 03b935f03c44..bea308af9635 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryManagedVirtualNetworkResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryManagedVirtualNetworkResource.cs @@ -41,7 +41,7 @@ public async Task Update_ManagedVirtualNetworksCreate() DataFactoryManagedVirtualNetworkResource dataFactoryManagedVirtualNetwork = client.GetDataFactoryManagedVirtualNetworkResource(dataFactoryManagedVirtualNetworkResourceId); // invoke the operation - DataFactoryManagedVirtualNetworkData data = new DataFactoryManagedVirtualNetworkData(new ManagedVirtualNetwork()); + DataFactoryManagedVirtualNetworkData data = new DataFactoryManagedVirtualNetworkData(new DataFactoryManagedVirtualNetworkProperties()); ArmOperation lro = await dataFactoryManagedVirtualNetwork.UpdateAsync(WaitUntil.Completed, data); DataFactoryManagedVirtualNetworkResource result = lro.Value; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryPipelineCollection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryPipelineCollection.cs index 0253aef3bd44..e5d35484eaa6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryPipelineCollection.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryPipelineCollection.cs @@ -86,7 +86,7 @@ public async Task CreateOrUpdate_PipelinesCreate() { Activities = { -new ForEachActivity("ExampleForeachActivity",new DataFactoryExpressionDefinition(DataFactoryExpressionType.Expression,"@pipeline().parameters.OutputBlobNameList"),new DataFactoryActivity[] +new ForEachActivity("ExampleForeachActivity",new DataFactoryExpression(DataFactoryExpressionType.Expression,"@pipeline().parameters.OutputBlobNameList"),new PipelineActivity[] { new CopyActivity("ExampleCopyActivity",new DataFactoryBlobSource(),new DataFactoryBlobSink()) { @@ -181,7 +181,7 @@ public async Task CreateOrUpdate_PipelinesUpdate() Description = "Example description", Activities = { -new ForEachActivity("ExampleForeachActivity",new DataFactoryExpressionDefinition(DataFactoryExpressionType.Expression,"@pipeline().parameters.OutputBlobNameList"),new DataFactoryActivity[] +new ForEachActivity("ExampleForeachActivity",new DataFactoryExpression(DataFactoryExpressionType.Expression,"@pipeline().parameters.OutputBlobNameList"),new PipelineActivity[] { new CopyActivity("ExampleCopyActivity",new DataFactoryBlobSource(),new DataFactoryBlobSink()) { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryPipelineResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryPipelineResource.cs index 51464076b998..35372f966b9a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryPipelineResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryPipelineResource.cs @@ -46,7 +46,7 @@ public async Task Update_PipelinesCreate() { Activities = { -new ForEachActivity("ExampleForeachActivity",new DataFactoryExpressionDefinition(DataFactoryExpressionType.Expression,"@pipeline().parameters.OutputBlobNameList"),new DataFactoryActivity[] +new ForEachActivity("ExampleForeachActivity",new DataFactoryExpression(DataFactoryExpressionType.Expression,"@pipeline().parameters.OutputBlobNameList"),new PipelineActivity[] { new CopyActivity("ExampleCopyActivity",new DataFactoryBlobSource(),new DataFactoryBlobSink()) { @@ -138,7 +138,7 @@ public async Task Update_PipelinesUpdate() Description = "Example description", Activities = { -new ForEachActivity("ExampleForeachActivity",new DataFactoryExpressionDefinition(DataFactoryExpressionType.Expression,"@pipeline().parameters.OutputBlobNameList"),new DataFactoryActivity[] +new ForEachActivity("ExampleForeachActivity",new DataFactoryExpression(DataFactoryExpressionType.Expression,"@pipeline().parameters.OutputBlobNameList"),new PipelineActivity[] { new CopyActivity("ExampleCopyActivity",new DataFactoryBlobSource(),new DataFactoryBlobSink()) { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryPrivateEndpointCollection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryPrivateEndpointCollection.cs index e530f57eadb4..2d3b36e3208f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryPrivateEndpointCollection.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryPrivateEndpointCollection.cs @@ -83,7 +83,7 @@ public async Task CreateOrUpdate_ManagedVirtualNetworksCreate() // invoke the operation string managedPrivateEndpointName = "exampleManagedPrivateEndpointName"; - DataFactoryPrivateEndpointData data = new DataFactoryPrivateEndpointData(new ManagedPrivateEndpoint() + DataFactoryPrivateEndpointData data = new DataFactoryPrivateEndpointData(new DataFactoryPrivateEndpointProperties() { Fqdns = { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryPrivateEndpointResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryPrivateEndpointResource.cs index 2a5ee893e23e..acc74a7049de 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryPrivateEndpointResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryPrivateEndpointResource.cs @@ -42,7 +42,7 @@ public async Task Update_ManagedVirtualNetworksCreate() DataFactoryPrivateEndpointResource dataFactoryPrivateEndpoint = client.GetDataFactoryPrivateEndpointResource(dataFactoryPrivateEndpointResourceId); // invoke the operation - DataFactoryPrivateEndpointData data = new DataFactoryPrivateEndpointData(new ManagedPrivateEndpoint() + DataFactoryPrivateEndpointData data = new DataFactoryPrivateEndpointData(new DataFactoryPrivateEndpointProperties() { Fqdns = { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryResource.cs index c3c7f3f711ca..9fdc9634bb44 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryResource.cs @@ -74,7 +74,7 @@ public async Task ConfigureFactoryRepoInformation_FactoriesConfigureFactoryRepo( // invoke the operation AzureLocation locationId = new AzureLocation("East US"); - FactoryRepoUpdate factoryRepoUpdate = new FactoryRepoUpdate() + FactoryRepoContent content = new FactoryRepoContent() { FactoryResourceId = new ResourceIdentifier("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), RepoConfiguration = new FactoryVstsConfiguration("ADF", "repo", "master", "/", "project") @@ -83,7 +83,7 @@ public async Task ConfigureFactoryRepoInformation_FactoriesConfigureFactoryRepo( LastCommitId = "", }, }; - DataFactoryResource result = await subscriptionResource.ConfigureFactoryRepoInformationAsync(locationId, factoryRepoUpdate); + DataFactoryResource result = await subscriptionResource.ConfigureFactoryRepoInformationAsync(locationId, content); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance @@ -246,8 +246,8 @@ public async Task GetDataPlaneAccess_FactoriesGetDataPlaneAccess() Permissions = "r", AccessResourcePath = "", ProfileName = "DefaultProfile", - StartTime = "2018-11-10T02:46:20.2659347Z", - ExpireTime = "2018-11-10T09:46:20.2659347Z", + StartOn = DateTimeOffset.Parse("2018-11-10T02:46:20.2659347Z"), + ExpireOn = DateTimeOffset.Parse("2018-11-10T09:46:20.2659347Z"), }; DataFactoryDataPlaneAccessPolicyResult result = await dataFactory.GetDataPlaneAccessAsync(policy); @@ -445,7 +445,7 @@ public async Task GetActivityRun_ActivityRunsQueryByPipelineRun() // invoke the operation and iterate over the result string runId = "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b"; RunFilterContent content = new RunFilterContent(DateTimeOffset.Parse("2018-06-16T00:36:44.3345758Z"), DateTimeOffset.Parse("2018-06-16T00:49:48.3686473Z")); - await foreach (DataFactoryActivityRunInfo item in dataFactory.GetActivityRunAsync(runId, content)) + await foreach (PipelineActivityRunInformation item in dataFactory.GetActivityRunAsync(runId, content)) { Console.WriteLine($"Succeeded: {item}"); } @@ -634,7 +634,7 @@ public async Task AddDataFlowToDebugSession_DataFlowDebugSessionAddDataFlow() DataFactoryDataFlowDebugPackageContent content = new DataFactoryDataFlowDebugPackageContent() { SessionId = Guid.Parse("f06ed247-9d07-49b2-b05e-2cb4a2fc871e"), - DataFlow = new DataFactoryDataFlowDebugInfo(new DataFactoryMappingDataFlowDefinition() + DataFlow = new DataFactoryDataFlowDebugInfo(new DataFactoryMappingDataFlowProperties() { Sources = { @@ -687,7 +687,7 @@ public async Task AddDataFlowToDebugSession_DataFlowDebugSessionAddDataFlow() new DataFactoryLinkedServiceDebugInfo(new AzureBlobStorageLinkedService() { ConnectionString = "DefaultEndpointsProtocol=https;AccountName=;EndpointSuffix=core.windows.net;", -EncryptedCredential = BinaryData.FromString(""), +EncryptedCredential = "", Annotations = { }, diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryTriggerCollection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryTriggerCollection.cs index 146769221f66..b97d9390fda6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryTriggerCollection.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryTriggerCollection.cs @@ -81,9 +81,9 @@ public async Task CreateOrUpdate_TriggersCreate() // invoke the operation string triggerName = "exampleTrigger"; - DataFactoryTriggerData data = new DataFactoryTriggerData(new ScheduleTrigger(new ScheduleTriggerRecurrence() + DataFactoryTriggerData data = new DataFactoryTriggerData(new DataFactoryScheduleTrigger(new ScheduleTriggerRecurrence() { - Frequency = RecurrenceFrequency.Minute, + Frequency = DataFactoryRecurrenceFrequency.Minute, Interval = 4, StartOn = DateTimeOffset.Parse("2018-06-16T00:39:13.8441801Z"), EndOn = DateTimeOffset.Parse("2018-06-16T00:55:13.8441801Z"), @@ -138,9 +138,9 @@ public async Task CreateOrUpdate_TriggersUpdate() // invoke the operation string triggerName = "exampleTrigger"; - DataFactoryTriggerData data = new DataFactoryTriggerData(new ScheduleTrigger(new ScheduleTriggerRecurrence() + DataFactoryTriggerData data = new DataFactoryTriggerData(new DataFactoryScheduleTrigger(new ScheduleTriggerRecurrence() { - Frequency = RecurrenceFrequency.Minute, + Frequency = DataFactoryRecurrenceFrequency.Minute, Interval = 4, StartOn = DateTimeOffset.Parse("2018-06-16T00:39:14.905167Z"), EndOn = DateTimeOffset.Parse("2018-06-16T00:55:14.905167Z"), diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryTriggerResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryTriggerResource.cs index fe5bcf8f5da2..942e9553dee0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryTriggerResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/Generated/Samples/Sample_DataFactoryTriggerResource.cs @@ -41,9 +41,9 @@ public async Task Update_TriggersCreate() DataFactoryTriggerResource dataFactoryTrigger = client.GetDataFactoryTriggerResource(dataFactoryTriggerResourceId); // invoke the operation - DataFactoryTriggerData data = new DataFactoryTriggerData(new ScheduleTrigger(new ScheduleTriggerRecurrence() + DataFactoryTriggerData data = new DataFactoryTriggerData(new DataFactoryScheduleTrigger(new ScheduleTriggerRecurrence() { - Frequency = RecurrenceFrequency.Minute, + Frequency = DataFactoryRecurrenceFrequency.Minute, Interval = 4, StartOn = DateTimeOffset.Parse("2018-06-16T00:39:13.8441801Z"), EndOn = DateTimeOffset.Parse("2018-06-16T00:55:13.8441801Z"), @@ -95,9 +95,9 @@ public async Task Update_TriggersUpdate() DataFactoryTriggerResource dataFactoryTrigger = client.GetDataFactoryTriggerResource(dataFactoryTriggerResourceId); // invoke the operation - DataFactoryTriggerData data = new DataFactoryTriggerData(new ScheduleTrigger(new ScheduleTriggerRecurrence() + DataFactoryTriggerData data = new DataFactoryTriggerData(new DataFactoryScheduleTrigger(new ScheduleTriggerRecurrence() { - Frequency = RecurrenceFrequency.Minute, + Frequency = DataFactoryRecurrenceFrequency.Minute, Interval = 4, StartOn = DateTimeOffset.Parse("2018-06-16T00:39:14.905167Z"), EndOn = DateTimeOffset.Parse("2018-06-16T00:55:14.905167Z"), diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/autorest.tests.md b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/autorest.tests.md index f26fdc2eb48f..0f3515fca802 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/autorest.tests.md +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/samples/autorest.tests.md @@ -10,4 +10,6 @@ require: ../src/autorest.md include-x-ms-examples-original-file: true testgen: sample: true + skipped-operations: + - ChangeDataCapture_CreateOrUpdate # Missing required property ``` diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryChangeDataCaptureCollection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryChangeDataCaptureCollection.cs new file mode 100644 index 000000000000..9bda836c577d --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryChangeDataCaptureCollection.cs @@ -0,0 +1,346 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.DataFactory +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetDataFactoryChangeDataCaptures method from an instance of . + /// + public partial class DataFactoryChangeDataCaptureCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics; + private readonly ChangeDataCaptureRestOperations _dataFactoryChangeDataCaptureChangeDataCaptureRestClient; + + /// Initializes a new instance of the class for mocking. + protected DataFactoryChangeDataCaptureCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal DataFactoryChangeDataCaptureCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.DataFactory", DataFactoryChangeDataCaptureResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(DataFactoryChangeDataCaptureResource.ResourceType, out string dataFactoryChangeDataCaptureChangeDataCaptureApiVersion); + _dataFactoryChangeDataCaptureChangeDataCaptureRestClient = new ChangeDataCaptureRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, dataFactoryChangeDataCaptureChangeDataCaptureApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != DataFactoryResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, DataFactoryResource.ResourceType), nameof(id)); + } + + /// + /// Creates or updates a change data capture resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName} + /// + /// + /// Operation Id + /// ChangeDataCapture_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The change data capture name. + /// Change data capture resource definition. + /// ETag of the change data capture entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string changeDataCaptureName, DataFactoryChangeDataCaptureData data, string ifMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(changeDataCaptureName, nameof(changeDataCaptureName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics.CreateScope("DataFactoryChangeDataCaptureCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, changeDataCaptureName, data, ifMatch, cancellationToken).ConfigureAwait(false); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryChangeDataCaptureResource(Client, response), response.GetRawResponse())); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a change data capture resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName} + /// + /// + /// Operation Id + /// ChangeDataCapture_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The change data capture name. + /// Change data capture resource definition. + /// ETag of the change data capture entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string changeDataCaptureName, DataFactoryChangeDataCaptureData data, string ifMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(changeDataCaptureName, nameof(changeDataCaptureName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics.CreateScope("DataFactoryChangeDataCaptureCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, changeDataCaptureName, data, ifMatch, cancellationToken); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryChangeDataCaptureResource(Client, response), response.GetRawResponse())); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a change data capture. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName} + /// + /// + /// Operation Id + /// ChangeDataCapture_Get + /// + /// + /// + /// The change data capture name. + /// ETag of the change data capture entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string changeDataCaptureName, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(changeDataCaptureName, nameof(changeDataCaptureName)); + + using var scope = _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics.CreateScope("DataFactoryChangeDataCaptureCollection.Get"); + scope.Start(); + try + { + var response = await _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, changeDataCaptureName, ifNoneMatch, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new DataFactoryChangeDataCaptureResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a change data capture. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName} + /// + /// + /// Operation Id + /// ChangeDataCapture_Get + /// + /// + /// + /// The change data capture name. + /// ETag of the change data capture entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string changeDataCaptureName, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(changeDataCaptureName, nameof(changeDataCaptureName)); + + using var scope = _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics.CreateScope("DataFactoryChangeDataCaptureCollection.Get"); + scope.Start(); + try + { + var response = _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, changeDataCaptureName, ifNoneMatch, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new DataFactoryChangeDataCaptureResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists all resources of type change data capture. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs + /// + /// + /// Operation Id + /// ChangeDataCapture_ListByFactory + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.CreateListByFactoryRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.CreateListByFactoryNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new DataFactoryChangeDataCaptureResource(Client, DataFactoryChangeDataCaptureData.DeserializeDataFactoryChangeDataCaptureData(e)), _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics, Pipeline, "DataFactoryChangeDataCaptureCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Lists all resources of type change data capture. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs + /// + /// + /// Operation Id + /// ChangeDataCapture_ListByFactory + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.CreateListByFactoryRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.CreateListByFactoryNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new DataFactoryChangeDataCaptureResource(Client, DataFactoryChangeDataCaptureData.DeserializeDataFactoryChangeDataCaptureData(e)), _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics, Pipeline, "DataFactoryChangeDataCaptureCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName} + /// + /// + /// Operation Id + /// ChangeDataCapture_Get + /// + /// + /// + /// The change data capture name. + /// ETag of the change data capture entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string changeDataCaptureName, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(changeDataCaptureName, nameof(changeDataCaptureName)); + + using var scope = _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics.CreateScope("DataFactoryChangeDataCaptureCollection.Exists"); + scope.Start(); + try + { + var response = await _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, changeDataCaptureName, ifNoneMatch, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName} + /// + /// + /// Operation Id + /// ChangeDataCapture_Get + /// + /// + /// + /// The change data capture name. + /// ETag of the change data capture entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string changeDataCaptureName, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(changeDataCaptureName, nameof(changeDataCaptureName)); + + using var scope = _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics.CreateScope("DataFactoryChangeDataCaptureCollection.Exists"); + scope.Start(); + try + { + var response = _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, changeDataCaptureName, ifNoneMatch, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryChangeDataCaptureData.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryChangeDataCaptureData.cs new file mode 100644 index 000000000000..8d6df96cab0d --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryChangeDataCaptureData.cs @@ -0,0 +1,128 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure; +using Azure.Core; +using Azure.ResourceManager.DataFactory.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.DataFactory +{ + /// + /// A class representing the DataFactoryChangeDataCapture data model. + /// Change data capture resource type. + /// + public partial class DataFactoryChangeDataCaptureData : ResourceData + { + /// Initializes a new instance of DataFactoryChangeDataCaptureData. + /// List of sources connections that can be used as sources in the CDC. + /// List of target connections that can be used as sources in the CDC. + /// CDC policy. + /// , or is null. + public DataFactoryChangeDataCaptureData(IEnumerable sourceConnectionsInfo, IEnumerable targetConnectionsInfo, MapperPolicy policy) + { + Argument.AssertNotNull(sourceConnectionsInfo, nameof(sourceConnectionsInfo)); + Argument.AssertNotNull(targetConnectionsInfo, nameof(targetConnectionsInfo)); + Argument.AssertNotNull(policy, nameof(policy)); + + SourceConnectionsInfo = sourceConnectionsInfo.ToList(); + TargetConnectionsInfo = targetConnectionsInfo.ToList(); + Policy = policy; + AdditionalProperties = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of DataFactoryChangeDataCaptureData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The folder that this CDC is in. If not specified, CDC will appear at the root level. + /// The description of the change data capture. + /// List of sources connections that can be used as sources in the CDC. + /// List of target connections that can be used as sources in the CDC. + /// CDC policy. + /// A boolean to determine if the vnet configuration needs to be overwritten. + /// Status of the CDC as to if it is running or stopped. + /// Etag identifies change in the resource. + /// Additional Properties. + internal DataFactoryChangeDataCaptureData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ChangeDataCaptureFolder folder, string description, IList sourceConnectionsInfo, IList targetConnectionsInfo, MapperPolicy policy, bool? allowVnetOverride, string status, ETag? eTag, IDictionary additionalProperties) : base(id, name, resourceType, systemData) + { + Folder = folder; + Description = description; + SourceConnectionsInfo = sourceConnectionsInfo; + TargetConnectionsInfo = targetConnectionsInfo; + Policy = policy; + AllowVnetOverride = allowVnetOverride; + Status = status; + ETag = eTag; + AdditionalProperties = additionalProperties; + } + + /// The folder that this CDC is in. If not specified, CDC will appear at the root level. + internal ChangeDataCaptureFolder Folder { get; set; } + /// The name of the folder that this CDC is in. + public string FolderName + { + get => Folder is null ? default : Folder.Name; + set + { + if (Folder is null) + Folder = new ChangeDataCaptureFolder(); + Folder.Name = value; + } + } + + /// The description of the change data capture. + public string Description { get; set; } + /// List of sources connections that can be used as sources in the CDC. + public IList SourceConnectionsInfo { get; } + /// List of target connections that can be used as sources in the CDC. + public IList TargetConnectionsInfo { get; } + /// CDC policy. + public MapperPolicy Policy { get; set; } + /// A boolean to determine if the vnet configuration needs to be overwritten. + public bool? AllowVnetOverride { get; set; } + /// Status of the CDC as to if it is running or stopped. + public string Status { get; set; } + /// Etag identifies change in the resource. + public ETag? ETag { get; } + /// + /// Additional Properties + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formated json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + public IDictionary AdditionalProperties { get; } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryChangeDataCaptureResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryChangeDataCaptureResource.cs new file mode 100644 index 000000000000..14e6140cd7dd --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryChangeDataCaptureResource.cs @@ -0,0 +1,481 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.DataFactory +{ + /// + /// A Class representing a DataFactoryChangeDataCapture along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetDataFactoryChangeDataCaptureResource method. + /// Otherwise you can get one from its parent resource using the GetDataFactoryChangeDataCapture method. + /// + public partial class DataFactoryChangeDataCaptureResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics; + private readonly ChangeDataCaptureRestOperations _dataFactoryChangeDataCaptureChangeDataCaptureRestClient; + private readonly DataFactoryChangeDataCaptureData _data; + + /// Initializes a new instance of the class for mocking. + protected DataFactoryChangeDataCaptureResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal DataFactoryChangeDataCaptureResource(ArmClient client, DataFactoryChangeDataCaptureData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal DataFactoryChangeDataCaptureResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.DataFactory", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string dataFactoryChangeDataCaptureChangeDataCaptureApiVersion); + _dataFactoryChangeDataCaptureChangeDataCaptureRestClient = new ChangeDataCaptureRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, dataFactoryChangeDataCaptureChangeDataCaptureApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.DataFactory/factories/adfcdcs"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual DataFactoryChangeDataCaptureData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Gets a change data capture. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName} + /// + /// + /// Operation Id + /// ChangeDataCapture_Get + /// + /// + /// + /// ETag of the change data capture entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + /// The cancellation token to use. + public virtual async Task> GetAsync(string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + using var scope = _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics.CreateScope("DataFactoryChangeDataCaptureResource.Get"); + scope.Start(); + try + { + var response = await _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifNoneMatch, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new DataFactoryChangeDataCaptureResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets a change data capture. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName} + /// + /// + /// Operation Id + /// ChangeDataCapture_Get + /// + /// + /// + /// ETag of the change data capture entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + /// The cancellation token to use. + public virtual Response Get(string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + using var scope = _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics.CreateScope("DataFactoryChangeDataCaptureResource.Get"); + scope.Start(); + try + { + var response = _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifNoneMatch, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new DataFactoryChangeDataCaptureResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes a change data capture. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName} + /// + /// + /// Operation Id + /// ChangeDataCapture_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics.CreateScope("DataFactoryChangeDataCaptureResource.Delete"); + scope.Start(); + try + { + var response = await _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new DataFactoryArmOperation(response); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes a change data capture. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName} + /// + /// + /// Operation Id + /// ChangeDataCapture_Delete + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics.CreateScope("DataFactoryChangeDataCaptureResource.Delete"); + scope.Start(); + try + { + var response = _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new DataFactoryArmOperation(response); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a change data capture resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName} + /// + /// + /// Operation Id + /// ChangeDataCapture_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Change data capture resource definition. + /// ETag of the change data capture entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, DataFactoryChangeDataCaptureData data, string ifMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics.CreateScope("DataFactoryChangeDataCaptureResource.Update"); + scope.Start(); + try + { + var response = await _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken).ConfigureAwait(false); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryChangeDataCaptureResource(Client, response), response.GetRawResponse())); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates or updates a change data capture resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName} + /// + /// + /// Operation Id + /// ChangeDataCapture_CreateOrUpdate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Change data capture resource definition. + /// ETag of the change data capture entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, DataFactoryChangeDataCaptureData data, string ifMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics.CreateScope("DataFactoryChangeDataCaptureResource.Update"); + scope.Start(); + try + { + var response = _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken); + var operation = new DataFactoryArmOperation(Response.FromValue(new DataFactoryChangeDataCaptureResource(Client, response), response.GetRawResponse())); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Starts a change data capture. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/start + /// + /// + /// Operation Id + /// ChangeDataCapture_Start + /// + /// + /// + /// The cancellation token to use. + public virtual async Task StartAsync(CancellationToken cancellationToken = default) + { + using var scope = _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics.CreateScope("DataFactoryChangeDataCaptureResource.Start"); + scope.Start(); + try + { + var response = await _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.StartAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Starts a change data capture. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/start + /// + /// + /// Operation Id + /// ChangeDataCapture_Start + /// + /// + /// + /// The cancellation token to use. + public virtual Response Start(CancellationToken cancellationToken = default) + { + using var scope = _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics.CreateScope("DataFactoryChangeDataCaptureResource.Start"); + scope.Start(); + try + { + var response = _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.Start(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Stops a change data capture. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/stop + /// + /// + /// Operation Id + /// ChangeDataCapture_Stop + /// + /// + /// + /// The cancellation token to use. + public virtual async Task StopAsync(CancellationToken cancellationToken = default) + { + using var scope = _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics.CreateScope("DataFactoryChangeDataCaptureResource.Stop"); + scope.Start(); + try + { + var response = await _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.StopAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Stops a change data capture. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/stop + /// + /// + /// Operation Id + /// ChangeDataCapture_Stop + /// + /// + /// + /// The cancellation token to use. + public virtual Response Stop(CancellationToken cancellationToken = default) + { + using var scope = _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics.CreateScope("DataFactoryChangeDataCaptureResource.Stop"); + scope.Start(); + try + { + var response = _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.Stop(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the current status for the change data capture resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/status + /// + /// + /// Operation Id + /// ChangeDataCapture_Status + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> StatusAsync(CancellationToken cancellationToken = default) + { + using var scope = _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics.CreateScope("DataFactoryChangeDataCaptureResource.Status"); + scope.Start(); + try + { + var response = await _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.StatusAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the current status for the change data capture resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/status + /// + /// + /// Operation Id + /// ChangeDataCapture_Status + /// + /// + /// + /// The cancellation token to use. + public virtual Response Status(CancellationToken cancellationToken = default) + { + using var scope = _dataFactoryChangeDataCaptureChangeDataCaptureClientDiagnostics.CreateScope("DataFactoryChangeDataCaptureResource.Status"); + scope.Start(); + try + { + var response = _dataFactoryChangeDataCaptureChangeDataCaptureRestClient.Status(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryData.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryData.cs index aef2434de134..df313b100904 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryData.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryData.cs @@ -24,7 +24,7 @@ public partial class DataFactoryData : TrackedResourceData /// The location. public DataFactoryData(AzureLocation location) : base(location) { - GlobalParameters = new ChangeTrackingDictionary(); + GlobalParameters = new ChangeTrackingDictionary(); AdditionalProperties = new ChangeTrackingDictionary(); } @@ -50,7 +50,7 @@ public DataFactoryData(AzureLocation location) : base(location) /// Whether or not public network access is allowed for the data factory. /// Etag identifies change in the resource. /// Additional Properties. - internal DataFactoryData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, string provisioningState, DateTimeOffset? createdOn, string version, DataFactoryPurviewConfiguration purviewConfiguration, FactoryRepoConfiguration repoConfiguration, IDictionary globalParameters, DataFactoryEncryptionConfiguration encryption, DataFactoryPublicNetworkAccess? publicNetworkAccess, ETag? eTag, IDictionary additionalProperties) : base(id, name, resourceType, systemData, tags, location) + internal DataFactoryData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, string provisioningState, DateTimeOffset? createdOn, string version, DataFactoryPurviewConfiguration purviewConfiguration, FactoryRepoConfiguration repoConfiguration, IDictionary globalParameters, DataFactoryEncryptionConfiguration encryption, DataFactoryPublicNetworkAccess? publicNetworkAccess, ETag? eTag, IDictionary additionalProperties) : base(id, name, resourceType, systemData, tags, location) { Identity = identity; ProvisioningState = provisioningState; @@ -94,7 +94,7 @@ public ResourceIdentifier PurviewResourceId /// public FactoryRepoConfiguration RepoConfiguration { get; set; } /// List of parameters for factory. - public IDictionary GlobalParameters { get; } + public IDictionary GlobalParameters { get; } /// Properties to enable Customer Managed Key for the factory. public DataFactoryEncryptionConfiguration Encryption { get; set; } /// Whether or not public network access is allowed for the data factory. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDataFlowData.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDataFlowData.cs index e3b9a9b11568..8e8cc7f0bc2a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDataFlowData.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDataFlowData.cs @@ -22,11 +22,11 @@ public partial class DataFactoryDataFlowData : ResourceData /// Initializes a new instance of DataFactoryDataFlowData. /// /// Data flow properties. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . /// /// is null. - public DataFactoryDataFlowData(DataFactoryDataFlowDefinition properties) + public DataFactoryDataFlowData(DataFactoryDataFlowProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); @@ -40,11 +40,11 @@ public DataFactoryDataFlowData(DataFactoryDataFlowDefinition properties) /// The systemData. /// /// Data flow properties. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . /// /// Etag identifies change in the resource. - internal DataFactoryDataFlowData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DataFactoryDataFlowDefinition properties, ETag? eTag) : base(id, name, resourceType, systemData) + internal DataFactoryDataFlowData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DataFactoryDataFlowProperties properties, ETag? eTag) : base(id, name, resourceType, systemData) { Properties = properties; ETag = eTag; @@ -52,10 +52,10 @@ internal DataFactoryDataFlowData(ResourceIdentifier id, string name, ResourceTyp /// /// Data flow properties. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . /// - public DataFactoryDataFlowDefinition Properties { get; set; } + public DataFactoryDataFlowProperties Properties { get; set; } /// Etag identifies change in the resource. public ETag? ETag { get; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDatasetData.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDatasetData.cs index 500513e475b1..ddfe992344a1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDatasetData.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryDatasetData.cs @@ -22,11 +22,11 @@ public partial class DataFactoryDatasetData : ResourceData /// Initializes a new instance of DataFactoryDatasetData. /// /// Dataset properties. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// /// is null. - public DataFactoryDatasetData(DataFactoryDatasetDefinition properties) + public DataFactoryDatasetData(DataFactoryDatasetProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); @@ -40,11 +40,11 @@ public DataFactoryDatasetData(DataFactoryDatasetDefinition properties) /// The systemData. /// /// Dataset properties. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// /// Etag identifies change in the resource. - internal DataFactoryDatasetData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DataFactoryDatasetDefinition properties, ETag? eTag) : base(id, name, resourceType, systemData) + internal DataFactoryDatasetData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DataFactoryDatasetProperties properties, ETag? eTag) : base(id, name, resourceType, systemData) { Properties = properties; ETag = eTag; @@ -52,10 +52,10 @@ internal DataFactoryDatasetData(ResourceIdentifier id, string name, ResourceType /// /// Dataset properties. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// - public DataFactoryDatasetDefinition Properties { get; set; } + public DataFactoryDatasetProperties Properties { get; set; } /// Etag identifies change in the resource. public ETag? ETag { get; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryGlobalParameterData.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryGlobalParameterData.cs index 704cf3397918..5c9c809a91ea 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryGlobalParameterData.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryGlobalParameterData.cs @@ -23,7 +23,7 @@ public partial class DataFactoryGlobalParameterData : ResourceData /// Initializes a new instance of DataFactoryGlobalParameterData. /// Properties of the global parameter. /// is null. - public DataFactoryGlobalParameterData(IDictionary properties) + public DataFactoryGlobalParameterData(IDictionary properties) { Argument.AssertNotNull(properties, nameof(properties)); @@ -37,14 +37,14 @@ public DataFactoryGlobalParameterData(IDictionary The systemData. /// Properties of the global parameter. /// Etag identifies change in the resource. - internal DataFactoryGlobalParameterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary properties, ETag? eTag) : base(id, name, resourceType, systemData) + internal DataFactoryGlobalParameterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary properties, ETag? eTag) : base(id, name, resourceType, systemData) { Properties = properties; ETag = eTag; } /// Properties of the global parameter. - public IDictionary Properties { get; } + public IDictionary Properties { get; } /// Etag identifies change in the resource. public ETag? ETag { get; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryIntegrationRuntimeData.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryIntegrationRuntimeData.cs index 020a3a6ae221..d459b3752f3e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryIntegrationRuntimeData.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryIntegrationRuntimeData.cs @@ -22,11 +22,11 @@ public partial class DataFactoryIntegrationRuntimeData : ResourceData /// Initializes a new instance of DataFactoryIntegrationRuntimeData. /// /// Integration runtime properties. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// /// is null. - public DataFactoryIntegrationRuntimeData(DataFactoryIntegrationRuntimeDefinition properties) + public DataFactoryIntegrationRuntimeData(DataFactoryIntegrationRuntimeProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); @@ -40,11 +40,11 @@ public DataFactoryIntegrationRuntimeData(DataFactoryIntegrationRuntimeDefinition /// The systemData. /// /// Integration runtime properties. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// /// Etag identifies change in the resource. - internal DataFactoryIntegrationRuntimeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DataFactoryIntegrationRuntimeDefinition properties, ETag? eTag) : base(id, name, resourceType, systemData) + internal DataFactoryIntegrationRuntimeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DataFactoryIntegrationRuntimeProperties properties, ETag? eTag) : base(id, name, resourceType, systemData) { Properties = properties; ETag = eTag; @@ -52,10 +52,10 @@ internal DataFactoryIntegrationRuntimeData(ResourceIdentifier id, string name, R /// /// Integration runtime properties. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - public DataFactoryIntegrationRuntimeDefinition Properties { get; set; } + public DataFactoryIntegrationRuntimeProperties Properties { get; set; } /// Etag identifies change in the resource. public ETag? ETag { get; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryLinkedServiceData.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryLinkedServiceData.cs index 8acb3d141772..c17109f6262a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryLinkedServiceData.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryLinkedServiceData.cs @@ -22,11 +22,11 @@ public partial class DataFactoryLinkedServiceData : ResourceData /// Initializes a new instance of DataFactoryLinkedServiceData. /// /// Properties of linked service. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// /// is null. - public DataFactoryLinkedServiceData(DataFactoryLinkedServiceDefinition properties) + public DataFactoryLinkedServiceData(DataFactoryLinkedServiceProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); @@ -40,11 +40,11 @@ public DataFactoryLinkedServiceData(DataFactoryLinkedServiceDefinition propertie /// The systemData. /// /// Properties of linked service. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// /// Etag identifies change in the resource. - internal DataFactoryLinkedServiceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DataFactoryLinkedServiceDefinition properties, ETag? eTag) : base(id, name, resourceType, systemData) + internal DataFactoryLinkedServiceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DataFactoryLinkedServiceProperties properties, ETag? eTag) : base(id, name, resourceType, systemData) { Properties = properties; ETag = eTag; @@ -52,10 +52,10 @@ internal DataFactoryLinkedServiceData(ResourceIdentifier id, string name, Resour /// /// Properties of linked service. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// - public DataFactoryLinkedServiceDefinition Properties { get; set; } + public DataFactoryLinkedServiceProperties Properties { get; set; } /// Etag identifies change in the resource. public ETag? ETag { get; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedIdentityCredentialData.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedIdentityCredentialData.cs index c994caf0686c..4e8de7bc60c0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedIdentityCredentialData.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedIdentityCredentialData.cs @@ -22,7 +22,7 @@ public partial class DataFactoryManagedIdentityCredentialData : ResourceData /// Initializes a new instance of DataFactoryManagedIdentityCredentialData. /// Managed Identity Credential properties. /// is null. - public DataFactoryManagedIdentityCredentialData(DataFactoryManagedIdentityCredentialDefinition properties) + public DataFactoryManagedIdentityCredentialData(DataFactoryManagedIdentityCredentialProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); @@ -36,14 +36,14 @@ public DataFactoryManagedIdentityCredentialData(DataFactoryManagedIdentityCreden /// The systemData. /// Managed Identity Credential properties. /// Etag identifies change in the resource. - internal DataFactoryManagedIdentityCredentialData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DataFactoryManagedIdentityCredentialDefinition properties, ETag? eTag) : base(id, name, resourceType, systemData) + internal DataFactoryManagedIdentityCredentialData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DataFactoryManagedIdentityCredentialProperties properties, ETag? eTag) : base(id, name, resourceType, systemData) { Properties = properties; ETag = eTag; } /// Managed Identity Credential properties. - public DataFactoryManagedIdentityCredentialDefinition Properties { get; set; } + public DataFactoryManagedIdentityCredentialProperties Properties { get; set; } /// Etag identifies change in the resource. public ETag? ETag { get; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedVirtualNetworkData.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedVirtualNetworkData.cs index 06f08ebc1c8a..35a9ca8535d9 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedVirtualNetworkData.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryManagedVirtualNetworkData.cs @@ -22,7 +22,7 @@ public partial class DataFactoryManagedVirtualNetworkData : ResourceData /// Initializes a new instance of DataFactoryManagedVirtualNetworkData. /// Managed Virtual Network properties. /// is null. - public DataFactoryManagedVirtualNetworkData(ManagedVirtualNetwork properties) + public DataFactoryManagedVirtualNetworkData(DataFactoryManagedVirtualNetworkProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); @@ -36,14 +36,14 @@ public DataFactoryManagedVirtualNetworkData(ManagedVirtualNetwork properties) /// The systemData. /// Managed Virtual Network properties. /// Etag identifies change in the resource. - internal DataFactoryManagedVirtualNetworkData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ManagedVirtualNetwork properties, ETag? eTag) : base(id, name, resourceType, systemData) + internal DataFactoryManagedVirtualNetworkData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DataFactoryManagedVirtualNetworkProperties properties, ETag? eTag) : base(id, name, resourceType, systemData) { Properties = properties; ETag = eTag; } /// Managed Virtual Network properties. - public ManagedVirtualNetwork Properties { get; set; } + public DataFactoryManagedVirtualNetworkProperties Properties { get; set; } /// Etag identifies change in the resource. public ETag? ETag { get; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPipelineData.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPipelineData.cs index 0a1eaa897a94..18a20635658e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPipelineData.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPipelineData.cs @@ -23,7 +23,7 @@ public partial class DataFactoryPipelineData : ResourceData /// Initializes a new instance of DataFactoryPipelineData. public DataFactoryPipelineData() { - Activities = new ChangeTrackingList(); + Activities = new ChangeTrackingList(); Parameters = new ChangeTrackingDictionary(); Variables = new ChangeTrackingDictionary(); Annotations = new ChangeTrackingList(); @@ -39,8 +39,8 @@ public DataFactoryPipelineData() /// The description of the pipeline. /// /// List of activities in pipeline. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// /// List of parameters for pipeline. /// List of variables for pipeline. @@ -51,7 +51,7 @@ public DataFactoryPipelineData() /// Pipeline Policy. /// Etag identifies change in the resource. /// Additional Properties. - internal DataFactoryPipelineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, IList activities, IDictionary parameters, IDictionary variables, int? concurrency, IList annotations, IDictionary runDimensions, PipelineFolder folder, DataFactoryPipelinePolicy policy, ETag? eTag, IDictionary additionalProperties) : base(id, name, resourceType, systemData) + internal DataFactoryPipelineData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, IList activities, IDictionary parameters, IDictionary variables, int? concurrency, IList annotations, IDictionary runDimensions, PipelineFolder folder, DataFactoryPipelinePolicy policy, ETag? eTag, IDictionary additionalProperties) : base(id, name, resourceType, systemData) { Description = description; Activities = activities; @@ -70,10 +70,10 @@ internal DataFactoryPipelineData(ResourceIdentifier id, string name, ResourceTyp public string Description { get; set; } /// /// List of activities in pipeline. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// - public IList Activities { get; } + public IList Activities { get; } /// List of parameters for pipeline. public IDictionary Parameters { get; } /// List of variables for pipeline. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointConnectionData.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointConnectionData.cs index b6402ef5b8cc..594d18487c5b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointConnectionData.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointConnectionData.cs @@ -30,14 +30,14 @@ public DataFactoryPrivateEndpointConnectionData() /// The systemData. /// Core resource properties. /// Etag identifies change in the resource. - internal DataFactoryPrivateEndpointConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DataFactoryPrivateEndpointProperties properties, ETag? eTag) : base(id, name, resourceType, systemData) + internal DataFactoryPrivateEndpointConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DataFactoryPrivateEndpointConnectionProperties properties, ETag? eTag) : base(id, name, resourceType, systemData) { Properties = properties; ETag = eTag; } /// Core resource properties. - public DataFactoryPrivateEndpointProperties Properties { get; set; } + public DataFactoryPrivateEndpointConnectionProperties Properties { get; set; } /// Etag identifies change in the resource. public ETag? ETag { get; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointData.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointData.cs index ce2daff45610..452cfdc0b4b8 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointData.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryPrivateEndpointData.cs @@ -22,7 +22,7 @@ public partial class DataFactoryPrivateEndpointData : ResourceData /// Initializes a new instance of DataFactoryPrivateEndpointData. /// Managed private endpoint properties. /// is null. - public DataFactoryPrivateEndpointData(ManagedPrivateEndpoint properties) + public DataFactoryPrivateEndpointData(DataFactoryPrivateEndpointProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); @@ -36,14 +36,14 @@ public DataFactoryPrivateEndpointData(ManagedPrivateEndpoint properties) /// The systemData. /// Managed private endpoint properties. /// Etag identifies change in the resource. - internal DataFactoryPrivateEndpointData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ManagedPrivateEndpoint properties, ETag? eTag) : base(id, name, resourceType, systemData) + internal DataFactoryPrivateEndpointData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DataFactoryPrivateEndpointProperties properties, ETag? eTag) : base(id, name, resourceType, systemData) { Properties = properties; ETag = eTag; } /// Managed private endpoint properties. - public ManagedPrivateEndpoint Properties { get; set; } + public DataFactoryPrivateEndpointProperties Properties { get; set; } /// Etag identifies change in the resource. public ETag? ETag { get; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryResource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryResource.cs index 51258c96d8b5..9acd026ddec2 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryResource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryResource.cs @@ -666,6 +666,61 @@ public virtual Response GetDataFactoryGlobal return GetDataFactoryGlobalParameters().Get(globalParameterName, cancellationToken); } + /// Gets a collection of DataFactoryChangeDataCaptureResources in the DataFactory. + /// An object representing collection of DataFactoryChangeDataCaptureResources and their operations over a DataFactoryChangeDataCaptureResource. + public virtual DataFactoryChangeDataCaptureCollection GetDataFactoryChangeDataCaptures() + { + return GetCachedClient(Client => new DataFactoryChangeDataCaptureCollection(Client, Id)); + } + + /// + /// Gets a change data capture. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName} + /// + /// + /// Operation Id + /// ChangeDataCapture_Get + /// + /// + /// + /// The change data capture name. + /// ETag of the change data capture entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetDataFactoryChangeDataCaptureAsync(string changeDataCaptureName, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + return await GetDataFactoryChangeDataCaptures().GetAsync(changeDataCaptureName, ifNoneMatch, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a change data capture. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName} + /// + /// + /// Operation Id + /// ChangeDataCapture_Get + /// + /// + /// + /// The change data capture name. + /// ETag of the change data capture entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetDataFactoryChangeDataCapture(string changeDataCaptureName, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + return GetDataFactoryChangeDataCaptures().Get(changeDataCaptureName, ifNoneMatch, cancellationToken); + } + /// /// Gets a factory. /// @@ -1350,14 +1405,14 @@ public virtual Response CancelPipelineRun(string runId, bool? isRecursive = null /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetActivityRunAsync(string runId, RunFilterContent content, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetActivityRunAsync(string runId, RunFilterContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(runId, nameof(runId)); Argument.AssertNotNull(content, nameof(content)); HttpMessage FirstPageRequest(int? pageSizeHint) => _activityRunsRestClient.CreateQueryByPipelineRunRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runId, content); - return PageableHelpers.CreateAsyncPageable(FirstPageRequest, null, DataFactoryActivityRunInfo.DeserializeDataFactoryActivityRunInfo, _activityRunsClientDiagnostics, Pipeline, "DataFactoryResource.GetActivityRun", "value", null, cancellationToken); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, null, PipelineActivityRunInformation.DeserializePipelineActivityRunInformation, _activityRunsClientDiagnostics, Pipeline, "DataFactoryResource.GetActivityRun", "value", null, cancellationToken); } /// @@ -1378,14 +1433,14 @@ public virtual AsyncPageable GetActivityRunAsync(str /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetActivityRun(string runId, RunFilterContent content, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetActivityRun(string runId, RunFilterContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(runId, nameof(runId)); Argument.AssertNotNull(content, nameof(content)); HttpMessage FirstPageRequest(int? pageSizeHint) => _activityRunsRestClient.CreateQueryByPipelineRunRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runId, content); - return PageableHelpers.CreatePageable(FirstPageRequest, null, DataFactoryActivityRunInfo.DeserializeDataFactoryActivityRunInfo, _activityRunsClientDiagnostics, Pipeline, "DataFactoryResource.GetActivityRun", "value", null, cancellationToken); + return PageableHelpers.CreatePageable(FirstPageRequest, null, PipelineActivityRunInformation.DeserializePipelineActivityRunInformation, _activityRunsClientDiagnostics, Pipeline, "DataFactoryResource.GetActivityRun", "value", null, cancellationToken); } /// diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryTriggerData.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryTriggerData.cs index f631a3b65d08..72e6aea198a4 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryTriggerData.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/DataFactoryTriggerData.cs @@ -22,11 +22,11 @@ public partial class DataFactoryTriggerData : ResourceData /// Initializes a new instance of DataFactoryTriggerData. /// /// Properties of the trigger. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , and . /// /// is null. - public DataFactoryTriggerData(DataFactoryTriggerDefinition properties) + public DataFactoryTriggerData(DataFactoryTriggerProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); @@ -40,11 +40,11 @@ public DataFactoryTriggerData(DataFactoryTriggerDefinition properties) /// The systemData. /// /// Properties of the trigger. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , and . /// /// Etag identifies change in the resource. - internal DataFactoryTriggerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DataFactoryTriggerDefinition properties, ETag? eTag) : base(id, name, resourceType, systemData) + internal DataFactoryTriggerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DataFactoryTriggerProperties properties, ETag? eTag) : base(id, name, resourceType, systemData) { Properties = properties; ETag = eTag; @@ -52,10 +52,10 @@ internal DataFactoryTriggerData(ResourceIdentifier id, string name, ResourceType /// /// Properties of the trigger. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , and . /// - public DataFactoryTriggerDefinition Properties { get; set; } + public DataFactoryTriggerProperties Properties { get; set; } /// Etag identifies change in the resource. public ETag? ETag { get; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Extensions/DataFactoryExtensions.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Extensions/DataFactoryExtensions.cs index 7274f910fbda..40984d0ff8c9 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Extensions/DataFactoryExtensions.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Extensions/DataFactoryExtensions.cs @@ -278,6 +278,25 @@ public static DataFactoryGlobalParameterResource GetDataFactoryGlobalParameterRe } #endregion + #region DataFactoryChangeDataCaptureResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static DataFactoryChangeDataCaptureResource GetDataFactoryChangeDataCaptureResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + DataFactoryChangeDataCaptureResource.ValidateResourceId(id); + return new DataFactoryChangeDataCaptureResource(client, id); + } + ); + } + #endregion + /// Gets a collection of DataFactoryResources in the ResourceGroupResource. /// The instance the method will execute against. /// An object representing collection of DataFactoryResources and their operations over a DataFactoryResource. @@ -393,14 +412,14 @@ public static Pageable GetDataFactories(this SubscriptionRe /// /// The instance the method will execute against. /// The location identifier. - /// Update factory repo request definition. + /// Update factory repo request definition. /// The cancellation token to use. - /// is null. - public static async Task> ConfigureFactoryRepoInformationAsync(this SubscriptionResource subscriptionResource, AzureLocation locationId, FactoryRepoUpdate factoryRepoUpdate, CancellationToken cancellationToken = default) + /// is null. + public static async Task> ConfigureFactoryRepoInformationAsync(this SubscriptionResource subscriptionResource, AzureLocation locationId, FactoryRepoContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(factoryRepoUpdate, nameof(factoryRepoUpdate)); + Argument.AssertNotNull(content, nameof(content)); - return await GetSubscriptionResourceExtensionClient(subscriptionResource).ConfigureFactoryRepoInformationAsync(locationId, factoryRepoUpdate, cancellationToken).ConfigureAwait(false); + return await GetSubscriptionResourceExtensionClient(subscriptionResource).ConfigureFactoryRepoInformationAsync(locationId, content, cancellationToken).ConfigureAwait(false); } /// @@ -418,14 +437,14 @@ public static async Task> ConfigureFactoryRepoInfo /// /// The instance the method will execute against. /// The location identifier. - /// Update factory repo request definition. + /// Update factory repo request definition. /// The cancellation token to use. - /// is null. - public static Response ConfigureFactoryRepoInformation(this SubscriptionResource subscriptionResource, AzureLocation locationId, FactoryRepoUpdate factoryRepoUpdate, CancellationToken cancellationToken = default) + /// is null. + public static Response ConfigureFactoryRepoInformation(this SubscriptionResource subscriptionResource, AzureLocation locationId, FactoryRepoContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(factoryRepoUpdate, nameof(factoryRepoUpdate)); + Argument.AssertNotNull(content, nameof(content)); - return GetSubscriptionResourceExtensionClient(subscriptionResource).ConfigureFactoryRepoInformation(locationId, factoryRepoUpdate, cancellationToken); + return GetSubscriptionResourceExtensionClient(subscriptionResource).ConfigureFactoryRepoInformation(locationId, content, cancellationToken); } /// diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs index 287e3966e033..8817b7ea34d2 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs @@ -105,15 +105,15 @@ public virtual Pageable GetDataFactories(CancellationToken /// /// /// The location identifier. - /// Update factory repo request definition. + /// Update factory repo request definition. /// The cancellation token to use. - public virtual async Task> ConfigureFactoryRepoInformationAsync(AzureLocation locationId, FactoryRepoUpdate factoryRepoUpdate, CancellationToken cancellationToken = default) + public virtual async Task> ConfigureFactoryRepoInformationAsync(AzureLocation locationId, FactoryRepoContent content, CancellationToken cancellationToken = default) { using var scope = DataFactoryFactoriesClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.ConfigureFactoryRepoInformation"); scope.Start(); try { - var response = await DataFactoryFactoriesRestClient.ConfigureFactoryRepoAsync(Id.SubscriptionId, locationId, factoryRepoUpdate, cancellationToken).ConfigureAwait(false); + var response = await DataFactoryFactoriesRestClient.ConfigureFactoryRepoAsync(Id.SubscriptionId, locationId, content, cancellationToken).ConfigureAwait(false); return Response.FromValue(new DataFactoryResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -137,15 +137,15 @@ public virtual async Task> ConfigureFactoryRepoInf /// /// /// The location identifier. - /// Update factory repo request definition. + /// Update factory repo request definition. /// The cancellation token to use. - public virtual Response ConfigureFactoryRepoInformation(AzureLocation locationId, FactoryRepoUpdate factoryRepoUpdate, CancellationToken cancellationToken = default) + public virtual Response ConfigureFactoryRepoInformation(AzureLocation locationId, FactoryRepoContent content, CancellationToken cancellationToken = default) { using var scope = DataFactoryFactoriesClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.ConfigureFactoryRepoInformation"); scope.Start(); try { - var response = DataFactoryFactoriesRestClient.ConfigureFactoryRepo(Id.SubscriptionId, locationId, factoryRepoUpdate, cancellationToken); + var response = DataFactoryFactoriesRestClient.ConfigureFactoryRepo(Id.SubscriptionId, locationId, content, cancellationToken); return Response.FromValue(new DataFactoryResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityOnInactiveMarkA.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityOnInactiveMarkAs.cs similarity index 57% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityOnInactiveMarkA.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityOnInactiveMarkAs.cs index a136c61b00a5..7c9a4fef07c7 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityOnInactiveMarkA.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityOnInactiveMarkAs.cs @@ -11,13 +11,13 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when the activity is inactive, the status will be Succeeded by default. - public readonly partial struct ActivityOnInactiveMarkA : IEquatable + public readonly partial struct ActivityOnInactiveMarkAs : IEquatable { private readonly string _value; - /// Initializes a new instance of . + /// Initializes a new instance of . /// is null. - public ActivityOnInactiveMarkA(string value) + public ActivityOnInactiveMarkAs(string value) { _value = value ?? throw new ArgumentNullException(nameof(value)); } @@ -27,23 +27,23 @@ public ActivityOnInactiveMarkA(string value) private const string SkippedValue = "Skipped"; /// Succeeded. - public static ActivityOnInactiveMarkA Succeeded { get; } = new ActivityOnInactiveMarkA(SucceededValue); + public static ActivityOnInactiveMarkAs Succeeded { get; } = new ActivityOnInactiveMarkAs(SucceededValue); /// Failed. - public static ActivityOnInactiveMarkA Failed { get; } = new ActivityOnInactiveMarkA(FailedValue); + public static ActivityOnInactiveMarkAs Failed { get; } = new ActivityOnInactiveMarkAs(FailedValue); /// Skipped. - public static ActivityOnInactiveMarkA Skipped { get; } = new ActivityOnInactiveMarkA(SkippedValue); - /// Determines if two values are the same. - public static bool operator ==(ActivityOnInactiveMarkA left, ActivityOnInactiveMarkA right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ActivityOnInactiveMarkA left, ActivityOnInactiveMarkA right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator ActivityOnInactiveMarkA(string value) => new ActivityOnInactiveMarkA(value); + public static ActivityOnInactiveMarkAs Skipped { get; } = new ActivityOnInactiveMarkAs(SkippedValue); + /// Determines if two values are the same. + public static bool operator ==(ActivityOnInactiveMarkAs left, ActivityOnInactiveMarkAs right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ActivityOnInactiveMarkAs left, ActivityOnInactiveMarkAs right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ActivityOnInactiveMarkAs(string value) => new ActivityOnInactiveMarkAs(value); /// [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ActivityOnInactiveMarkA other && Equals(other); + public override bool Equals(object obj) => obj is ActivityOnInactiveMarkAs other && Equals(other); /// - public bool Equals(ActivityOnInactiveMarkA other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + public bool Equals(ActivityOnInactiveMarkAs other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); /// [EditorBrowsable(EditorBrowsableState.Never)] diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityState.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityState.cs deleted file mode 100644 index 2370a39203e2..000000000000 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityState.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.DataFactory.Models -{ - /// Activity state. This is an optional property and if not provided, the state will be Active by default. - public readonly partial struct ActivityState : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ActivityState(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string ActiveValue = "Active"; - private const string InactiveValue = "Inactive"; - - /// Active. - public static ActivityState Active { get; } = new ActivityState(ActiveValue); - /// Inactive. - public static ActivityState Inactive { get; } = new ActivityState(InactiveValue); - /// Determines if two values are the same. - public static bool operator ==(ActivityState left, ActivityState right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ActivityState left, ActivityState right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator ActivityState(string value) => new ActivityState(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ActivityState other && Equals(other); - /// - public bool Equals(ActivityState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonMwsLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonMwsLinkedService.Serialization.cs index af3aece8de8c..6df21595e074 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonMwsLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonMwsLinkedService.Serialization.cs @@ -98,11 +98,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -137,7 +133,7 @@ internal static AmazonMwsLinkedService DeserializeAmazonMwsLinkedService(JsonEle Optional> useEncryptedEndpoints = default; Optional> useHostVerification = default; Optional> usePeerVerification = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -272,11 +268,7 @@ internal static AmazonMwsLinkedService DeserializeAmazonMwsLinkedService(JsonEle } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonMwsLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonMwsLinkedService.cs index 6bec21880e92..369e1dff1447 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonMwsLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonMwsLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Amazon Marketplace Web Service linked service. - public partial class AmazonMwsLinkedService : DataFactoryLinkedServiceDefinition + public partial class AmazonMwsLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AmazonMwsLinkedService. /// The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com). @@ -52,7 +52,7 @@ public AmazonMwsLinkedService(DataFactoryElement endpoint, DataFactoryEl /// Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal AmazonMwsLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement endpoint, DataFactoryElement marketplaceId, DataFactoryElement sellerId, DataFactorySecretBaseDefinition mwsAuthToken, DataFactoryElement accessKeyId, DataFactorySecretBaseDefinition secretKey, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AmazonMwsLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement endpoint, DataFactoryElement marketplaceId, DataFactoryElement sellerId, DataFactorySecretBaseDefinition mwsAuthToken, DataFactoryElement accessKeyId, DataFactorySecretBaseDefinition secretKey, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Endpoint = endpoint; MarketplaceId = marketplaceId; @@ -85,36 +85,7 @@ internal AmazonMwsLinkedService(string linkedServiceType, IntegrationRuntimeRefe public DataFactoryElement UseHostVerification { get; set; } /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. public DataFactoryElement UsePeerVerification { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonMwsObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonMwsObjectDataset.cs index f07fde14049d..15c2cf9806eb 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonMwsObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonMwsObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Amazon Marketplace Web Service dataset. - public partial class AmazonMwsObjectDataset : DataFactoryDatasetDefinition + public partial class AmazonMwsObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of AmazonMwsObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForOracleLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForOracleLinkedService.Serialization.cs index ddcf0a0d76e7..908e94d4c95d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForOracleLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForOracleLinkedService.Serialization.cs @@ -72,11 +72,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -104,7 +100,7 @@ internal static AmazonRdsForOracleLinkedService DeserializeAmazonRdsForOracleLin Optional> annotations = default; DataFactoryElement connectionString = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -188,11 +184,7 @@ internal static AmazonRdsForOracleLinkedService DeserializeAmazonRdsForOracleLin } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForOracleLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForOracleLinkedService.cs index d497f52f09df..cf1dcdb018ac 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForOracleLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForOracleLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// AmazonRdsForOracle database. - public partial class AmazonRdsForOracleLinkedService : DataFactoryLinkedServiceDefinition + public partial class AmazonRdsForOracleLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AmazonRdsForOracleLinkedService. /// The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. @@ -36,7 +36,7 @@ public AmazonRdsForOracleLinkedService(DataFactoryElement connectionStri /// The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. /// The Azure key vault secret reference of password in connection string. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal AmazonRdsForOracleLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactorySecretBaseDefinition password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AmazonRdsForOracleLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactorySecretBaseDefinition password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; Password = password; @@ -48,36 +48,7 @@ internal AmazonRdsForOracleLinkedService(string linkedServiceType, IntegrationRu public DataFactoryElement ConnectionString { get; set; } /// The Azure key vault secret reference of password in connection string. public DataFactorySecretBaseDefinition Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForOracleTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForOracleTableDataset.cs index 59d03ff8fc1c..5fbebf20e15f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForOracleTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForOracleTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The AmazonRdsForOracle database dataset. - public partial class AmazonRdsForOracleTableDataset : DataFactoryDatasetDefinition + public partial class AmazonRdsForOracleTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of AmazonRdsForOracleTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForSqlServerLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForSqlServerLinkedService.Serialization.cs index 524f6478a873..f7f06aab5456 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForSqlServerLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForSqlServerLinkedService.Serialization.cs @@ -77,11 +77,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } if (Optional.IsDefined(AlwaysEncryptedSettings)) { @@ -115,7 +111,7 @@ internal static AmazonRdsForSqlServerLinkedService DeserializeAmazonRdsForSqlSer DataFactoryElement connectionString = default; Optional> userName = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; Optional alwaysEncryptedSettings = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); @@ -209,11 +205,7 @@ internal static AmazonRdsForSqlServerLinkedService DeserializeAmazonRdsForSqlSer } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } if (property0.NameEquals("alwaysEncryptedSettings"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForSqlServerLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForSqlServerLinkedService.cs index 4e3b2886fa2a..7dedaaa6ba94 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForSqlServerLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForSqlServerLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Amazon RDS for SQL Server linked service. - public partial class AmazonRdsForSqlServerLinkedService : DataFactoryLinkedServiceDefinition + public partial class AmazonRdsForSqlServerLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AmazonRdsForSqlServerLinkedService. /// The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. @@ -38,7 +38,7 @@ public AmazonRdsForSqlServerLinkedService(DataFactoryElement connectionS /// The on-premises Windows authentication password. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. /// Sql always encrypted properties. - internal AmazonRdsForSqlServerLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryElement userName, DataFactorySecretBaseDefinition password, BinaryData encryptedCredential, SqlAlwaysEncryptedProperties alwaysEncryptedSettings) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AmazonRdsForSqlServerLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryElement userName, DataFactorySecretBaseDefinition password, string encryptedCredential, SqlAlwaysEncryptedProperties alwaysEncryptedSettings) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; UserName = userName; @@ -54,37 +54,8 @@ internal AmazonRdsForSqlServerLinkedService(string linkedServiceType, Integratio public DataFactoryElement UserName { get; set; } /// The on-premises Windows authentication password. public DataFactorySecretBaseDefinition Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } /// Sql always encrypted properties. public SqlAlwaysEncryptedProperties AlwaysEncryptedSettings { get; set; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForSqlServerTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForSqlServerTableDataset.cs index 5b62ae87a6e5..d74625b6ff94 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForSqlServerTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRdsForSqlServerTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Amazon RDS for SQL Server dataset. - public partial class AmazonRdsForSqlServerTableDataset : DataFactoryDatasetDefinition + public partial class AmazonRdsForSqlServerTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of AmazonRdsForSqlServerTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRedshiftLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRedshiftLinkedService.Serialization.cs index 9b1520ae0c8f..bd90d7db435e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRedshiftLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRedshiftLinkedService.Serialization.cs @@ -84,11 +84,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -119,7 +115,7 @@ internal static AmazonRedshiftLinkedService DeserializeAmazonRedshiftLinkedServi Optional password = default; DataFactoryElement database = default; Optional> port = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -226,11 +222,7 @@ internal static AmazonRedshiftLinkedService DeserializeAmazonRedshiftLinkedServi } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRedshiftLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRedshiftLinkedService.cs index 53412ae175de..e4d12299b6c6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRedshiftLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRedshiftLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for Amazon Redshift. - public partial class AmazonRedshiftLinkedService : DataFactoryLinkedServiceDefinition + public partial class AmazonRedshiftLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AmazonRedshiftLinkedService. /// The name of the Amazon Redshift server. Type: string (or Expression with resultType string). @@ -42,7 +42,7 @@ public AmazonRedshiftLinkedService(DataFactoryElement server, DataFactor /// The database name of the Amazon Redshift source. Type: string (or Expression with resultType string). /// The TCP port number that the Amazon Redshift server uses to listen for client connections. The default value is 5439. Type: integer (or Expression with resultType integer). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal AmazonRedshiftLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement server, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement database, DataFactoryElement port, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AmazonRedshiftLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement server, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement database, DataFactoryElement port, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Server = server; Username = username; @@ -63,36 +63,7 @@ internal AmazonRedshiftLinkedService(string linkedServiceType, IntegrationRuntim public DataFactoryElement Database { get; set; } /// The TCP port number that the Amazon Redshift server uses to listen for client connections. The default value is 5439. Type: integer (or Expression with resultType integer). public DataFactoryElement Port { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRedshiftTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRedshiftTableDataset.cs index fe063a6b3be3..fa6e6758ca28 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRedshiftTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonRedshiftTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Amazon Redshift table dataset. - public partial class AmazonRedshiftTableDataset : DataFactoryDatasetDefinition + public partial class AmazonRedshiftTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of AmazonRedshiftTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonS3CompatibleLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonS3CompatibleLinkedService.Serialization.cs index 56f2c1013bfd..f9aaf2ac112c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonS3CompatibleLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonS3CompatibleLinkedService.Serialization.cs @@ -85,11 +85,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -119,7 +115,7 @@ internal static AmazonS3CompatibleLinkedService DeserializeAmazonS3CompatibleLin Optional secretAccessKey = default; Optional> serviceUrl = default; Optional> forcePathStyle = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -225,11 +221,7 @@ internal static AmazonS3CompatibleLinkedService DeserializeAmazonS3CompatibleLin } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonS3CompatibleLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonS3CompatibleLinkedService.cs index 9991698700ae..52ec5e76b8fa 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonS3CompatibleLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonS3CompatibleLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for Amazon S3 Compatible. - public partial class AmazonS3CompatibleLinkedService : DataFactoryLinkedServiceDefinition + public partial class AmazonS3CompatibleLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AmazonS3CompatibleLinkedService. public AmazonS3CompatibleLinkedService() @@ -32,7 +32,7 @@ public AmazonS3CompatibleLinkedService() /// This value specifies the endpoint to access with the Amazon S3 Compatible Connector. This is an optional property; change it only if you want to try a different service endpoint or want to switch between https and http. Type: string (or Expression with resultType string). /// If true, use S3 path-style access instead of virtual hosted-style access. Default value is false. Type: boolean (or Expression with resultType boolean). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal AmazonS3CompatibleLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement accessKeyId, DataFactorySecretBaseDefinition secretAccessKey, DataFactoryElement serviceUri, DataFactoryElement forcePathStyle, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AmazonS3CompatibleLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement accessKeyId, DataFactorySecretBaseDefinition secretAccessKey, DataFactoryElement serviceUri, DataFactoryElement forcePathStyle, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { AccessKeyId = accessKeyId; SecretAccessKey = secretAccessKey; @@ -50,36 +50,7 @@ internal AmazonS3CompatibleLinkedService(string linkedServiceType, IntegrationRu public DataFactoryElement ServiceUri { get; set; } /// If true, use S3 path-style access instead of virtual hosted-style access. Default value is false. Type: boolean (or Expression with resultType boolean). public DataFactoryElement ForcePathStyle { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonS3Dataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonS3Dataset.cs index ea6743f77c07..70f30f2d48ce 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonS3Dataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonS3Dataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// A single Amazon Simple Storage Service (S3) object or a set of S3 objects. - public partial class AmazonS3Dataset : DataFactoryDatasetDefinition + public partial class AmazonS3Dataset : DataFactoryDatasetProperties { /// Initializes a new instance of AmazonS3Dataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonS3LinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonS3LinkedService.Serialization.cs index 872611e1522a..29d16750df6e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonS3LinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonS3LinkedService.Serialization.cs @@ -90,11 +90,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -125,7 +121,7 @@ internal static AmazonS3LinkedService DeserializeAmazonS3LinkedService(JsonEleme Optional secretAccessKey = default; Optional> serviceUrl = default; Optional sessionToken = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -240,11 +236,7 @@ internal static AmazonS3LinkedService DeserializeAmazonS3LinkedService(JsonEleme } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonS3LinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonS3LinkedService.cs index 05cbc3dfdd94..6dcfd09c4b6f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonS3LinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AmazonS3LinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for Amazon S3. - public partial class AmazonS3LinkedService : DataFactoryLinkedServiceDefinition + public partial class AmazonS3LinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AmazonS3LinkedService. public AmazonS3LinkedService() @@ -33,7 +33,7 @@ public AmazonS3LinkedService() /// This value specifies the endpoint to access with the S3 Connector. This is an optional property; change it only if you want to try a different service endpoint or want to switch between https and http. Type: string (or Expression with resultType string). /// The session token for the S3 temporary security credential. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal AmazonS3LinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement authenticationType, DataFactoryElement accessKeyId, DataFactorySecretBaseDefinition secretAccessKey, DataFactoryElement serviceUri, DataFactorySecretBaseDefinition sessionToken, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AmazonS3LinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement authenticationType, DataFactoryElement accessKeyId, DataFactorySecretBaseDefinition secretAccessKey, DataFactoryElement serviceUri, DataFactorySecretBaseDefinition sessionToken, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { AuthenticationType = authenticationType; AccessKeyId = accessKeyId; @@ -54,36 +54,7 @@ internal AmazonS3LinkedService(string linkedServiceType, IntegrationRuntimeRefer public DataFactoryElement ServiceUri { get; set; } /// The session token for the S3 temporary security credential. public DataFactorySecretBaseDefinition SessionToken { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AppFiguresLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AppFiguresLinkedService.cs index 5f5b29b89afc..63d8d95c34f9 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AppFiguresLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AppFiguresLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for AppFigures. - public partial class AppFiguresLinkedService : DataFactoryLinkedServiceDefinition + public partial class AppFiguresLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AppFiguresLinkedService. /// The username of the Appfigures source. Type: string (or Expression with resultType string). diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AppendVariableActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AppendVariableActivity.Serialization.cs index fb77d19bf626..16d32ec29af8 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AppendVariableActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AppendVariableActivity.Serialization.cs @@ -91,10 +91,10 @@ internal static AppendVariableActivity DeserializeAppendVariableActivity(JsonEle string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; Optional variableName = default; Optional> value = default; IDictionary additionalProperties = default; @@ -122,7 +122,7 @@ internal static AppendVariableActivity DeserializeAppendVariableActivity(JsonEle { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -131,7 +131,7 @@ internal static AppendVariableActivity DeserializeAppendVariableActivity(JsonEle { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -140,10 +140,10 @@ internal static AppendVariableActivity DeserializeAppendVariableActivity(JsonEle { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -154,10 +154,10 @@ internal static AppendVariableActivity DeserializeAppendVariableActivity(JsonEle { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AppendVariableActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AppendVariableActivity.cs index 48156ac36cf4..e1f44633d96e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AppendVariableActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AppendVariableActivity.cs @@ -36,7 +36,7 @@ public AppendVariableActivity(string name) : base(name) /// Additional Properties. /// Name of the variable whose value needs to be appended to. /// Value to be appended. Type: could be a static value matching type of the variable item or Expression with resultType matching type of the variable item. - internal AppendVariableActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, string variableName, DataFactoryElement value) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) + internal AppendVariableActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, string variableName, DataFactoryElement value) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) { VariableName = variableName; Value = value; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AsanaLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AsanaLinkedService.Serialization.cs index 7f1742c624be..3ecab41bc01b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AsanaLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AsanaLinkedService.Serialization.cs @@ -66,11 +66,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) JsonSerializer.Serialize(writer, ApiToken); if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -97,7 +93,7 @@ internal static AsanaLinkedService DeserializeAsanaLinkedService(JsonElement ele Optional> parameters = default; Optional> annotations = default; DataFactorySecretBaseDefinition apiToken = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -172,11 +168,7 @@ internal static AsanaLinkedService DeserializeAsanaLinkedService(JsonElement ele } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AsanaLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AsanaLinkedService.cs index 79b2d3408323..2e2d79a1877e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AsanaLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AsanaLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for Asana. - public partial class AsanaLinkedService : DataFactoryLinkedServiceDefinition + public partial class AsanaLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AsanaLinkedService. /// The api token for the Asana source. @@ -35,7 +35,7 @@ public AsanaLinkedService(DataFactorySecretBaseDefinition apiToken) /// Additional Properties. /// The api token for the Asana source. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal AsanaLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactorySecretBaseDefinition apiToken, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AsanaLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactorySecretBaseDefinition apiToken, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ApiToken = apiToken; EncryptedCredential = encryptedCredential; @@ -44,36 +44,7 @@ internal AsanaLinkedService(string linkedServiceType, IntegrationRuntimeReferenc /// The api token for the Asana source. public DataFactorySecretBaseDefinition ApiToken { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AvroDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AvroDataset.cs index 4cba0f53f0ab..ff45ca093b44 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AvroDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AvroDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Avro dataset. - public partial class AvroDataset : DataFactoryDatasetDefinition + public partial class AvroDataset : DataFactoryDatasetProperties { /// Initializes a new instance of AvroDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBatchLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBatchLinkedService.Serialization.cs index 3ddc0d3ecd80..3658d5972b24 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBatchLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBatchLinkedService.Serialization.cs @@ -77,11 +77,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) JsonSerializer.Serialize(writer, LinkedServiceName); if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } if (Optional.IsDefined(Credential)) { @@ -117,7 +113,7 @@ internal static AzureBatchLinkedService DeserializeAzureBatchLinkedService(JsonE DataFactoryElement batchUri = default; DataFactoryElement poolName = default; DataFactoryLinkedServiceReference linkedServiceName = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; Optional credential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); @@ -217,11 +213,7 @@ internal static AzureBatchLinkedService DeserializeAzureBatchLinkedService(JsonE } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } if (property0.NameEquals("credential"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBatchLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBatchLinkedService.cs index cd7413da3b49..174449c77193 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBatchLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBatchLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure Batch linked service. - public partial class AzureBatchLinkedService : DataFactoryLinkedServiceDefinition + public partial class AzureBatchLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzureBatchLinkedService. /// The Azure Batch account name. Type: string (or Expression with resultType string). @@ -49,7 +49,7 @@ public AzureBatchLinkedService(DataFactoryElement accountName, DataFacto /// The Azure Storage linked service reference. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. /// The credential reference containing authentication information. - internal AzureBatchLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement accountName, DataFactorySecretBaseDefinition accessKey, DataFactoryElement batchUri, DataFactoryElement poolName, DataFactoryLinkedServiceReference linkedServiceName, BinaryData encryptedCredential, DataFactoryCredentialReference credential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AzureBatchLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement accountName, DataFactorySecretBaseDefinition accessKey, DataFactoryElement batchUri, DataFactoryElement poolName, DataFactoryLinkedServiceReference linkedServiceName, string encryptedCredential, DataFactoryCredentialReference credential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { AccountName = accountName; AccessKey = accessKey; @@ -71,37 +71,8 @@ internal AzureBatchLinkedService(string linkedServiceType, IntegrationRuntimeRef public DataFactoryElement PoolName { get; set; } /// The Azure Storage linked service reference. public DataFactoryLinkedServiceReference LinkedServiceName { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } /// The credential reference containing authentication information. public DataFactoryCredentialReference Credential { get; set; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobDataset.cs index 84002c395caa..544cae418c43 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Azure Blob storage. - public partial class AzureBlobDataset : DataFactoryDatasetDefinition + public partial class AzureBlobDataset : DataFactoryDatasetProperties { /// Initializes a new instance of AzureBlobDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobFSDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobFSDataset.cs index 2d10f043155e..4ebc643a4cb5 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobFSDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobFSDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Azure Data Lake Storage Gen2 storage. - public partial class AzureBlobFSDataset : DataFactoryDatasetDefinition + public partial class AzureBlobFSDataset : DataFactoryDatasetProperties { /// Initializes a new instance of AzureBlobFSDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobFSLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobFSLinkedService.Serialization.cs index 1e50a12c2a09..642518f971e1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobFSLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobFSLinkedService.Serialization.cs @@ -95,11 +95,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } if (Optional.IsDefined(Credential)) { @@ -156,7 +152,7 @@ internal static AzureBlobFSLinkedService DeserializeAzureBlobFSLinkedService(Jso Optional servicePrincipalKey = default; Optional> tenant = default; Optional> azureCloudType = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; Optional credential = default; Optional> servicePrincipalCredentialType = default; Optional servicePrincipalCredential = default; @@ -285,11 +281,7 @@ internal static AzureBlobFSLinkedService DeserializeAzureBlobFSLinkedService(Jso } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } if (property0.NameEquals("credential"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobFSLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobFSLinkedService.cs index 9996a6902a2f..d590aa70191b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobFSLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobFSLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure Data Lake Storage Gen2 linked service. - public partial class AzureBlobFSLinkedService : DataFactoryLinkedServiceDefinition + public partial class AzureBlobFSLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzureBlobFSLinkedService. public AzureBlobFSLinkedService() @@ -39,7 +39,7 @@ public AzureBlobFSLinkedService() /// The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference. /// SAS URI of the Azure Data Lake Storage Gen2 service. Type: string, SecureString or AzureKeyVaultSecretReference. /// The Azure key vault secret reference of sasToken in sas uri. - internal AzureBlobFSLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement uri, DataFactoryElement accountKey, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, DataFactoryElement azureCloudType, BinaryData encryptedCredential, DataFactoryCredentialReference credential, DataFactoryElement servicePrincipalCredentialType, DataFactorySecretBaseDefinition servicePrincipalCredential, DataFactoryElement sasUri, DataFactorySecretBaseDefinition sasToken) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AzureBlobFSLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement uri, DataFactoryElement accountKey, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, DataFactoryElement azureCloudType, string encryptedCredential, DataFactoryCredentialReference credential, DataFactoryElement servicePrincipalCredentialType, DataFactorySecretBaseDefinition servicePrincipalCredential, DataFactoryElement sasUri, DataFactorySecretBaseDefinition sasToken) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Uri = uri; AccountKey = accountKey; @@ -68,37 +68,8 @@ internal AzureBlobFSLinkedService(string linkedServiceType, IntegrationRuntimeRe public DataFactoryElement Tenant { get; set; } /// Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string). public DataFactoryElement AzureCloudType { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } /// The credential reference containing authentication information. public DataFactoryCredentialReference Credential { get; set; } /// The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string). diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobStorageLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobStorageLinkedService.Serialization.cs index bf0848f1d1a5..5a95f2ebfb40 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobStorageLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobStorageLinkedService.Serialization.cs @@ -115,11 +115,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } if (Optional.IsDefined(Credential)) { @@ -170,7 +166,7 @@ internal static AzureBlobStorageLinkedService DeserializeAzureBlobStorageLinkedS Optional> tenant = default; Optional> azureCloudType = default; Optional> accountKind = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; Optional credential = default; Optional authenticationType = default; Optional> containerUri = default; @@ -333,11 +329,7 @@ internal static AzureBlobStorageLinkedService DeserializeAzureBlobStorageLinkedS } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } if (property0.NameEquals("credential"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobStorageLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobStorageLinkedService.cs index fb5cd66f26d4..4f7fb99402ec 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobStorageLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureBlobStorageLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The azure blob storage linked service. - public partial class AzureBlobStorageLinkedService : DataFactoryLinkedServiceDefinition + public partial class AzureBlobStorageLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzureBlobStorageLinkedService. public AzureBlobStorageLinkedService() @@ -41,7 +41,7 @@ public AzureBlobStorageLinkedService() /// The credential reference containing authentication information. /// The type used for authentication. Type: string. /// Container uri of the Azure Blob Storage resource only support for anonymous access. Type: string (or Expression with resultType string). - internal AzureBlobStorageLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference accountKey, DataFactoryElement sasUri, DataFactoryKeyVaultSecretReference sasToken, DataFactoryElement serviceEndpoint, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, DataFactoryElement azureCloudType, DataFactoryElement accountKind, BinaryData encryptedCredential, DataFactoryCredentialReference credential, AzureStorageAuthenticationType? authenticationType, DataFactoryElement containerUri) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AzureBlobStorageLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference accountKey, DataFactoryElement sasUri, DataFactoryKeyVaultSecretReference sasToken, DataFactoryElement serviceEndpoint, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, DataFactoryElement azureCloudType, DataFactoryElement accountKind, string encryptedCredential, DataFactoryCredentialReference credential, AzureStorageAuthenticationType? authenticationType, DataFactoryElement containerUri) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; AccountKey = accountKey; @@ -80,37 +80,8 @@ internal AzureBlobStorageLinkedService(string linkedServiceType, IntegrationRunt public DataFactoryElement AzureCloudType { get; set; } /// Specify the kind of your storage account. Allowed values are: Storage (general purpose v1), StorageV2 (general purpose v2), BlobStorage, or BlockBlobStorage. Type: string (or Expression with resultType string). public DataFactoryElement AccountKind { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } /// The credential reference containing authentication information. public DataFactoryCredentialReference Credential { get; set; } /// The type used for authentication. Type: string. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataExplorerCommandActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataExplorerCommandActivity.Serialization.cs index b3e2ea2bce1c..94d12ebd6607 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataExplorerCommandActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataExplorerCommandActivity.Serialization.cs @@ -96,14 +96,14 @@ internal static AzureDataExplorerCommandActivity DeserializeAzureDataExplorerCom return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; DataFactoryElement command = default; Optional> commandTimeout = default; IDictionary additionalProperties = default; @@ -125,7 +125,7 @@ internal static AzureDataExplorerCommandActivity DeserializeAzureDataExplorerCom { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -149,7 +149,7 @@ internal static AzureDataExplorerCommandActivity DeserializeAzureDataExplorerCom { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -158,7 +158,7 @@ internal static AzureDataExplorerCommandActivity DeserializeAzureDataExplorerCom { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -167,10 +167,10 @@ internal static AzureDataExplorerCommandActivity DeserializeAzureDataExplorerCom { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -181,10 +181,10 @@ internal static AzureDataExplorerCommandActivity DeserializeAzureDataExplorerCom { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataExplorerCommandActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataExplorerCommandActivity.cs index 9e3b686a84e7..e82d8e0b1e8e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataExplorerCommandActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataExplorerCommandActivity.cs @@ -41,7 +41,7 @@ public AzureDataExplorerCommandActivity(string name, DataFactoryElement /// Activity policy. /// A control command, according to the Azure Data Explorer command syntax. Type: string (or Expression with resultType string). /// Control command timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..). - internal AzureDataExplorerCommandActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, DataFactoryElement command, DataFactoryElement commandTimeout) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal AzureDataExplorerCommandActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, DataFactoryElement command, DataFactoryElement commandTimeout) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { Command = command; CommandTimeout = commandTimeout; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataExplorerLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataExplorerLinkedService.cs index a5d65d8fa4ee..d5a845511ffb 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataExplorerLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataExplorerLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure Data Explorer (Kusto) linked service. - public partial class AzureDataExplorerLinkedService : DataFactoryLinkedServiceDefinition + public partial class AzureDataExplorerLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzureDataExplorerLinkedService. /// The endpoint of Azure Data Explorer (the engine's endpoint). URL will be in the format https://<clusterName>.<regionName>.kusto.windows.net. Type: string (or Expression with resultType string). diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataExplorerTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataExplorerTableDataset.cs index 4f27db080c4c..60075c1d0caf 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataExplorerTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataExplorerTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Azure Data Explorer (Kusto) dataset. - public partial class AzureDataExplorerTableDataset : DataFactoryDatasetDefinition + public partial class AzureDataExplorerTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of AzureDataExplorerTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataLakeAnalyticsLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataLakeAnalyticsLinkedService.Serialization.cs index 6bc00c9996c3..33dd45f3e907 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataLakeAnalyticsLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataLakeAnalyticsLinkedService.Serialization.cs @@ -94,11 +94,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -131,7 +127,7 @@ internal static AzureDataLakeAnalyticsLinkedService DeserializeAzureDataLakeAnal Optional> subscriptionId = default; Optional> resourceGroupName = default; Optional> dataLakeAnalyticsUri = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -256,11 +252,7 @@ internal static AzureDataLakeAnalyticsLinkedService DeserializeAzureDataLakeAnal } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataLakeAnalyticsLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataLakeAnalyticsLinkedService.cs index a09417f1f222..a320cd7cd3e0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataLakeAnalyticsLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataLakeAnalyticsLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure Data Lake Analytics linked service. - public partial class AzureDataLakeAnalyticsLinkedService : DataFactoryLinkedServiceDefinition + public partial class AzureDataLakeAnalyticsLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzureDataLakeAnalyticsLinkedService. /// The Azure Data Lake Analytics account name. Type: string (or Expression with resultType string). @@ -44,7 +44,7 @@ public AzureDataLakeAnalyticsLinkedService(DataFactoryElement accountNam /// Data Lake Analytics account resource group name (if different from Data Factory account). Type: string (or Expression with resultType string). /// Azure Data Lake Analytics URI Type: string (or Expression with resultType string). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal AzureDataLakeAnalyticsLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement accountName, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, DataFactoryElement subscriptionId, DataFactoryElement resourceGroupName, DataFactoryElement dataLakeAnalyticsUri, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AzureDataLakeAnalyticsLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement accountName, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, DataFactoryElement subscriptionId, DataFactoryElement resourceGroupName, DataFactoryElement dataLakeAnalyticsUri, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { AccountName = accountName; ServicePrincipalId = servicePrincipalId; @@ -71,36 +71,7 @@ internal AzureDataLakeAnalyticsLinkedService(string linkedServiceType, Integrati public DataFactoryElement ResourceGroupName { get; set; } /// Azure Data Lake Analytics URI Type: string (or Expression with resultType string). public DataFactoryElement DataLakeAnalyticsUri { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataLakeStoreDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataLakeStoreDataset.cs index 1248f1dda595..6498f94187ab 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataLakeStoreDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataLakeStoreDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure Data Lake Store dataset. - public partial class AzureDataLakeStoreDataset : DataFactoryDatasetDefinition + public partial class AzureDataLakeStoreDataset : DataFactoryDatasetProperties { /// Initializes a new instance of AzureDataLakeStoreDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataLakeStoreLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataLakeStoreLinkedService.Serialization.cs index 4ee71d5a7726..c5f24c630952 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataLakeStoreLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataLakeStoreLinkedService.Serialization.cs @@ -102,11 +102,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } if (Optional.IsDefined(Credential)) { @@ -145,7 +141,7 @@ internal static AzureDataLakeStoreLinkedService DeserializeAzureDataLakeStoreLin Optional> accountName = default; Optional> subscriptionId = default; Optional> resourceGroupName = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; Optional credential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); @@ -284,11 +280,7 @@ internal static AzureDataLakeStoreLinkedService DeserializeAzureDataLakeStoreLin } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } if (property0.NameEquals("credential"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataLakeStoreLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataLakeStoreLinkedService.cs index e7b52373a08b..a050419a9f7b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataLakeStoreLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDataLakeStoreLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure Data Lake Store linked service. - public partial class AzureDataLakeStoreLinkedService : DataFactoryLinkedServiceDefinition + public partial class AzureDataLakeStoreLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzureDataLakeStoreLinkedService. /// Data Lake Store service URI. Type: string (or Expression with resultType string). @@ -43,7 +43,7 @@ public AzureDataLakeStoreLinkedService(DataFactoryElement dataLakeStoreU /// Data Lake Store account resource group name (if different from Data Factory account). Type: string (or Expression with resultType string). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. /// The credential reference containing authentication information. - internal AzureDataLakeStoreLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement dataLakeStoreUri, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, DataFactoryElement azureCloudType, DataFactoryElement accountName, DataFactoryElement subscriptionId, DataFactoryElement resourceGroupName, BinaryData encryptedCredential, DataFactoryCredentialReference credential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AzureDataLakeStoreLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement dataLakeStoreUri, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, DataFactoryElement azureCloudType, DataFactoryElement accountName, DataFactoryElement subscriptionId, DataFactoryElement resourceGroupName, string encryptedCredential, DataFactoryCredentialReference credential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { DataLakeStoreUri = dataLakeStoreUri; ServicePrincipalId = servicePrincipalId; @@ -74,37 +74,8 @@ internal AzureDataLakeStoreLinkedService(string linkedServiceType, IntegrationRu public DataFactoryElement SubscriptionId { get; set; } /// Data Lake Store account resource group name (if different from Data Factory account). Type: string (or Expression with resultType string). public DataFactoryElement ResourceGroupName { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } /// The credential reference containing authentication information. public DataFactoryCredentialReference Credential { get; set; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDatabricksDeltaLakeDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDatabricksDeltaLakeDataset.cs index a9ba1d9a9068..f485f2efd144 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDatabricksDeltaLakeDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDatabricksDeltaLakeDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure Databricks Delta Lake dataset. - public partial class AzureDatabricksDeltaLakeDataset : DataFactoryDatasetDefinition + public partial class AzureDatabricksDeltaLakeDataset : DataFactoryDatasetProperties { /// Initializes a new instance of AzureDatabricksDeltaLakeDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDatabricksDeltaLakeLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDatabricksDeltaLakeLinkedService.Serialization.cs index 8a7875dbb2d3..393644e16e53 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDatabricksDeltaLakeLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDatabricksDeltaLakeLinkedService.Serialization.cs @@ -77,11 +77,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } if (Optional.IsDefined(Credential)) { @@ -120,7 +116,7 @@ internal static AzureDatabricksDeltaLakeLinkedService DeserializeAzureDatabricks DataFactoryElement domain = default; Optional accessToken = default; Optional> clusterId = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; Optional credential = default; Optional> workspaceResourceId = default; IDictionary additionalProperties = default; @@ -215,11 +211,7 @@ internal static AzureDatabricksDeltaLakeLinkedService DeserializeAzureDatabricks } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } if (property0.NameEquals("credential"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDatabricksDeltaLakeLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDatabricksDeltaLakeLinkedService.cs index 70f9c012a53f..aa0ac90f7948 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDatabricksDeltaLakeLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDatabricksDeltaLakeLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure Databricks Delta Lake linked service. - public partial class AzureDatabricksDeltaLakeLinkedService : DataFactoryLinkedServiceDefinition + public partial class AzureDatabricksDeltaLakeLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzureDatabricksDeltaLakeLinkedService. /// <REGION>.azuredatabricks.net, domain name of your Databricks deployment. Type: string (or Expression with resultType string). @@ -39,7 +39,7 @@ public AzureDatabricksDeltaLakeLinkedService(DataFactoryElement domain) /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. /// The credential reference containing authentication information. /// Workspace resource id for databricks REST API. Type: string (or Expression with resultType string). - internal AzureDatabricksDeltaLakeLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement domain, DataFactorySecretBaseDefinition accessToken, DataFactoryElement clusterId, BinaryData encryptedCredential, DataFactoryCredentialReference credential, DataFactoryElement workspaceResourceId) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AzureDatabricksDeltaLakeLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement domain, DataFactorySecretBaseDefinition accessToken, DataFactoryElement clusterId, string encryptedCredential, DataFactoryCredentialReference credential, DataFactoryElement workspaceResourceId) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Domain = domain; AccessToken = accessToken; @@ -56,37 +56,8 @@ internal AzureDatabricksDeltaLakeLinkedService(string linkedServiceType, Integra public DataFactorySecretBaseDefinition AccessToken { get; set; } /// The id of an existing interactive cluster that will be used for all runs of this job. Type: string (or Expression with resultType string). public DataFactoryElement ClusterId { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } /// The credential reference containing authentication information. public DataFactoryCredentialReference Credential { get; set; } /// Workspace resource id for databricks REST API. Type: string (or Expression with resultType string). diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDatabricksLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDatabricksLinkedService.Serialization.cs index 85f60375f79f..610b627219cf 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDatabricksLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDatabricksLinkedService.Serialization.cs @@ -187,11 +187,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } if (Optional.IsDefined(PolicyId)) { @@ -243,7 +239,7 @@ internal static AzureDatabricksLinkedService DeserializeAzureDatabricksLinkedSer Optional> newClusterDriverNodeType = default; Optional>> newClusterInitScripts = default; Optional> newClusterEnableElasticDisk = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; Optional> policyId = default; Optional credential = default; IDictionary additionalProperties = default; @@ -491,11 +487,7 @@ internal static AzureDatabricksLinkedService DeserializeAzureDatabricksLinkedSer } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } if (property0.NameEquals("policyId"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDatabricksLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDatabricksLinkedService.cs index dbd96dca22d2..b659ad563ad8 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDatabricksLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureDatabricksLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure Databricks linked service. - public partial class AzureDatabricksLinkedService : DataFactoryLinkedServiceDefinition + public partial class AzureDatabricksLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzureDatabricksLinkedService. /// <REGION>.azuredatabricks.net, domain name of your Databricks deployment. Type: string (or Expression with resultType string). @@ -55,7 +55,7 @@ public AzureDatabricksLinkedService(DataFactoryElement domain) /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. /// The policy id for limiting the ability to configure clusters based on a user defined set of rules. Type: string (or Expression with resultType string). /// The credential reference containing authentication information. - internal AzureDatabricksLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement domain, DataFactorySecretBaseDefinition accessToken, DataFactoryElement authentication, DataFactoryElement workspaceResourceId, DataFactoryElement existingClusterId, DataFactoryElement instancePoolId, DataFactoryElement newClusterVersion, DataFactoryElement newClusterNumOfWorker, DataFactoryElement newClusterNodeType, IDictionary newClusterSparkConf, IDictionary newClusterSparkEnvVars, IDictionary newClusterCustomTags, DataFactoryElement newClusterLogDestination, DataFactoryElement newClusterDriverNodeType, DataFactoryElement> newClusterInitScripts, DataFactoryElement newClusterEnableElasticDisk, BinaryData encryptedCredential, DataFactoryElement policyId, DataFactoryCredentialReference credential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AzureDatabricksLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement domain, DataFactorySecretBaseDefinition accessToken, DataFactoryElement authentication, DataFactoryElement workspaceResourceId, DataFactoryElement existingClusterId, DataFactoryElement instancePoolId, DataFactoryElement newClusterVersion, DataFactoryElement newClusterNumOfWorker, DataFactoryElement newClusterNodeType, IDictionary newClusterSparkConf, IDictionary newClusterSparkEnvVars, IDictionary newClusterCustomTags, DataFactoryElement newClusterLogDestination, DataFactoryElement newClusterDriverNodeType, DataFactoryElement> newClusterInitScripts, DataFactoryElement newClusterEnableElasticDisk, string encryptedCredential, DataFactoryElement policyId, DataFactoryCredentialReference credential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Domain = domain; AccessToken = accessToken; @@ -198,37 +198,8 @@ internal AzureDatabricksLinkedService(string linkedServiceType, IntegrationRunti public DataFactoryElement> NewClusterInitScripts { get; set; } /// Enable the elastic disk on the new cluster. This property is now ignored, and takes the default elastic disk behavior in Databricks (elastic disks are always enabled). Type: boolean (or Expression with resultType boolean). public DataFactoryElement NewClusterEnableElasticDisk { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } /// The policy id for limiting the ability to configure clusters based on a user defined set of rules. Type: string (or Expression with resultType string). public DataFactoryElement PolicyId { get; set; } /// The credential reference containing authentication information. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFileStorageLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFileStorageLinkedService.Serialization.cs index c0731e9e6b23..392543159ab0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFileStorageLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFileStorageLinkedService.Serialization.cs @@ -110,11 +110,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -149,7 +145,7 @@ internal static AzureFileStorageLinkedService DeserializeAzureFileStorageLinkedS Optional sasToken = default; Optional> fileShare = default; Optional> snapshot = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -300,11 +296,7 @@ internal static AzureFileStorageLinkedService DeserializeAzureFileStorageLinkedS } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFileStorageLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFileStorageLinkedService.cs index 2db0130c69d5..c881274d507e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFileStorageLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFileStorageLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure File Storage linked service. - public partial class AzureFileStorageLinkedService : DataFactoryLinkedServiceDefinition + public partial class AzureFileStorageLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzureFileStorageLinkedService. public AzureFileStorageLinkedService() @@ -37,7 +37,7 @@ public AzureFileStorageLinkedService() /// The azure file share name. It is required when auth with accountKey/sasToken. Type: string (or Expression with resultType string). /// The azure file share snapshot version. Type: string (or Expression with resultType string). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal AzureFileStorageLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement userId, DataFactorySecretBaseDefinition password, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference accountKey, DataFactoryElement sasUri, DataFactoryKeyVaultSecretReference sasToken, DataFactoryElement fileShare, DataFactoryElement snapshot, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AzureFileStorageLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement userId, DataFactorySecretBaseDefinition password, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference accountKey, DataFactoryElement sasUri, DataFactoryKeyVaultSecretReference sasToken, DataFactoryElement fileShare, DataFactoryElement snapshot, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Host = host; UserId = userId; @@ -70,36 +70,7 @@ internal AzureFileStorageLinkedService(string linkedServiceType, IntegrationRunt public DataFactoryElement FileShare { get; set; } /// The azure file share snapshot version. Type: string (or Expression with resultType string). public DataFactoryElement Snapshot { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFunctionActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFunctionActivity.Serialization.cs index 954e9546d155..f5bd9bbe8c97 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFunctionActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFunctionActivity.Serialization.cs @@ -103,14 +103,14 @@ internal static AzureFunctionActivity DeserializeAzureFunctionActivity(JsonEleme return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; AzureFunctionActivityMethod method = default; DataFactoryElement functionName = default; Optional> headers = default; @@ -134,7 +134,7 @@ internal static AzureFunctionActivity DeserializeAzureFunctionActivity(JsonEleme { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -158,7 +158,7 @@ internal static AzureFunctionActivity DeserializeAzureFunctionActivity(JsonEleme { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -167,7 +167,7 @@ internal static AzureFunctionActivity DeserializeAzureFunctionActivity(JsonEleme { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -176,10 +176,10 @@ internal static AzureFunctionActivity DeserializeAzureFunctionActivity(JsonEleme { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -190,10 +190,10 @@ internal static AzureFunctionActivity DeserializeAzureFunctionActivity(JsonEleme { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFunctionActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFunctionActivity.cs index b9e1de29954a..11abfdc355e2 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFunctionActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFunctionActivity.cs @@ -45,7 +45,7 @@ public AzureFunctionActivity(string name, AzureFunctionActivityMethod method, Da /// Name of the Function that the Azure Function Activity will call. Type: string (or Expression with resultType string). /// Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string). /// Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string). - internal AzureFunctionActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, AzureFunctionActivityMethod method, DataFactoryElement functionName, DataFactoryElement headers, DataFactoryElement body) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal AzureFunctionActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, AzureFunctionActivityMethod method, DataFactoryElement functionName, DataFactoryElement headers, DataFactoryElement body) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { Method = method; FunctionName = functionName; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFunctionLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFunctionLinkedService.Serialization.cs index ce5b7bba63b4..1f272b754c5b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFunctionLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFunctionLinkedService.Serialization.cs @@ -76,11 +76,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } if (Optional.IsDefined(Credential)) { @@ -127,7 +123,7 @@ internal static AzureFunctionLinkedService DeserializeAzureFunctionLinkedService Optional> annotations = default; BinaryData functionAppUrl = default; Optional functionKey = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; Optional credential = default; Optional resourceId = default; Optional> authentication = default; @@ -214,11 +210,7 @@ internal static AzureFunctionLinkedService DeserializeAzureFunctionLinkedService } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } if (property0.NameEquals("credential"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFunctionLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFunctionLinkedService.cs index 931a95244ed9..53510354a09d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFunctionLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureFunctionLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure Function linked service. - public partial class AzureFunctionLinkedService : DataFactoryLinkedServiceDefinition + public partial class AzureFunctionLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzureFunctionLinkedService. /// The endpoint of the Azure Function App. URL will be in the format https://<accountName>.azurewebsites.net. @@ -39,7 +39,7 @@ public AzureFunctionLinkedService(BinaryData functionAppUri) /// The credential reference containing authentication information. /// Allowed token audiences for azure function. /// Type of authentication (Required to specify MSI) used to connect to AzureFunction. Type: string (or Expression with resultType string). - internal AzureFunctionLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData functionAppUri, DataFactorySecretBaseDefinition functionKey, BinaryData encryptedCredential, DataFactoryCredentialReference credential, BinaryData resourceId, DataFactoryElement authentication) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AzureFunctionLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData functionAppUri, DataFactorySecretBaseDefinition functionKey, string encryptedCredential, DataFactoryCredentialReference credential, BinaryData resourceId, DataFactoryElement authentication) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { FunctionAppUri = functionAppUri; FunctionKey = functionKey; @@ -83,37 +83,8 @@ internal AzureFunctionLinkedService(string linkedServiceType, IntegrationRuntime public BinaryData FunctionAppUri { get; set; } /// Function or Host key for Azure Function App. public DataFactorySecretBaseDefinition FunctionKey { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } /// The credential reference containing authentication information. public DataFactoryCredentialReference Credential { get; set; } /// diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureKeyVaultLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureKeyVaultLinkedService.cs index d47ef6f5dfbb..da8a107cbaf6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureKeyVaultLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureKeyVaultLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure Key Vault linked service. - public partial class AzureKeyVaultLinkedService : DataFactoryLinkedServiceDefinition + public partial class AzureKeyVaultLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzureKeyVaultLinkedService. /// The base URL of the Azure Key Vault. e.g. https://myakv.vault.azure.net Type: string (or Expression with resultType string). diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLBatchExecutionActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLBatchExecutionActivity.Serialization.cs index eac955f2a66c..68f810b58d80 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLBatchExecutionActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLBatchExecutionActivity.Serialization.cs @@ -131,14 +131,14 @@ internal static AzureMLBatchExecutionActivity DeserializeAzureMLBatchExecutionAc return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; Optional> globalParameters = default; Optional> webServiceOutputs = default; Optional> webServiceInputs = default; @@ -161,7 +161,7 @@ internal static AzureMLBatchExecutionActivity DeserializeAzureMLBatchExecutionAc { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -185,7 +185,7 @@ internal static AzureMLBatchExecutionActivity DeserializeAzureMLBatchExecutionAc { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -194,7 +194,7 @@ internal static AzureMLBatchExecutionActivity DeserializeAzureMLBatchExecutionAc { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -203,10 +203,10 @@ internal static AzureMLBatchExecutionActivity DeserializeAzureMLBatchExecutionAc { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -217,10 +217,10 @@ internal static AzureMLBatchExecutionActivity DeserializeAzureMLBatchExecutionAc { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLBatchExecutionActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLBatchExecutionActivity.cs index db2e4bdd6143..1406cc092dbd 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLBatchExecutionActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLBatchExecutionActivity.cs @@ -42,7 +42,7 @@ public AzureMLBatchExecutionActivity(string name) : base(name) /// Key,Value pairs to be passed to the Azure ML Batch Execution Service endpoint. Keys must match the names of web service parameters defined in the published Azure ML web service. Values will be passed in the GlobalParameters property of the Azure ML batch execution request. /// Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Outputs to AzureMLWebServiceFile objects specifying the output Blob locations. This information will be passed in the WebServiceOutputs property of the Azure ML batch execution request. /// Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Inputs to AzureMLWebServiceFile objects specifying the input Blob locations.. This information will be passed in the WebServiceInputs property of the Azure ML batch execution request. - internal AzureMLBatchExecutionActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, IDictionary globalParameters, IDictionary webServiceOutputs, IDictionary webServiceInputs) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal AzureMLBatchExecutionActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, IDictionary globalParameters, IDictionary webServiceOutputs, IDictionary webServiceInputs) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { GlobalParameters = globalParameters; WebServiceOutputs = webServiceOutputs; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLExecutePipelineActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLExecutePipelineActivity.Serialization.cs index 7cccb3ecdb1b..163c70169e05 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLExecutePipelineActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLExecutePipelineActivity.Serialization.cs @@ -69,15 +69,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WritePropertyName("typeProperties"u8); writer.WriteStartObject(); - if (Optional.IsDefined(MlPipelineId)) + if (Optional.IsDefined(MLPipelineId)) { writer.WritePropertyName("mlPipelineId"u8); - JsonSerializer.Serialize(writer, MlPipelineId); + JsonSerializer.Serialize(writer, MLPipelineId); } - if (Optional.IsDefined(MlPipelineEndpointId)) + if (Optional.IsDefined(MLPipelineEndpointId)) { writer.WritePropertyName("mlPipelineEndpointId"u8); - JsonSerializer.Serialize(writer, MlPipelineEndpointId); + JsonSerializer.Serialize(writer, MLPipelineEndpointId); } if (Optional.IsDefined(Version)) { @@ -89,20 +89,20 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("experimentName"u8); JsonSerializer.Serialize(writer, ExperimentName); } - if (Optional.IsDefined(MlPipelineParameters)) + if (Optional.IsDefined(MLPipelineParameters)) { writer.WritePropertyName("mlPipelineParameters"u8); - JsonSerializer.Serialize(writer, MlPipelineParameters); + JsonSerializer.Serialize(writer, MLPipelineParameters); } if (Optional.IsDefined(DataPathAssignments)) { writer.WritePropertyName("dataPathAssignments"u8); JsonSerializer.Serialize(writer, DataPathAssignments); } - if (Optional.IsDefined(MlParentRunId)) + if (Optional.IsDefined(MLParentRunId)) { writer.WritePropertyName("mlParentRunId"u8); - JsonSerializer.Serialize(writer, MlParentRunId); + JsonSerializer.Serialize(writer, MLParentRunId); } if (Optional.IsDefined(ContinueOnStepFailure)) { @@ -129,14 +129,14 @@ internal static AzureMLExecutePipelineActivity DeserializeAzureMLExecutePipeline return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; Optional> mlPipelineId = default; Optional> mlPipelineEndpointId = default; Optional> version = default; @@ -164,7 +164,7 @@ internal static AzureMLExecutePipelineActivity DeserializeAzureMLExecutePipeline { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -188,7 +188,7 @@ internal static AzureMLExecutePipelineActivity DeserializeAzureMLExecutePipeline { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -197,7 +197,7 @@ internal static AzureMLExecutePipelineActivity DeserializeAzureMLExecutePipeline { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -206,10 +206,10 @@ internal static AzureMLExecutePipelineActivity DeserializeAzureMLExecutePipeline { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -220,10 +220,10 @@ internal static AzureMLExecutePipelineActivity DeserializeAzureMLExecutePipeline { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLExecutePipelineActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLExecutePipelineActivity.cs index 8c3bff100327..ff089a8020ce 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLExecutePipelineActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLExecutePipelineActivity.cs @@ -44,33 +44,33 @@ public AzureMLExecutePipelineActivity(string name) : base(name) /// Dictionary used for changing data path assignments without retraining. Values will be passed in the dataPathAssignments property of the published pipeline execution request. Type: object with key value pairs (or Expression with resultType object). /// The parent Azure ML Service pipeline run id. This information will be passed in the ParentRunId property of the published pipeline execution request. Type: string (or Expression with resultType string). /// Whether to continue execution of other steps in the PipelineRun if a step fails. This information will be passed in the continueOnStepFailure property of the published pipeline execution request. Type: boolean (or Expression with resultType boolean). - internal AzureMLExecutePipelineActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, DataFactoryElement mlPipelineId, DataFactoryElement mlPipelineEndpointId, DataFactoryElement version, DataFactoryElement experimentName, DataFactoryElement> mlPipelineParameters, DataFactoryElement> dataPathAssignments, DataFactoryElement mlParentRunId, DataFactoryElement continueOnStepFailure) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal AzureMLExecutePipelineActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, DataFactoryElement mlPipelineId, DataFactoryElement mlPipelineEndpointId, DataFactoryElement version, DataFactoryElement experimentName, DataFactoryElement> mlPipelineParameters, DataFactoryElement> dataPathAssignments, DataFactoryElement mlParentRunId, DataFactoryElement continueOnStepFailure) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { - MlPipelineId = mlPipelineId; - MlPipelineEndpointId = mlPipelineEndpointId; + MLPipelineId = mlPipelineId; + MLPipelineEndpointId = mlPipelineEndpointId; Version = version; ExperimentName = experimentName; - MlPipelineParameters = mlPipelineParameters; + MLPipelineParameters = mlPipelineParameters; DataPathAssignments = dataPathAssignments; - MlParentRunId = mlParentRunId; + MLParentRunId = mlParentRunId; ContinueOnStepFailure = continueOnStepFailure; ActivityType = activityType ?? "AzureMLExecutePipeline"; } /// ID of the published Azure ML pipeline. Type: string (or Expression with resultType string). - public DataFactoryElement MlPipelineId { get; set; } + public DataFactoryElement MLPipelineId { get; set; } /// ID of the published Azure ML pipeline endpoint. Type: string (or Expression with resultType string). - public DataFactoryElement MlPipelineEndpointId { get; set; } + public DataFactoryElement MLPipelineEndpointId { get; set; } /// Version of the published Azure ML pipeline endpoint. Type: string (or Expression with resultType string). public DataFactoryElement Version { get; set; } /// Run history experiment name of the pipeline run. This information will be passed in the ExperimentName property of the published pipeline execution request. Type: string (or Expression with resultType string). public DataFactoryElement ExperimentName { get; set; } /// Key,Value pairs to be passed to the published Azure ML pipeline endpoint. Keys must match the names of pipeline parameters defined in the published pipeline. Values will be passed in the ParameterAssignments property of the published pipeline execution request. Type: object with key value pairs (or Expression with resultType object). - public DataFactoryElement> MlPipelineParameters { get; set; } + public DataFactoryElement> MLPipelineParameters { get; set; } /// Dictionary used for changing data path assignments without retraining. Values will be passed in the dataPathAssignments property of the published pipeline execution request. Type: object with key value pairs (or Expression with resultType object). public DataFactoryElement> DataPathAssignments { get; set; } /// The parent Azure ML Service pipeline run id. This information will be passed in the ParentRunId property of the published pipeline execution request. Type: string (or Expression with resultType string). - public DataFactoryElement MlParentRunId { get; set; } + public DataFactoryElement MLParentRunId { get; set; } /// Whether to continue execution of other steps in the PipelineRun if a step fails. This information will be passed in the continueOnStepFailure property of the published pipeline execution request. Type: boolean (or Expression with resultType boolean). public DataFactoryElement ContinueOnStepFailure { get; set; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLLinkedService.Serialization.cs index 8742d17f7c6e..b2f70f88881d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLLinkedService.Serialization.cs @@ -63,7 +63,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("typeProperties"u8); writer.WriteStartObject(); writer.WritePropertyName("mlEndpoint"u8); - JsonSerializer.Serialize(writer, MlEndpoint); + JsonSerializer.Serialize(writer, MLEndpoint); writer.WritePropertyName("apiKey"u8); JsonSerializer.Serialize(writer, ApiKey); if (Optional.IsDefined(UpdateResourceEndpoint)) { @@ -88,11 +88,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } if (Optional.IsDefined(Authentication)) { @@ -129,7 +125,7 @@ internal static AzureMLLinkedService DeserializeAzureMLLinkedService(JsonElement Optional> servicePrincipalId = default; Optional servicePrincipalKey = default; Optional> tenant = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; Optional> authentication = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); @@ -246,11 +242,7 @@ internal static AzureMLLinkedService DeserializeAzureMLLinkedService(JsonElement } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } if (property0.NameEquals("authentication"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLLinkedService.cs index cfcb92cf8fbd..a4ed52d1bf1c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure ML Studio Web Service linked service. - public partial class AzureMLLinkedService : DataFactoryLinkedServiceDefinition + public partial class AzureMLLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzureMLLinkedService. /// The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. Type: string (or Expression with resultType string). @@ -24,7 +24,7 @@ public AzureMLLinkedService(DataFactoryElement mlEndpoint, DataFactorySe Argument.AssertNotNull(mlEndpoint, nameof(mlEndpoint)); Argument.AssertNotNull(apiKey, nameof(apiKey)); - MlEndpoint = mlEndpoint; + MLEndpoint = mlEndpoint; ApiKey = apiKey; LinkedServiceType = "AzureML"; } @@ -44,9 +44,9 @@ public AzureMLLinkedService(DataFactoryElement mlEndpoint, DataFactorySe /// The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. /// Type of authentication (Required to specify MSI) used to connect to AzureML. Type: string (or Expression with resultType string). - internal AzureMLLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement mlEndpoint, DataFactorySecretBaseDefinition apiKey, DataFactoryElement updateResourceEndpoint, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, BinaryData encryptedCredential, DataFactoryElement authentication) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AzureMLLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement mlEndpoint, DataFactorySecretBaseDefinition apiKey, DataFactoryElement updateResourceEndpoint, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, string encryptedCredential, DataFactoryElement authentication) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { - MlEndpoint = mlEndpoint; + MLEndpoint = mlEndpoint; ApiKey = apiKey; UpdateResourceEndpoint = updateResourceEndpoint; ServicePrincipalId = servicePrincipalId; @@ -58,7 +58,7 @@ internal AzureMLLinkedService(string linkedServiceType, IntegrationRuntimeRefere } /// The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. Type: string (or Expression with resultType string). - public DataFactoryElement MlEndpoint { get; set; } + public DataFactoryElement MLEndpoint { get; set; } /// The API key for accessing the Azure ML model endpoint. public DataFactorySecretBaseDefinition ApiKey { get; set; } /// The Update Resource REST URL for an Azure ML Studio Web Service endpoint. Type: string (or Expression with resultType string). @@ -69,37 +69,8 @@ internal AzureMLLinkedService(string linkedServiceType, IntegrationRuntimeRefere public DataFactorySecretBaseDefinition ServicePrincipalKey { get; set; } /// The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). public DataFactoryElement Tenant { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } /// Type of authentication (Required to specify MSI) used to connect to AzureML. Type: string (or Expression with resultType string). public DataFactoryElement Authentication { get; set; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLServiceLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLServiceLinkedService.Serialization.cs index a08d2086bad2..16f6776f857c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLServiceLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLServiceLinkedService.Serialization.cs @@ -67,7 +67,12 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("resourceGroupName"u8); JsonSerializer.Serialize(writer, ResourceGroupName); writer.WritePropertyName("mlWorkspaceName"u8); - JsonSerializer.Serialize(writer, MlWorkspaceName); + JsonSerializer.Serialize(writer, MLWorkspaceName); + if (Optional.IsDefined(Authentication)) + { + writer.WritePropertyName("authentication"u8); + JsonSerializer.Serialize(writer, Authentication); + } if (Optional.IsDefined(ServicePrincipalId)) { writer.WritePropertyName("servicePrincipalId"u8); @@ -86,11 +91,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -119,10 +120,11 @@ internal static AzureMLServiceLinkedService DeserializeAzureMLServiceLinkedServi DataFactoryElement subscriptionId = default; DataFactoryElement resourceGroupName = default; DataFactoryElement mlWorkspaceName = default; + Optional> authentication = default; Optional> servicePrincipalId = default; Optional servicePrincipalKey = default; Optional> tenant = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -205,6 +207,15 @@ internal static AzureMLServiceLinkedService DeserializeAzureMLServiceLinkedServi mlWorkspaceName = JsonSerializer.Deserialize>(property0.Value.GetRawText()); continue; } + if (property0.NameEquals("authentication"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + authentication = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + continue; + } if (property0.NameEquals("servicePrincipalId"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -234,11 +245,7 @@ internal static AzureMLServiceLinkedService DeserializeAzureMLServiceLinkedServi } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } @@ -247,7 +254,7 @@ internal static AzureMLServiceLinkedService DeserializeAzureMLServiceLinkedServi additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } additionalProperties = additionalPropertiesDictionary; - return new AzureMLServiceLinkedService(type, connectVia.Value, description.Value, Optional.ToDictionary(parameters), Optional.ToList(annotations), additionalProperties, subscriptionId, resourceGroupName, mlWorkspaceName, servicePrincipalId.Value, servicePrincipalKey, tenant.Value, encryptedCredential.Value); + return new AzureMLServiceLinkedService(type, connectVia.Value, description.Value, Optional.ToDictionary(parameters), Optional.ToList(annotations), additionalProperties, subscriptionId, resourceGroupName, mlWorkspaceName, authentication.Value, servicePrincipalId.Value, servicePrincipalKey, tenant.Value, encryptedCredential.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLServiceLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLServiceLinkedService.cs index ffcb2f3c0599..33cd773f9c14 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLServiceLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLServiceLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure ML Service linked service. - public partial class AzureMLServiceLinkedService : DataFactoryLinkedServiceDefinition + public partial class AzureMLServiceLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzureMLServiceLinkedService. /// Azure ML Service workspace subscription ID. Type: string (or Expression with resultType string). @@ -28,7 +28,7 @@ public AzureMLServiceLinkedService(DataFactoryElement subscriptionId, Da SubscriptionId = subscriptionId; ResourceGroupName = resourceGroupName; - MlWorkspaceName = mlWorkspaceName; + MLWorkspaceName = mlWorkspaceName; LinkedServiceType = "AzureMLService"; } @@ -42,15 +42,17 @@ public AzureMLServiceLinkedService(DataFactoryElement subscriptionId, Da /// Azure ML Service workspace subscription ID. Type: string (or Expression with resultType string). /// Azure ML Service workspace resource group name. Type: string (or Expression with resultType string). /// Azure ML Service workspace name. Type: string (or Expression with resultType string). + /// Type of authentication (Required to specify MSI) used to connect to AzureML. Type: string (or Expression with resultType string). /// The ID of the service principal used to authenticate against the endpoint of a published Azure ML Service pipeline. Type: string (or Expression with resultType string). /// The key of the service principal used to authenticate against the endpoint of a published Azure ML Service pipeline. /// The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal AzureMLServiceLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement subscriptionId, DataFactoryElement resourceGroupName, DataFactoryElement mlWorkspaceName, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AzureMLServiceLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement subscriptionId, DataFactoryElement resourceGroupName, DataFactoryElement mlWorkspaceName, DataFactoryElement authentication, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { SubscriptionId = subscriptionId; ResourceGroupName = resourceGroupName; - MlWorkspaceName = mlWorkspaceName; + MLWorkspaceName = mlWorkspaceName; + Authentication = authentication; ServicePrincipalId = servicePrincipalId; ServicePrincipalKey = servicePrincipalKey; Tenant = tenant; @@ -63,43 +65,16 @@ internal AzureMLServiceLinkedService(string linkedServiceType, IntegrationRuntim /// Azure ML Service workspace resource group name. Type: string (or Expression with resultType string). public DataFactoryElement ResourceGroupName { get; set; } /// Azure ML Service workspace name. Type: string (or Expression with resultType string). - public DataFactoryElement MlWorkspaceName { get; set; } + public DataFactoryElement MLWorkspaceName { get; set; } + /// Type of authentication (Required to specify MSI) used to connect to AzureML. Type: string (or Expression with resultType string). + public DataFactoryElement Authentication { get; set; } /// The ID of the service principal used to authenticate against the endpoint of a published Azure ML Service pipeline. Type: string (or Expression with resultType string). public DataFactoryElement ServicePrincipalId { get; set; } /// The key of the service principal used to authenticate against the endpoint of a published Azure ML Service pipeline. public DataFactorySecretBaseDefinition ServicePrincipalKey { get; set; } /// The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). public DataFactoryElement Tenant { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLUpdateResourceActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLUpdateResourceActivity.Serialization.cs index 311dad14b277..815dc18dd0a1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLUpdateResourceActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLUpdateResourceActivity.Serialization.cs @@ -94,14 +94,14 @@ internal static AzureMLUpdateResourceActivity DeserializeAzureMLUpdateResourceAc return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; DataFactoryElement trainedModelName = default; DataFactoryLinkedServiceReference trainedModelLinkedServiceName = default; DataFactoryElement trainedModelFilePath = default; @@ -124,7 +124,7 @@ internal static AzureMLUpdateResourceActivity DeserializeAzureMLUpdateResourceAc { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -148,7 +148,7 @@ internal static AzureMLUpdateResourceActivity DeserializeAzureMLUpdateResourceAc { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -157,7 +157,7 @@ internal static AzureMLUpdateResourceActivity DeserializeAzureMLUpdateResourceAc { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -166,10 +166,10 @@ internal static AzureMLUpdateResourceActivity DeserializeAzureMLUpdateResourceAc { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -180,10 +180,10 @@ internal static AzureMLUpdateResourceActivity DeserializeAzureMLUpdateResourceAc { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLUpdateResourceActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLUpdateResourceActivity.cs index 68754dc78b49..d557089a5c99 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLUpdateResourceActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMLUpdateResourceActivity.cs @@ -48,7 +48,7 @@ public AzureMLUpdateResourceActivity(string name, DataFactoryElement tra /// Name of the Trained Model module in the Web Service experiment to be updated. Type: string (or Expression with resultType string). /// Name of Azure Storage linked service holding the .ilearner file that will be uploaded by the update operation. /// The relative file path in trainedModelLinkedService to represent the .ilearner file that will be uploaded by the update operation. Type: string (or Expression with resultType string). - internal AzureMLUpdateResourceActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, DataFactoryElement trainedModelName, DataFactoryLinkedServiceReference trainedModelLinkedServiceName, DataFactoryElement trainedModelFilePath) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal AzureMLUpdateResourceActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, DataFactoryElement trainedModelName, DataFactoryLinkedServiceReference trainedModelLinkedServiceName, DataFactoryElement trainedModelFilePath) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { TrainedModelName = trainedModelName; TrainedModelLinkedServiceName = trainedModelLinkedServiceName; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMariaDBLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMariaDBLinkedService.Serialization.cs index d537b933b71c..51e9fdc3fb92 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMariaDBLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMariaDBLinkedService.Serialization.cs @@ -75,11 +75,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -107,7 +103,7 @@ internal static AzureMariaDBLinkedService DeserializeAzureMariaDBLinkedService(J Optional> annotations = default; Optional> connectionString = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -195,11 +191,7 @@ internal static AzureMariaDBLinkedService DeserializeAzureMariaDBLinkedService(J } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMariaDBLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMariaDBLinkedService.cs index 85abf3097946..0596fd023255 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMariaDBLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMariaDBLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure Database for MariaDB linked service. - public partial class AzureMariaDBLinkedService : DataFactoryLinkedServiceDefinition + public partial class AzureMariaDBLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzureMariaDBLinkedService. public AzureMariaDBLinkedService() @@ -30,7 +30,7 @@ public AzureMariaDBLinkedService() /// An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. /// The Azure key vault secret reference of password in connection string. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal AzureMariaDBLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AzureMariaDBLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; Password = password; @@ -42,36 +42,7 @@ internal AzureMariaDBLinkedService(string linkedServiceType, IntegrationRuntimeR public DataFactoryElement ConnectionString { get; set; } /// The Azure key vault secret reference of password in connection string. public DataFactoryKeyVaultSecretReference Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMariaDBTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMariaDBTableDataset.cs index a8bdb2989e5c..8540f6fe0c65 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMariaDBTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMariaDBTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure Database for MariaDB dataset. - public partial class AzureMariaDBTableDataset : DataFactoryDatasetDefinition + public partial class AzureMariaDBTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of AzureMariaDBTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMySqlLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMySqlLinkedService.Serialization.cs index 75e8e380be4d..af622a7088e4 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMySqlLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMySqlLinkedService.Serialization.cs @@ -72,11 +72,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -104,7 +100,7 @@ internal static AzureMySqlLinkedService DeserializeAzureMySqlLinkedService(JsonE Optional> annotations = default; DataFactoryElement connectionString = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -188,11 +184,7 @@ internal static AzureMySqlLinkedService DeserializeAzureMySqlLinkedService(JsonE } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMySqlLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMySqlLinkedService.cs index ce91f806c12f..7b470a5409a0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMySqlLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMySqlLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure MySQL database linked service. - public partial class AzureMySqlLinkedService : DataFactoryLinkedServiceDefinition + public partial class AzureMySqlLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzureMySqlLinkedService. /// The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. @@ -36,7 +36,7 @@ public AzureMySqlLinkedService(DataFactoryElement connectionString) /// The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. /// The Azure key vault secret reference of password in connection string. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal AzureMySqlLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AzureMySqlLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; Password = password; @@ -48,36 +48,7 @@ internal AzureMySqlLinkedService(string linkedServiceType, IntegrationRuntimeRef public DataFactoryElement ConnectionString { get; set; } /// The Azure key vault secret reference of password in connection string. public DataFactoryKeyVaultSecretReference Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMySqlTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMySqlTableDataset.cs index 15668e240e3e..a424b6517e49 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMySqlTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureMySqlTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Azure MySQL database dataset. - public partial class AzureMySqlTableDataset : DataFactoryDatasetDefinition + public partial class AzureMySqlTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of AzureMySqlTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzurePostgreSqlLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzurePostgreSqlLinkedService.Serialization.cs index 1b347646df06..2596a9613cbe 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzurePostgreSqlLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzurePostgreSqlLinkedService.Serialization.cs @@ -75,11 +75,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -107,7 +103,7 @@ internal static AzurePostgreSqlLinkedService DeserializeAzurePostgreSqlLinkedSer Optional> annotations = default; Optional> connectionString = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -195,11 +191,7 @@ internal static AzurePostgreSqlLinkedService DeserializeAzurePostgreSqlLinkedSer } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzurePostgreSqlLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzurePostgreSqlLinkedService.cs index f9dee1f88a15..4e57df955e19 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzurePostgreSqlLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzurePostgreSqlLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure PostgreSQL linked service. - public partial class AzurePostgreSqlLinkedService : DataFactoryLinkedServiceDefinition + public partial class AzurePostgreSqlLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzurePostgreSqlLinkedService. public AzurePostgreSqlLinkedService() @@ -30,7 +30,7 @@ public AzurePostgreSqlLinkedService() /// An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. /// The Azure key vault secret reference of password in connection string. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal AzurePostgreSqlLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AzurePostgreSqlLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; Password = password; @@ -42,36 +42,7 @@ internal AzurePostgreSqlLinkedService(string linkedServiceType, IntegrationRunti public DataFactoryElement ConnectionString { get; set; } /// The Azure key vault secret reference of password in connection string. public DataFactoryKeyVaultSecretReference Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzurePostgreSqlTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzurePostgreSqlTableDataset.cs index aae4bdd77b1b..b8ada1b0e91f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzurePostgreSqlTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzurePostgreSqlTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure PostgreSQL dataset. - public partial class AzurePostgreSqlTableDataset : DataFactoryDatasetDefinition + public partial class AzurePostgreSqlTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of AzurePostgreSqlTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSearchIndexDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSearchIndexDataset.cs index 288be05c0369..c7b2d65c8e14 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSearchIndexDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSearchIndexDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Azure Search Index. - public partial class AzureSearchIndexDataset : DataFactoryDatasetDefinition + public partial class AzureSearchIndexDataset : DataFactoryDatasetProperties { /// Initializes a new instance of AzureSearchIndexDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSearchLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSearchLinkedService.Serialization.cs index e3d541f60ea6..806eeeb6eda1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSearchLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSearchLinkedService.Serialization.cs @@ -72,11 +72,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -104,7 +100,7 @@ internal static AzureSearchLinkedService DeserializeAzureSearchLinkedService(Jso Optional> annotations = default; DataFactoryElement url = default; Optional key = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -188,11 +184,7 @@ internal static AzureSearchLinkedService DeserializeAzureSearchLinkedService(Jso } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSearchLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSearchLinkedService.cs index eab76ef52a14..353d788670d0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSearchLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSearchLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for Windows Azure Search Service. - public partial class AzureSearchLinkedService : DataFactoryLinkedServiceDefinition + public partial class AzureSearchLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzureSearchLinkedService. /// URL for Azure Search service. Type: string (or Expression with resultType string). @@ -36,7 +36,7 @@ public AzureSearchLinkedService(DataFactoryElement uri) /// URL for Azure Search service. Type: string (or Expression with resultType string). /// Admin Key for Azure Search service. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal AzureSearchLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement uri, DataFactorySecretBaseDefinition key, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AzureSearchLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement uri, DataFactorySecretBaseDefinition key, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Uri = uri; Key = key; @@ -48,36 +48,7 @@ internal AzureSearchLinkedService(string linkedServiceType, IntegrationRuntimeRe public DataFactoryElement Uri { get; set; } /// Admin Key for Azure Search service. public DataFactorySecretBaseDefinition Key { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlDWLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlDWLinkedService.Serialization.cs index 38e938edd20d..2d8861db68fc 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlDWLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlDWLinkedService.Serialization.cs @@ -92,11 +92,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } if (Optional.IsDefined(Credential)) { @@ -133,7 +129,7 @@ internal static AzureSqlDWLinkedService DeserializeAzureSqlDWLinkedService(JsonE Optional servicePrincipalKey = default; Optional> tenant = default; Optional> azureCloudType = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; Optional credential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); @@ -254,11 +250,7 @@ internal static AzureSqlDWLinkedService DeserializeAzureSqlDWLinkedService(JsonE } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } if (property0.NameEquals("credential"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlDWLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlDWLinkedService.cs index ea28044a1926..26d46f067a11 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlDWLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlDWLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure SQL Data Warehouse linked service. - public partial class AzureSqlDWLinkedService : DataFactoryLinkedServiceDefinition + public partial class AzureSqlDWLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzureSqlDWLinkedService. /// The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. @@ -41,7 +41,7 @@ public AzureSqlDWLinkedService(DataFactoryElement connectionString) /// Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. /// The credential reference containing authentication information. - internal AzureSqlDWLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, DataFactoryElement azureCloudType, BinaryData encryptedCredential, DataFactoryCredentialReference credential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AzureSqlDWLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, DataFactoryElement azureCloudType, string encryptedCredential, DataFactoryCredentialReference credential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; Password = password; @@ -66,37 +66,8 @@ internal AzureSqlDWLinkedService(string linkedServiceType, IntegrationRuntimeRef public DataFactoryElement Tenant { get; set; } /// Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string). public DataFactoryElement AzureCloudType { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } /// The credential reference containing authentication information. public DataFactoryCredentialReference Credential { get; set; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlDWTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlDWTableDataset.cs index 23b6776f9fcd..c8fd8f873c87 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlDWTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlDWTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Azure SQL Data Warehouse dataset. - public partial class AzureSqlDWTableDataset : DataFactoryDatasetDefinition + public partial class AzureSqlDWTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of AzureSqlDWTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlDatabaseLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlDatabaseLinkedService.Serialization.cs index 10c6b6bbea12..52cdbfc512e1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlDatabaseLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlDatabaseLinkedService.Serialization.cs @@ -92,11 +92,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } if (Optional.IsDefined(AlwaysEncryptedSettings)) { @@ -138,7 +134,7 @@ internal static AzureSqlDatabaseLinkedService DeserializeAzureSqlDatabaseLinkedS Optional servicePrincipalKey = default; Optional> tenant = default; Optional> azureCloudType = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; Optional alwaysEncryptedSettings = default; Optional credential = default; IDictionary additionalProperties = default; @@ -260,11 +256,7 @@ internal static AzureSqlDatabaseLinkedService DeserializeAzureSqlDatabaseLinkedS } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } if (property0.NameEquals("alwaysEncryptedSettings"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlDatabaseLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlDatabaseLinkedService.cs index e4923f1eff12..4764596cacd0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlDatabaseLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlDatabaseLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Microsoft Azure SQL Database linked service. - public partial class AzureSqlDatabaseLinkedService : DataFactoryLinkedServiceDefinition + public partial class AzureSqlDatabaseLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzureSqlDatabaseLinkedService. /// The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. @@ -42,7 +42,7 @@ public AzureSqlDatabaseLinkedService(DataFactoryElement connectionString /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. /// Sql always encrypted properties. /// The credential reference containing authentication information. - internal AzureSqlDatabaseLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, DataFactoryElement azureCloudType, BinaryData encryptedCredential, SqlAlwaysEncryptedProperties alwaysEncryptedSettings, DataFactoryCredentialReference credential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AzureSqlDatabaseLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, DataFactoryElement azureCloudType, string encryptedCredential, SqlAlwaysEncryptedProperties alwaysEncryptedSettings, DataFactoryCredentialReference credential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; Password = password; @@ -68,37 +68,8 @@ internal AzureSqlDatabaseLinkedService(string linkedServiceType, IntegrationRunt public DataFactoryElement Tenant { get; set; } /// Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string). public DataFactoryElement AzureCloudType { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } /// Sql always encrypted properties. public SqlAlwaysEncryptedProperties AlwaysEncryptedSettings { get; set; } /// The credential reference containing authentication information. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlMILinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlMILinkedService.Serialization.cs index 0db0f80b4fd3..79aec8f385d0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlMILinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlMILinkedService.Serialization.cs @@ -92,11 +92,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } if (Optional.IsDefined(AlwaysEncryptedSettings)) { @@ -138,7 +134,7 @@ internal static AzureSqlMILinkedService DeserializeAzureSqlMILinkedService(JsonE Optional servicePrincipalKey = default; Optional> tenant = default; Optional> azureCloudType = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; Optional alwaysEncryptedSettings = default; Optional credential = default; IDictionary additionalProperties = default; @@ -260,11 +256,7 @@ internal static AzureSqlMILinkedService DeserializeAzureSqlMILinkedService(JsonE } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } if (property0.NameEquals("alwaysEncryptedSettings"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlMILinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlMILinkedService.cs index 4e30fd818d7c..e77e497b9b99 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlMILinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlMILinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure SQL Managed Instance linked service. - public partial class AzureSqlMILinkedService : DataFactoryLinkedServiceDefinition + public partial class AzureSqlMILinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzureSqlMILinkedService. /// The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. @@ -42,7 +42,7 @@ public AzureSqlMILinkedService(DataFactoryElement connectionString) /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. /// Sql always encrypted properties. /// The credential reference containing authentication information. - internal AzureSqlMILinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, DataFactoryElement azureCloudType, BinaryData encryptedCredential, SqlAlwaysEncryptedProperties alwaysEncryptedSettings, DataFactoryCredentialReference credential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AzureSqlMILinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, DataFactoryElement azureCloudType, string encryptedCredential, SqlAlwaysEncryptedProperties alwaysEncryptedSettings, DataFactoryCredentialReference credential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; Password = password; @@ -68,37 +68,8 @@ internal AzureSqlMILinkedService(string linkedServiceType, IntegrationRuntimeRef public DataFactoryElement Tenant { get; set; } /// Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string). public DataFactoryElement AzureCloudType { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } /// Sql always encrypted properties. public SqlAlwaysEncryptedProperties AlwaysEncryptedSettings { get; set; } /// The credential reference containing authentication information. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlMITableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlMITableDataset.cs index 20e1e9755cbb..d13496fdc49b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlMITableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlMITableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Azure SQL Managed Instance dataset. - public partial class AzureSqlMITableDataset : DataFactoryDatasetDefinition + public partial class AzureSqlMITableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of AzureSqlMITableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlTableDataset.cs index 20e8a7b2ee4b..851ba44590d9 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSqlTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Azure SQL Server database dataset. - public partial class AzureSqlTableDataset : DataFactoryDatasetDefinition + public partial class AzureSqlTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of AzureSqlTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureStorageLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureStorageLinkedService.Serialization.cs index 32e9cc71094b..4b23a3318737 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureStorageLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureStorageLinkedService.Serialization.cs @@ -85,11 +85,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -119,7 +115,7 @@ internal static AzureStorageLinkedService DeserializeAzureStorageLinkedService(J Optional accountKey = default; Optional> sasUri = default; Optional sasToken = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -225,11 +221,7 @@ internal static AzureStorageLinkedService DeserializeAzureStorageLinkedService(J } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureStorageLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureStorageLinkedService.cs index 6a05dab55502..48175e741eac 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureStorageLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureStorageLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The storage account linked service. - public partial class AzureStorageLinkedService : DataFactoryLinkedServiceDefinition + public partial class AzureStorageLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzureStorageLinkedService. public AzureStorageLinkedService() @@ -32,7 +32,7 @@ public AzureStorageLinkedService() /// SAS URI of the Azure Storage resource. It is mutually exclusive with connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. /// The Azure key vault secret reference of sasToken in sas uri. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal AzureStorageLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference accountKey, DataFactoryElement sasUri, DataFactoryKeyVaultSecretReference sasToken, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AzureStorageLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference accountKey, DataFactoryElement sasUri, DataFactoryKeyVaultSecretReference sasToken, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; AccountKey = accountKey; @@ -50,36 +50,7 @@ internal AzureStorageLinkedService(string linkedServiceType, IntegrationRuntimeR public DataFactoryElement SasUri { get; set; } /// The Azure key vault secret reference of sasToken in sas uri. public DataFactoryKeyVaultSecretReference SasToken { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSynapseArtifactsLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSynapseArtifactsLinkedService.cs index 8a745e7bfaba..09761ed7072a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSynapseArtifactsLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureSynapseArtifactsLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure Synapse Analytics (Artifacts) linked service. - public partial class AzureSynapseArtifactsLinkedService : DataFactoryLinkedServiceDefinition + public partial class AzureSynapseArtifactsLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzureSynapseArtifactsLinkedService. /// https://<workspacename>.dev.azuresynapse.net, Azure Synapse Analytics workspace URL. Type: string (or Expression with resultType string). diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureTableDataset.cs index 03fd81483b86..47d3bd01d147 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Azure Table storage dataset. - public partial class AzureTableDataset : DataFactoryDatasetDefinition + public partial class AzureTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of AzureTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureTableStorageLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureTableStorageLinkedService.Serialization.cs index 72c01212e3f9..109fd1090921 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureTableStorageLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureTableStorageLinkedService.Serialization.cs @@ -85,11 +85,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -119,7 +115,7 @@ internal static AzureTableStorageLinkedService DeserializeAzureTableStorageLinke Optional accountKey = default; Optional> sasUri = default; Optional sasToken = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -225,11 +221,7 @@ internal static AzureTableStorageLinkedService DeserializeAzureTableStorageLinke } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureTableStorageLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureTableStorageLinkedService.cs index b362498ff999..30fe898d8d13 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureTableStorageLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/AzureTableStorageLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The azure table storage linked service. - public partial class AzureTableStorageLinkedService : DataFactoryLinkedServiceDefinition + public partial class AzureTableStorageLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of AzureTableStorageLinkedService. public AzureTableStorageLinkedService() @@ -32,7 +32,7 @@ public AzureTableStorageLinkedService() /// SAS URI of the Azure Storage resource. It is mutually exclusive with connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. /// The Azure key vault secret reference of sasToken in sas uri. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal AzureTableStorageLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference accountKey, DataFactoryElement sasUri, DataFactoryKeyVaultSecretReference sasToken, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal AzureTableStorageLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference accountKey, DataFactoryElement sasUri, DataFactoryKeyVaultSecretReference sasToken, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; AccountKey = accountKey; @@ -50,36 +50,7 @@ internal AzureTableStorageLinkedService(string linkedServiceType, IntegrationRun public DataFactoryElement SasUri { get; set; } /// The Azure key vault secret reference of sasToken in sas uri. public DataFactoryKeyVaultSecretReference SasToken { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/BinaryDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/BinaryDataset.cs index 53add39f347e..dce45af07751 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/BinaryDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/BinaryDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Binary dataset. - public partial class BinaryDataset : DataFactoryDatasetDefinition + public partial class BinaryDataset : DataFactoryDatasetProperties { /// Initializes a new instance of BinaryDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CassandraLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CassandraLinkedService.Serialization.cs index eebb6836ddca..31f9ff790679 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CassandraLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CassandraLinkedService.Serialization.cs @@ -87,11 +87,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -122,7 +118,7 @@ internal static CassandraLinkedService DeserializeCassandraLinkedService(JsonEle Optional> port = default; Optional> username = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -233,11 +229,7 @@ internal static CassandraLinkedService DeserializeCassandraLinkedService(JsonEle } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CassandraLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CassandraLinkedService.cs index c4a88ecf971a..de07aa5fc58a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CassandraLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CassandraLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for Cassandra data source. - public partial class CassandraLinkedService : DataFactoryLinkedServiceDefinition + public partial class CassandraLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of CassandraLinkedService. /// Host name for connection. Type: string (or Expression with resultType string). @@ -39,7 +39,7 @@ public CassandraLinkedService(DataFactoryElement host) /// Username for authentication. Type: string (or Expression with resultType string). /// Password for authentication. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal CassandraLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement authenticationType, DataFactoryElement port, DataFactoryElement username, DataFactorySecretBaseDefinition password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal CassandraLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement authenticationType, DataFactoryElement port, DataFactoryElement username, DataFactorySecretBaseDefinition password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Host = host; AuthenticationType = authenticationType; @@ -60,36 +60,7 @@ internal CassandraLinkedService(string linkedServiceType, IntegrationRuntimeRefe public DataFactoryElement Username { get; set; } /// Password for authentication. public DataFactorySecretBaseDefinition Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CassandraTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CassandraTableDataset.cs index c8736004e85a..8cb8a7dd62a3 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CassandraTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CassandraTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Cassandra database dataset. - public partial class CassandraTableDataset : DataFactoryDatasetDefinition + public partial class CassandraTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of CassandraTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ChainingTrigger.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ChainingTrigger.cs index 2decbbe91348..148de9ad1688 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ChainingTrigger.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ChainingTrigger.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Trigger that allows the referenced pipeline to depend on other pipeline runs based on runDimension Name/Value pairs. Upstream pipelines should declare the same runDimension Name and their runs should have the values for those runDimensions. The referenced pipeline run would be triggered if the values for the runDimension match for all upstream pipeline runs. - public partial class ChainingTrigger : DataFactoryTriggerDefinition + public partial class ChainingTrigger : DataFactoryTriggerProperties { /// Initializes a new instance of ChainingTrigger. /// Pipeline for which runs are created when all upstream pipelines complete successfully. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ChangeDataCaptureFolder.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ChangeDataCaptureFolder.Serialization.cs new file mode 100644 index 000000000000..b4577f45f216 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ChangeDataCaptureFolder.Serialization.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DataFactory.Models +{ + internal partial class ChangeDataCaptureFolder : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + writer.WriteEndObject(); + } + + internal static ChangeDataCaptureFolder DeserializeChangeDataCaptureFolder(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional name = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + } + return new ChangeDataCaptureFolder(name.Value); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ChangeDataCaptureFolder.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ChangeDataCaptureFolder.cs new file mode 100644 index 000000000000..39a62905c0c3 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ChangeDataCaptureFolder.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// The folder that this CDC is in. If not specified, CDC will appear at the root level. + internal partial class ChangeDataCaptureFolder + { + /// Initializes a new instance of ChangeDataCaptureFolder. + public ChangeDataCaptureFolder() + { + } + + /// Initializes a new instance of ChangeDataCaptureFolder. + /// The name of the folder that this CDC is in. + internal ChangeDataCaptureFolder(string name) + { + Name = name; + } + + /// The name of the folder that this CDC is in. + public string Name { get; set; } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ChangeDataCaptureListResult.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ChangeDataCaptureListResult.Serialization.cs new file mode 100644 index 000000000000..afcd7d9a4f87 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ChangeDataCaptureListResult.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.DataFactory; + +namespace Azure.ResourceManager.DataFactory.Models +{ + internal partial class ChangeDataCaptureListResult + { + internal static ChangeDataCaptureListResult DeserializeChangeDataCaptureListResult(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(DataFactoryChangeDataCaptureData.DeserializeDataFactoryChangeDataCaptureData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new ChangeDataCaptureListResult(value, nextLink.Value); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ChangeDataCaptureListResult.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ChangeDataCaptureListResult.cs new file mode 100644 index 000000000000..696585781306 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ChangeDataCaptureListResult.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; +using Azure.ResourceManager.DataFactory; + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// A list of change data capture resources. + internal partial class ChangeDataCaptureListResult + { + /// Initializes a new instance of ChangeDataCaptureListResult. + /// Lists all resources of type change data capture. + /// is null. + internal ChangeDataCaptureListResult(IEnumerable value) + { + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); + } + + /// Initializes a new instance of ChangeDataCaptureListResult. + /// Lists all resources of type change data capture. + /// The link to the next page of results, if any remaining results exist. + internal ChangeDataCaptureListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// Lists all resources of type change data capture. + public IReadOnlyList Value { get; } + /// The link to the next page of results, if any remaining results exist. + public string NextLink { get; } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CommonDataServiceForAppsEntityDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CommonDataServiceForAppsEntityDataset.cs index aa992d8bf541..0d6346bc1132 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CommonDataServiceForAppsEntityDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CommonDataServiceForAppsEntityDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Common Data Service for Apps entity dataset. - public partial class CommonDataServiceForAppsEntityDataset : DataFactoryDatasetDefinition + public partial class CommonDataServiceForAppsEntityDataset : DataFactoryDatasetProperties { /// Initializes a new instance of CommonDataServiceForAppsEntityDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CommonDataServiceForAppsLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CommonDataServiceForAppsLinkedService.Serialization.cs index d67eb9f74210..a6c17d258a63 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CommonDataServiceForAppsLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CommonDataServiceForAppsLinkedService.Serialization.cs @@ -114,11 +114,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -155,7 +151,7 @@ internal static CommonDataServiceForAppsLinkedService DeserializeCommonDataServi Optional> servicePrincipalId = default; Optional> servicePrincipalCredentialType = default; Optional servicePrincipalCredential = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -316,11 +312,7 @@ internal static CommonDataServiceForAppsLinkedService DeserializeCommonDataServi } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CommonDataServiceForAppsLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CommonDataServiceForAppsLinkedService.cs index 9f7e9f66d6a9..f134870da077 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CommonDataServiceForAppsLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CommonDataServiceForAppsLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Common Data Service for Apps linked service. - public partial class CommonDataServiceForAppsLinkedService : DataFactoryLinkedServiceDefinition + public partial class CommonDataServiceForAppsLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of CommonDataServiceForAppsLinkedService. /// The deployment type of the Common Data Service for Apps instance. 'Online' for Common Data Service for Apps Online and 'OnPremisesWithIfd' for Common Data Service for Apps on-premises with Ifd. Type: string (or Expression with resultType string). @@ -48,7 +48,7 @@ public CommonDataServiceForAppsLinkedService(DataFactoryElement deployme /// The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string). /// The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal CommonDataServiceForAppsLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement deploymentType, DataFactoryElement hostName, DataFactoryElement port, DataFactoryElement serviceUri, DataFactoryElement organizationName, DataFactoryElement authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement servicePrincipalId, DataFactoryElement servicePrincipalCredentialType, DataFactorySecretBaseDefinition servicePrincipalCredential, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal CommonDataServiceForAppsLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement deploymentType, DataFactoryElement hostName, DataFactoryElement port, DataFactoryElement serviceUri, DataFactoryElement organizationName, DataFactoryElement authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement servicePrincipalId, DataFactoryElement servicePrincipalCredentialType, DataFactorySecretBaseDefinition servicePrincipalCredential, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { DeploymentType = deploymentType; HostName = hostName; @@ -87,36 +87,7 @@ internal CommonDataServiceForAppsLinkedService(string linkedServiceType, Integra public DataFactoryElement ServicePrincipalCredentialType { get; set; } /// The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference. public DataFactorySecretBaseDefinition ServicePrincipalCredential { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ConcurLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ConcurLinkedService.Serialization.cs index a893dc95947e..0d6b2d0874ae 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ConcurLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ConcurLinkedService.Serialization.cs @@ -98,11 +98,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -135,7 +131,7 @@ internal static ConcurLinkedService DeserializeConcurLinkedService(JsonElement e Optional> useEncryptedEndpoints = default; Optional> useHostVerification = default; Optional> usePeerVerification = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -260,11 +256,7 @@ internal static ConcurLinkedService DeserializeConcurLinkedService(JsonElement e } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ConcurLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ConcurLinkedService.cs index a6115850b4f0..d0cffda6a614 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ConcurLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ConcurLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Concur Service linked service. - public partial class ConcurLinkedService : DataFactoryLinkedServiceDefinition + public partial class ConcurLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of ConcurLinkedService. /// Application client_id supplied by Concur App Management. @@ -44,7 +44,7 @@ public ConcurLinkedService(DataFactoryElement clientId, DataFactoryEleme /// Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal ConcurLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData connectionProperties, DataFactoryElement clientId, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal ConcurLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData connectionProperties, DataFactoryElement clientId, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionProperties = connectionProperties; ClientId = clientId; @@ -100,36 +100,7 @@ internal ConcurLinkedService(string linkedServiceType, IntegrationRuntimeReferen public DataFactoryElement UseHostVerification { get; set; } /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. public DataFactoryElement UsePeerVerification { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ConcurObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ConcurObjectDataset.cs index faa294b37e3a..04cbc33a94da 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ConcurObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ConcurObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Concur Service dataset. - public partial class ConcurObjectDataset : DataFactoryDatasetDefinition + public partial class ConcurObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of ConcurObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ConfigurationType.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ConfigurationType.cs deleted file mode 100644 index b33a8ccc39c1..000000000000 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ConfigurationType.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.DataFactory.Models -{ - /// The type of the spark config. - public readonly partial struct ConfigurationType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ConfigurationType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string DefaultValue = "Default"; - private const string CustomizedValue = "Customized"; - private const string ArtifactValue = "Artifact"; - - /// Default. - public static ConfigurationType Default { get; } = new ConfigurationType(DefaultValue); - /// Customized. - public static ConfigurationType Customized { get; } = new ConfigurationType(CustomizedValue); - /// Artifact. - public static ConfigurationType Artifact { get; } = new ConfigurationType(ArtifactValue); - /// Determines if two values are the same. - public static bool operator ==(ConfigurationType left, ConfigurationType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ConfigurationType left, ConfigurationType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator ConfigurationType(string value) => new ConfigurationType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ConfigurationType other && Equals(other); - /// - public bool Equals(ConfigurationType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ControlActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ControlActivity.Serialization.cs index d63d9501c817..0f920cb45f90 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ControlActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ControlActivity.Serialization.cs @@ -95,10 +95,10 @@ internal static ControlActivity DeserializeControlActivity(JsonElement element) string name = default; string type = "Container"; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -124,7 +124,7 @@ internal static ControlActivity DeserializeControlActivity(JsonElement element) { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -133,7 +133,7 @@ internal static ControlActivity DeserializeControlActivity(JsonElement element) { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -142,10 +142,10 @@ internal static ControlActivity DeserializeControlActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -156,10 +156,10 @@ internal static ControlActivity DeserializeControlActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ControlActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ControlActivity.cs index e061b6e7d943..ca0883716d96 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ControlActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ControlActivity.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.DataFactory.Models /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , , , , , , , , , and . /// - public partial class ControlActivity : DataFactoryActivity + public partial class ControlActivity : PipelineActivity { /// Initializes a new instance of ControlActivity. /// Activity name. @@ -37,7 +37,7 @@ public ControlActivity(string name) : base(name) /// Activity depends on condition. /// Activity user properties. /// Additional Properties. - internal ControlActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) + internal ControlActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) { ActivityType = activityType ?? "Container"; } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CopyActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CopyActivity.Serialization.cs index f4a0d22371b4..e7d0eb51963b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CopyActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CopyActivity.Serialization.cs @@ -212,14 +212,14 @@ internal static CopyActivity DeserializeCopyActivity(JsonElement element) Optional> inputs = default; Optional> outputs = default; Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; CopyActivitySource source = default; CopySink sink = default; Optional translator = default; @@ -230,7 +230,7 @@ internal static CopyActivity DeserializeCopyActivity(JsonElement element) Optional> enableSkipIncompatibleRow = default; Optional redirectIncompatibleRowSettings = default; Optional logStorageSettings = default; - Optional logSettings = default; + Optional logSettings = default; Optional> preserveRules = default; Optional> preserve = default; Optional> validateDataConsistency = default; @@ -282,7 +282,7 @@ internal static CopyActivity DeserializeCopyActivity(JsonElement element) { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -306,7 +306,7 @@ internal static CopyActivity DeserializeCopyActivity(JsonElement element) { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -315,7 +315,7 @@ internal static CopyActivity DeserializeCopyActivity(JsonElement element) { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -324,10 +324,10 @@ internal static CopyActivity DeserializeCopyActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -338,10 +338,10 @@ internal static CopyActivity DeserializeCopyActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; @@ -443,7 +443,7 @@ internal static CopyActivity DeserializeCopyActivity(JsonElement element) { continue; } - logSettings = LogSettings.DeserializeLogSettings(property0.Value); + logSettings = DataFactoryLogSettings.DeserializeDataFactoryLogSettings(property0.Value); continue; } if (property0.NameEquals("preserveRules"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CopyActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CopyActivity.cs index a922096bc8d5..8355472c501e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CopyActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CopyActivity.cs @@ -20,7 +20,7 @@ public partial class CopyActivity : ExecutionActivity /// /// Copy activity source. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// /// /// Copy activity sink. @@ -59,7 +59,7 @@ public CopyActivity(string name, CopyActivitySource source, CopySink sink) : bas /// /// Copy activity source. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// /// /// Copy activity sink. @@ -79,7 +79,7 @@ public CopyActivity(string name, CopyActivitySource source, CopySink sink) : bas /// Preserve rules. /// Whether to enable Data Consistency validation. Type: boolean (or Expression with resultType boolean). /// Specify the fault tolerance for data consistency. - internal CopyActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, IList inputs, IList outputs, CopyActivitySource source, CopySink sink, BinaryData translator, DataFactoryElement enableStaging, StagingSettings stagingSettings, DataFactoryElement parallelCopies, DataFactoryElement dataIntegrationUnits, DataFactoryElement enableSkipIncompatibleRow, RedirectIncompatibleRowSettings redirectIncompatibleRowSettings, LogStorageSettings logStorageSettings, LogSettings logSettings, IList preserveRules, IList preserve, DataFactoryElement validateDataConsistency, SkipErrorFile skipErrorFile) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal CopyActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, IList inputs, IList outputs, CopyActivitySource source, CopySink sink, BinaryData translator, DataFactoryElement enableStaging, StagingSettings stagingSettings, DataFactoryElement parallelCopies, DataFactoryElement dataIntegrationUnits, DataFactoryElement enableSkipIncompatibleRow, RedirectIncompatibleRowSettings redirectIncompatibleRowSettings, LogStorageSettings logStorageSettings, DataFactoryLogSettings logSettings, IList preserveRules, IList preserve, DataFactoryElement validateDataConsistency, SkipErrorFile skipErrorFile) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { Inputs = inputs; Outputs = outputs; @@ -108,7 +108,7 @@ internal CopyActivity(string name, string activityType, string description, Acti /// /// Copy activity source. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// public CopyActivitySource Source { get; set; } /// @@ -163,7 +163,7 @@ internal CopyActivity(string name, string activityType, string description, Acti /// (Deprecated. Please use LogSettings) Log storage settings customer need to provide when enabling session log. public LogStorageSettings LogStorageSettings { get; set; } /// Log settings customer needs provide when enabling log. - public LogSettings LogSettings { get; set; } + public DataFactoryLogSettings LogSettings { get; set; } /// /// Preserve Rules. /// diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CopyActivitySource.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CopyActivitySource.Serialization.cs index f5becab6d72c..2743082d9712 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CopyActivitySource.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CopyActivitySource.Serialization.cs @@ -130,7 +130,7 @@ internal static CopyActivitySource DeserializeCopyActivitySource(JsonElement ele case "SalesforceMarketingCloudSource": return SalesforceMarketingCloudSource.DeserializeSalesforceMarketingCloudSource(element); case "SalesforceServiceCloudSource": return SalesforceServiceCloudSource.DeserializeSalesforceServiceCloudSource(element); case "SalesforceSource": return SalesforceSource.DeserializeSalesforceSource(element); - case "SapBwSource": return SapBwSource.DeserializeSapBwSource(element); + case "SapBwSource": return SapBWSource.DeserializeSapBWSource(element); case "SapCloudForCustomerSource": return SapCloudForCustomerSource.DeserializeSapCloudForCustomerSource(element); case "SapEccSource": return SapEccSource.DeserializeSapEccSource(element); case "SapHanaSource": return SapHanaSource.DeserializeSapHanaSource(element); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CopyActivitySource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CopyActivitySource.cs index 499d2d399ff4..0684e3285263 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CopyActivitySource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CopyActivitySource.cs @@ -15,7 +15,7 @@ namespace Azure.ResourceManager.DataFactory.Models /// /// A copy activity source. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// public partial class CopyActivitySource { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CosmosDBLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CosmosDBLinkedService.Serialization.cs index aa7a8dc4ec31..75190e3b6658 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CosmosDBLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CosmosDBLinkedService.Serialization.cs @@ -115,11 +115,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } if (Optional.IsDefined(Credential)) { @@ -160,7 +156,7 @@ internal static CosmosDBLinkedService DeserializeCosmosDBLinkedService(JsonEleme Optional> tenant = default; Optional> azureCloudType = default; Optional connectionMode = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; Optional credential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); @@ -321,11 +317,7 @@ internal static CosmosDBLinkedService DeserializeCosmosDBLinkedService(JsonEleme } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } if (property0.NameEquals("credential"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CosmosDBLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CosmosDBLinkedService.cs index f0a3bb51dfac..497f6b59e9b3 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CosmosDBLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CosmosDBLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Microsoft Azure Cosmos Database (CosmosDB) linked service. - public partial class CosmosDBLinkedService : DataFactoryLinkedServiceDefinition + public partial class CosmosDBLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of CosmosDBLinkedService. public CosmosDBLinkedService() @@ -39,7 +39,7 @@ public CosmosDBLinkedService() /// The connection mode used to access CosmosDB account. Type: string. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. /// The credential reference containing authentication information. - internal CosmosDBLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryElement accountEndpoint, DataFactoryElement database, DataFactorySecretBaseDefinition accountKey, DataFactoryElement servicePrincipalId, DataFactoryElement servicePrincipalCredentialType, DataFactorySecretBaseDefinition servicePrincipalCredential, DataFactoryElement tenant, DataFactoryElement azureCloudType, CosmosDBConnectionMode? connectionMode, BinaryData encryptedCredential, DataFactoryCredentialReference credential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal CosmosDBLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryElement accountEndpoint, DataFactoryElement database, DataFactorySecretBaseDefinition accountKey, DataFactoryElement servicePrincipalId, DataFactoryElement servicePrincipalCredentialType, DataFactorySecretBaseDefinition servicePrincipalCredential, DataFactoryElement tenant, DataFactoryElement azureCloudType, CosmosDBConnectionMode? connectionMode, string encryptedCredential, DataFactoryCredentialReference credential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; AccountEndpoint = accountEndpoint; @@ -76,37 +76,8 @@ internal CosmosDBLinkedService(string linkedServiceType, IntegrationRuntimeRefer public DataFactoryElement AzureCloudType { get; set; } /// The connection mode used to access CosmosDB account. Type: string. public CosmosDBConnectionMode? ConnectionMode { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } /// The credential reference containing authentication information. public DataFactoryCredentialReference Credential { get; set; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CosmosDBMongoDBApiCollectionDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CosmosDBMongoDBApiCollectionDataset.cs index 65f583b9ea6a..6915be0fd347 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CosmosDBMongoDBApiCollectionDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CosmosDBMongoDBApiCollectionDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The CosmosDB (MongoDB API) database dataset. - public partial class CosmosDBMongoDBApiCollectionDataset : DataFactoryDatasetDefinition + public partial class CosmosDBMongoDBApiCollectionDataset : DataFactoryDatasetProperties { /// Initializes a new instance of CosmosDBMongoDBApiCollectionDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CosmosDBMongoDBApiLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CosmosDBMongoDBApiLinkedService.cs index b0265bb749a2..bf0c44c0b9c1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CosmosDBMongoDBApiLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CosmosDBMongoDBApiLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for CosmosDB (MongoDB API) data source. - public partial class CosmosDBMongoDBApiLinkedService : DataFactoryLinkedServiceDefinition + public partial class CosmosDBMongoDBApiLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of CosmosDBMongoDBApiLinkedService. /// The CosmosDB (MongoDB API) connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CosmosDBSqlApiCollectionDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CosmosDBSqlApiCollectionDataset.cs index ae6143855484..05d273f48fef 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CosmosDBSqlApiCollectionDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CosmosDBSqlApiCollectionDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Microsoft Azure CosmosDB (SQL API) Collection dataset. - public partial class CosmosDBSqlApiCollectionDataset : DataFactoryDatasetDefinition + public partial class CosmosDBSqlApiCollectionDataset : DataFactoryDatasetProperties { /// Initializes a new instance of CosmosDBSqlApiCollectionDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CouchbaseLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CouchbaseLinkedService.Serialization.cs index 262fed0712c6..738868f2e37b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CouchbaseLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CouchbaseLinkedService.Serialization.cs @@ -75,11 +75,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -107,7 +103,7 @@ internal static CouchbaseLinkedService DeserializeCouchbaseLinkedService(JsonEle Optional> annotations = default; Optional> connectionString = default; Optional credString = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -195,11 +191,7 @@ internal static CouchbaseLinkedService DeserializeCouchbaseLinkedService(JsonEle } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CouchbaseLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CouchbaseLinkedService.cs index e89882d255c3..96cb6d8e8c84 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CouchbaseLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CouchbaseLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Couchbase server linked service. - public partial class CouchbaseLinkedService : DataFactoryLinkedServiceDefinition + public partial class CouchbaseLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of CouchbaseLinkedService. public CouchbaseLinkedService() @@ -30,7 +30,7 @@ public CouchbaseLinkedService() /// An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. /// The Azure key vault secret reference of credString in connection string. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal CouchbaseLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference credString, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal CouchbaseLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference credString, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; CredString = credString; @@ -42,36 +42,7 @@ internal CouchbaseLinkedService(string linkedServiceType, IntegrationRuntimeRefe public DataFactoryElement ConnectionString { get; set; } /// The Azure key vault secret reference of credString in connection string. public DataFactoryKeyVaultSecretReference CredString { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CouchbaseTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CouchbaseTableDataset.cs index 62bc27797b15..a36cf6b230ca 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CouchbaseTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CouchbaseTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Couchbase server dataset. - public partial class CouchbaseTableDataset : DataFactoryDatasetDefinition + public partial class CouchbaseTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of CouchbaseTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CustomActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CustomActivity.Serialization.cs index 3361d43ad4d8..bede938a2569 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CustomActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CustomActivity.Serialization.cs @@ -140,14 +140,14 @@ internal static CustomActivity DeserializeCustomActivity(JsonElement element) return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; DataFactoryElement command = default; Optional resourceLinkedService = default; Optional> folderPath = default; @@ -174,7 +174,7 @@ internal static CustomActivity DeserializeCustomActivity(JsonElement element) { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -198,7 +198,7 @@ internal static CustomActivity DeserializeCustomActivity(JsonElement element) { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -207,7 +207,7 @@ internal static CustomActivity DeserializeCustomActivity(JsonElement element) { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -216,10 +216,10 @@ internal static CustomActivity DeserializeCustomActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -230,10 +230,10 @@ internal static CustomActivity DeserializeCustomActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CustomActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CustomActivity.cs index 8effd07be0fc..b0d43f885a49 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CustomActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CustomActivity.cs @@ -47,7 +47,7 @@ public CustomActivity(string name, DataFactoryElement command) : base(na /// User defined property bag. There is no restriction on the keys or values that can be used. The user specified custom activity has the full responsibility to consume and interpret the content defined. /// The retention time for the files submitted for custom activity. Type: double (or Expression with resultType double). /// Elevation level and scope for the user, default is nonadmin task. Type: string (or Expression with resultType double). - internal CustomActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, DataFactoryElement command, DataFactoryLinkedServiceReference resourceLinkedService, DataFactoryElement folderPath, CustomActivityReferenceObject referenceObjects, IDictionary extendedProperties, BinaryData retentionTimeInDays, DataFactoryElement autoUserSpecification) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal CustomActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, DataFactoryElement command, DataFactoryLinkedServiceReference resourceLinkedService, DataFactoryElement folderPath, CustomActivityReferenceObject referenceObjects, IDictionary extendedProperties, BinaryData retentionTimeInDays, DataFactoryElement autoUserSpecification) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { Command = command; ResourceLinkedService = resourceLinkedService; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CustomDataSourceLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CustomDataSourceLinkedService.cs index fa8ffbd084c2..d6ae42df165a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CustomDataSourceLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CustomDataSourceLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Custom linked service. - public partial class CustomDataSourceLinkedService : DataFactoryLinkedServiceDefinition + public partial class CustomDataSourceLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of CustomDataSourceLinkedService. /// Custom linked service properties. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CustomDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CustomDataset.cs index 48ea83f288d5..e333b2aa9abb 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CustomDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CustomDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The custom dataset. - public partial class CustomDataset : DataFactoryDatasetDefinition + public partial class CustomDataset : DataFactoryDatasetProperties { /// Initializes a new instance of CustomDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryChangeDataCaptureData.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryChangeDataCaptureData.Serialization.cs new file mode 100644 index 000000000000..c36affa23cb6 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryChangeDataCaptureData.Serialization.cs @@ -0,0 +1,200 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; +using Azure.ResourceManager.DataFactory.Models; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.DataFactory +{ + public partial class DataFactoryChangeDataCaptureData : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(Folder)) + { + writer.WritePropertyName("folder"u8); + writer.WriteObjectValue(Folder); + } + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + writer.WritePropertyName("sourceConnectionsInfo"u8); + writer.WriteStartArray(); + foreach (var item in SourceConnectionsInfo) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + writer.WritePropertyName("targetConnectionsInfo"u8); + writer.WriteStartArray(); + foreach (var item in TargetConnectionsInfo) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + writer.WritePropertyName("policy"u8); + writer.WriteObjectValue(Policy); + if (Optional.IsDefined(AllowVnetOverride)) + { + writer.WritePropertyName("allowVNetOverride"u8); + writer.WriteBooleanValue(AllowVnetOverride.Value); + } + if (Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status); + } + writer.WriteEndObject(); + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(item.Value.ToString()).RootElement); +#endif + } + writer.WriteEndObject(); + } + + internal static DataFactoryChangeDataCaptureData DeserializeDataFactoryChangeDataCaptureData(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional etag = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type = default; + Optional systemData = default; + Optional folder = default; + Optional description = default; + IList sourceConnectionsInfo = default; + IList targetConnectionsInfo = default; + MapperPolicy policy = default; + Optional allowVnetOverride = default; + Optional status = default; + IDictionary additionalProperties = default; + Dictionary additionalPropertiesDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("etag"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + etag = new ETag(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("folder"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + folder = ChangeDataCaptureFolder.DeserializeChangeDataCaptureFolder(property0.Value); + continue; + } + if (property0.NameEquals("description"u8)) + { + description = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("sourceConnectionsInfo"u8)) + { + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(MapperSourceConnectionsInfo.DeserializeMapperSourceConnectionsInfo(item)); + } + sourceConnectionsInfo = array; + continue; + } + if (property0.NameEquals("targetConnectionsInfo"u8)) + { + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(MapperTargetConnectionsInfo.DeserializeMapperTargetConnectionsInfo(item)); + } + targetConnectionsInfo = array; + continue; + } + if (property0.NameEquals("policy"u8)) + { + policy = MapperPolicy.DeserializeMapperPolicy(property0.Value); + continue; + } + if (property0.NameEquals("allowVNetOverride"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + allowVnetOverride = property0.Value.GetBoolean(); + continue; + } + if (property0.NameEquals("status"u8)) + { + status = property0.Value.GetString(); + continue; + } + } + continue; + } + additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + additionalProperties = additionalPropertiesDictionary; + return new DataFactoryChangeDataCaptureData(id, name, type, systemData.Value, folder.Value, description.Value, sourceConnectionsInfo, targetConnectionsInfo, policy, Optional.ToNullable(allowVnetOverride), status.Value, Optional.ToNullable(etag), additionalProperties); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CmkIdentityDefinition.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryCmkIdentity.Serialization.cs similarity index 81% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CmkIdentityDefinition.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryCmkIdentity.Serialization.cs index 7293a8321199..e88caccff552 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CmkIdentityDefinition.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryCmkIdentity.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - internal partial class CmkIdentityDefinition : IUtf8JsonSerializable + internal partial class DataFactoryCmkIdentity : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -23,7 +23,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static CmkIdentityDefinition DeserializeCmkIdentityDefinition(JsonElement element) + internal static DataFactoryCmkIdentity DeserializeDataFactoryCmkIdentity(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -38,7 +38,7 @@ internal static CmkIdentityDefinition DeserializeCmkIdentityDefinition(JsonEleme continue; } } - return new CmkIdentityDefinition(userAssignedIdentity.Value); + return new DataFactoryCmkIdentity(userAssignedIdentity.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CmkIdentityDefinition.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryCmkIdentity.cs similarity index 67% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CmkIdentityDefinition.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryCmkIdentity.cs index f27f76739379..6bc38f91446f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CmkIdentityDefinition.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryCmkIdentity.cs @@ -8,16 +8,16 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Managed Identity used for CMK. - internal partial class CmkIdentityDefinition + internal partial class DataFactoryCmkIdentity { - /// Initializes a new instance of CmkIdentityDefinition. - public CmkIdentityDefinition() + /// Initializes a new instance of DataFactoryCmkIdentity. + public DataFactoryCmkIdentity() { } - /// Initializes a new instance of CmkIdentityDefinition. + /// Initializes a new instance of DataFactoryCmkIdentity. /// The resource id of the user assigned identity to authenticate to customer's key vault. - internal CmkIdentityDefinition(string userAssignedIdentity) + internal DataFactoryCmkIdentity(string userAssignedIdentity) { UserAssignedIdentity = userAssignedIdentity; } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Credential.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryCredential.Serialization.cs similarity index 89% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Credential.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryCredential.Serialization.cs index 7319b7ed52c0..bace6a19570a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Credential.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryCredential.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class Credential : IUtf8JsonSerializable + public partial class DataFactoryCredential : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -53,7 +53,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static Credential DeserializeCredential(JsonElement element) + internal static DataFactoryCredential DeserializeDataFactoryCredential(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -64,7 +64,7 @@ internal static Credential DeserializeCredential(JsonElement element) switch (discriminator.GetString()) { case "ServicePrincipal": return ServicePrincipalCredential.DeserializeServicePrincipalCredential(element); - case "ManagedIdentity": return DataFactoryManagedIdentityCredentialDefinition.DeserializeDataFactoryManagedIdentityCredentialDefinition(element); + case "ManagedIdentity": return DataFactoryManagedIdentityCredentialProperties.DeserializeDataFactoryManagedIdentityCredentialProperties(element); } } return UnknownCredential.DeserializeUnknownCredential(element); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Credential.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryCredential.cs similarity index 85% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Credential.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryCredential.cs index e7406fbab915..d9a7ae171569 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Credential.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryCredential.cs @@ -13,24 +13,24 @@ namespace Azure.ResourceManager.DataFactory.Models { /// /// The Azure Data Factory nested object which contains the information and credential which can be used to connect with related store or compute resource. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . /// - public partial class Credential + public partial class DataFactoryCredential { - /// Initializes a new instance of Credential. - public Credential() + /// Initializes a new instance of DataFactoryCredential. + public DataFactoryCredential() { Annotations = new ChangeTrackingList(); AdditionalProperties = new ChangeTrackingDictionary(); } - /// Initializes a new instance of Credential. + /// Initializes a new instance of DataFactoryCredential. /// Type of credential. /// Credential description. /// List of tags that can be used for describing the Credential. /// Additional Properties. - internal Credential(string credentialType, string description, IList annotations, IDictionary additionalProperties) + internal DataFactoryCredential(string credentialType, string description, IList annotations, IDictionary additionalProperties) { CredentialType = credentialType; Description = description; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CredentialListResponse.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryCredentialListResult.Serialization.cs similarity index 84% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CredentialListResponse.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryCredentialListResult.Serialization.cs index 0071e772ea85..c5dd0f7ff307 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CredentialListResponse.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryCredentialListResult.Serialization.cs @@ -12,9 +12,9 @@ namespace Azure.ResourceManager.DataFactory.Models { - internal partial class CredentialListResponse + internal partial class DataFactoryCredentialListResult { - internal static CredentialListResponse DeserializeCredentialListResponse(JsonElement element) + internal static DataFactoryCredentialListResult DeserializeDataFactoryCredentialListResult(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -40,7 +40,7 @@ internal static CredentialListResponse DeserializeCredentialListResponse(JsonEle continue; } } - return new CredentialListResponse(value, nextLink.Value); + return new DataFactoryCredentialListResult(value, nextLink.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CredentialListResponse.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryCredentialListResult.cs similarity index 71% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CredentialListResponse.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryCredentialListResult.cs index 2cd9f617a293..2594df4c7b3d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/CredentialListResponse.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryCredentialListResult.cs @@ -14,22 +14,22 @@ namespace Azure.ResourceManager.DataFactory.Models { /// A list of credential resources. - internal partial class CredentialListResponse + internal partial class DataFactoryCredentialListResult { - /// Initializes a new instance of CredentialListResponse. + /// Initializes a new instance of DataFactoryCredentialListResult. /// List of credentials. /// is null. - internal CredentialListResponse(IEnumerable value) + internal DataFactoryCredentialListResult(IEnumerable value) { Argument.AssertNotNull(value, nameof(value)); Value = value.ToList(); } - /// Initializes a new instance of CredentialListResponse. + /// Initializes a new instance of DataFactoryCredentialListResult. /// List of credentials. /// The link to the next page of results, if any remaining results exist. - internal CredentialListResponse(IReadOnlyList value, string nextLink) + internal DataFactoryCredentialListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryData.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryData.Serialization.cs index ad81b2f5bf0e..2cc3a4f726dd 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryData.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryData.Serialization.cs @@ -104,7 +104,7 @@ internal static DataFactoryData DeserializeDataFactoryData(JsonElement element) Optional version = default; Optional purviewConfiguration = default; Optional repoConfiguration = default; - Optional> globalParameters = default; + Optional> globalParameters = default; Optional encryption = default; Optional publicNetworkAccess = default; IDictionary additionalProperties = default; @@ -225,10 +225,10 @@ internal static DataFactoryData DeserializeDataFactoryData(JsonElement element) { continue; } - Dictionary dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var property1 in property0.Value.EnumerateObject()) { - dictionary.Add(property1.Name, DataFactoryGlobalParameterSpecification.DeserializeDataFactoryGlobalParameterSpecification(property1.Value)); + dictionary.Add(property1.Name, DataFactoryGlobalParameterProperties.DeserializeDataFactoryGlobalParameterProperties(property1.Value)); } globalParameters = dictionary; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowData.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowData.Serialization.cs index 93ff9684ab38..3547b44ea31f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowData.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowData.Serialization.cs @@ -29,7 +29,7 @@ internal static DataFactoryDataFlowData DeserializeDataFactoryDataFlowData(JsonE { return null; } - DataFactoryDataFlowDefinition properties = default; + DataFactoryDataFlowProperties properties = default; Optional etag = default; ResourceIdentifier id = default; string name = default; @@ -39,7 +39,7 @@ internal static DataFactoryDataFlowData DeserializeDataFactoryDataFlowData(JsonE { if (property.NameEquals("properties"u8)) { - properties = DataFactoryDataFlowDefinition.DeserializeDataFactoryDataFlowDefinition(property.Value); + properties = DataFactoryDataFlowProperties.DeserializeDataFactoryDataFlowProperties(property.Value); continue; } if (property.NameEquals("etag"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowDebugInfo.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowDebugInfo.cs index 8c6e1b1fe171..0004856b4d11 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowDebugInfo.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowDebugInfo.cs @@ -16,11 +16,11 @@ public partial class DataFactoryDataFlowDebugInfo : DataFactoryDebugInfo /// Initializes a new instance of DataFactoryDataFlowDebugInfo. /// /// Data flow properties. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . /// /// is null. - public DataFactoryDataFlowDebugInfo(DataFactoryDataFlowDefinition properties) + public DataFactoryDataFlowDebugInfo(DataFactoryDataFlowProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); @@ -29,9 +29,9 @@ public DataFactoryDataFlowDebugInfo(DataFactoryDataFlowDefinition properties) /// /// Data flow properties. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . /// - public DataFactoryDataFlowDefinition Properties { get; } + public DataFactoryDataFlowProperties Properties { get; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowListResponse.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowListResult.Serialization.cs similarity index 84% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowListResponse.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowListResult.Serialization.cs index fe94f3b0dc5d..0945777e2a0d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowListResponse.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowListResult.Serialization.cs @@ -12,9 +12,9 @@ namespace Azure.ResourceManager.DataFactory.Models { - internal partial class DataFlowListResponse + internal partial class DataFactoryDataFlowListResult { - internal static DataFlowListResponse DeserializeDataFlowListResponse(JsonElement element) + internal static DataFactoryDataFlowListResult DeserializeDataFactoryDataFlowListResult(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -40,7 +40,7 @@ internal static DataFlowListResponse DeserializeDataFlowListResponse(JsonElement continue; } } - return new DataFlowListResponse(value, nextLink.Value); + return new DataFactoryDataFlowListResult(value, nextLink.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowListResponse.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowListResult.cs similarity index 72% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowListResponse.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowListResult.cs index be3060cc2605..4dc63d39fe03 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowListResponse.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowListResult.cs @@ -14,22 +14,22 @@ namespace Azure.ResourceManager.DataFactory.Models { /// A list of data flow resources. - internal partial class DataFlowListResponse + internal partial class DataFactoryDataFlowListResult { - /// Initializes a new instance of DataFlowListResponse. + /// Initializes a new instance of DataFactoryDataFlowListResult. /// List of data flows. /// is null. - internal DataFlowListResponse(IEnumerable value) + internal DataFactoryDataFlowListResult(IEnumerable value) { Argument.AssertNotNull(value, nameof(value)); Value = value.ToList(); } - /// Initializes a new instance of DataFlowListResponse. + /// Initializes a new instance of DataFactoryDataFlowListResult. /// List of data flows. /// The link to the next page of results, if any remaining results exist. - internal DataFlowListResponse(IReadOnlyList value, string nextLink) + internal DataFactoryDataFlowListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowDefinition.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowProperties.Serialization.cs similarity index 81% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowDefinition.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowProperties.Serialization.cs index 19dda8606452..3e2a1354fb08 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowDefinition.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowProperties.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class DataFactoryDataFlowDefinition : IUtf8JsonSerializable + public partial class DataFactoryDataFlowProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -49,7 +49,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static DataFactoryDataFlowDefinition DeserializeDataFactoryDataFlowDefinition(JsonElement element) + internal static DataFactoryDataFlowProperties DeserializeDataFactoryDataFlowProperties(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -59,9 +59,9 @@ internal static DataFactoryDataFlowDefinition DeserializeDataFactoryDataFlowDefi { switch (discriminator.GetString()) { - case "Flowlet": return DataFactoryFlowletDefinition.DeserializeDataFactoryFlowletDefinition(element); - case "MappingDataFlow": return DataFactoryMappingDataFlowDefinition.DeserializeDataFactoryMappingDataFlowDefinition(element); - case "WranglingDataFlow": return DataFactoryWranglingDataFlowDefinition.DeserializeDataFactoryWranglingDataFlowDefinition(element); + case "Flowlet": return DataFactoryFlowletProperties.DeserializeDataFactoryFlowletProperties(element); + case "MappingDataFlow": return DataFactoryMappingDataFlowProperties.DeserializeDataFactoryMappingDataFlowProperties(element); + case "WranglingDataFlow": return DataFactoryWranglingDataFlowProperties.DeserializeDataFactoryWranglingDataFlowProperties(element); } } return UnknownDataFlow.DeserializeUnknownDataFlow(element); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowDefinition.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowProperties.cs similarity index 89% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowDefinition.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowProperties.cs index 95a11bfae9e1..8700c2c4e8cb 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowDefinition.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataFlowProperties.cs @@ -13,23 +13,23 @@ namespace Azure.ResourceManager.DataFactory.Models { /// /// Azure Data Factory nested object which contains a flow with data movements and transformations. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . /// - public abstract partial class DataFactoryDataFlowDefinition + public abstract partial class DataFactoryDataFlowProperties { - /// Initializes a new instance of DataFactoryDataFlowDefinition. - protected DataFactoryDataFlowDefinition() + /// Initializes a new instance of DataFactoryDataFlowProperties. + protected DataFactoryDataFlowProperties() { Annotations = new ChangeTrackingList(); } - /// Initializes a new instance of DataFactoryDataFlowDefinition. + /// Initializes a new instance of DataFactoryDataFlowProperties. /// Type of data flow. /// The description of the data flow. /// List of tags that can be used for describing the data flow. /// The folder that this data flow is in. If not specified, Data flow will appear at the root level. - internal DataFactoryDataFlowDefinition(string dataFlowType, string description, IList annotations, DataFlowFolder folder) + internal DataFactoryDataFlowProperties(string dataFlowType, string description, IList annotations, DataFlowFolder folder) { DataFlowType = dataFlowType; Description = description; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataPlaneUserAccessPolicy.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataPlaneUserAccessPolicy.Serialization.cs index 218f78072789..dd873d1b68be 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataPlaneUserAccessPolicy.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataPlaneUserAccessPolicy.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Text.Json; using Azure.Core; @@ -30,15 +31,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("profileName"u8); writer.WriteStringValue(ProfileName); } - if (Optional.IsDefined(StartTime)) + if (Optional.IsDefined(StartOn)) { writer.WritePropertyName("startTime"u8); - writer.WriteStringValue(StartTime); + writer.WriteStringValue(StartOn.Value, "O"); } - if (Optional.IsDefined(ExpireTime)) + if (Optional.IsDefined(ExpireOn)) { writer.WritePropertyName("expireTime"u8); - writer.WriteStringValue(ExpireTime); + writer.WriteStringValue(ExpireOn.Value, "O"); } writer.WriteEndObject(); } @@ -52,8 +53,8 @@ internal static DataFactoryDataPlaneUserAccessPolicy DeserializeDataFactoryDataP Optional permissions = default; Optional accessResourcePath = default; Optional profileName = default; - Optional startTime = default; - Optional expireTime = default; + Optional startTime = default; + Optional expireTime = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("permissions"u8)) @@ -73,16 +74,24 @@ internal static DataFactoryDataPlaneUserAccessPolicy DeserializeDataFactoryDataP } if (property.NameEquals("startTime"u8)) { - startTime = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + startTime = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("expireTime"u8)) { - expireTime = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + expireTime = property.Value.GetDateTimeOffset("O"); continue; } } - return new DataFactoryDataPlaneUserAccessPolicy(permissions.Value, accessResourcePath.Value, profileName.Value, startTime.Value, expireTime.Value); + return new DataFactoryDataPlaneUserAccessPolicy(permissions.Value, accessResourcePath.Value, profileName.Value, Optional.ToNullable(startTime), Optional.ToNullable(expireTime)); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataPlaneUserAccessPolicy.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataPlaneUserAccessPolicy.cs index 7680fca5ac79..1268ef7cf4c3 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataPlaneUserAccessPolicy.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDataPlaneUserAccessPolicy.cs @@ -5,6 +5,8 @@ #nullable disable +using System; + namespace Azure.ResourceManager.DataFactory.Models { /// Get Data Plane read only token request definition. @@ -19,15 +21,15 @@ public DataFactoryDataPlaneUserAccessPolicy() /// The string with permissions for Data Plane access. Currently only 'r' is supported which grants read only access. /// The resource path to get access relative to factory. Currently only empty string is supported which corresponds to the factory resource. /// The name of the profile. Currently only the default is supported. The default value is DefaultProfile. - /// Start time for the token. If not specified the current time will be used. - /// Expiration time for the token. Maximum duration for the token is eight hours and by default the token will expire in eight hours. - internal DataFactoryDataPlaneUserAccessPolicy(string permissions, string accessResourcePath, string profileName, string startTime, string expireTime) + /// Start time for the token. If not specified the current time will be used. + /// Expiration time for the token. Maximum duration for the token is eight hours and by default the token will expire in eight hours. + internal DataFactoryDataPlaneUserAccessPolicy(string permissions, string accessResourcePath, string profileName, DateTimeOffset? startOn, DateTimeOffset? expireOn) { Permissions = permissions; AccessResourcePath = accessResourcePath; ProfileName = profileName; - StartTime = startTime; - ExpireTime = expireTime; + StartOn = startOn; + ExpireOn = expireOn; } /// The string with permissions for Data Plane access. Currently only 'r' is supported which grants read only access. @@ -37,8 +39,8 @@ internal DataFactoryDataPlaneUserAccessPolicy(string permissions, string accessR /// The name of the profile. Currently only the default is supported. The default value is DefaultProfile. public string ProfileName { get; set; } /// Start time for the token. If not specified the current time will be used. - public string StartTime { get; set; } + public DateTimeOffset? StartOn { get; set; } /// Expiration time for the token. Maximum duration for the token is eight hours and by default the token will expire in eight hours. - public string ExpireTime { get; set; } + public DateTimeOffset? ExpireOn { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetData.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetData.Serialization.cs index 27ad5ff2bdc6..f49c1dde3afa 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetData.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetData.Serialization.cs @@ -29,7 +29,7 @@ internal static DataFactoryDatasetData DeserializeDataFactoryDatasetData(JsonEle { return null; } - DataFactoryDatasetDefinition properties = default; + DataFactoryDatasetProperties properties = default; Optional etag = default; ResourceIdentifier id = default; string name = default; @@ -39,7 +39,7 @@ internal static DataFactoryDatasetData DeserializeDataFactoryDatasetData(JsonEle { if (property.NameEquals("properties"u8)) { - properties = DataFactoryDatasetDefinition.DeserializeDataFactoryDatasetDefinition(property.Value); + properties = DataFactoryDatasetProperties.DeserializeDataFactoryDatasetProperties(property.Value); continue; } if (property.NameEquals("etag"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetDebugInfo.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetDebugInfo.cs index e7f64a1e7545..b043694019d7 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetDebugInfo.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetDebugInfo.cs @@ -16,11 +16,11 @@ public partial class DataFactoryDatasetDebugInfo : DataFactoryDebugInfo /// Initializes a new instance of DataFactoryDatasetDebugInfo. /// /// Dataset properties. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// /// is null. - public DataFactoryDatasetDebugInfo(DataFactoryDatasetDefinition properties) + public DataFactoryDatasetDebugInfo(DataFactoryDatasetProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); @@ -29,9 +29,9 @@ public DataFactoryDatasetDebugInfo(DataFactoryDatasetDefinition properties) /// /// Dataset properties. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// - public DataFactoryDatasetDefinition Properties { get; } + public DataFactoryDatasetProperties Properties { get; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatasetListResponse.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetListResult.Serialization.cs similarity index 84% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatasetListResponse.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetListResult.Serialization.cs index eea5dbf6f608..1928ecabe8cf 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatasetListResponse.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetListResult.Serialization.cs @@ -12,9 +12,9 @@ namespace Azure.ResourceManager.DataFactory.Models { - internal partial class DatasetListResponse + internal partial class DataFactoryDatasetListResult { - internal static DatasetListResponse DeserializeDatasetListResponse(JsonElement element) + internal static DataFactoryDatasetListResult DeserializeDataFactoryDatasetListResult(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -40,7 +40,7 @@ internal static DatasetListResponse DeserializeDatasetListResponse(JsonElement e continue; } } - return new DatasetListResponse(value, nextLink.Value); + return new DataFactoryDatasetListResult(value, nextLink.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatasetListResponse.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetListResult.cs similarity index 72% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatasetListResponse.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetListResult.cs index 190c5f053bbe..3a71749641b1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatasetListResponse.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetListResult.cs @@ -14,22 +14,22 @@ namespace Azure.ResourceManager.DataFactory.Models { /// A list of dataset resources. - internal partial class DatasetListResponse + internal partial class DataFactoryDatasetListResult { - /// Initializes a new instance of DatasetListResponse. + /// Initializes a new instance of DataFactoryDatasetListResult. /// List of datasets. /// is null. - internal DatasetListResponse(IEnumerable value) + internal DataFactoryDatasetListResult(IEnumerable value) { Argument.AssertNotNull(value, nameof(value)); Value = value.ToList(); } - /// Initializes a new instance of DatasetListResponse. + /// Initializes a new instance of DataFactoryDatasetListResult. /// List of datasets. /// The link to the next page of results, if any remaining results exist. - internal DatasetListResponse(IReadOnlyList value, string nextLink) + internal DataFactoryDatasetListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetDefinition.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetProperties.Serialization.cs similarity index 98% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetDefinition.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetProperties.Serialization.cs index 267ab7df25f9..687d328b99d5 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetDefinition.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetProperties.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class DataFactoryDatasetDefinition : IUtf8JsonSerializable + public partial class DataFactoryDatasetProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -80,7 +80,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static DataFactoryDatasetDefinition DeserializeDataFactoryDatasetDefinition(JsonElement element) + internal static DataFactoryDatasetProperties DeserializeDataFactoryDatasetProperties(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -165,7 +165,7 @@ internal static DataFactoryDatasetDefinition DeserializeDataFactoryDatasetDefini case "SalesforceMarketingCloudObject": return SalesforceMarketingCloudObjectDataset.DeserializeSalesforceMarketingCloudObjectDataset(element); case "SalesforceObject": return SalesforceObjectDataset.DeserializeSalesforceObjectDataset(element); case "SalesforceServiceCloudObject": return SalesforceServiceCloudObjectDataset.DeserializeSalesforceServiceCloudObjectDataset(element); - case "SapBwCube": return SapBwCubeDataset.DeserializeSapBwCubeDataset(element); + case "SapBwCube": return SapBWCubeDataset.DeserializeSapBWCubeDataset(element); case "SapCloudForCustomerResource": return SapCloudForCustomerResourceDataset.DeserializeSapCloudForCustomerResourceDataset(element); case "SapEccResource": return SapEccResourceDataset.DeserializeSapEccResourceDataset(element); case "SapHanaTable": return SapHanaTableDataset.DeserializeSapHanaTableDataset(element); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetDefinition.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetProperties.cs similarity index 96% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetDefinition.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetProperties.cs index 3c800ad4b44c..283a06201fd1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetDefinition.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryDatasetProperties.cs @@ -14,15 +14,15 @@ namespace Azure.ResourceManager.DataFactory.Models { /// /// The Azure Data Factory nested object which identifies data within different data stores, such as tables, files, folders, and documents. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// - public partial class DataFactoryDatasetDefinition + public partial class DataFactoryDatasetProperties { - /// Initializes a new instance of DataFactoryDatasetDefinition. + /// Initializes a new instance of DataFactoryDatasetProperties. /// Linked service reference. /// is null. - public DataFactoryDatasetDefinition(DataFactoryLinkedServiceReference linkedServiceName) + public DataFactoryDatasetProperties(DataFactoryLinkedServiceReference linkedServiceName) { Argument.AssertNotNull(linkedServiceName, nameof(linkedServiceName)); @@ -32,7 +32,7 @@ public DataFactoryDatasetDefinition(DataFactoryLinkedServiceReference linkedServ AdditionalProperties = new ChangeTrackingDictionary(); } - /// Initializes a new instance of DataFactoryDatasetDefinition. + /// Initializes a new instance of DataFactoryDatasetProperties. /// Type of dataset. /// Dataset description. /// Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. @@ -42,7 +42,7 @@ public DataFactoryDatasetDefinition(DataFactoryLinkedServiceReference linkedServ /// List of tags that can be used for describing the Dataset. /// The folder that this Dataset is in. If not specified, Dataset will appear at the root level. /// Additional Properties. - internal DataFactoryDatasetDefinition(string datasetType, string description, DataFactoryElement> structure, DataFactoryElement> schema, DataFactoryLinkedServiceReference linkedServiceName, IDictionary parameters, IList annotations, DatasetFolder folder, IDictionary additionalProperties) + internal DataFactoryDatasetProperties(string datasetType, string description, DataFactoryElement> structure, DataFactoryElement> schema, DataFactoryLinkedServiceReference linkedServiceName, IDictionary parameters, IList annotations, DatasetFolder folder, IDictionary additionalProperties) { DatasetType = datasetType; Description = description; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryEncryptionConfiguration.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryEncryptionConfiguration.Serialization.cs index 2e03114fffd8..45295130413b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryEncryptionConfiguration.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryEncryptionConfiguration.Serialization.cs @@ -42,7 +42,7 @@ internal static DataFactoryEncryptionConfiguration DeserializeDataFactoryEncrypt string keyName = default; Uri vaultBaseUrl = default; Optional keyVersion = default; - Optional identity = default; + Optional identity = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("keyName"u8)) @@ -66,7 +66,7 @@ internal static DataFactoryEncryptionConfiguration DeserializeDataFactoryEncrypt { continue; } - identity = CmkIdentityDefinition.DeserializeCmkIdentityDefinition(property.Value); + identity = DataFactoryCmkIdentity.DeserializeDataFactoryCmkIdentity(property.Value); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryEncryptionConfiguration.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryEncryptionConfiguration.cs index a4ef6705330c..de59999db760 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryEncryptionConfiguration.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryEncryptionConfiguration.cs @@ -31,7 +31,7 @@ public DataFactoryEncryptionConfiguration(string keyName, Uri vaultBaseUri) /// The url of the Azure Key Vault used for CMK. /// The version of the key used for CMK. If not provided, latest version will be used. /// User assigned identity to use to authenticate to customer's key vault. If not provided Managed Service Identity will be used. - internal DataFactoryEncryptionConfiguration(string keyName, Uri vaultBaseUri, string keyVersion, CmkIdentityDefinition identity) + internal DataFactoryEncryptionConfiguration(string keyName, Uri vaultBaseUri, string keyVersion, DataFactoryCmkIdentity identity) { KeyName = keyName; VaultBaseUri = vaultBaseUri; @@ -46,7 +46,7 @@ internal DataFactoryEncryptionConfiguration(string keyName, Uri vaultBaseUri, st /// The version of the key used for CMK. If not provided, latest version will be used. public string KeyVersion { get; set; } /// User assigned identity to use to authenticate to customer's key vault. If not provided Managed Service Identity will be used. - internal CmkIdentityDefinition Identity { get; set; } + internal DataFactoryCmkIdentity Identity { get; set; } /// The resource id of the user assigned identity to authenticate to customer's key vault. public string UserAssignedIdentity { @@ -54,7 +54,7 @@ public string UserAssignedIdentity set { if (Identity is null) - Identity = new CmkIdentityDefinition(); + Identity = new DataFactoryCmkIdentity(); Identity.UserAssignedIdentity = value; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryExpressionDefinition.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryExpression.Serialization.cs similarity index 82% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryExpressionDefinition.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryExpression.Serialization.cs index b693821db954..757b54b8b653 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryExpressionDefinition.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryExpression.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class DataFactoryExpressionDefinition : IUtf8JsonSerializable + public partial class DataFactoryExpression : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -22,7 +22,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static DataFactoryExpressionDefinition DeserializeDataFactoryExpressionDefinition(JsonElement element) + internal static DataFactoryExpression DeserializeDataFactoryExpression(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -43,7 +43,7 @@ internal static DataFactoryExpressionDefinition DeserializeDataFactoryExpression continue; } } - return new DataFactoryExpressionDefinition(type, value); + return new DataFactoryExpression(type, value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryExpressionDefinition.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryExpression.cs similarity index 83% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryExpressionDefinition.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryExpression.cs index 71f41b958633..26764808f209 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryExpressionDefinition.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryExpression.cs @@ -11,13 +11,13 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Azure Data Factory expression definition. - public partial class DataFactoryExpressionDefinition + public partial class DataFactoryExpression { - /// Initializes a new instance of DataFactoryExpressionDefinition. + /// Initializes a new instance of DataFactoryExpression. /// Expression type. /// Expression value. /// is null. - public DataFactoryExpressionDefinition(DataFactoryExpressionType expressionType, string value) + public DataFactoryExpression(DataFactoryExpressionType expressionType, string value) { Argument.AssertNotNull(value, nameof(value)); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryFlowletDefinition.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryFlowletProperties.Serialization.cs similarity index 97% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryFlowletDefinition.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryFlowletProperties.Serialization.cs index a31771fe15ee..eafd75980d1f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryFlowletDefinition.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryFlowletProperties.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class DataFactoryFlowletDefinition : IUtf8JsonSerializable + public partial class DataFactoryFlowletProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -99,7 +99,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static DataFactoryFlowletDefinition DeserializeDataFactoryFlowletDefinition(JsonElement element) + internal static DataFactoryFlowletProperties DeserializeDataFactoryFlowletProperties(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -230,7 +230,7 @@ internal static DataFactoryFlowletDefinition DeserializeDataFactoryFlowletDefini continue; } } - return new DataFactoryFlowletDefinition(type, description.Value, Optional.ToList(annotations), folder.Value, Optional.ToList(sources), Optional.ToList(sinks), Optional.ToList(transformations), script.Value, Optional.ToList(scriptLines)); + return new DataFactoryFlowletProperties(type, description.Value, Optional.ToList(annotations), folder.Value, Optional.ToList(sources), Optional.ToList(sinks), Optional.ToList(transformations), script.Value, Optional.ToList(scriptLines)); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryFlowletDefinition.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryFlowletProperties.cs similarity index 91% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryFlowletDefinition.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryFlowletProperties.cs index 8e355b3554c1..8a6e94e4be46 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryFlowletDefinition.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryFlowletProperties.cs @@ -12,10 +12,10 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Data flow flowlet. - public partial class DataFactoryFlowletDefinition : DataFactoryDataFlowDefinition + public partial class DataFactoryFlowletProperties : DataFactoryDataFlowProperties { - /// Initializes a new instance of DataFactoryFlowletDefinition. - public DataFactoryFlowletDefinition() + /// Initializes a new instance of DataFactoryFlowletProperties. + public DataFactoryFlowletProperties() { Sources = new ChangeTrackingList(); Sinks = new ChangeTrackingList(); @@ -24,7 +24,7 @@ public DataFactoryFlowletDefinition() DataFlowType = "Flowlet"; } - /// Initializes a new instance of DataFactoryFlowletDefinition. + /// Initializes a new instance of DataFactoryFlowletProperties. /// Type of data flow. /// The description of the data flow. /// List of tags that can be used for describing the data flow. @@ -34,7 +34,7 @@ public DataFactoryFlowletDefinition() /// List of transformations in Flowlet. /// Flowlet script. /// Flowlet script lines. - internal DataFactoryFlowletDefinition(string dataFlowType, string description, IList annotations, DataFlowFolder folder, IList sources, IList sinks, IList transformations, string script, IList scriptLines) : base(dataFlowType, description, annotations, folder) + internal DataFactoryFlowletProperties(string dataFlowType, string description, IList annotations, DataFlowFolder folder, IList sources, IList sinks, IList transformations, string script, IList scriptLines) : base(dataFlowType, description, annotations, folder) { Sources = sources; Sinks = sinks; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterData.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterData.Serialization.cs index 81d2656d967e..0940aa3a8ffa 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterData.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterData.Serialization.cs @@ -36,7 +36,7 @@ internal static DataFactoryGlobalParameterData DeserializeDataFactoryGlobalParam { return null; } - IDictionary properties = default; + IDictionary properties = default; Optional etag = default; ResourceIdentifier id = default; string name = default; @@ -46,10 +46,10 @@ internal static DataFactoryGlobalParameterData DeserializeDataFactoryGlobalParam { if (property.NameEquals("properties"u8)) { - Dictionary dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { - dictionary.Add(property0.Name, DataFactoryGlobalParameterSpecification.DeserializeDataFactoryGlobalParameterSpecification(property0.Value)); + dictionary.Add(property0.Name, DataFactoryGlobalParameterProperties.DeserializeDataFactoryGlobalParameterProperties(property0.Value)); } properties = dictionary; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GlobalParameterListResponse.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterListResult.Serialization.cs similarity index 82% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GlobalParameterListResponse.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterListResult.Serialization.cs index 02f6ba063e9d..bc8821d40db5 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GlobalParameterListResponse.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterListResult.Serialization.cs @@ -12,9 +12,9 @@ namespace Azure.ResourceManager.DataFactory.Models { - internal partial class GlobalParameterListResponse + internal partial class DataFactoryGlobalParameterListResult { - internal static GlobalParameterListResponse DeserializeGlobalParameterListResponse(JsonElement element) + internal static DataFactoryGlobalParameterListResult DeserializeDataFactoryGlobalParameterListResult(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -40,7 +40,7 @@ internal static GlobalParameterListResponse DeserializeGlobalParameterListRespon continue; } } - return new GlobalParameterListResponse(value, nextLink.Value); + return new DataFactoryGlobalParameterListResult(value, nextLink.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GlobalParameterListResponse.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterListResult.cs similarity index 71% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GlobalParameterListResponse.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterListResult.cs index 99e431d7f1cc..e0a02332a249 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GlobalParameterListResponse.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterListResult.cs @@ -14,22 +14,22 @@ namespace Azure.ResourceManager.DataFactory.Models { /// A list of Global parameters. - internal partial class GlobalParameterListResponse + internal partial class DataFactoryGlobalParameterListResult { - /// Initializes a new instance of GlobalParameterListResponse. + /// Initializes a new instance of DataFactoryGlobalParameterListResult. /// List of global parameters. /// is null. - internal GlobalParameterListResponse(IEnumerable value) + internal DataFactoryGlobalParameterListResult(IEnumerable value) { Argument.AssertNotNull(value, nameof(value)); Value = value.ToList(); } - /// Initializes a new instance of GlobalParameterListResponse. + /// Initializes a new instance of DataFactoryGlobalParameterListResult. /// List of global parameters. /// The link to the next page of results, if any remaining results exist. - internal GlobalParameterListResponse(IReadOnlyList value, string nextLink) + internal DataFactoryGlobalParameterListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterSpecification.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterProperties.Serialization.cs similarity index 79% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterSpecification.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterProperties.Serialization.cs index 39ff62b7726d..f88e850b6eb2 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterSpecification.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterProperties.Serialization.cs @@ -11,13 +11,13 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class DataFactoryGlobalParameterSpecification : IUtf8JsonSerializable + public partial class DataFactoryGlobalParameterProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("type"u8); - writer.WriteStringValue(ParameterType.ToString()); + writer.WriteStringValue(GlobalParameterType.ToString()); writer.WritePropertyName("value"u8); #if NET6_0_OR_GREATER writer.WriteRawValue(Value); @@ -27,7 +27,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static DataFactoryGlobalParameterSpecification DeserializeDataFactoryGlobalParameterSpecification(JsonElement element) + internal static DataFactoryGlobalParameterProperties DeserializeDataFactoryGlobalParameterProperties(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -48,7 +48,7 @@ internal static DataFactoryGlobalParameterSpecification DeserializeDataFactoryGl continue; } } - return new DataFactoryGlobalParameterSpecification(type, value); + return new DataFactoryGlobalParameterProperties(type, value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterSpecification.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterProperties.cs similarity index 82% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterSpecification.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterProperties.cs index 2b5cffa8228f..32804acaaeaa 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterSpecification.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterProperties.cs @@ -11,22 +11,22 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Definition of a single parameter for an entity. - public partial class DataFactoryGlobalParameterSpecification + public partial class DataFactoryGlobalParameterProperties { - /// Initializes a new instance of DataFactoryGlobalParameterSpecification. - /// Global Parameter type. + /// Initializes a new instance of DataFactoryGlobalParameterProperties. + /// Global Parameter type. /// Value of parameter. /// is null. - public DataFactoryGlobalParameterSpecification(DataFactoryGlobalParameterType parameterType, BinaryData value) + public DataFactoryGlobalParameterProperties(DataFactoryGlobalParameterType globalParameterType, BinaryData value) { Argument.AssertNotNull(value, nameof(value)); - ParameterType = parameterType; + GlobalParameterType = globalParameterType; Value = value; } /// Global Parameter type. - public DataFactoryGlobalParameterType ParameterType { get; set; } + public DataFactoryGlobalParameterType GlobalParameterType { get; set; } /// /// Value of parameter. /// diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryHttpDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryHttpDataset.cs index 8e68ecf07e66..4123fec98a01 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryHttpDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryHttpDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// A file in an HTTP web server. - public partial class DataFactoryHttpDataset : DataFactoryDatasetDefinition + public partial class DataFactoryHttpDataset : DataFactoryDatasetProperties { /// Initializes a new instance of DataFactoryHttpDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeData.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeData.Serialization.cs index 5c052eae0b57..99d59c4e79ca 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeData.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeData.Serialization.cs @@ -29,7 +29,7 @@ internal static DataFactoryIntegrationRuntimeData DeserializeDataFactoryIntegrat { return null; } - DataFactoryIntegrationRuntimeDefinition properties = default; + DataFactoryIntegrationRuntimeProperties properties = default; Optional etag = default; ResourceIdentifier id = default; string name = default; @@ -39,7 +39,7 @@ internal static DataFactoryIntegrationRuntimeData DeserializeDataFactoryIntegrat { if (property.NameEquals("properties"u8)) { - properties = DataFactoryIntegrationRuntimeDefinition.DeserializeDataFactoryIntegrationRuntimeDefinition(property.Value); + properties = DataFactoryIntegrationRuntimeProperties.DeserializeDataFactoryIntegrationRuntimeProperties(property.Value); continue; } if (property.NameEquals("etag"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeDebugInfo.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeDebugInfo.cs index 651249ccd3bd..2ef7c9b771ab 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeDebugInfo.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeDebugInfo.cs @@ -16,11 +16,11 @@ public partial class DataFactoryIntegrationRuntimeDebugInfo : DataFactoryDebugIn /// Initializes a new instance of DataFactoryIntegrationRuntimeDebugInfo. /// /// Integration runtime properties. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// /// is null. - public DataFactoryIntegrationRuntimeDebugInfo(DataFactoryIntegrationRuntimeDefinition properties) + public DataFactoryIntegrationRuntimeDebugInfo(DataFactoryIntegrationRuntimeProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); @@ -29,9 +29,9 @@ public DataFactoryIntegrationRuntimeDebugInfo(DataFactoryIntegrationRuntimeDefin /// /// Integration runtime properties. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - public DataFactoryIntegrationRuntimeDefinition Properties { get; } + public DataFactoryIntegrationRuntimeProperties Properties { get; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeListResponse.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeListResult.Serialization.cs similarity index 82% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeListResponse.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeListResult.Serialization.cs index fe6890d0b363..2c8462d3a1a0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeListResponse.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeListResult.Serialization.cs @@ -12,9 +12,9 @@ namespace Azure.ResourceManager.DataFactory.Models { - internal partial class IntegrationRuntimeListResponse + internal partial class DataFactoryIntegrationRuntimeListResult { - internal static IntegrationRuntimeListResponse DeserializeIntegrationRuntimeListResponse(JsonElement element) + internal static DataFactoryIntegrationRuntimeListResult DeserializeDataFactoryIntegrationRuntimeListResult(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -40,7 +40,7 @@ internal static IntegrationRuntimeListResponse DeserializeIntegrationRuntimeList continue; } } - return new IntegrationRuntimeListResponse(value, nextLink.Value); + return new DataFactoryIntegrationRuntimeListResult(value, nextLink.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeListResponse.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeListResult.cs similarity index 70% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeListResponse.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeListResult.cs index 190d8a8ebc10..6e316071bae2 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeListResponse.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeListResult.cs @@ -14,22 +14,22 @@ namespace Azure.ResourceManager.DataFactory.Models { /// A list of integration runtime resources. - internal partial class IntegrationRuntimeListResponse + internal partial class DataFactoryIntegrationRuntimeListResult { - /// Initializes a new instance of IntegrationRuntimeListResponse. + /// Initializes a new instance of DataFactoryIntegrationRuntimeListResult. /// List of integration runtimes. /// is null. - internal IntegrationRuntimeListResponse(IEnumerable value) + internal DataFactoryIntegrationRuntimeListResult(IEnumerable value) { Argument.AssertNotNull(value, nameof(value)); Value = value.ToList(); } - /// Initializes a new instance of IntegrationRuntimeListResponse. + /// Initializes a new instance of DataFactoryIntegrationRuntimeListResult. /// List of integration runtimes. /// The link to the next page of results, if any remaining results exist. - internal IntegrationRuntimeListResponse(IReadOnlyList value, string nextLink) + internal DataFactoryIntegrationRuntimeListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimePatch.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimePatch.cs index 7d6da11d88f5..3583005bcb7a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimePatch.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimePatch.cs @@ -18,7 +18,7 @@ public DataFactoryIntegrationRuntimePatch() } /// Enables or disables the auto-update feature of the self-hosted integration runtime. See https://go.microsoft.com/fwlink/?linkid=854189. - public IntegrationRuntimeAutoUpdate? AutoUpdate { get; set; } + public IntegrationRuntimeAutoUpdateState? AutoUpdate { get; set; } /// The time offset (in hours) in the day, e.g., PT03H is 3 hours. The integration runtime auto update will happen on that time. public TimeSpan? UpdateDelayOffset { get; set; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeDefinition.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeProperties.Serialization.cs similarity index 89% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeDefinition.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeProperties.Serialization.cs index fd2c0f8ec344..29870e3b6f7e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeDefinition.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeProperties.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class DataFactoryIntegrationRuntimeDefinition : IUtf8JsonSerializable + public partial class DataFactoryIntegrationRuntimeProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -34,7 +34,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static DataFactoryIntegrationRuntimeDefinition DeserializeDataFactoryIntegrationRuntimeDefinition(JsonElement element) + internal static DataFactoryIntegrationRuntimeProperties DeserializeDataFactoryIntegrationRuntimeProperties(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeDefinition.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeProperties.cs similarity index 88% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeDefinition.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeProperties.cs index e4090b8daac2..d9f856076f70 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeDefinition.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryIntegrationRuntimeProperties.cs @@ -13,22 +13,22 @@ namespace Azure.ResourceManager.DataFactory.Models { /// /// Azure Data Factory nested object which serves as a compute resource for activities. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - public partial class DataFactoryIntegrationRuntimeDefinition + public partial class DataFactoryIntegrationRuntimeProperties { - /// Initializes a new instance of DataFactoryIntegrationRuntimeDefinition. - public DataFactoryIntegrationRuntimeDefinition() + /// Initializes a new instance of DataFactoryIntegrationRuntimeProperties. + public DataFactoryIntegrationRuntimeProperties() { AdditionalProperties = new ChangeTrackingDictionary(); } - /// Initializes a new instance of DataFactoryIntegrationRuntimeDefinition. + /// Initializes a new instance of DataFactoryIntegrationRuntimeProperties. /// Type of integration runtime. /// Integration runtime description. /// Additional Properties. - internal DataFactoryIntegrationRuntimeDefinition(IntegrationRuntimeType integrationRuntimeType, string description, IDictionary additionalProperties) + internal DataFactoryIntegrationRuntimeProperties(IntegrationRuntimeType integrationRuntimeType, string description, IDictionary additionalProperties) { IntegrationRuntimeType = integrationRuntimeType; Description = description; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceData.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceData.Serialization.cs index e7448edeb7a3..4930aa1dc54d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceData.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceData.Serialization.cs @@ -29,7 +29,7 @@ internal static DataFactoryLinkedServiceData DeserializeDataFactoryLinkedService { return null; } - DataFactoryLinkedServiceDefinition properties = default; + DataFactoryLinkedServiceProperties properties = default; Optional etag = default; ResourceIdentifier id = default; string name = default; @@ -39,7 +39,7 @@ internal static DataFactoryLinkedServiceData DeserializeDataFactoryLinkedService { if (property.NameEquals("properties"u8)) { - properties = DataFactoryLinkedServiceDefinition.DeserializeDataFactoryLinkedServiceDefinition(property.Value); + properties = DataFactoryLinkedServiceProperties.DeserializeDataFactoryLinkedServiceProperties(property.Value); continue; } if (property.NameEquals("etag"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceDebugInfo.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceDebugInfo.cs index 13e5f1b27527..5aaa20ea0ba7 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceDebugInfo.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceDebugInfo.cs @@ -16,11 +16,11 @@ public partial class DataFactoryLinkedServiceDebugInfo : DataFactoryDebugInfo /// Initializes a new instance of DataFactoryLinkedServiceDebugInfo. /// /// Properties of linked service. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// /// is null. - public DataFactoryLinkedServiceDebugInfo(DataFactoryLinkedServiceDefinition properties) + public DataFactoryLinkedServiceDebugInfo(DataFactoryLinkedServiceProperties properties) { Argument.AssertNotNull(properties, nameof(properties)); @@ -29,9 +29,9 @@ public DataFactoryLinkedServiceDebugInfo(DataFactoryLinkedServiceDefinition prop /// /// Properties of linked service. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// - public DataFactoryLinkedServiceDefinition Properties { get; } + public DataFactoryLinkedServiceProperties Properties { get; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LinkedServiceListResponse.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceListResult.Serialization.cs similarity index 83% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LinkedServiceListResponse.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceListResult.Serialization.cs index cb8d02ecc01c..5473399a4a50 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LinkedServiceListResponse.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceListResult.Serialization.cs @@ -12,9 +12,9 @@ namespace Azure.ResourceManager.DataFactory.Models { - internal partial class LinkedServiceListResponse + internal partial class DataFactoryLinkedServiceListResult { - internal static LinkedServiceListResponse DeserializeLinkedServiceListResponse(JsonElement element) + internal static DataFactoryLinkedServiceListResult DeserializeDataFactoryLinkedServiceListResult(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -40,7 +40,7 @@ internal static LinkedServiceListResponse DeserializeLinkedServiceListResponse(J continue; } } - return new LinkedServiceListResponse(value, nextLink.Value); + return new DataFactoryLinkedServiceListResult(value, nextLink.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LinkedServiceListResponse.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceListResult.cs similarity index 71% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LinkedServiceListResponse.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceListResult.cs index eefce681f23b..82b5d745e86d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LinkedServiceListResponse.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceListResult.cs @@ -14,22 +14,22 @@ namespace Azure.ResourceManager.DataFactory.Models { /// A list of linked service resources. - internal partial class LinkedServiceListResponse + internal partial class DataFactoryLinkedServiceListResult { - /// Initializes a new instance of LinkedServiceListResponse. + /// Initializes a new instance of DataFactoryLinkedServiceListResult. /// List of linked services. /// is null. - internal LinkedServiceListResponse(IEnumerable value) + internal DataFactoryLinkedServiceListResult(IEnumerable value) { Argument.AssertNotNull(value, nameof(value)); Value = value.ToList(); } - /// Initializes a new instance of LinkedServiceListResponse. + /// Initializes a new instance of DataFactoryLinkedServiceListResult. /// List of linked services. /// The link to the next page of results, if any remaining results exist. - internal LinkedServiceListResponse(IReadOnlyList value, string nextLink) + internal DataFactoryLinkedServiceListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceDefinition.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceProperties.Serialization.cs similarity index 98% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceDefinition.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceProperties.Serialization.cs index b33b43b41897..7e43bb072d1e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceDefinition.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceProperties.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class DataFactoryLinkedServiceDefinition : IUtf8JsonSerializable + public partial class DataFactoryLinkedServiceProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -69,7 +69,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static DataFactoryLinkedServiceDefinition DeserializeDataFactoryLinkedServiceDefinition(JsonElement element) + internal static DataFactoryLinkedServiceProperties DeserializeDataFactoryLinkedServiceProperties(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceDefinition.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceProperties.cs similarity index 96% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceDefinition.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceProperties.cs index cb615ac8af26..1236d6a8204a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceDefinition.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLinkedServiceProperties.cs @@ -13,27 +13,27 @@ namespace Azure.ResourceManager.DataFactory.Models { /// /// The nested object which contains the information and credential which can be used to connect with related store or compute resource. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// - public partial class DataFactoryLinkedServiceDefinition + public partial class DataFactoryLinkedServiceProperties { - /// Initializes a new instance of DataFactoryLinkedServiceDefinition. - public DataFactoryLinkedServiceDefinition() + /// Initializes a new instance of DataFactoryLinkedServiceProperties. + public DataFactoryLinkedServiceProperties() { Parameters = new ChangeTrackingDictionary(); Annotations = new ChangeTrackingList(); AdditionalProperties = new ChangeTrackingDictionary(); } - /// Initializes a new instance of DataFactoryLinkedServiceDefinition. + /// Initializes a new instance of DataFactoryLinkedServiceProperties. /// Type of linked service. /// The integration runtime reference. /// Linked service description. /// Parameters for linked service. /// List of tags that can be used for describing the linked service. /// Additional Properties. - internal DataFactoryLinkedServiceDefinition(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties) + internal DataFactoryLinkedServiceProperties(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties) { LinkedServiceType = linkedServiceType; ConnectVia = connectVia; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LogSettings.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLogSettings.Serialization.cs similarity index 89% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LogSettings.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLogSettings.Serialization.cs index 3ef1a72ea362..02406d1c2867 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LogSettings.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLogSettings.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class LogSettings : IUtf8JsonSerializable + public partial class DataFactoryLogSettings : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -31,7 +31,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static LogSettings DeserializeLogSettings(JsonElement element) + internal static DataFactoryLogSettings DeserializeDataFactoryLogSettings(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -66,7 +66,7 @@ internal static LogSettings DeserializeLogSettings(JsonElement element) continue; } } - return new LogSettings(enableCopyActivityLog.Value, copyActivityLogSettings.Value, logLocationSettings); + return new DataFactoryLogSettings(enableCopyActivityLog.Value, copyActivityLogSettings.Value, logLocationSettings); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LogSettings.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLogSettings.cs similarity index 79% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LogSettings.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLogSettings.cs index d54c0eb174ae..3a08572ac95b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LogSettings.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryLogSettings.cs @@ -12,23 +12,23 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Log settings. - public partial class LogSettings + public partial class DataFactoryLogSettings { - /// Initializes a new instance of LogSettings. + /// Initializes a new instance of DataFactoryLogSettings. /// Log location settings customer needs to provide when enabling log. /// is null. - public LogSettings(LogLocationSettings logLocationSettings) + public DataFactoryLogSettings(LogLocationSettings logLocationSettings) { Argument.AssertNotNull(logLocationSettings, nameof(logLocationSettings)); LogLocationSettings = logLocationSettings; } - /// Initializes a new instance of LogSettings. + /// Initializes a new instance of DataFactoryLogSettings. /// Specifies whether to enable copy activity log. Type: boolean (or Expression with resultType boolean). /// Specifies settings for copy activity log. /// Log location settings customer needs to provide when enabling log. - internal LogSettings(DataFactoryElement enableCopyActivityLog, CopyActivityLogSettings copyActivityLogSettings, LogLocationSettings logLocationSettings) + internal DataFactoryLogSettings(DataFactoryElement enableCopyActivityLog, CopyActivityLogSettings copyActivityLogSettings, LogLocationSettings logLocationSettings) { EnableCopyActivityLog = enableCopyActivityLog; CopyActivityLogSettings = copyActivityLogSettings; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedIdentityCredentialData.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedIdentityCredentialData.Serialization.cs index 570bb58fddf1..a73e2a9cea75 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedIdentityCredentialData.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedIdentityCredentialData.Serialization.cs @@ -29,7 +29,7 @@ internal static DataFactoryManagedIdentityCredentialData DeserializeDataFactoryM { return null; } - DataFactoryManagedIdentityCredentialDefinition properties = default; + DataFactoryManagedIdentityCredentialProperties properties = default; Optional etag = default; ResourceIdentifier id = default; string name = default; @@ -39,7 +39,7 @@ internal static DataFactoryManagedIdentityCredentialData DeserializeDataFactoryM { if (property.NameEquals("properties"u8)) { - properties = DataFactoryManagedIdentityCredentialDefinition.DeserializeDataFactoryManagedIdentityCredentialDefinition(property.Value); + properties = DataFactoryManagedIdentityCredentialProperties.DeserializeDataFactoryManagedIdentityCredentialProperties(property.Value); continue; } if (property.NameEquals("etag"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedIdentityCredentialDefinition.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedIdentityCredentialProperties.Serialization.cs similarity index 87% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedIdentityCredentialDefinition.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedIdentityCredentialProperties.Serialization.cs index 9ba704f6141e..03c8ad7fb7c6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedIdentityCredentialDefinition.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedIdentityCredentialProperties.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class DataFactoryManagedIdentityCredentialDefinition : IUtf8JsonSerializable + public partial class DataFactoryManagedIdentityCredentialProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -63,7 +63,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static DataFactoryManagedIdentityCredentialDefinition DeserializeDataFactoryManagedIdentityCredentialDefinition(JsonElement element) + internal static DataFactoryManagedIdentityCredentialProperties DeserializeDataFactoryManagedIdentityCredentialProperties(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -72,7 +72,7 @@ internal static DataFactoryManagedIdentityCredentialDefinition DeserializeDataFa string type = default; Optional description = default; Optional> annotations = default; - Optional resourceId = default; + Optional resourceId = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -119,7 +119,11 @@ internal static DataFactoryManagedIdentityCredentialDefinition DeserializeDataFa { if (property0.NameEquals("resourceId"u8)) { - resourceId = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resourceId = new ResourceIdentifier(property0.Value.GetString()); continue; } } @@ -128,7 +132,7 @@ internal static DataFactoryManagedIdentityCredentialDefinition DeserializeDataFa additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } additionalProperties = additionalPropertiesDictionary; - return new DataFactoryManagedIdentityCredentialDefinition(type, description.Value, Optional.ToList(annotations), additionalProperties, resourceId.Value); + return new DataFactoryManagedIdentityCredentialProperties(type, description.Value, Optional.ToList(annotations), additionalProperties, resourceId.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedIdentityCredentialDefinition.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedIdentityCredentialProperties.cs similarity index 71% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedIdentityCredentialDefinition.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedIdentityCredentialProperties.cs index badb31ad0e56..f1995128fbd6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedIdentityCredentialDefinition.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedIdentityCredentialProperties.cs @@ -7,31 +7,32 @@ using System; using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.DataFactory.Models { /// Managed identity credential. - public partial class DataFactoryManagedIdentityCredentialDefinition : Credential + public partial class DataFactoryManagedIdentityCredentialProperties : DataFactoryCredential { - /// Initializes a new instance of DataFactoryManagedIdentityCredentialDefinition. - public DataFactoryManagedIdentityCredentialDefinition() + /// Initializes a new instance of DataFactoryManagedIdentityCredentialProperties. + public DataFactoryManagedIdentityCredentialProperties() { CredentialType = "ManagedIdentity"; } - /// Initializes a new instance of DataFactoryManagedIdentityCredentialDefinition. + /// Initializes a new instance of DataFactoryManagedIdentityCredentialProperties. /// Type of credential. /// Credential description. /// List of tags that can be used for describing the Credential. /// Additional Properties. /// The resource id of user assigned managed identity. - internal DataFactoryManagedIdentityCredentialDefinition(string credentialType, string description, IList annotations, IDictionary additionalProperties, string resourceId) : base(credentialType, description, annotations, additionalProperties) + internal DataFactoryManagedIdentityCredentialProperties(string credentialType, string description, IList annotations, IDictionary additionalProperties, ResourceIdentifier resourceId) : base(credentialType, description, annotations, additionalProperties) { ResourceId = resourceId; CredentialType = credentialType ?? "ManagedIdentity"; } /// The resource id of user assigned managed identity. - public string ResourceId { get; set; } + public ResourceIdentifier ResourceId { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedVirtualNetworkData.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedVirtualNetworkData.Serialization.cs index 13ea6a01d45a..4cdd4eb0ce98 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedVirtualNetworkData.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedVirtualNetworkData.Serialization.cs @@ -29,7 +29,7 @@ internal static DataFactoryManagedVirtualNetworkData DeserializeDataFactoryManag { return null; } - ManagedVirtualNetwork properties = default; + DataFactoryManagedVirtualNetworkProperties properties = default; Optional etag = default; ResourceIdentifier id = default; string name = default; @@ -39,7 +39,7 @@ internal static DataFactoryManagedVirtualNetworkData DeserializeDataFactoryManag { if (property.NameEquals("properties"u8)) { - properties = ManagedVirtualNetwork.DeserializeManagedVirtualNetwork(property.Value); + properties = DataFactoryManagedVirtualNetworkProperties.DeserializeDataFactoryManagedVirtualNetworkProperties(property.Value); continue; } if (property.NameEquals("etag"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedVirtualNetworkListResponse.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedVirtualNetworkListResult.Serialization.cs similarity index 82% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedVirtualNetworkListResponse.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedVirtualNetworkListResult.Serialization.cs index 0f6d193c18d4..155df68fa87b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedVirtualNetworkListResponse.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedVirtualNetworkListResult.Serialization.cs @@ -12,9 +12,9 @@ namespace Azure.ResourceManager.DataFactory.Models { - internal partial class ManagedVirtualNetworkListResponse + internal partial class DataFactoryManagedVirtualNetworkListResult { - internal static ManagedVirtualNetworkListResponse DeserializeManagedVirtualNetworkListResponse(JsonElement element) + internal static DataFactoryManagedVirtualNetworkListResult DeserializeDataFactoryManagedVirtualNetworkListResult(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -40,7 +40,7 @@ internal static ManagedVirtualNetworkListResponse DeserializeManagedVirtualNetwo continue; } } - return new ManagedVirtualNetworkListResponse(value, nextLink.Value); + return new DataFactoryManagedVirtualNetworkListResult(value, nextLink.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedVirtualNetworkListResponse.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedVirtualNetworkListResult.cs similarity index 70% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedVirtualNetworkListResponse.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedVirtualNetworkListResult.cs index 90f069769e9f..a7b4eee04fda 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedVirtualNetworkListResponse.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedVirtualNetworkListResult.cs @@ -14,22 +14,22 @@ namespace Azure.ResourceManager.DataFactory.Models { /// A list of managed Virtual Network resources. - internal partial class ManagedVirtualNetworkListResponse + internal partial class DataFactoryManagedVirtualNetworkListResult { - /// Initializes a new instance of ManagedVirtualNetworkListResponse. + /// Initializes a new instance of DataFactoryManagedVirtualNetworkListResult. /// List of managed Virtual Networks. /// is null. - internal ManagedVirtualNetworkListResponse(IEnumerable value) + internal DataFactoryManagedVirtualNetworkListResult(IEnumerable value) { Argument.AssertNotNull(value, nameof(value)); Value = value.ToList(); } - /// Initializes a new instance of ManagedVirtualNetworkListResponse. + /// Initializes a new instance of DataFactoryManagedVirtualNetworkListResult. /// List of managed Virtual Networks. /// The link to the next page of results, if any remaining results exist. - internal ManagedVirtualNetworkListResponse(IReadOnlyList value, string nextLink) + internal DataFactoryManagedVirtualNetworkListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedVirtualNetwork.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedVirtualNetworkProperties.Serialization.cs similarity index 79% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedVirtualNetwork.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedVirtualNetworkProperties.Serialization.cs index d3dc37be1a97..a996077249b6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedVirtualNetwork.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedVirtualNetworkProperties.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class ManagedVirtualNetwork : IUtf8JsonSerializable + public partial class DataFactoryManagedVirtualNetworkProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -29,13 +29,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ManagedVirtualNetwork DeserializeManagedVirtualNetwork(JsonElement element) + internal static DataFactoryManagedVirtualNetworkProperties DeserializeDataFactoryManagedVirtualNetworkProperties(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - Optional vNetId = default; + Optional vnetId = default; Optional @alias = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); @@ -47,7 +47,7 @@ internal static ManagedVirtualNetwork DeserializeManagedVirtualNetwork(JsonEleme { continue; } - vNetId = property.Value.GetGuid(); + vnetId = property.Value.GetGuid(); continue; } if (property.NameEquals("alias"u8)) @@ -58,7 +58,7 @@ internal static ManagedVirtualNetwork DeserializeManagedVirtualNetwork(JsonEleme additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } additionalProperties = additionalPropertiesDictionary; - return new ManagedVirtualNetwork(Optional.ToNullable(vNetId), @alias.Value, additionalProperties); + return new DataFactoryManagedVirtualNetworkProperties(Optional.ToNullable(vnetId), @alias.Value, additionalProperties); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedVirtualNetwork.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedVirtualNetworkProperties.cs similarity index 83% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedVirtualNetwork.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedVirtualNetworkProperties.cs index e9bf42c5b052..b3ad58adfdfb 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedVirtualNetwork.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryManagedVirtualNetworkProperties.cs @@ -12,19 +12,19 @@ namespace Azure.ResourceManager.DataFactory.Models { /// A managed Virtual Network associated with the Azure Data Factory. - public partial class ManagedVirtualNetwork + public partial class DataFactoryManagedVirtualNetworkProperties { - /// Initializes a new instance of ManagedVirtualNetwork. - public ManagedVirtualNetwork() + /// Initializes a new instance of DataFactoryManagedVirtualNetworkProperties. + public DataFactoryManagedVirtualNetworkProperties() { AdditionalProperties = new ChangeTrackingDictionary(); } - /// Initializes a new instance of ManagedVirtualNetwork. + /// Initializes a new instance of DataFactoryManagedVirtualNetworkProperties. /// Managed Virtual Network ID. /// Managed Virtual Network alias. /// Additional Properties. - internal ManagedVirtualNetwork(Guid? vnetId, string @alias, IDictionary additionalProperties) + internal DataFactoryManagedVirtualNetworkProperties(Guid? vnetId, string @alias, IDictionary additionalProperties) { VnetId = vnetId; Alias = @alias; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryMappingDataFlowDefinition.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryMappingDataFlowProperties.Serialization.cs similarity index 97% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryMappingDataFlowDefinition.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryMappingDataFlowProperties.Serialization.cs index 2bf895f30903..8a75b1a1a97d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryMappingDataFlowDefinition.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryMappingDataFlowProperties.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class DataFactoryMappingDataFlowDefinition : IUtf8JsonSerializable + public partial class DataFactoryMappingDataFlowProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -99,7 +99,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static DataFactoryMappingDataFlowDefinition DeserializeDataFactoryMappingDataFlowDefinition(JsonElement element) + internal static DataFactoryMappingDataFlowProperties DeserializeDataFactoryMappingDataFlowProperties(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -230,7 +230,7 @@ internal static DataFactoryMappingDataFlowDefinition DeserializeDataFactoryMappi continue; } } - return new DataFactoryMappingDataFlowDefinition(type, description.Value, Optional.ToList(annotations), folder.Value, Optional.ToList(sources), Optional.ToList(sinks), Optional.ToList(transformations), script.Value, Optional.ToList(scriptLines)); + return new DataFactoryMappingDataFlowProperties(type, description.Value, Optional.ToList(annotations), folder.Value, Optional.ToList(sources), Optional.ToList(sinks), Optional.ToList(transformations), script.Value, Optional.ToList(scriptLines)); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryMappingDataFlowDefinition.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryMappingDataFlowProperties.cs similarity index 90% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryMappingDataFlowDefinition.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryMappingDataFlowProperties.cs index cc045c18d198..5f1e06ab261c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryMappingDataFlowDefinition.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryMappingDataFlowProperties.cs @@ -12,10 +12,10 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Mapping data flow. - public partial class DataFactoryMappingDataFlowDefinition : DataFactoryDataFlowDefinition + public partial class DataFactoryMappingDataFlowProperties : DataFactoryDataFlowProperties { - /// Initializes a new instance of DataFactoryMappingDataFlowDefinition. - public DataFactoryMappingDataFlowDefinition() + /// Initializes a new instance of DataFactoryMappingDataFlowProperties. + public DataFactoryMappingDataFlowProperties() { Sources = new ChangeTrackingList(); Sinks = new ChangeTrackingList(); @@ -24,7 +24,7 @@ public DataFactoryMappingDataFlowDefinition() DataFlowType = "MappingDataFlow"; } - /// Initializes a new instance of DataFactoryMappingDataFlowDefinition. + /// Initializes a new instance of DataFactoryMappingDataFlowProperties. /// Type of data flow. /// The description of the data flow. /// List of tags that can be used for describing the data flow. @@ -34,7 +34,7 @@ public DataFactoryMappingDataFlowDefinition() /// List of transformations in data flow. /// DataFlow script. /// Data flow script lines. - internal DataFactoryMappingDataFlowDefinition(string dataFlowType, string description, IList annotations, DataFlowFolder folder, IList sources, IList sinks, IList transformations, string script, IList scriptLines) : base(dataFlowType, description, annotations, folder) + internal DataFactoryMappingDataFlowProperties(string dataFlowType, string description, IList annotations, DataFlowFolder folder, IList sources, IList sinks, IList transformations, string script, IList scriptLines) : base(dataFlowType, description, annotations, folder) { Sources = sources; Sinks = sinks; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPipelineData.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPipelineData.Serialization.cs index b323727f7d70..c43c035ca492 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPipelineData.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPipelineData.Serialization.cs @@ -138,7 +138,7 @@ internal static DataFactoryPipelineData DeserializeDataFactoryPipelineData(JsonE ResourceType type = default; Optional systemData = default; Optional description = default; - Optional> activities = default; + Optional> activities = default; Optional> parameters = default; Optional> variables = default; Optional concurrency = default; @@ -203,10 +203,10 @@ internal static DataFactoryPipelineData DeserializeDataFactoryPipelineData(JsonE { continue; } - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(DataFactoryActivity.DeserializeDataFactoryActivity(item)); + array.Add(PipelineActivity.DeserializePipelineActivity(item)); } activities = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPipelineRunInfo.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPipelineRunInfo.cs index abf1a38b988f..74724341b5ad 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPipelineRunInfo.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPipelineRunInfo.cs @@ -30,14 +30,14 @@ internal DataFactoryPipelineRunInfo() /// The full or partial list of parameter name, value pair used in the pipeline run. /// Run dimensions emitted by Pipeline run. /// Entity that started the pipeline run. - /// The last updated timestamp for the pipeline run event in ISO8601 format. - /// The start time of a pipeline run in ISO8601 format. - /// The end time of a pipeline run in ISO8601 format. + /// The last updated timestamp for the pipeline run event in ISO8601 format. + /// The start time of a pipeline run in ISO8601 format. + /// The end time of a pipeline run in ISO8601 format. /// The duration of a pipeline run. /// The status of a pipeline run. Possible values: Queued, InProgress, Succeeded, Failed, Canceling, Cancelled. /// The message from a pipeline run. /// Additional Properties. - internal DataFactoryPipelineRunInfo(Guid? runId, string runGroupId, bool? isLatest, string pipelineName, IReadOnlyDictionary parameters, IReadOnlyDictionary runDimensions, DataFactoryPipelineRunEntityInfo invokedBy, DateTimeOffset? lastUpdated, DateTimeOffset? runStart, DateTimeOffset? runEnd, int? durationInMs, string status, string message, IReadOnlyDictionary additionalProperties) + internal DataFactoryPipelineRunInfo(Guid? runId, string runGroupId, bool? isLatest, string pipelineName, IReadOnlyDictionary parameters, IReadOnlyDictionary runDimensions, DataFactoryPipelineRunEntityInfo invokedBy, DateTimeOffset? lastUpdatedOn, DateTimeOffset? runStartOn, DateTimeOffset? runEndOn, int? durationInMs, string status, string message, IReadOnlyDictionary additionalProperties) { RunId = runId; RunGroupId = runGroupId; @@ -46,9 +46,9 @@ internal DataFactoryPipelineRunInfo(Guid? runId, string runGroupId, bool? isLate Parameters = parameters; RunDimensions = runDimensions; InvokedBy = invokedBy; - LastUpdated = lastUpdated; - RunStart = runStart; - RunEnd = runEnd; + LastUpdatedOn = lastUpdatedOn; + RunStartOn = runStartOn; + RunEndOn = runEndOn; DurationInMs = durationInMs; Status = status; Message = message; @@ -70,11 +70,11 @@ internal DataFactoryPipelineRunInfo(Guid? runId, string runGroupId, bool? isLate /// Entity that started the pipeline run. public DataFactoryPipelineRunEntityInfo InvokedBy { get; } /// The last updated timestamp for the pipeline run event in ISO8601 format. - public DateTimeOffset? LastUpdated { get; } + public DateTimeOffset? LastUpdatedOn { get; } /// The start time of a pipeline run in ISO8601 format. - public DateTimeOffset? RunStart { get; } + public DateTimeOffset? RunStartOn { get; } /// The end time of a pipeline run in ISO8601 format. - public DateTimeOffset? RunEnd { get; } + public DateTimeOffset? RunEndOn { get; } /// The duration of a pipeline run. public int? DurationInMs { get; } /// The status of a pipeline run. Possible values: Queued, InProgress, Succeeded, Failed, Canceling, Cancelled. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointConnectionData.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointConnectionData.Serialization.cs index f56e53de1846..f929ed8a58c4 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointConnectionData.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointConnectionData.Serialization.cs @@ -32,7 +32,7 @@ internal static DataFactoryPrivateEndpointConnectionData DeserializeDataFactoryP { return null; } - Optional properties = default; + Optional properties = default; Optional etag = default; ResourceIdentifier id = default; string name = default; @@ -46,7 +46,7 @@ internal static DataFactoryPrivateEndpointConnectionData DeserializeDataFactoryP { continue; } - properties = DataFactoryPrivateEndpointProperties.DeserializeDataFactoryPrivateEndpointProperties(property.Value); + properties = DataFactoryPrivateEndpointConnectionProperties.DeserializeDataFactoryPrivateEndpointConnectionProperties(property.Value); continue; } if (property.NameEquals("etag"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PrivateEndpointConnectionListResponse.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointConnectionListResult.Serialization.cs similarity index 81% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PrivateEndpointConnectionListResponse.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointConnectionListResult.Serialization.cs index 9fb78383ca42..80a39df6563f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PrivateEndpointConnectionListResponse.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointConnectionListResult.Serialization.cs @@ -12,9 +12,9 @@ namespace Azure.ResourceManager.DataFactory.Models { - internal partial class PrivateEndpointConnectionListResponse + internal partial class DataFactoryPrivateEndpointConnectionListResult { - internal static PrivateEndpointConnectionListResponse DeserializePrivateEndpointConnectionListResponse(JsonElement element) + internal static DataFactoryPrivateEndpointConnectionListResult DeserializeDataFactoryPrivateEndpointConnectionListResult(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -40,7 +40,7 @@ internal static PrivateEndpointConnectionListResponse DeserializePrivateEndpoint continue; } } - return new PrivateEndpointConnectionListResponse(value, nextLink.Value); + return new DataFactoryPrivateEndpointConnectionListResult(value, nextLink.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PrivateEndpointConnectionListResponse.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointConnectionListResult.cs similarity index 69% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PrivateEndpointConnectionListResponse.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointConnectionListResult.cs index e3bea0e2ab64..4c868be6e3e6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PrivateEndpointConnectionListResponse.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointConnectionListResult.cs @@ -14,22 +14,22 @@ namespace Azure.ResourceManager.DataFactory.Models { /// A list of linked service resources. - internal partial class PrivateEndpointConnectionListResponse + internal partial class DataFactoryPrivateEndpointConnectionListResult { - /// Initializes a new instance of PrivateEndpointConnectionListResponse. + /// Initializes a new instance of DataFactoryPrivateEndpointConnectionListResult. /// List of Private Endpoint Connections. /// is null. - internal PrivateEndpointConnectionListResponse(IEnumerable value) + internal DataFactoryPrivateEndpointConnectionListResult(IEnumerable value) { Argument.AssertNotNull(value, nameof(value)); Value = value.ToList(); } - /// Initializes a new instance of PrivateEndpointConnectionListResponse. + /// Initializes a new instance of DataFactoryPrivateEndpointConnectionListResult. /// List of Private Endpoint Connections. /// The link to the next page of results, if any remaining results exist. - internal PrivateEndpointConnectionListResponse(IReadOnlyList value, string nextLink) + internal DataFactoryPrivateEndpointConnectionListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointConnectionProperties.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointConnectionProperties.Serialization.cs new file mode 100644 index 000000000000..0d7d3a2f269e --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointConnectionProperties.Serialization.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Resources.Models; + +namespace Azure.ResourceManager.DataFactory.Models +{ + public partial class DataFactoryPrivateEndpointConnectionProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(PrivateEndpoint)) + { + writer.WritePropertyName("privateEndpoint"u8); + JsonSerializer.Serialize(writer, PrivateEndpoint); + } + if (Optional.IsDefined(PrivateLinkServiceConnectionState)) + { + writer.WritePropertyName("privateLinkServiceConnectionState"u8); + writer.WriteObjectValue(PrivateLinkServiceConnectionState); + } + writer.WriteEndObject(); + } + + internal static DataFactoryPrivateEndpointConnectionProperties DeserializeDataFactoryPrivateEndpointConnectionProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional provisioningState = default; + Optional privateEndpoint = default; + Optional privateLinkServiceConnectionState = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("provisioningState"u8)) + { + provisioningState = property.Value.GetString(); + continue; + } + if (property.NameEquals("privateEndpoint"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + privateEndpoint = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("privateLinkServiceConnectionState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + privateLinkServiceConnectionState = PrivateLinkConnectionState.DeserializePrivateLinkConnectionState(property.Value); + continue; + } + } + return new DataFactoryPrivateEndpointConnectionProperties(provisioningState.Value, privateEndpoint, privateLinkServiceConnectionState.Value); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointConnectionProperties.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointConnectionProperties.cs new file mode 100644 index 000000000000..306755b01a70 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointConnectionProperties.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core; +using Azure.ResourceManager.Resources.Models; + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// A remote private endpoint connection. + public partial class DataFactoryPrivateEndpointConnectionProperties + { + /// Initializes a new instance of DataFactoryPrivateEndpointConnectionProperties. + public DataFactoryPrivateEndpointConnectionProperties() + { + } + + /// Initializes a new instance of DataFactoryPrivateEndpointConnectionProperties. + /// + /// PrivateEndpoint of a remote private endpoint connection. + /// The state of a private link connection. + internal DataFactoryPrivateEndpointConnectionProperties(string provisioningState, SubResource privateEndpoint, PrivateLinkConnectionState privateLinkServiceConnectionState) + { + ProvisioningState = provisioningState; + PrivateEndpoint = privateEndpoint; + PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; + } + + /// Gets the provisioning state. + public string ProvisioningState { get; } + /// PrivateEndpoint of a remote private endpoint connection. + internal SubResource PrivateEndpoint { get; set; } + /// Gets Id. + public ResourceIdentifier PrivateEndpointId + { + get => PrivateEndpoint is null ? default : PrivateEndpoint.Id; + } + + /// The state of a private link connection. + public PrivateLinkConnectionState PrivateLinkServiceConnectionState { get; set; } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointData.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointData.Serialization.cs index ceb4bfec51dc..d6b9375e83e1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointData.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointData.Serialization.cs @@ -29,7 +29,7 @@ internal static DataFactoryPrivateEndpointData DeserializeDataFactoryPrivateEndp { return null; } - ManagedPrivateEndpoint properties = default; + DataFactoryPrivateEndpointProperties properties = default; Optional etag = default; ResourceIdentifier id = default; string name = default; @@ -39,7 +39,7 @@ internal static DataFactoryPrivateEndpointData DeserializeDataFactoryPrivateEndp { if (property.NameEquals("properties"u8)) { - properties = ManagedPrivateEndpoint.DeserializeManagedPrivateEndpoint(property.Value); + properties = DataFactoryPrivateEndpointProperties.DeserializeDataFactoryPrivateEndpointProperties(property.Value); continue; } if (property.NameEquals("etag"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedPrivateEndpointListResponse.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointListResult.Serialization.cs similarity index 82% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedPrivateEndpointListResponse.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointListResult.Serialization.cs index 7b92c43b03c6..03ac440833bf 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedPrivateEndpointListResponse.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointListResult.Serialization.cs @@ -12,9 +12,9 @@ namespace Azure.ResourceManager.DataFactory.Models { - internal partial class ManagedPrivateEndpointListResponse + internal partial class DataFactoryPrivateEndpointListResult { - internal static ManagedPrivateEndpointListResponse DeserializeManagedPrivateEndpointListResponse(JsonElement element) + internal static DataFactoryPrivateEndpointListResult DeserializeDataFactoryPrivateEndpointListResult(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -40,7 +40,7 @@ internal static ManagedPrivateEndpointListResponse DeserializeManagedPrivateEndp continue; } } - return new ManagedPrivateEndpointListResponse(value, nextLink.Value); + return new DataFactoryPrivateEndpointListResult(value, nextLink.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedPrivateEndpointListResponse.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointListResult.cs similarity index 71% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedPrivateEndpointListResponse.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointListResult.cs index 8860122e86b0..08d5b9d91563 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedPrivateEndpointListResponse.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointListResult.cs @@ -14,22 +14,22 @@ namespace Azure.ResourceManager.DataFactory.Models { /// A list of managed private endpoint resources. - internal partial class ManagedPrivateEndpointListResponse + internal partial class DataFactoryPrivateEndpointListResult { - /// Initializes a new instance of ManagedPrivateEndpointListResponse. + /// Initializes a new instance of DataFactoryPrivateEndpointListResult. /// List of managed private endpoints. /// is null. - internal ManagedPrivateEndpointListResponse(IEnumerable value) + internal DataFactoryPrivateEndpointListResult(IEnumerable value) { Argument.AssertNotNull(value, nameof(value)); Value = value.ToList(); } - /// Initializes a new instance of ManagedPrivateEndpointListResponse. + /// Initializes a new instance of DataFactoryPrivateEndpointListResult. /// List of managed private endpoints. /// The link to the next page of results, if any remaining results exist. - internal ManagedPrivateEndpointListResponse(IReadOnlyList value, string nextLink) + internal DataFactoryPrivateEndpointListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointProperties.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointProperties.Serialization.cs index 1654c05c478b..8cc263c957b2 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointProperties.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointProperties.Serialization.cs @@ -5,9 +5,10 @@ #nullable disable +using System; +using System.Collections.Generic; using System.Text.Json; using Azure.Core; -using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.DataFactory.Models { @@ -16,15 +17,39 @@ public partial class DataFactoryPrivateEndpointProperties : IUtf8JsonSerializabl void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(PrivateEndpoint)) + if (Optional.IsDefined(ConnectionState)) { - writer.WritePropertyName("privateEndpoint"u8); - JsonSerializer.Serialize(writer, PrivateEndpoint); + writer.WritePropertyName("connectionState"u8); + writer.WriteObjectValue(ConnectionState); } - if (Optional.IsDefined(PrivateLinkServiceConnectionState)) + if (Optional.IsCollectionDefined(Fqdns)) { - writer.WritePropertyName("privateLinkServiceConnectionState"u8); - writer.WriteObjectValue(PrivateLinkServiceConnectionState); + writer.WritePropertyName("fqdns"u8); + writer.WriteStartArray(); + foreach (var item in Fqdns) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(GroupId)) + { + writer.WritePropertyName("groupId"u8); + writer.WriteStringValue(GroupId); + } + if (Optional.IsDefined(PrivateLinkResourceId)) + { + writer.WritePropertyName("privateLinkResourceId"u8); + writer.WriteStringValue(PrivateLinkResourceId); + } + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(item.Value.ToString()).RootElement); +#endif } writer.WriteEndObject(); } @@ -35,36 +60,71 @@ internal static DataFactoryPrivateEndpointProperties DeserializeDataFactoryPriva { return null; } + Optional connectionState = default; + Optional> fqdns = default; + Optional groupId = default; + Optional isReserved = default; + Optional privateLinkResourceId = default; Optional provisioningState = default; - Optional privateEndpoint = default; - Optional privateLinkServiceConnectionState = default; + IDictionary additionalProperties = default; + Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("provisioningState"u8)) + if (property.NameEquals("connectionState"u8)) { - provisioningState = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + connectionState = ConnectionStateProperties.DeserializeConnectionStateProperties(property.Value); continue; } - if (property.NameEquals("privateEndpoint"u8)) + if (property.NameEquals("fqdns"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - privateEndpoint = JsonSerializer.Deserialize(property.Value.GetRawText()); + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + fqdns = array; continue; } - if (property.NameEquals("privateLinkServiceConnectionState"u8)) + if (property.NameEquals("groupId"u8)) + { + groupId = property.Value.GetString(); + continue; + } + if (property.NameEquals("isReserved"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - privateLinkServiceConnectionState = PrivateLinkConnectionState.DeserializePrivateLinkConnectionState(property.Value); + isReserved = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("privateLinkResourceId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + privateLinkResourceId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("provisioningState"u8)) + { + provisioningState = property.Value.GetString(); continue; } + additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } - return new DataFactoryPrivateEndpointProperties(provisioningState.Value, privateEndpoint, privateLinkServiceConnectionState.Value); + additionalProperties = additionalPropertiesDictionary; + return new DataFactoryPrivateEndpointProperties(connectionState.Value, Optional.ToList(fqdns), groupId.Value, Optional.ToNullable(isReserved), privateLinkResourceId.Value, provisioningState.Value, additionalProperties); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointProperties.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointProperties.cs index c18502d5138b..93e8a365995a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointProperties.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryPrivateEndpointProperties.cs @@ -5,41 +5,83 @@ #nullable disable +using System; +using System.Collections.Generic; using Azure.Core; -using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.DataFactory.Models { - /// A remote private endpoint connection. + /// Properties of a managed private endpoint. public partial class DataFactoryPrivateEndpointProperties { /// Initializes a new instance of DataFactoryPrivateEndpointProperties. public DataFactoryPrivateEndpointProperties() { + Fqdns = new ChangeTrackingList(); + AdditionalProperties = new ChangeTrackingDictionary(); } /// Initializes a new instance of DataFactoryPrivateEndpointProperties. - /// - /// PrivateEndpoint of a remote private endpoint connection. - /// The state of a private link connection. - internal DataFactoryPrivateEndpointProperties(string provisioningState, SubResource privateEndpoint, PrivateLinkConnectionState privateLinkServiceConnectionState) + /// The managed private endpoint connection state. + /// Fully qualified domain names. + /// The groupId to which the managed private endpoint is created. + /// Denotes whether the managed private endpoint is reserved. + /// The ARM resource ID of the resource to which the managed private endpoint is created. + /// The managed private endpoint provisioning state. + /// Additional Properties. + internal DataFactoryPrivateEndpointProperties(ConnectionStateProperties connectionState, IList fqdns, string groupId, bool? isReserved, ResourceIdentifier privateLinkResourceId, string provisioningState, IDictionary additionalProperties) { + ConnectionState = connectionState; + Fqdns = fqdns; + GroupId = groupId; + IsReserved = isReserved; + PrivateLinkResourceId = privateLinkResourceId; ProvisioningState = provisioningState; - PrivateEndpoint = privateEndpoint; - PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; + AdditionalProperties = additionalProperties; } - /// Gets the provisioning state. + /// The managed private endpoint connection state. + public ConnectionStateProperties ConnectionState { get; set; } + /// Fully qualified domain names. + public IList Fqdns { get; } + /// The groupId to which the managed private endpoint is created. + public string GroupId { get; set; } + /// Denotes whether the managed private endpoint is reserved. + public bool? IsReserved { get; } + /// The ARM resource ID of the resource to which the managed private endpoint is created. + public ResourceIdentifier PrivateLinkResourceId { get; set; } + /// The managed private endpoint provisioning state. public string ProvisioningState { get; } - /// PrivateEndpoint of a remote private endpoint connection. - internal SubResource PrivateEndpoint { get; set; } - /// Gets Id. - public ResourceIdentifier PrivateEndpointId - { - get => PrivateEndpoint is null ? default : PrivateEndpoint.Id; - } - - /// The state of a private link connection. - public PrivateLinkConnectionState PrivateLinkServiceConnectionState { get; set; } + /// + /// Additional Properties + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formated json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + public IDictionary AdditionalProperties { get; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryRecurrenceFrequency.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryRecurrenceFrequency.cs new file mode 100644 index 000000000000..befa5b6acde3 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryRecurrenceFrequency.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// Enumerates possible frequency option for the schedule trigger. + public readonly partial struct DataFactoryRecurrenceFrequency : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public DataFactoryRecurrenceFrequency(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NotSpecifiedValue = "NotSpecified"; + private const string MinuteValue = "Minute"; + private const string HourValue = "Hour"; + private const string DayValue = "Day"; + private const string WeekValue = "Week"; + private const string MonthValue = "Month"; + private const string YearValue = "Year"; + + /// NotSpecified. + public static DataFactoryRecurrenceFrequency NotSpecified { get; } = new DataFactoryRecurrenceFrequency(NotSpecifiedValue); + /// Minute. + public static DataFactoryRecurrenceFrequency Minute { get; } = new DataFactoryRecurrenceFrequency(MinuteValue); + /// Hour. + public static DataFactoryRecurrenceFrequency Hour { get; } = new DataFactoryRecurrenceFrequency(HourValue); + /// Day. + public static DataFactoryRecurrenceFrequency Day { get; } = new DataFactoryRecurrenceFrequency(DayValue); + /// Week. + public static DataFactoryRecurrenceFrequency Week { get; } = new DataFactoryRecurrenceFrequency(WeekValue); + /// Month. + public static DataFactoryRecurrenceFrequency Month { get; } = new DataFactoryRecurrenceFrequency(MonthValue); + /// Year. + public static DataFactoryRecurrenceFrequency Year { get; } = new DataFactoryRecurrenceFrequency(YearValue); + /// Determines if two values are the same. + public static bool operator ==(DataFactoryRecurrenceFrequency left, DataFactoryRecurrenceFrequency right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(DataFactoryRecurrenceFrequency left, DataFactoryRecurrenceFrequency right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator DataFactoryRecurrenceFrequency(string value) => new DataFactoryRecurrenceFrequency(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is DataFactoryRecurrenceFrequency other && Equals(other); + /// + public bool Equals(DataFactoryRecurrenceFrequency other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RecurrenceSchedule.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryRecurrenceSchedule.Serialization.cs similarity index 88% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RecurrenceSchedule.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryRecurrenceSchedule.Serialization.cs index b8e1b68b5d9f..f9802da43d70 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RecurrenceSchedule.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryRecurrenceSchedule.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class RecurrenceSchedule : IUtf8JsonSerializable + public partial class DataFactoryRecurrenceSchedule : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -79,7 +79,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static RecurrenceSchedule DeserializeRecurrenceSchedule(JsonElement element) + internal static DataFactoryRecurrenceSchedule DeserializeDataFactoryRecurrenceSchedule(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -89,7 +89,7 @@ internal static RecurrenceSchedule DeserializeRecurrenceSchedule(JsonElement ele Optional> hours = default; Optional> weekDays = default; Optional> monthDays = default; - Optional> monthlyOccurrences = default; + Optional> monthlyOccurrences = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -156,10 +156,10 @@ internal static RecurrenceSchedule DeserializeRecurrenceSchedule(JsonElement ele { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(RecurrenceScheduleOccurrence.DeserializeRecurrenceScheduleOccurrence(item)); + array.Add(DataFactoryRecurrenceScheduleOccurrence.DeserializeDataFactoryRecurrenceScheduleOccurrence(item)); } monthlyOccurrences = array; continue; @@ -167,7 +167,7 @@ internal static RecurrenceSchedule DeserializeRecurrenceSchedule(JsonElement ele additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } additionalProperties = additionalPropertiesDictionary; - return new RecurrenceSchedule(Optional.ToList(minutes), Optional.ToList(hours), Optional.ToList(weekDays), Optional.ToList(monthDays), Optional.ToList(monthlyOccurrences), additionalProperties); + return new DataFactoryRecurrenceSchedule(Optional.ToList(minutes), Optional.ToList(hours), Optional.ToList(weekDays), Optional.ToList(monthDays), Optional.ToList(monthlyOccurrences), additionalProperties); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RecurrenceSchedule.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryRecurrenceSchedule.cs similarity index 80% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RecurrenceSchedule.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryRecurrenceSchedule.cs index 58ef21f96b5d..fd5775ff6d3d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RecurrenceSchedule.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryRecurrenceSchedule.cs @@ -12,27 +12,27 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The recurrence schedule. - public partial class RecurrenceSchedule + public partial class DataFactoryRecurrenceSchedule { - /// Initializes a new instance of RecurrenceSchedule. - public RecurrenceSchedule() + /// Initializes a new instance of DataFactoryRecurrenceSchedule. + public DataFactoryRecurrenceSchedule() { Minutes = new ChangeTrackingList(); Hours = new ChangeTrackingList(); WeekDays = new ChangeTrackingList(); MonthDays = new ChangeTrackingList(); - MonthlyOccurrences = new ChangeTrackingList(); + MonthlyOccurrences = new ChangeTrackingList(); AdditionalProperties = new ChangeTrackingDictionary(); } - /// Initializes a new instance of RecurrenceSchedule. + /// Initializes a new instance of DataFactoryRecurrenceSchedule. /// The minutes. /// The hours. /// The days of the week. /// The month days. /// The monthly occurrences. /// Additional Properties. - internal RecurrenceSchedule(IList minutes, IList hours, IList weekDays, IList monthDays, IList monthlyOccurrences, IDictionary additionalProperties) + internal DataFactoryRecurrenceSchedule(IList minutes, IList hours, IList weekDays, IList monthDays, IList monthlyOccurrences, IDictionary additionalProperties) { Minutes = minutes; Hours = hours; @@ -51,7 +51,7 @@ internal RecurrenceSchedule(IList minutes, IList hours, IList The month days. public IList MonthDays { get; } /// The monthly occurrences. - public IList MonthlyOccurrences { get; } + public IList MonthlyOccurrences { get; } /// /// Additional Properties /// diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RecurrenceScheduleOccurrence.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryRecurrenceScheduleOccurrence.Serialization.cs similarity index 82% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RecurrenceScheduleOccurrence.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryRecurrenceScheduleOccurrence.Serialization.cs index bb24eb5ede2d..598520826558 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RecurrenceScheduleOccurrence.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryRecurrenceScheduleOccurrence.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class RecurrenceScheduleOccurrence : IUtf8JsonSerializable + public partial class DataFactoryRecurrenceScheduleOccurrence : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -39,13 +39,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static RecurrenceScheduleOccurrence DeserializeRecurrenceScheduleOccurrence(JsonElement element) + internal static DataFactoryRecurrenceScheduleOccurrence DeserializeDataFactoryRecurrenceScheduleOccurrence(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - Optional day = default; + Optional day = default; Optional occurrence = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); @@ -57,7 +57,7 @@ internal static RecurrenceScheduleOccurrence DeserializeRecurrenceScheduleOccurr { continue; } - day = property.Value.GetString().ToDayOfWeek(); + day = property.Value.GetString().ToDataFactoryDayOfWeek(); continue; } if (property.NameEquals("occurrence"u8)) @@ -72,7 +72,7 @@ internal static RecurrenceScheduleOccurrence DeserializeRecurrenceScheduleOccurr additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } additionalProperties = additionalPropertiesDictionary; - return new RecurrenceScheduleOccurrence(Optional.ToNullable(day), Optional.ToNullable(occurrence), additionalProperties); + return new DataFactoryRecurrenceScheduleOccurrence(Optional.ToNullable(day), Optional.ToNullable(occurrence), additionalProperties); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RecurrenceScheduleOccurrence.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryRecurrenceScheduleOccurrence.cs similarity index 80% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RecurrenceScheduleOccurrence.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryRecurrenceScheduleOccurrence.cs index a970bd4cfc1a..8d2467a1ea82 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RecurrenceScheduleOccurrence.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryRecurrenceScheduleOccurrence.cs @@ -12,19 +12,19 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The recurrence schedule occurrence. - public partial class RecurrenceScheduleOccurrence + public partial class DataFactoryRecurrenceScheduleOccurrence { - /// Initializes a new instance of RecurrenceScheduleOccurrence. - public RecurrenceScheduleOccurrence() + /// Initializes a new instance of DataFactoryRecurrenceScheduleOccurrence. + public DataFactoryRecurrenceScheduleOccurrence() { AdditionalProperties = new ChangeTrackingDictionary(); } - /// Initializes a new instance of RecurrenceScheduleOccurrence. + /// Initializes a new instance of DataFactoryRecurrenceScheduleOccurrence. /// The day of the week. /// The occurrence. /// Additional Properties. - internal RecurrenceScheduleOccurrence(DayOfWeek? day, int? occurrence, IDictionary additionalProperties) + internal DataFactoryRecurrenceScheduleOccurrence(DataFactoryDayOfWeek? day, int? occurrence, IDictionary additionalProperties) { Day = day; Occurrence = occurrence; @@ -32,7 +32,7 @@ internal RecurrenceScheduleOccurrence(DayOfWeek? day, int? occurrence, IDictiona } /// The day of the week. - public DayOfWeek? Day { get; set; } + public DataFactoryDayOfWeek? Day { get; set; } /// The occurrence. public int? Occurrence { get; set; } /// diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScheduleTrigger.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScheduleTrigger.Serialization.cs similarity index 94% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScheduleTrigger.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScheduleTrigger.Serialization.cs index 9b4e68181406..1a03020402f7 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScheduleTrigger.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScheduleTrigger.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class ScheduleTrigger : IUtf8JsonSerializable + public partial class DataFactoryScheduleTrigger : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -70,7 +70,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ScheduleTrigger DeserializeScheduleTrigger(JsonElement element) + internal static DataFactoryScheduleTrigger DeserializeDataFactoryScheduleTrigger(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -160,7 +160,7 @@ internal static ScheduleTrigger DeserializeScheduleTrigger(JsonElement element) additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } additionalProperties = additionalPropertiesDictionary; - return new ScheduleTrigger(type, description.Value, Optional.ToNullable(runtimeState), Optional.ToList(annotations), additionalProperties, Optional.ToList(pipelines), recurrence); + return new DataFactoryScheduleTrigger(type, description.Value, Optional.ToNullable(runtimeState), Optional.ToList(annotations), additionalProperties, Optional.ToList(pipelines), recurrence); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScheduleTrigger.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScheduleTrigger.cs similarity index 68% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScheduleTrigger.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScheduleTrigger.cs index 926d7a8a80fb..f3d04419511e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScheduleTrigger.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScheduleTrigger.cs @@ -12,12 +12,12 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Trigger that creates pipeline runs periodically, on schedule. - public partial class ScheduleTrigger : MultiplePipelineTrigger + public partial class DataFactoryScheduleTrigger : MultiplePipelineTrigger { - /// Initializes a new instance of ScheduleTrigger. + /// Initializes a new instance of DataFactoryScheduleTrigger. /// Recurrence schedule configuration. /// is null. - public ScheduleTrigger(ScheduleTriggerRecurrence recurrence) + public DataFactoryScheduleTrigger(ScheduleTriggerRecurrence recurrence) { Argument.AssertNotNull(recurrence, nameof(recurrence)); @@ -25,7 +25,7 @@ public ScheduleTrigger(ScheduleTriggerRecurrence recurrence) TriggerType = "ScheduleTrigger"; } - /// Initializes a new instance of ScheduleTrigger. + /// Initializes a new instance of DataFactoryScheduleTrigger. /// Trigger type. /// Trigger description. /// Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. @@ -33,7 +33,7 @@ public ScheduleTrigger(ScheduleTriggerRecurrence recurrence) /// Additional Properties. /// Pipelines that need to be started. /// Recurrence schedule configuration. - internal ScheduleTrigger(string triggerType, string description, DataFactoryTriggerRuntimeState? runtimeState, IList annotations, IDictionary additionalProperties, IList pipelines, ScheduleTriggerRecurrence recurrence) : base(triggerType, description, runtimeState, annotations, additionalProperties, pipelines) + internal DataFactoryScheduleTrigger(string triggerType, string description, DataFactoryTriggerRuntimeState? runtimeState, IList annotations, IDictionary additionalProperties, IList pipelines, ScheduleTriggerRecurrence recurrence) : base(triggerType, description, runtimeState, annotations, additionalProperties, pipelines) { Recurrence = recurrence; TriggerType = triggerType ?? "ScheduleTrigger"; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptAction.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScriptAction.Serialization.cs similarity index 89% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptAction.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScriptAction.Serialization.cs index 0cc2f0318058..917a848c1c15 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptAction.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScriptAction.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class ScriptAction : IUtf8JsonSerializable + public partial class DataFactoryScriptAction : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -34,7 +34,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ScriptAction DeserializeScriptAction(JsonElement element) + internal static DataFactoryScriptAction DeserializeDataFactoryScriptAction(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -67,7 +67,7 @@ internal static ScriptAction DeserializeScriptAction(JsonElement element) continue; } } - return new ScriptAction(name, uri, roles, parameters.Value); + return new DataFactoryScriptAction(name, uri, roles, parameters.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptAction.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScriptAction.cs similarity index 88% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptAction.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScriptAction.cs index 800fde2cb934..a185feba0f59 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptAction.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScriptAction.cs @@ -11,14 +11,14 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Custom script action to run on HDI ondemand cluster once it's up. - public partial class ScriptAction + public partial class DataFactoryScriptAction { - /// Initializes a new instance of ScriptAction. + /// Initializes a new instance of DataFactoryScriptAction. /// The user provided name of the script action. /// The URI for the script action. /// The node types on which the script action should be executed. /// , or is null. - public ScriptAction(string name, Uri uri, BinaryData roles) + public DataFactoryScriptAction(string name, Uri uri, BinaryData roles) { Argument.AssertNotNull(name, nameof(name)); Argument.AssertNotNull(uri, nameof(uri)); @@ -29,12 +29,12 @@ public ScriptAction(string name, Uri uri, BinaryData roles) Roles = roles; } - /// Initializes a new instance of ScriptAction. + /// Initializes a new instance of DataFactoryScriptAction. /// The user provided name of the script action. /// The URI for the script action. /// The node types on which the script action should be executed. /// The parameters for the script action. - internal ScriptAction(string name, Uri uri, BinaryData roles, string parameters) + internal DataFactoryScriptAction(string name, Uri uri, BinaryData roles, string parameters) { Name = name; Uri = uri; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScriptActivity.Serialization.cs similarity index 84% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivity.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScriptActivity.Serialization.cs index e0255f6ba986..89a37d553d1b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScriptActivity.Serialization.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class ScriptActivity : IUtf8JsonSerializable + public partial class DataFactoryScriptActivity : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -102,24 +102,24 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ScriptActivity DeserializeScriptActivity(JsonElement element) + internal static DataFactoryScriptActivity DeserializeDataFactoryScriptActivity(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; Optional> scriptBlockExecutionTimeout = default; Optional> scripts = default; - Optional logSettings = default; + Optional logSettings = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -139,7 +139,7 @@ internal static ScriptActivity DeserializeScriptActivity(JsonElement element) { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -163,7 +163,7 @@ internal static ScriptActivity DeserializeScriptActivity(JsonElement element) { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -172,7 +172,7 @@ internal static ScriptActivity DeserializeScriptActivity(JsonElement element) { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -181,10 +181,10 @@ internal static ScriptActivity DeserializeScriptActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -195,10 +195,10 @@ internal static ScriptActivity DeserializeScriptActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; @@ -241,7 +241,7 @@ internal static ScriptActivity DeserializeScriptActivity(JsonElement element) { continue; } - logSettings = ScriptActivityTypePropertiesLogSettings.DeserializeScriptActivityTypePropertiesLogSettings(property0.Value); + logSettings = ScriptActivityTypeLogSettings.DeserializeScriptActivityTypeLogSettings(property0.Value); continue; } } @@ -250,7 +250,7 @@ internal static ScriptActivity DeserializeScriptActivity(JsonElement element) additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } additionalProperties = additionalPropertiesDictionary; - return new ScriptActivity(name, type, description.Value, Optional.ToNullable(state), Optional.ToNullable(onInactiveMarkAs), Optional.ToList(dependsOn), Optional.ToList(userProperties), additionalProperties, linkedServiceName, policy.Value, scriptBlockExecutionTimeout.Value, Optional.ToList(scripts), logSettings.Value); + return new DataFactoryScriptActivity(name, type, description.Value, Optional.ToNullable(state), Optional.ToNullable(onInactiveMarkAs), Optional.ToList(dependsOn), Optional.ToList(userProperties), additionalProperties, linkedServiceName, policy.Value, scriptBlockExecutionTimeout.Value, Optional.ToList(scripts), logSettings.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScriptActivity.cs similarity index 71% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivity.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScriptActivity.cs index 52176f093a13..422290d969db 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScriptActivity.cs @@ -13,12 +13,12 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Script activity type. - public partial class ScriptActivity : ExecutionActivity + public partial class DataFactoryScriptActivity : ExecutionActivity { - /// Initializes a new instance of ScriptActivity. + /// Initializes a new instance of DataFactoryScriptActivity. /// Activity name. /// is null. - public ScriptActivity(string name) : base(name) + public DataFactoryScriptActivity(string name) : base(name) { Argument.AssertNotNull(name, nameof(name)); @@ -26,7 +26,7 @@ public ScriptActivity(string name) : base(name) ActivityType = "Script"; } - /// Initializes a new instance of ScriptActivity. + /// Initializes a new instance of DataFactoryScriptActivity. /// Activity name. /// Type of activity. /// Activity description. @@ -40,7 +40,7 @@ public ScriptActivity(string name) : base(name) /// ScriptBlock execution timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). /// Array of script blocks. Type: array. /// Log settings of script activity. - internal ScriptActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, DataFactoryElement scriptBlockExecutionTimeout, IList scripts, ScriptActivityTypePropertiesLogSettings logSettings) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal DataFactoryScriptActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, DataFactoryElement scriptBlockExecutionTimeout, IList scripts, ScriptActivityTypeLogSettings logSettings) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { ScriptBlockExecutionTimeout = scriptBlockExecutionTimeout; Scripts = scripts; @@ -53,6 +53,6 @@ internal ScriptActivity(string name, string activityType, string description, Ac /// Array of script blocks. Type: array. public IList Scripts { get; } /// Log settings of script activity. - public ScriptActivityTypePropertiesLogSettings LogSettings { get; set; } + public ScriptActivityTypeLogSettings LogSettings { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScriptType.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScriptType.cs new file mode 100644 index 000000000000..b22c9532d9ec --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryScriptType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// The type of the query. Type: string. + public readonly partial struct DataFactoryScriptType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public DataFactoryScriptType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string QueryValue = "Query"; + private const string NonQueryValue = "NonQuery"; + + /// Query. + public static DataFactoryScriptType Query { get; } = new DataFactoryScriptType(QueryValue); + /// NonQuery. + public static DataFactoryScriptType NonQuery { get; } = new DataFactoryScriptType(NonQueryValue); + /// Determines if two values are the same. + public static bool operator ==(DataFactoryScriptType left, DataFactoryScriptType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(DataFactoryScriptType left, DataFactoryScriptType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator DataFactoryScriptType(string value) => new DataFactoryScriptType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is DataFactoryScriptType other && Equals(other); + /// + public bool Equals(DataFactoryScriptType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactorySparkConfigurationType.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactorySparkConfigurationType.cs new file mode 100644 index 000000000000..cb18d90719f4 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactorySparkConfigurationType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// The type of the spark config. + public readonly partial struct DataFactorySparkConfigurationType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public DataFactorySparkConfigurationType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string DefaultValue = "Default"; + private const string CustomizedValue = "Customized"; + private const string ArtifactValue = "Artifact"; + + /// Default. + public static DataFactorySparkConfigurationType Default { get; } = new DataFactorySparkConfigurationType(DefaultValue); + /// Customized. + public static DataFactorySparkConfigurationType Customized { get; } = new DataFactorySparkConfigurationType(CustomizedValue); + /// Artifact. + public static DataFactorySparkConfigurationType Artifact { get; } = new DataFactorySparkConfigurationType(ArtifactValue); + /// Determines if two values are the same. + public static bool operator ==(DataFactorySparkConfigurationType left, DataFactorySparkConfigurationType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(DataFactorySparkConfigurationType left, DataFactorySparkConfigurationType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator DataFactorySparkConfigurationType(string value) => new DataFactorySparkConfigurationType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is DataFactorySparkConfigurationType other && Equals(other); + /// + public bool Equals(DataFactorySparkConfigurationType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerData.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerData.Serialization.cs index 7481da427f5f..b8b88466d9c5 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerData.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerData.Serialization.cs @@ -29,7 +29,7 @@ internal static DataFactoryTriggerData DeserializeDataFactoryTriggerData(JsonEle { return null; } - DataFactoryTriggerDefinition properties = default; + DataFactoryTriggerProperties properties = default; Optional etag = default; ResourceIdentifier id = default; string name = default; @@ -39,7 +39,7 @@ internal static DataFactoryTriggerData DeserializeDataFactoryTriggerData(JsonEle { if (property.NameEquals("properties"u8)) { - properties = DataFactoryTriggerDefinition.DeserializeDataFactoryTriggerDefinition(property.Value); + properties = DataFactoryTriggerProperties.DeserializeDataFactoryTriggerProperties(property.Value); continue; } if (property.NameEquals("etag"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerDefinition.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerProperties.Serialization.cs similarity index 90% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerDefinition.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerProperties.Serialization.cs index 22a4b50accf6..ceec2b0e2bd1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerDefinition.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerProperties.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class DataFactoryTriggerDefinition : IUtf8JsonSerializable + public partial class DataFactoryTriggerProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -53,7 +53,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static DataFactoryTriggerDefinition DeserializeDataFactoryTriggerDefinition(JsonElement element) + internal static DataFactoryTriggerProperties DeserializeDataFactoryTriggerProperties(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -69,7 +69,7 @@ internal static DataFactoryTriggerDefinition DeserializeDataFactoryTriggerDefini case "CustomEventsTrigger": return CustomEventsTrigger.DeserializeCustomEventsTrigger(element); case "MultiplePipelineTrigger": return MultiplePipelineTrigger.DeserializeMultiplePipelineTrigger(element); case "RerunTumblingWindowTrigger": return RerunTumblingWindowTrigger.DeserializeRerunTumblingWindowTrigger(element); - case "ScheduleTrigger": return ScheduleTrigger.DeserializeScheduleTrigger(element); + case "ScheduleTrigger": return DataFactoryScheduleTrigger.DeserializeDataFactoryScheduleTrigger(element); case "TumblingWindowTrigger": return TumblingWindowTrigger.DeserializeTumblingWindowTrigger(element); } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerDefinition.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerProperties.cs similarity index 92% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerDefinition.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerProperties.cs index 3a758b8d7383..a6713a98ff60 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerDefinition.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryTriggerProperties.cs @@ -13,25 +13,25 @@ namespace Azure.ResourceManager.DataFactory.Models { /// /// Azure data factory nested object which contains information about creating pipeline run - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , and . /// - public partial class DataFactoryTriggerDefinition + public partial class DataFactoryTriggerProperties { - /// Initializes a new instance of DataFactoryTriggerDefinition. - public DataFactoryTriggerDefinition() + /// Initializes a new instance of DataFactoryTriggerProperties. + public DataFactoryTriggerProperties() { Annotations = new ChangeTrackingList(); AdditionalProperties = new ChangeTrackingDictionary(); } - /// Initializes a new instance of DataFactoryTriggerDefinition. + /// Initializes a new instance of DataFactoryTriggerProperties. /// Trigger type. /// Trigger description. /// Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. /// List of tags that can be used for describing the trigger. /// Additional Properties. - internal DataFactoryTriggerDefinition(string triggerType, string description, DataFactoryTriggerRuntimeState? runtimeState, IList annotations, IDictionary additionalProperties) + internal DataFactoryTriggerProperties(string triggerType, string description, DataFactoryTriggerRuntimeState? runtimeState, IList annotations, IDictionary additionalProperties) { TriggerType = triggerType; Description = description; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryWranglingDataFlowDefinition.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryWranglingDataFlowProperties.Serialization.cs similarity index 96% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryWranglingDataFlowDefinition.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryWranglingDataFlowProperties.Serialization.cs index f3af60372bb7..5425feb0932e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryWranglingDataFlowDefinition.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryWranglingDataFlowProperties.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class DataFactoryWranglingDataFlowDefinition : IUtf8JsonSerializable + public partial class DataFactoryWranglingDataFlowProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -74,7 +74,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static DataFactoryWranglingDataFlowDefinition DeserializeDataFactoryWranglingDataFlowDefinition(JsonElement element) + internal static DataFactoryWranglingDataFlowProperties DeserializeDataFactoryWranglingDataFlowProperties(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -166,7 +166,7 @@ internal static DataFactoryWranglingDataFlowDefinition DeserializeDataFactoryWra continue; } } - return new DataFactoryWranglingDataFlowDefinition(type, description.Value, Optional.ToList(annotations), folder.Value, Optional.ToList(sources), script.Value, documentLocale.Value); + return new DataFactoryWranglingDataFlowProperties(type, description.Value, Optional.ToList(annotations), folder.Value, Optional.ToList(sources), script.Value, documentLocale.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryWranglingDataFlowDefinition.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryWranglingDataFlowProperties.cs similarity index 87% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryWranglingDataFlowDefinition.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryWranglingDataFlowProperties.cs index 4a9720aeda3e..06c1fb427410 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryWranglingDataFlowDefinition.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryWranglingDataFlowProperties.cs @@ -12,16 +12,16 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Power Query data flow. - public partial class DataFactoryWranglingDataFlowDefinition : DataFactoryDataFlowDefinition + public partial class DataFactoryWranglingDataFlowProperties : DataFactoryDataFlowProperties { - /// Initializes a new instance of DataFactoryWranglingDataFlowDefinition. - public DataFactoryWranglingDataFlowDefinition() + /// Initializes a new instance of DataFactoryWranglingDataFlowProperties. + public DataFactoryWranglingDataFlowProperties() { Sources = new ChangeTrackingList(); DataFlowType = "WranglingDataFlow"; } - /// Initializes a new instance of DataFactoryWranglingDataFlowDefinition. + /// Initializes a new instance of DataFactoryWranglingDataFlowProperties. /// Type of data flow. /// The description of the data flow. /// List of tags that can be used for describing the data flow. @@ -29,7 +29,7 @@ public DataFactoryWranglingDataFlowDefinition() /// List of sources in Power Query. /// Power query mashup script. /// Locale of the Power query mashup document. - internal DataFactoryWranglingDataFlowDefinition(string dataFlowType, string description, IList annotations, DataFlowFolder folder, IList sources, string script, string documentLocale) : base(dataFlowType, description, annotations, folder) + internal DataFactoryWranglingDataFlowProperties(string dataFlowType, string description, IList annotations, DataFlowFolder folder, IList sources, string script, string documentLocale) : base(dataFlowType, description, annotations, folder) { Sources = sources; Script = script; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugSessionInfo.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugSessionInfo.Serialization.cs index 50c10553df03..add98642b840 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugSessionInfo.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugSessionInfo.Serialization.cs @@ -26,7 +26,7 @@ internal static DataFlowDebugSessionInfo DeserializeDataFlowDebugSessionInfo(Jso Optional nodeCount = default; Optional integrationRuntimeName = default; Optional sessionId = default; - Optional startTime = default; + Optional startTime = default; Optional timeToLiveInMinutes = default; Optional lastActivityTime = default; IReadOnlyDictionary additionalProperties = default; @@ -77,7 +77,11 @@ internal static DataFlowDebugSessionInfo DeserializeDataFlowDebugSessionInfo(Jso } if (property.NameEquals("startTime"u8)) { - startTime = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + startTime = property.Value.GetDateTimeOffset("O"); continue; } if (property.NameEquals("timeToLiveInMinutes"u8)) @@ -101,7 +105,7 @@ internal static DataFlowDebugSessionInfo DeserializeDataFlowDebugSessionInfo(Jso additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } additionalProperties = additionalPropertiesDictionary; - return new DataFlowDebugSessionInfo(dataFlowName.Value, computeType.Value, Optional.ToNullable(coreCount), Optional.ToNullable(nodeCount), integrationRuntimeName.Value, Optional.ToNullable(sessionId), startTime.Value, Optional.ToNullable(timeToLiveInMinutes), Optional.ToNullable(lastActivityTime), additionalProperties); + return new DataFlowDebugSessionInfo(dataFlowName.Value, computeType.Value, Optional.ToNullable(coreCount), Optional.ToNullable(nodeCount), integrationRuntimeName.Value, Optional.ToNullable(sessionId), Optional.ToNullable(startTime), Optional.ToNullable(timeToLiveInMinutes), Optional.ToNullable(lastActivityTime), additionalProperties); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugSessionInfo.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugSessionInfo.cs index fa465ffaa5f3..0b52f523c9bf 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugSessionInfo.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugSessionInfo.cs @@ -31,7 +31,7 @@ internal DataFlowDebugSessionInfo() /// Compute type of the cluster. /// Last activity time of data flow debug session. /// Additional Properties. - internal DataFlowDebugSessionInfo(string dataFlowName, string computeType, int? coreCount, int? nodeCount, string integrationRuntimeName, Guid? sessionId, string startOn, int? timeToLiveInMinutes, DateTimeOffset? lastActivityOn, IReadOnlyDictionary additionalProperties) + internal DataFlowDebugSessionInfo(string dataFlowName, string computeType, int? coreCount, int? nodeCount, string integrationRuntimeName, Guid? sessionId, DateTimeOffset? startOn, int? timeToLiveInMinutes, DateTimeOffset? lastActivityOn, IReadOnlyDictionary additionalProperties) { DataFlowName = dataFlowName; ComputeType = computeType; @@ -58,7 +58,7 @@ internal DataFlowDebugSessionInfo(string dataFlowName, string computeType, int? /// The ID of data flow debug session. public Guid? SessionId { get; } /// Start time of data flow debug session. - public string StartOn { get; } + public DateTimeOffset? StartOn { get; } /// Compute type of the cluster. public int? TimeToLiveInMinutes { get; } /// Last activity time of data flow debug session. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QueryDataFlowDebugSessionsResponse.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugSessionInfoListResult.Serialization.cs similarity index 85% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QueryDataFlowDebugSessionsResponse.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugSessionInfoListResult.Serialization.cs index 65eb975df117..7eb9bcf096c0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QueryDataFlowDebugSessionsResponse.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugSessionInfoListResult.Serialization.cs @@ -11,9 +11,9 @@ namespace Azure.ResourceManager.DataFactory.Models { - internal partial class QueryDataFlowDebugSessionsResponse + internal partial class DataFlowDebugSessionInfoListResult { - internal static QueryDataFlowDebugSessionsResponse DeserializeQueryDataFlowDebugSessionsResponse(JsonElement element) + internal static DataFlowDebugSessionInfoListResult DeserializeDataFlowDebugSessionInfoListResult(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -43,7 +43,7 @@ internal static QueryDataFlowDebugSessionsResponse DeserializeQueryDataFlowDebug continue; } } - return new QueryDataFlowDebugSessionsResponse(Optional.ToList(value), nextLink.Value); + return new DataFlowDebugSessionInfoListResult(Optional.ToList(value), nextLink.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QueryDataFlowDebugSessionsResponse.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugSessionInfoListResult.cs similarity index 73% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QueryDataFlowDebugSessionsResponse.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugSessionInfoListResult.cs index 9450c753689b..826387cb43c9 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QueryDataFlowDebugSessionsResponse.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFlowDebugSessionInfoListResult.cs @@ -11,18 +11,18 @@ namespace Azure.ResourceManager.DataFactory.Models { /// A list of active debug sessions. - internal partial class QueryDataFlowDebugSessionsResponse + internal partial class DataFlowDebugSessionInfoListResult { - /// Initializes a new instance of QueryDataFlowDebugSessionsResponse. - internal QueryDataFlowDebugSessionsResponse() + /// Initializes a new instance of DataFlowDebugSessionInfoListResult. + internal DataFlowDebugSessionInfoListResult() { Value = new ChangeTrackingList(); } - /// Initializes a new instance of QueryDataFlowDebugSessionsResponse. + /// Initializes a new instance of DataFlowDebugSessionInfoListResult. /// Array with all active debug sessions. /// The link to the next page of results, if any remaining results exist. - internal QueryDataFlowDebugSessionsResponse(IReadOnlyList value, string nextLink) + internal DataFlowDebugSessionInfoListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataLakeAnalyticsUsqlActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataLakeAnalyticsUsqlActivity.Serialization.cs index 6cbdb57f213f..8f7e09783c2c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataLakeAnalyticsUsqlActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataLakeAnalyticsUsqlActivity.Serialization.cs @@ -132,14 +132,14 @@ internal static DataLakeAnalyticsUsqlActivity DeserializeDataLakeAnalyticsUsqlAc return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; DataFactoryElement scriptPath = default; DataFactoryLinkedServiceReference scriptLinkedService = default; Optional> degreeOfParallelism = default; @@ -166,7 +166,7 @@ internal static DataLakeAnalyticsUsqlActivity DeserializeDataLakeAnalyticsUsqlAc { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -190,7 +190,7 @@ internal static DataLakeAnalyticsUsqlActivity DeserializeDataLakeAnalyticsUsqlAc { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -199,7 +199,7 @@ internal static DataLakeAnalyticsUsqlActivity DeserializeDataLakeAnalyticsUsqlAc { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -208,10 +208,10 @@ internal static DataLakeAnalyticsUsqlActivity DeserializeDataLakeAnalyticsUsqlAc { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -222,10 +222,10 @@ internal static DataLakeAnalyticsUsqlActivity DeserializeDataLakeAnalyticsUsqlAc { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataLakeAnalyticsUsqlActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataLakeAnalyticsUsqlActivity.cs index 29c3b98a7bc9..291c751dda7f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataLakeAnalyticsUsqlActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataLakeAnalyticsUsqlActivity.cs @@ -50,7 +50,7 @@ public DataLakeAnalyticsUsqlActivity(string name, DataFactoryElement scr /// Parameters for U-SQL job request. /// Runtime version of the U-SQL engine to use. Type: string (or Expression with resultType string). /// Compilation mode of U-SQL. Must be one of these values : Semantic, Full and SingleBox. Type: string (or Expression with resultType string). - internal DataLakeAnalyticsUsqlActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, DataFactoryElement scriptPath, DataFactoryLinkedServiceReference scriptLinkedService, DataFactoryElement degreeOfParallelism, DataFactoryElement priority, IDictionary parameters, DataFactoryElement runtimeVersion, DataFactoryElement compilationMode) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal DataLakeAnalyticsUsqlActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, DataFactoryElement scriptPath, DataFactoryLinkedServiceReference scriptLinkedService, DataFactoryElement degreeOfParallelism, DataFactoryElement priority, IDictionary parameters, DataFactoryElement runtimeVersion, DataFactoryElement compilationMode) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { ScriptPath = scriptPath; ScriptLinkedService = scriptLinkedService; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataMapperMapping.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataMapperMapping.Serialization.cs new file mode 100644 index 000000000000..55f8627523c4 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataMapperMapping.Serialization.cs @@ -0,0 +1,105 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DataFactory.Models +{ + public partial class DataMapperMapping : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(TargetEntityName)) + { + writer.WritePropertyName("targetEntityName"u8); + writer.WriteStringValue(TargetEntityName); + } + if (Optional.IsDefined(SourceEntityName)) + { + writer.WritePropertyName("sourceEntityName"u8); + writer.WriteStringValue(SourceEntityName); + } + if (Optional.IsDefined(SourceConnectionReference)) + { + writer.WritePropertyName("sourceConnectionReference"u8); + writer.WriteObjectValue(SourceConnectionReference); + } + if (Optional.IsDefined(AttributeMappingInfo)) + { + writer.WritePropertyName("attributeMappingInfo"u8); + writer.WriteObjectValue(AttributeMappingInfo); + } + if (Optional.IsDefined(SourceDenormalizeInfo)) + { + writer.WritePropertyName("sourceDenormalizeInfo"u8); +#if NET6_0_OR_GREATER + writer.WriteRawValue(SourceDenormalizeInfo); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(SourceDenormalizeInfo.ToString()).RootElement); +#endif + } + writer.WriteEndObject(); + } + + internal static DataMapperMapping DeserializeDataMapperMapping(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional targetEntityName = default; + Optional sourceEntityName = default; + Optional sourceConnectionReference = default; + Optional attributeMappingInfo = default; + Optional sourceDenormalizeInfo = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("targetEntityName"u8)) + { + targetEntityName = property.Value.GetString(); + continue; + } + if (property.NameEquals("sourceEntityName"u8)) + { + sourceEntityName = property.Value.GetString(); + continue; + } + if (property.NameEquals("sourceConnectionReference"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sourceConnectionReference = MapperConnectionReference.DeserializeMapperConnectionReference(property.Value); + continue; + } + if (property.NameEquals("attributeMappingInfo"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + attributeMappingInfo = MapperAttributeMappings.DeserializeMapperAttributeMappings(property.Value); + continue; + } + if (property.NameEquals("sourceDenormalizeInfo"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sourceDenormalizeInfo = BinaryData.FromString(property.Value.GetRawText()); + continue; + } + } + return new DataMapperMapping(targetEntityName.Value, sourceEntityName.Value, sourceConnectionReference.Value, attributeMappingInfo.Value, sourceDenormalizeInfo.Value); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataMapperMapping.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataMapperMapping.cs new file mode 100644 index 000000000000..a42a3d2b62b8 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataMapperMapping.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// Source and target table mapping details. + public partial class DataMapperMapping + { + /// Initializes a new instance of DataMapperMapping. + public DataMapperMapping() + { + } + + /// Initializes a new instance of DataMapperMapping. + /// Name of the target table. + /// Name of the source table. + /// The connection reference for the source connection. + /// This holds the user provided attribute mapping information. + /// This holds the source denormalization information used while joining multiple sources. + internal DataMapperMapping(string targetEntityName, string sourceEntityName, MapperConnectionReference sourceConnectionReference, MapperAttributeMappings attributeMappingInfo, BinaryData sourceDenormalizeInfo) + { + TargetEntityName = targetEntityName; + SourceEntityName = sourceEntityName; + SourceConnectionReference = sourceConnectionReference; + AttributeMappingInfo = attributeMappingInfo; + SourceDenormalizeInfo = sourceDenormalizeInfo; + } + + /// Name of the target table. + public string TargetEntityName { get; set; } + /// Name of the source table. + public string SourceEntityName { get; set; } + /// The connection reference for the source connection. + public MapperConnectionReference SourceConnectionReference { get; set; } + /// This holds the user provided attribute mapping information. + internal MapperAttributeMappings AttributeMappingInfo { get; set; } + /// List of attribute mappings. + public IList AttributeMappings + { + get + { + if (AttributeMappingInfo is null) + AttributeMappingInfo = new MapperAttributeMappings(); + return AttributeMappingInfo.AttributeMappings; + } + } + + /// + /// This holds the source denormalization information used while joining multiple sources. + /// + /// To assign an object to this property use . + /// + /// + /// To assign an already formated json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + public BinaryData SourceDenormalizeInfo { get; set; } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksNotebookActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksNotebookActivity.Serialization.cs index 431e9f453da3..3445dbae09d4 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksNotebookActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksNotebookActivity.Serialization.cs @@ -141,14 +141,14 @@ internal static DatabricksNotebookActivity DeserializeDatabricksNotebookActivity return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; DataFactoryElement notebookPath = default; Optional> baseParameters = default; Optional>> libraries = default; @@ -171,7 +171,7 @@ internal static DatabricksNotebookActivity DeserializeDatabricksNotebookActivity { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -195,7 +195,7 @@ internal static DatabricksNotebookActivity DeserializeDatabricksNotebookActivity { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -204,7 +204,7 @@ internal static DatabricksNotebookActivity DeserializeDatabricksNotebookActivity { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -213,10 +213,10 @@ internal static DatabricksNotebookActivity DeserializeDatabricksNotebookActivity { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -227,10 +227,10 @@ internal static DatabricksNotebookActivity DeserializeDatabricksNotebookActivity { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksNotebookActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksNotebookActivity.cs index c3acd0591558..88fc8ac6ac00 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksNotebookActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksNotebookActivity.cs @@ -44,7 +44,7 @@ public DatabricksNotebookActivity(string name, DataFactoryElement notebo /// The absolute path of the notebook to be run in the Databricks Workspace. This path must begin with a slash. Type: string (or Expression with resultType string). /// Base parameters to be used for each run of this job.If the notebook takes a parameter that is not specified, the default value from the notebook will be used. /// A list of libraries to be installed on the cluster that will execute the job. - internal DatabricksNotebookActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, DataFactoryElement notebookPath, IDictionary baseParameters, IList> libraries) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal DatabricksNotebookActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, DataFactoryElement notebookPath, IDictionary baseParameters, IList> libraries) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { NotebookPath = notebookPath; BaseParameters = baseParameters; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkJarActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkJarActivity.Serialization.cs index d82e60ac6bb1..3830eab5fb45 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkJarActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkJarActivity.Serialization.cs @@ -140,14 +140,14 @@ internal static DatabricksSparkJarActivity DeserializeDatabricksSparkJarActivity return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; DataFactoryElement mainClassName = default; Optional> parameters = default; Optional>> libraries = default; @@ -170,7 +170,7 @@ internal static DatabricksSparkJarActivity DeserializeDatabricksSparkJarActivity { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -194,7 +194,7 @@ internal static DatabricksSparkJarActivity DeserializeDatabricksSparkJarActivity { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -203,7 +203,7 @@ internal static DatabricksSparkJarActivity DeserializeDatabricksSparkJarActivity { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -212,10 +212,10 @@ internal static DatabricksSparkJarActivity DeserializeDatabricksSparkJarActivity { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -226,10 +226,10 @@ internal static DatabricksSparkJarActivity DeserializeDatabricksSparkJarActivity { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkJarActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkJarActivity.cs index a94b0ed386f3..4e2bb6a3d1fd 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkJarActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkJarActivity.cs @@ -44,7 +44,7 @@ public DatabricksSparkJarActivity(string name, DataFactoryElement mainCl /// The full name of the class containing the main method to be executed. This class must be contained in a JAR provided as a library. Type: string (or Expression with resultType string). /// Parameters that will be passed to the main method. /// A list of libraries to be installed on the cluster that will execute the job. - internal DatabricksSparkJarActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, DataFactoryElement mainClassName, IList parameters, IList> libraries) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal DatabricksSparkJarActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, DataFactoryElement mainClassName, IList parameters, IList> libraries) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { MainClassName = mainClassName; Parameters = parameters; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkPythonActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkPythonActivity.Serialization.cs index 55f0e7077617..e937a7237a0b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkPythonActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkPythonActivity.Serialization.cs @@ -140,14 +140,14 @@ internal static DatabricksSparkPythonActivity DeserializeDatabricksSparkPythonAc return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; DataFactoryElement pythonFile = default; Optional> parameters = default; Optional>> libraries = default; @@ -170,7 +170,7 @@ internal static DatabricksSparkPythonActivity DeserializeDatabricksSparkPythonAc { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -194,7 +194,7 @@ internal static DatabricksSparkPythonActivity DeserializeDatabricksSparkPythonAc { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -203,7 +203,7 @@ internal static DatabricksSparkPythonActivity DeserializeDatabricksSparkPythonAc { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -212,10 +212,10 @@ internal static DatabricksSparkPythonActivity DeserializeDatabricksSparkPythonAc { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -226,10 +226,10 @@ internal static DatabricksSparkPythonActivity DeserializeDatabricksSparkPythonAc { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkPythonActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkPythonActivity.cs index 3e9a408b7bb9..2bc28babb6ae 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkPythonActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DatabricksSparkPythonActivity.cs @@ -44,7 +44,7 @@ public DatabricksSparkPythonActivity(string name, DataFactoryElement pyt /// The URI of the Python file to be executed. DBFS paths are supported. Type: string (or Expression with resultType string). /// Command line parameters that will be passed to the Python file. /// A list of libraries to be installed on the cluster that will execute the job. - internal DatabricksSparkPythonActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, DataFactoryElement pythonFile, IList parameters, IList> libraries) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal DatabricksSparkPythonActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, DataFactoryElement pythonFile, IList parameters, IList> libraries) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { PythonFile = pythonFile; Parameters = parameters; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataworldLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataworldLinkedService.Serialization.cs index b4acafd6dca8..6bdac5772637 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataworldLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataworldLinkedService.Serialization.cs @@ -66,11 +66,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) JsonSerializer.Serialize(writer, ApiToken); if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -97,7 +93,7 @@ internal static DataworldLinkedService DeserializeDataworldLinkedService(JsonEle Optional> parameters = default; Optional> annotations = default; DataFactorySecretBaseDefinition apiToken = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -172,11 +168,7 @@ internal static DataworldLinkedService DeserializeDataworldLinkedService(JsonEle } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataworldLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataworldLinkedService.cs index 9c252c17a4ef..1fb732651183 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataworldLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataworldLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for Dataworld. - public partial class DataworldLinkedService : DataFactoryLinkedServiceDefinition + public partial class DataworldLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of DataworldLinkedService. /// The api token for the Dataworld source. @@ -35,7 +35,7 @@ public DataworldLinkedService(DataFactorySecretBaseDefinition apiToken) /// Additional Properties. /// The api token for the Dataworld source. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal DataworldLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactorySecretBaseDefinition apiToken, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal DataworldLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactorySecretBaseDefinition apiToken, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ApiToken = apiToken; EncryptedCredential = encryptedCredential; @@ -44,36 +44,7 @@ internal DataworldLinkedService(string linkedServiceType, IntegrationRuntimeRefe /// The api token for the Dataworld source. public DataFactorySecretBaseDefinition ApiToken { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DayOfWeek.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DayOfWeek.Serialization.cs deleted file mode 100644 index f15efd445b78..000000000000 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DayOfWeek.Serialization.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.DataFactory.Models -{ - internal static partial class DayOfWeekExtensions - { - public static string ToSerialString(this DayOfWeek value) => value switch - { - DayOfWeek.Sunday => "Sunday", - DayOfWeek.Monday => "Monday", - DayOfWeek.Tuesday => "Tuesday", - DayOfWeek.Wednesday => "Wednesday", - DayOfWeek.Thursday => "Thursday", - DayOfWeek.Friday => "Friday", - DayOfWeek.Saturday => "Saturday", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DayOfWeek value.") - }; - - public static DayOfWeek ToDayOfWeek(this string value) - { - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Sunday")) return DayOfWeek.Sunday; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Monday")) return DayOfWeek.Monday; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Tuesday")) return DayOfWeek.Tuesday; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Wednesday")) return DayOfWeek.Wednesday; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Thursday")) return DayOfWeek.Thursday; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Friday")) return DayOfWeek.Friday; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Saturday")) return DayOfWeek.Saturday; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DayOfWeek value."); - } - } -} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DayOfWeek.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DayOfWeek.cs deleted file mode 100644 index b42a107937f7..000000000000 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DayOfWeek.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.DataFactory.Models -{ - /// The days of the week. - public enum DayOfWeek - { - /// Sunday. - Sunday, - /// Monday. - Monday, - /// Tuesday. - Tuesday, - /// Wednesday. - Wednesday, - /// Thursday. - Thursday, - /// Friday. - Friday, - /// Saturday. - Saturday - } -} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Db2LinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Db2LinkedService.Serialization.cs index 624fbe9f5416..2df4e6efde6a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Db2LinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Db2LinkedService.Serialization.cs @@ -105,11 +105,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -143,7 +139,7 @@ internal static Db2LinkedService DeserializeDb2LinkedService(JsonElement element Optional password = default; Optional> packageCollection = default; Optional> certificateCommonName = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -285,11 +281,7 @@ internal static Db2LinkedService DeserializeDb2LinkedService(JsonElement element } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Db2LinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Db2LinkedService.cs index 716245620876..1666d214dbf6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Db2LinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Db2LinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for DB2 data source. - public partial class Db2LinkedService : DataFactoryLinkedServiceDefinition + public partial class Db2LinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of Db2LinkedService. public Db2LinkedService() @@ -36,7 +36,7 @@ public Db2LinkedService() /// Under where packages are created when querying database. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string). /// Certificate Common Name when TLS is enabled. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. It is mutually exclusive with connectionString property. Type: string. - internal Db2LinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryElement server, DataFactoryElement database, Db2AuthenticationType? authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement packageCollection, DataFactoryElement certificateCommonName, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal Db2LinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryElement server, DataFactoryElement database, Db2AuthenticationType? authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement packageCollection, DataFactoryElement certificateCommonName, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; Server = server; @@ -66,36 +66,7 @@ internal Db2LinkedService(string linkedServiceType, IntegrationRuntimeReference public DataFactoryElement PackageCollection { get; set; } /// Certificate Common Name when TLS is enabled. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string). public DataFactoryElement CertificateCommonName { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. It is mutually exclusive with connectionString property. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. It is mutually exclusive with connectionString property. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Db2TableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Db2TableDataset.cs index 2521ffcbbc6a..0430a1843d9c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Db2TableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Db2TableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Db2 table dataset. - public partial class Db2TableDataset : DataFactoryDatasetDefinition + public partial class Db2TableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of Db2TableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DeleteActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DeleteActivity.Serialization.cs index 42eb62a0213c..5089a9ebc4af 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DeleteActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DeleteActivity.Serialization.cs @@ -116,14 +116,14 @@ internal static DeleteActivity DeserializeDeleteActivity(JsonElement element) return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; Optional> recursive = default; Optional maxConcurrentConnections = default; Optional> enableLogging = default; @@ -149,7 +149,7 @@ internal static DeleteActivity DeserializeDeleteActivity(JsonElement element) { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -173,7 +173,7 @@ internal static DeleteActivity DeserializeDeleteActivity(JsonElement element) { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -182,7 +182,7 @@ internal static DeleteActivity DeserializeDeleteActivity(JsonElement element) { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -191,10 +191,10 @@ internal static DeleteActivity DeserializeDeleteActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -205,10 +205,10 @@ internal static DeleteActivity DeserializeDeleteActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DeleteActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DeleteActivity.cs index 55ef67ccee8a..8dddf323f904 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DeleteActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DeleteActivity.cs @@ -49,7 +49,7 @@ public DeleteActivity(string name, DatasetReference dataset) : base(name) /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , , , , , , , , , , and . /// - internal DeleteActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, DataFactoryElement recursive, int? maxConcurrentConnections, DataFactoryElement enableLogging, LogStorageSettings logStorageSettings, DatasetReference dataset, StoreReadSettings storeSettings) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal DeleteActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, DataFactoryElement recursive, int? maxConcurrentConnections, DataFactoryElement enableLogging, LogStorageSettings logStorageSettings, DatasetReference dataset, StoreReadSettings storeSettings) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { Recursive = recursive; MaxConcurrentConnections = maxConcurrentConnections; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DelimitedTextDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DelimitedTextDataset.cs index 35f21f2bd86d..bcd87cf39d35 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DelimitedTextDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DelimitedTextDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Delimited text dataset. - public partial class DelimitedTextDataset : DataFactoryDatasetDefinition + public partial class DelimitedTextDataset : DataFactoryDatasetProperties { /// Initializes a new instance of DelimitedTextDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DocumentDBCollectionDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DocumentDBCollectionDataset.cs index 573845a6a32a..dea0ce69d3d6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DocumentDBCollectionDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DocumentDBCollectionDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Microsoft Azure Document Database Collection dataset. - public partial class DocumentDBCollectionDataset : DataFactoryDatasetDefinition + public partial class DocumentDBCollectionDataset : DataFactoryDatasetProperties { /// Initializes a new instance of DocumentDBCollectionDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DrillLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DrillLinkedService.Serialization.cs index af18c67915ee..b904f06c7c45 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DrillLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DrillLinkedService.Serialization.cs @@ -75,11 +75,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -107,7 +103,7 @@ internal static DrillLinkedService DeserializeDrillLinkedService(JsonElement ele Optional> annotations = default; Optional> connectionString = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -195,11 +191,7 @@ internal static DrillLinkedService DeserializeDrillLinkedService(JsonElement ele } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DrillLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DrillLinkedService.cs index 2c8ba8ae862f..8a1d40ffab52 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DrillLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DrillLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Drill server linked service. - public partial class DrillLinkedService : DataFactoryLinkedServiceDefinition + public partial class DrillLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of DrillLinkedService. public DrillLinkedService() @@ -30,7 +30,7 @@ public DrillLinkedService() /// An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. /// The Azure key vault secret reference of password in connection string. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal DrillLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal DrillLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; Password = password; @@ -42,36 +42,7 @@ internal DrillLinkedService(string linkedServiceType, IntegrationRuntimeReferenc public DataFactoryElement ConnectionString { get; set; } /// The Azure key vault secret reference of password in connection string. public DataFactoryKeyVaultSecretReference Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DrillTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DrillTableDataset.cs index cfd4529291ff..4fd354879150 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DrillTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DrillTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Drill server dataset. - public partial class DrillTableDataset : DataFactoryDatasetDefinition + public partial class DrillTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of DrillTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsAXLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsAXLinkedService.Serialization.cs index 411d6d8a1886..c364b391526a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsAXLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsAXLinkedService.Serialization.cs @@ -78,11 +78,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -113,7 +109,7 @@ internal static DynamicsAXLinkedService DeserializeDynamicsAXLinkedService(JsonE DataFactorySecretBaseDefinition servicePrincipalKey = default; DataFactoryElement tenant = default; DataFactoryElement aadResourceId = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -208,11 +204,7 @@ internal static DynamicsAXLinkedService DeserializeDynamicsAXLinkedService(JsonE } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsAXLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsAXLinkedService.cs index 00a85de3f585..0b354f02d65e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsAXLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsAXLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Dynamics AX linked service. - public partial class DynamicsAXLinkedService : DataFactoryLinkedServiceDefinition + public partial class DynamicsAXLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of DynamicsAXLinkedService. /// The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData endpoint. @@ -51,7 +51,7 @@ public DynamicsAXLinkedService(BinaryData uri, DataFactoryElement servic /// Specify the tenant information (domain name or tenant ID) under which your application resides. Retrieve it by hovering the mouse in the top-right corner of the Azure portal. Type: string (or Expression with resultType string). /// Specify the resource you are requesting authorization. Type: string (or Expression with resultType string). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal DynamicsAXLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData uri, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, DataFactoryElement aadResourceId, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal DynamicsAXLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData uri, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, DataFactoryElement aadResourceId, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Uri = uri; ServicePrincipalId = servicePrincipalId; @@ -101,36 +101,7 @@ internal DynamicsAXLinkedService(string linkedServiceType, IntegrationRuntimeRef public DataFactoryElement Tenant { get; set; } /// Specify the resource you are requesting authorization. Type: string (or Expression with resultType string). public DataFactoryElement AadResourceId { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsAXResourceDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsAXResourceDataset.cs index f59d870424cc..d09fd300830b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsAXResourceDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsAXResourceDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The path of the Dynamics AX OData entity. - public partial class DynamicsAXResourceDataset : DataFactoryDatasetDefinition + public partial class DynamicsAXResourceDataset : DataFactoryDatasetProperties { /// Initializes a new instance of DynamicsAXResourceDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsCrmEntityDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsCrmEntityDataset.cs index 6ba86af4653f..764110b25781 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsCrmEntityDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsCrmEntityDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Dynamics CRM entity dataset. - public partial class DynamicsCrmEntityDataset : DataFactoryDatasetDefinition + public partial class DynamicsCrmEntityDataset : DataFactoryDatasetProperties { /// Initializes a new instance of DynamicsCrmEntityDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsCrmLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsCrmLinkedService.Serialization.cs index 795fc167e68f..5a79ba3d3ce0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsCrmLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsCrmLinkedService.Serialization.cs @@ -114,11 +114,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -155,7 +151,7 @@ internal static DynamicsCrmLinkedService DeserializeDynamicsCrmLinkedService(Jso Optional> servicePrincipalId = default; Optional> servicePrincipalCredentialType = default; Optional servicePrincipalCredential = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -316,11 +312,7 @@ internal static DynamicsCrmLinkedService DeserializeDynamicsCrmLinkedService(Jso } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsCrmLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsCrmLinkedService.cs index 0c459319b7fc..79f8a283f300 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsCrmLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsCrmLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Dynamics CRM linked service. - public partial class DynamicsCrmLinkedService : DataFactoryLinkedServiceDefinition + public partial class DynamicsCrmLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of DynamicsCrmLinkedService. /// The deployment type of the Dynamics CRM instance. 'Online' for Dynamics CRM Online and 'OnPremisesWithIfd' for Dynamics CRM on-premises with Ifd. Type: string (or Expression with resultType string). @@ -48,7 +48,7 @@ public DynamicsCrmLinkedService(DataFactoryElement deploymentType, DataF /// The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string). /// The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal DynamicsCrmLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement deploymentType, DataFactoryElement hostName, DataFactoryElement port, DataFactoryElement serviceUri, DataFactoryElement organizationName, DataFactoryElement authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement servicePrincipalId, DataFactoryElement servicePrincipalCredentialType, DataFactorySecretBaseDefinition servicePrincipalCredential, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal DynamicsCrmLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement deploymentType, DataFactoryElement hostName, DataFactoryElement port, DataFactoryElement serviceUri, DataFactoryElement organizationName, DataFactoryElement authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement servicePrincipalId, DataFactoryElement servicePrincipalCredentialType, DataFactorySecretBaseDefinition servicePrincipalCredential, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { DeploymentType = deploymentType; HostName = hostName; @@ -87,36 +87,7 @@ internal DynamicsCrmLinkedService(string linkedServiceType, IntegrationRuntimeRe public DataFactoryElement ServicePrincipalCredentialType { get; set; } /// The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference. public DataFactorySecretBaseDefinition ServicePrincipalCredential { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsEntityDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsEntityDataset.cs index 42cbffaee72c..0d8e12e86ea1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsEntityDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsEntityDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Dynamics entity dataset. - public partial class DynamicsEntityDataset : DataFactoryDatasetDefinition + public partial class DynamicsEntityDataset : DataFactoryDatasetProperties { /// Initializes a new instance of DynamicsEntityDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsLinkedService.Serialization.cs index 02dce00c1397..4d2bb6f0b086 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsLinkedService.Serialization.cs @@ -114,11 +114,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } if (Optional.IsDefined(Credential)) { @@ -160,7 +156,7 @@ internal static DynamicsLinkedService DeserializeDynamicsLinkedService(JsonEleme Optional> servicePrincipalId = default; Optional> servicePrincipalCredentialType = default; Optional servicePrincipalCredential = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; Optional credential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); @@ -322,11 +318,7 @@ internal static DynamicsLinkedService DeserializeDynamicsLinkedService(JsonEleme } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } if (property0.NameEquals("credential"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsLinkedService.cs index 5a69270f9c02..318c2fec8d3d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DynamicsLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Dynamics linked service. - public partial class DynamicsLinkedService : DataFactoryLinkedServiceDefinition + public partial class DynamicsLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of DynamicsLinkedService. /// The deployment type of the Dynamics instance. 'Online' for Dynamics Online and 'OnPremisesWithIfd' for Dynamics on-premises with Ifd. Type: string (or Expression with resultType string). @@ -49,7 +49,7 @@ public DynamicsLinkedService(DataFactoryElement deploymentType, DataFact /// The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. /// The credential reference containing authentication information. - internal DynamicsLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement deploymentType, DataFactoryElement hostName, DataFactoryElement port, DataFactoryElement serviceUri, DataFactoryElement organizationName, DataFactoryElement authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement servicePrincipalId, DataFactoryElement servicePrincipalCredentialType, DataFactorySecretBaseDefinition servicePrincipalCredential, BinaryData encryptedCredential, DataFactoryCredentialReference credential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal DynamicsLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement deploymentType, DataFactoryElement hostName, DataFactoryElement port, DataFactoryElement serviceUri, DataFactoryElement organizationName, DataFactoryElement authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement servicePrincipalId, DataFactoryElement servicePrincipalCredentialType, DataFactorySecretBaseDefinition servicePrincipalCredential, string encryptedCredential, DataFactoryCredentialReference credential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { DeploymentType = deploymentType; HostName = hostName; @@ -89,37 +89,8 @@ internal DynamicsLinkedService(string linkedServiceType, IntegrationRuntimeRefer public DataFactoryElement ServicePrincipalCredentialType { get; set; } /// The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference. public DataFactorySecretBaseDefinition ServicePrincipalCredential { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } /// The credential reference containing authentication information. public DataFactoryCredentialReference Credential { get; set; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/EloquaLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/EloquaLinkedService.Serialization.cs index 872a8ccba133..153e570e9ce5 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/EloquaLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/EloquaLinkedService.Serialization.cs @@ -89,11 +89,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -125,7 +121,7 @@ internal static EloquaLinkedService DeserializeEloquaLinkedService(JsonElement e Optional> useEncryptedEndpoints = default; Optional> useHostVerification = default; Optional> usePeerVerification = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -241,11 +237,7 @@ internal static EloquaLinkedService DeserializeEloquaLinkedService(JsonElement e } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/EloquaLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/EloquaLinkedService.cs index ec2c01ebfdae..0e8443207d42 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/EloquaLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/EloquaLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Eloqua server linked service. - public partial class EloquaLinkedService : DataFactoryLinkedServiceDefinition + public partial class EloquaLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of EloquaLinkedService. /// The endpoint of the Eloqua server. (i.e. eloqua.example.com). @@ -43,7 +43,7 @@ public EloquaLinkedService(DataFactoryElement endpoint, DataFactoryEleme /// Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal EloquaLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement endpoint, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal EloquaLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement endpoint, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Endpoint = endpoint; Username = username; @@ -67,36 +67,7 @@ internal EloquaLinkedService(string linkedServiceType, IntegrationRuntimeReferen public DataFactoryElement UseHostVerification { get; set; } /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. public DataFactoryElement UsePeerVerification { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/EloquaObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/EloquaObjectDataset.cs index b2dd883cb95a..73a1c820500b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/EloquaObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/EloquaObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Eloqua server dataset. - public partial class EloquaObjectDataset : DataFactoryDatasetDefinition + public partial class EloquaObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of EloquaObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExcelDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExcelDataset.cs index e4f43eacfdde..1c4cfc81e5c6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExcelDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExcelDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Excel dataset. - public partial class ExcelDataset : DataFactoryDatasetDefinition + public partial class ExcelDataset : DataFactoryDatasetProperties { /// Initializes a new instance of ExcelDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteDataFlowActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteDataFlowActivity.Serialization.cs index 016a2f57c949..f5395a26ba3d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteDataFlowActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteDataFlowActivity.Serialization.cs @@ -126,18 +126,18 @@ internal static ExecuteDataFlowActivity DeserializeExecuteDataFlowActivity(JsonE return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; DataFlowReference dataFlow = default; Optional staging = default; Optional integrationRuntime = default; - Optional compute = default; + Optional compute = default; Optional> traceLevel = default; Optional> continueOnError = default; Optional> runConcurrently = default; @@ -161,7 +161,7 @@ internal static ExecuteDataFlowActivity DeserializeExecuteDataFlowActivity(JsonE { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -185,7 +185,7 @@ internal static ExecuteDataFlowActivity DeserializeExecuteDataFlowActivity(JsonE { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -194,7 +194,7 @@ internal static ExecuteDataFlowActivity DeserializeExecuteDataFlowActivity(JsonE { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -203,10 +203,10 @@ internal static ExecuteDataFlowActivity DeserializeExecuteDataFlowActivity(JsonE { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -217,10 +217,10 @@ internal static ExecuteDataFlowActivity DeserializeExecuteDataFlowActivity(JsonE { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; @@ -263,7 +263,7 @@ internal static ExecuteDataFlowActivity DeserializeExecuteDataFlowActivity(JsonE { continue; } - compute = ExecuteDataFlowActivityTypePropertiesCompute.DeserializeExecuteDataFlowActivityTypePropertiesCompute(property0.Value); + compute = ExecuteDataFlowActivityComputeType.DeserializeExecuteDataFlowActivityComputeType(property0.Value); continue; } if (property0.NameEquals("traceLevel"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteDataFlowActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteDataFlowActivity.cs index 66301a6d0200..f899e226bd6c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteDataFlowActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteDataFlowActivity.cs @@ -47,7 +47,7 @@ public ExecuteDataFlowActivity(string name, DataFlowReference dataFlow) : base(n /// Continue on error setting used for data flow execution. Enables processing to continue if a sink fails. Type: boolean (or Expression with resultType boolean). /// Concurrent run setting used for data flow execution. Allows sinks with the same save order to be processed concurrently. Type: boolean (or Expression with resultType boolean). /// Specify number of parallel staging for sources applicable to the sink. Type: integer (or Expression with resultType integer). - internal ExecuteDataFlowActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, DataFlowReference dataFlow, DataFlowStagingInfo staging, IntegrationRuntimeReference integrationRuntime, ExecuteDataFlowActivityTypePropertiesCompute compute, DataFactoryElement traceLevel, DataFactoryElement continueOnError, DataFactoryElement runConcurrently, DataFactoryElement sourceStagingConcurrency) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal ExecuteDataFlowActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, DataFlowReference dataFlow, DataFlowStagingInfo staging, IntegrationRuntimeReference integrationRuntime, ExecuteDataFlowActivityComputeType compute, DataFactoryElement traceLevel, DataFactoryElement continueOnError, DataFactoryElement runConcurrently, DataFactoryElement sourceStagingConcurrency) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { DataFlow = dataFlow; Staging = staging; @@ -67,7 +67,7 @@ internal ExecuteDataFlowActivity(string name, string activityType, string descri /// The integration runtime reference. public IntegrationRuntimeReference IntegrationRuntime { get; set; } /// Compute properties for data flow activity. - public ExecuteDataFlowActivityTypePropertiesCompute Compute { get; set; } + public ExecuteDataFlowActivityComputeType Compute { get; set; } /// Trace level setting used for data flow monitoring output. Supported values are: 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string). public DataFactoryElement TraceLevel { get; set; } /// Continue on error setting used for data flow execution. Enables processing to continue if a sink fails. Type: boolean (or Expression with resultType boolean). diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteDataFlowActivityTypePropertiesCompute.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteDataFlowActivityComputeType.Serialization.cs similarity index 85% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteDataFlowActivityTypePropertiesCompute.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteDataFlowActivityComputeType.Serialization.cs index 9a2da6fa63d5..9fd4974bef3c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteDataFlowActivityTypePropertiesCompute.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteDataFlowActivityComputeType.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class ExecuteDataFlowActivityTypePropertiesCompute : IUtf8JsonSerializable + public partial class ExecuteDataFlowActivityComputeType : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -29,7 +29,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ExecuteDataFlowActivityTypePropertiesCompute DeserializeExecuteDataFlowActivityTypePropertiesCompute(JsonElement element) + internal static ExecuteDataFlowActivityComputeType DeserializeExecuteDataFlowActivityComputeType(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -58,7 +58,7 @@ internal static ExecuteDataFlowActivityTypePropertiesCompute DeserializeExecuteD continue; } } - return new ExecuteDataFlowActivityTypePropertiesCompute(computeType.Value, coreCount.Value); + return new ExecuteDataFlowActivityComputeType(computeType.Value, coreCount.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteDataFlowActivityTypePropertiesCompute.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteDataFlowActivityComputeType.cs similarity index 81% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteDataFlowActivityTypePropertiesCompute.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteDataFlowActivityComputeType.cs index b23c9c5c88c8..43f0d0835ad8 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteDataFlowActivityTypePropertiesCompute.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteDataFlowActivityComputeType.cs @@ -10,17 +10,17 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Compute properties for data flow activity. - public partial class ExecuteDataFlowActivityTypePropertiesCompute + public partial class ExecuteDataFlowActivityComputeType { - /// Initializes a new instance of ExecuteDataFlowActivityTypePropertiesCompute. - public ExecuteDataFlowActivityTypePropertiesCompute() + /// Initializes a new instance of ExecuteDataFlowActivityComputeType. + public ExecuteDataFlowActivityComputeType() { } - /// Initializes a new instance of ExecuteDataFlowActivityTypePropertiesCompute. + /// Initializes a new instance of ExecuteDataFlowActivityComputeType. /// Compute type of the cluster which will execute data flow job. Possible values include: 'General', 'MemoryOptimized', 'ComputeOptimized'. Type: string (or Expression with resultType string). /// Core count of the cluster which will execute data flow job. Supported values are: 8, 16, 32, 48, 80, 144 and 272. Type: integer (or Expression with resultType integer). - internal ExecuteDataFlowActivityTypePropertiesCompute(DataFactoryElement computeType, DataFactoryElement coreCount) + internal ExecuteDataFlowActivityComputeType(DataFactoryElement computeType, DataFactoryElement coreCount) { ComputeType = computeType; CoreCount = coreCount; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutePipelineActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutePipelineActivity.Serialization.cs index 896df6c9f2f3..d86fca6570c5 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutePipelineActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutePipelineActivity.Serialization.cs @@ -113,10 +113,10 @@ internal static ExecutePipelineActivity DeserializeExecutePipelineActivity(JsonE string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; DataFactoryPipelineReference pipeline = default; Optional> parameters = default; Optional waitOnCompletion = default; @@ -154,7 +154,7 @@ internal static ExecutePipelineActivity DeserializeExecutePipelineActivity(JsonE { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -163,7 +163,7 @@ internal static ExecutePipelineActivity DeserializeExecutePipelineActivity(JsonE { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -172,10 +172,10 @@ internal static ExecutePipelineActivity DeserializeExecutePipelineActivity(JsonE { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -186,10 +186,10 @@ internal static ExecutePipelineActivity DeserializeExecutePipelineActivity(JsonE { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutePipelineActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutePipelineActivity.cs index 52dd81ef13e4..6f67c022069f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutePipelineActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutePipelineActivity.cs @@ -41,7 +41,7 @@ public ExecutePipelineActivity(string name, DataFactoryPipelineReference pipelin /// Pipeline reference. /// Pipeline parameters. /// Defines whether activity execution will wait for the dependent pipeline execution to finish. Default is false. - internal ExecutePipelineActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, ExecutePipelineActivityPolicy policy, DataFactoryPipelineReference pipeline, IDictionary parameters, bool? waitOnCompletion) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) + internal ExecutePipelineActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, ExecutePipelineActivityPolicy policy, DataFactoryPipelineReference pipeline, IDictionary parameters, bool? waitOnCompletion) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) { Policy = policy; Pipeline = pipeline; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutePipelineActivityPolicy.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutePipelineActivityPolicy.Serialization.cs index bba370947177..f79b2b5d7f62 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutePipelineActivityPolicy.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutePipelineActivityPolicy.Serialization.cs @@ -17,10 +17,10 @@ public partial class ExecutePipelineActivityPolicy : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(EnableSecureInput)) + if (Optional.IsDefined(IsSecureInputEnabled)) { writer.WritePropertyName("secureInput"u8); - writer.WriteBooleanValue(EnableSecureInput.Value); + writer.WriteBooleanValue(IsSecureInputEnabled.Value); } foreach (var item in AdditionalProperties) { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutePipelineActivityPolicy.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutePipelineActivityPolicy.cs index c6767fbdc095..4283b98b19ea 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutePipelineActivityPolicy.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutePipelineActivityPolicy.cs @@ -21,16 +21,16 @@ public ExecutePipelineActivityPolicy() } /// Initializes a new instance of ExecutePipelineActivityPolicy. - /// When set to true, Input from activity is considered as secure and will not be logged to monitoring. + /// When set to true, Input from activity is considered as secure and will not be logged to monitoring. /// Additional Properties. - internal ExecutePipelineActivityPolicy(bool? enableSecureInput, IDictionary additionalProperties) + internal ExecutePipelineActivityPolicy(bool? isSecureInputEnabled, IDictionary additionalProperties) { - EnableSecureInput = enableSecureInput; + IsSecureInputEnabled = isSecureInputEnabled; AdditionalProperties = additionalProperties; } /// When set to true, Input from activity is considered as secure and will not be logged to monitoring. - public bool? EnableSecureInput { get; set; } + public bool? IsSecureInputEnabled { get; set; } /// /// Additional Properties /// diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteSsisPackageActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteSsisPackageActivity.Serialization.cs index 8ed7079a85e0..0c41f0fb32bf 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteSsisPackageActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteSsisPackageActivity.Serialization.cs @@ -195,14 +195,14 @@ internal static ExecuteSsisPackageActivity DeserializeExecuteSsisPackageActivity return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; SsisPackageLocation packageLocation = default; Optional> runtime = default; Optional> loggingLevel = default; @@ -234,7 +234,7 @@ internal static ExecuteSsisPackageActivity DeserializeExecuteSsisPackageActivity { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -258,7 +258,7 @@ internal static ExecuteSsisPackageActivity DeserializeExecuteSsisPackageActivity { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -267,7 +267,7 @@ internal static ExecuteSsisPackageActivity DeserializeExecuteSsisPackageActivity { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -276,10 +276,10 @@ internal static ExecuteSsisPackageActivity DeserializeExecuteSsisPackageActivity { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -290,10 +290,10 @@ internal static ExecuteSsisPackageActivity DeserializeExecuteSsisPackageActivity { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteSsisPackageActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteSsisPackageActivity.cs index fc7c2e61063f..6ae69cf4af49 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteSsisPackageActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteSsisPackageActivity.cs @@ -59,7 +59,7 @@ public ExecuteSsisPackageActivity(string name, SsisPackageLocation packageLocati /// The package level connection managers to execute the SSIS package. /// The property overrides to execute the SSIS package. /// SSIS package execution log location. - internal ExecuteSsisPackageActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, SsisPackageLocation packageLocation, DataFactoryElement runtime, DataFactoryElement loggingLevel, DataFactoryElement environmentPath, SsisExecutionCredential executionCredential, IntegrationRuntimeReference connectVia, IDictionary projectParameters, IDictionary packageParameters, IDictionary> projectConnectionManagers, IDictionary> packageConnectionManagers, IDictionary propertyOverrides, SsisLogLocation logLocation) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal ExecuteSsisPackageActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, SsisPackageLocation packageLocation, DataFactoryElement runtime, DataFactoryElement loggingLevel, DataFactoryElement environmentPath, SsisExecutionCredential executionCredential, IntegrationRuntimeReference connectVia, IDictionary projectParameters, IDictionary packageParameters, IDictionary> projectConnectionManagers, IDictionary> packageConnectionManagers, IDictionary propertyOverrides, SsisLogLocation logLocation) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { PackageLocation = packageLocation; Runtime = runtime; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteWranglingDataflowActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteWranglingDataflowActivity.Serialization.cs index 4299ce1c13d2..33556f125f94 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteWranglingDataflowActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteWranglingDataflowActivity.Serialization.cs @@ -141,18 +141,18 @@ internal static ExecuteWranglingDataflowActivity DeserializeExecuteWranglingData { return null; } - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; DataFlowReference dataFlow = default; Optional staging = default; Optional integrationRuntime = default; - Optional compute = default; + Optional compute = default; Optional> traceLevel = default; Optional> continueOnError = default; Optional> runConcurrently = default; @@ -169,7 +169,7 @@ internal static ExecuteWranglingDataflowActivity DeserializeExecuteWranglingData { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -193,7 +193,7 @@ internal static ExecuteWranglingDataflowActivity DeserializeExecuteWranglingData { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -202,7 +202,7 @@ internal static ExecuteWranglingDataflowActivity DeserializeExecuteWranglingData { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -211,10 +211,10 @@ internal static ExecuteWranglingDataflowActivity DeserializeExecuteWranglingData { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -225,10 +225,10 @@ internal static ExecuteWranglingDataflowActivity DeserializeExecuteWranglingData { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; @@ -271,7 +271,7 @@ internal static ExecuteWranglingDataflowActivity DeserializeExecuteWranglingData { continue; } - compute = ExecuteDataFlowActivityTypePropertiesCompute.DeserializeExecuteDataFlowActivityTypePropertiesCompute(property0.Value); + compute = ExecuteDataFlowActivityComputeType.DeserializeExecuteDataFlowActivityComputeType(property0.Value); continue; } if (property0.NameEquals("traceLevel"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteWranglingDataflowActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteWranglingDataflowActivity.cs index 38b079825442..a880aac74f0e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteWranglingDataflowActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecuteWranglingDataflowActivity.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Execute power query activity. - public partial class ExecuteWranglingDataflowActivity : DataFactoryActivity + public partial class ExecuteWranglingDataflowActivity : PipelineActivity { /// Initializes a new instance of ExecuteWranglingDataflowActivity. /// Activity name. @@ -50,7 +50,7 @@ public ExecuteWranglingDataflowActivity(string name, DataFlowReference dataFlow) /// Specify number of parallel staging for sources applicable to the sink. Type: integer (or Expression with resultType integer). /// (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a queryName. /// List of mapping for Power Query mashup query to sink dataset(s). - internal ExecuteWranglingDataflowActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, ActivityPolicy policy, DataFlowReference dataFlow, DataFlowStagingInfo staging, IntegrationRuntimeReference integrationRuntime, ExecuteDataFlowActivityTypePropertiesCompute compute, DataFactoryElement traceLevel, DataFactoryElement continueOnError, DataFactoryElement runConcurrently, DataFactoryElement sourceStagingConcurrency, IDictionary sinks, IList queries) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) + internal ExecuteWranglingDataflowActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, PipelineActivityPolicy policy, DataFlowReference dataFlow, DataFlowStagingInfo staging, IntegrationRuntimeReference integrationRuntime, ExecuteDataFlowActivityComputeType compute, DataFactoryElement traceLevel, DataFactoryElement continueOnError, DataFactoryElement runConcurrently, DataFactoryElement sourceStagingConcurrency, IDictionary sinks, IList queries) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) { Policy = policy; DataFlow = dataFlow; @@ -67,7 +67,7 @@ internal ExecuteWranglingDataflowActivity(string name, string activityType, stri } /// Activity policy. - public ActivityPolicy Policy { get; set; } + public PipelineActivityPolicy Policy { get; set; } /// Data flow reference. public DataFlowReference DataFlow { get; set; } /// Staging info for execute data flow activity. @@ -75,7 +75,7 @@ internal ExecuteWranglingDataflowActivity(string name, string activityType, stri /// The integration runtime reference. public IntegrationRuntimeReference IntegrationRuntime { get; set; } /// Compute properties for data flow activity. - public ExecuteDataFlowActivityTypePropertiesCompute Compute { get; set; } + public ExecuteDataFlowActivityComputeType Compute { get; set; } /// Trace level setting used for data flow monitoring output. Supported values are: 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string). public DataFactoryElement TraceLevel { get; set; } /// Continue on error setting used for data flow execution. Enables processing to continue if a sink fails. Type: boolean (or Expression with resultType boolean). diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutionActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutionActivity.Serialization.cs index 69c5b6607701..990ef7fccb0c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutionActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutionActivity.Serialization.cs @@ -110,7 +110,7 @@ internal static ExecutionActivity DeserializeExecutionActivity(JsonElement eleme case "HDInsightSpark": return HDInsightSparkActivity.DeserializeHDInsightSparkActivity(element); case "HDInsightStreaming": return HDInsightStreamingActivity.DeserializeHDInsightStreamingActivity(element); case "Lookup": return LookupActivity.DeserializeLookupActivity(element); - case "Script": return ScriptActivity.DeserializeScriptActivity(element); + case "Script": return DataFactoryScriptActivity.DeserializeDataFactoryScriptActivity(element); case "SparkJob": return SynapseSparkJobDefinitionActivity.DeserializeSynapseSparkJobDefinitionActivity(element); case "SqlServerStoredProcedure": return SqlServerStoredProcedureActivity.DeserializeSqlServerStoredProcedureActivity(element); case "SynapseNotebook": return SynapseNotebookActivity.DeserializeSynapseNotebookActivity(element); @@ -118,14 +118,14 @@ internal static ExecutionActivity DeserializeExecutionActivity(JsonElement eleme } } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = "Execution"; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -145,7 +145,7 @@ internal static ExecutionActivity DeserializeExecutionActivity(JsonElement eleme { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -169,7 +169,7 @@ internal static ExecutionActivity DeserializeExecutionActivity(JsonElement eleme { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -178,7 +178,7 @@ internal static ExecutionActivity DeserializeExecutionActivity(JsonElement eleme { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -187,10 +187,10 @@ internal static ExecutionActivity DeserializeExecutionActivity(JsonElement eleme { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -201,10 +201,10 @@ internal static ExecutionActivity DeserializeExecutionActivity(JsonElement eleme { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutionActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutionActivity.cs index 23e5cfb7283d..a62125e33b1a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutionActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ExecutionActivity.cs @@ -15,9 +15,9 @@ namespace Azure.ResourceManager.DataFactory.Models /// /// Base class for all execution activities. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , and . /// - public partial class ExecutionActivity : DataFactoryActivity + public partial class ExecutionActivity : PipelineActivity { /// Initializes a new instance of ExecutionActivity. /// Activity name. @@ -40,7 +40,7 @@ public ExecutionActivity(string name) : base(name) /// Additional Properties. /// Linked service reference. /// Activity policy. - internal ExecutionActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) + internal ExecutionActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) { LinkedServiceName = linkedServiceName; Policy = policy; @@ -50,6 +50,6 @@ internal ExecutionActivity(string name, string activityType, string description, /// Linked service reference. public DataFactoryLinkedServiceReference LinkedServiceName { get; set; } /// Activity policy. - public ActivityPolicy Policy { get; set; } + public PipelineActivityPolicy Policy { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GitHubClientSecret.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryGitHubClientSecret.Serialization.cs similarity index 86% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GitHubClientSecret.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryGitHubClientSecret.Serialization.cs index cfc5d8d18a9d..57b8b3826b68 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GitHubClientSecret.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryGitHubClientSecret.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class GitHubClientSecret : IUtf8JsonSerializable + public partial class FactoryGitHubClientSecret : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -29,7 +29,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static GitHubClientSecret DeserializeGitHubClientSecret(JsonElement element) + internal static FactoryGitHubClientSecret DeserializeFactoryGitHubClientSecret(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -54,7 +54,7 @@ internal static GitHubClientSecret DeserializeGitHubClientSecret(JsonElement ele continue; } } - return new GitHubClientSecret(byoaSecretAkvUrl.Value, byoaSecretName.Value); + return new FactoryGitHubClientSecret(byoaSecretAkvUrl.Value, byoaSecretName.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GitHubClientSecret.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryGitHubClientSecret.cs similarity index 71% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GitHubClientSecret.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryGitHubClientSecret.cs index f9b0b31b1c49..f381063e65b3 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GitHubClientSecret.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryGitHubClientSecret.cs @@ -10,17 +10,17 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Client secret information for factory's bring your own app repository configuration. - public partial class GitHubClientSecret + public partial class FactoryGitHubClientSecret { - /// Initializes a new instance of GitHubClientSecret. - public GitHubClientSecret() + /// Initializes a new instance of FactoryGitHubClientSecret. + public FactoryGitHubClientSecret() { } - /// Initializes a new instance of GitHubClientSecret. + /// Initializes a new instance of FactoryGitHubClientSecret. /// Bring your own app client secret AKV URL. /// Bring your own app client secret name in AKV. - internal GitHubClientSecret(Uri byoaSecretAkvUri, string byoaSecretName) + internal FactoryGitHubClientSecret(Uri byoaSecretAkvUri, string byoaSecretName) { ByoaSecretAkvUri = byoaSecretAkvUri; ByoaSecretName = byoaSecretName; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryGitHubConfiguration.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryGitHubConfiguration.Serialization.cs index 0424bd7c07ff..a1760ce5a1a1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryGitHubConfiguration.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryGitHubConfiguration.Serialization.cs @@ -61,7 +61,7 @@ internal static FactoryGitHubConfiguration DeserializeFactoryGitHubConfiguration } Optional hostName = default; Optional clientId = default; - Optional clientSecret = default; + Optional clientSecret = default; string type = default; string accountName = default; string repositoryName = default; @@ -87,7 +87,7 @@ internal static FactoryGitHubConfiguration DeserializeFactoryGitHubConfiguration { continue; } - clientSecret = GitHubClientSecret.DeserializeGitHubClientSecret(property.Value); + clientSecret = FactoryGitHubClientSecret.DeserializeFactoryGitHubClientSecret(property.Value); continue; } if (property.NameEquals("type"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryGitHubConfiguration.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryGitHubConfiguration.cs index 12294188c5ea..d96ee839385c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryGitHubConfiguration.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryGitHubConfiguration.cs @@ -40,7 +40,7 @@ public FactoryGitHubConfiguration(string accountName, string repositoryName, str /// GitHub Enterprise host name. For example: `https://github.mydomain.com`. /// GitHub bring your own app client id. /// GitHub bring your own app client secret information. - internal FactoryGitHubConfiguration(string factoryRepoConfigurationType, string accountName, string repositoryName, string collaborationBranch, string rootFolder, string lastCommitId, bool? disablePublish, string hostName, string clientId, GitHubClientSecret clientSecret) : base(factoryRepoConfigurationType, accountName, repositoryName, collaborationBranch, rootFolder, lastCommitId, disablePublish) + internal FactoryGitHubConfiguration(string factoryRepoConfigurationType, string accountName, string repositoryName, string collaborationBranch, string rootFolder, string lastCommitId, bool? disablePublish, string hostName, string clientId, FactoryGitHubClientSecret clientSecret) : base(factoryRepoConfigurationType, accountName, repositoryName, collaborationBranch, rootFolder, lastCommitId, disablePublish) { HostName = hostName; ClientId = clientId; @@ -53,6 +53,6 @@ internal FactoryGitHubConfiguration(string factoryRepoConfigurationType, string /// GitHub bring your own app client id. public string ClientId { get; set; } /// GitHub bring your own app client secret information. - public GitHubClientSecret ClientSecret { get; set; } + public FactoryGitHubClientSecret ClientSecret { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryRepoUpdate.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryRepoContent.Serialization.cs similarity index 92% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryRepoUpdate.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryRepoContent.Serialization.cs index 658cedc4cda6..f125f625fff0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryRepoUpdate.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryRepoContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class FactoryRepoUpdate : IUtf8JsonSerializable + public partial class FactoryRepoContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryRepoUpdate.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryRepoContent.cs similarity index 85% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryRepoUpdate.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryRepoContent.cs index 5f905be98498..004d21befbdc 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryRepoUpdate.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FactoryRepoContent.cs @@ -10,10 +10,10 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Factory's git repo information. - public partial class FactoryRepoUpdate + public partial class FactoryRepoContent { - /// Initializes a new instance of FactoryRepoUpdate. - public FactoryRepoUpdate() + /// Initializes a new instance of FactoryRepoContent. + public FactoryRepoContent() { } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FailActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FailActivity.Serialization.cs index a9027b7fc516..2066c32b82f9 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FailActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FailActivity.Serialization.cs @@ -85,10 +85,10 @@ internal static FailActivity DeserializeFailActivity(JsonElement element) string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; DataFactoryElement message = default; DataFactoryElement errorCode = default; IDictionary additionalProperties = default; @@ -116,7 +116,7 @@ internal static FailActivity DeserializeFailActivity(JsonElement element) { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -125,7 +125,7 @@ internal static FailActivity DeserializeFailActivity(JsonElement element) { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -134,10 +134,10 @@ internal static FailActivity DeserializeFailActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -148,10 +148,10 @@ internal static FailActivity DeserializeFailActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FailActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FailActivity.cs index d64f0901cfdc..fa2ec356ba24 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FailActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FailActivity.cs @@ -42,7 +42,7 @@ public FailActivity(string name, DataFactoryElement message, DataFactory /// Additional Properties. /// The error message that surfaced in the Fail activity. It can be dynamic content that's evaluated to a non empty/blank string at runtime. Type: string (or Expression with resultType string). /// The error code that categorizes the error type of the Fail activity. It can be dynamic content that's evaluated to a non empty/blank string at runtime. Type: string (or Expression with resultType string). - internal FailActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryElement message, DataFactoryElement errorCode) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) + internal FailActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryElement message, DataFactoryElement errorCode) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) { Message = message; ErrorCode = errorCode; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FileServerLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FileServerLinkedService.Serialization.cs index 48a7189990e0..58eb9118ee71 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FileServerLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FileServerLinkedService.Serialization.cs @@ -77,11 +77,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -110,7 +106,7 @@ internal static FileServerLinkedService DeserializeFileServerLinkedService(JsonE DataFactoryElement host = default; Optional> userId = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -203,11 +199,7 @@ internal static FileServerLinkedService DeserializeFileServerLinkedService(JsonE } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FileServerLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FileServerLinkedService.cs index 002641568171..6b564c8a0a5b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FileServerLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FileServerLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// File system linked service. - public partial class FileServerLinkedService : DataFactoryLinkedServiceDefinition + public partial class FileServerLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of FileServerLinkedService. /// Host name of the server. Type: string (or Expression with resultType string). @@ -37,7 +37,7 @@ public FileServerLinkedService(DataFactoryElement host) /// User ID to logon the server. Type: string (or Expression with resultType string). /// Password to logon the server. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal FileServerLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement userId, DataFactorySecretBaseDefinition password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal FileServerLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement userId, DataFactorySecretBaseDefinition password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Host = host; UserId = userId; @@ -52,36 +52,7 @@ internal FileServerLinkedService(string linkedServiceType, IntegrationRuntimeRef public DataFactoryElement UserId { get; set; } /// Password to logon the server. public DataFactorySecretBaseDefinition Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FileShareDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FileShareDataset.cs index acb1b519a00c..d38e23bc6ea8 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FileShareDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FileShareDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// An on-premises file system dataset. - public partial class FileShareDataset : DataFactoryDatasetDefinition + public partial class FileShareDataset : DataFactoryDatasetProperties { /// Initializes a new instance of FileShareDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FilterActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FilterActivity.Serialization.cs index 293df3524e31..f32457d770c0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FilterActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FilterActivity.Serialization.cs @@ -84,12 +84,12 @@ internal static FilterActivity DeserializeFilterActivity(JsonElement element) string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; - DataFactoryExpressionDefinition items = default; - DataFactoryExpressionDefinition condition = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; + DataFactoryExpression items = default; + DataFactoryExpression condition = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -115,7 +115,7 @@ internal static FilterActivity DeserializeFilterActivity(JsonElement element) { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -124,7 +124,7 @@ internal static FilterActivity DeserializeFilterActivity(JsonElement element) { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -133,10 +133,10 @@ internal static FilterActivity DeserializeFilterActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -147,10 +147,10 @@ internal static FilterActivity DeserializeFilterActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; @@ -166,12 +166,12 @@ internal static FilterActivity DeserializeFilterActivity(JsonElement element) { if (property0.NameEquals("items"u8)) { - items = DataFactoryExpressionDefinition.DeserializeDataFactoryExpressionDefinition(property0.Value); + items = DataFactoryExpression.DeserializeDataFactoryExpression(property0.Value); continue; } if (property0.NameEquals("condition"u8)) { - condition = DataFactoryExpressionDefinition.DeserializeDataFactoryExpressionDefinition(property0.Value); + condition = DataFactoryExpression.DeserializeDataFactoryExpression(property0.Value); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FilterActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FilterActivity.cs index e23d7078424f..72d4665a1134 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FilterActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FilterActivity.cs @@ -19,7 +19,7 @@ public partial class FilterActivity : ControlActivity /// Input array on which filter should be applied. /// Condition to be used for filtering the input. /// , or is null. - public FilterActivity(string name, DataFactoryExpressionDefinition items, DataFactoryExpressionDefinition condition) : base(name) + public FilterActivity(string name, DataFactoryExpression items, DataFactoryExpression condition) : base(name) { Argument.AssertNotNull(name, nameof(name)); Argument.AssertNotNull(items, nameof(items)); @@ -41,7 +41,7 @@ public FilterActivity(string name, DataFactoryExpressionDefinition items, DataFa /// Additional Properties. /// Input array on which filter should be applied. /// Condition to be used for filtering the input. - internal FilterActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryExpressionDefinition items, DataFactoryExpressionDefinition condition) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) + internal FilterActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryExpression items, DataFactoryExpression condition) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) { Items = items; Condition = condition; @@ -49,8 +49,8 @@ internal FilterActivity(string name, string activityType, string description, Ac } /// Input array on which filter should be applied. - public DataFactoryExpressionDefinition Items { get; set; } + public DataFactoryExpression Items { get; set; } /// Condition to be used for filtering the input. - public DataFactoryExpressionDefinition Condition { get; set; } + public DataFactoryExpression Condition { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ForEachActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ForEachActivity.Serialization.cs index 3f75571a7899..dd213da1723c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ForEachActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ForEachActivity.Serialization.cs @@ -99,14 +99,14 @@ internal static ForEachActivity DeserializeForEachActivity(JsonElement element) string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; Optional isSequential = default; Optional batchCount = default; - DataFactoryExpressionDefinition items = default; - IList activities = default; + DataFactoryExpression items = default; + IList activities = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -132,7 +132,7 @@ internal static ForEachActivity DeserializeForEachActivity(JsonElement element) { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -141,7 +141,7 @@ internal static ForEachActivity DeserializeForEachActivity(JsonElement element) { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -150,10 +150,10 @@ internal static ForEachActivity DeserializeForEachActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -164,10 +164,10 @@ internal static ForEachActivity DeserializeForEachActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; @@ -201,15 +201,15 @@ internal static ForEachActivity DeserializeForEachActivity(JsonElement element) } if (property0.NameEquals("items"u8)) { - items = DataFactoryExpressionDefinition.DeserializeDataFactoryExpressionDefinition(property0.Value); + items = DataFactoryExpression.DeserializeDataFactoryExpression(property0.Value); continue; } if (property0.NameEquals("activities"u8)) { - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(DeserializeDataFactoryActivity(item)); + array.Add(DeserializePipelineActivity(item)); } activities = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ForEachActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ForEachActivity.cs index f3bb14a7dcc0..422473024bbd 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ForEachActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ForEachActivity.cs @@ -20,11 +20,11 @@ public partial class ForEachActivity : ControlActivity /// Collection to iterate. /// /// List of activities to execute . - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// /// , or is null. - public ForEachActivity(string name, DataFactoryExpressionDefinition items, IEnumerable activities) : base(name) + public ForEachActivity(string name, DataFactoryExpression items, IEnumerable activities) : base(name) { Argument.AssertNotNull(name, nameof(name)); Argument.AssertNotNull(items, nameof(items)); @@ -49,10 +49,10 @@ public ForEachActivity(string name, DataFactoryExpressionDefinition items, IEnum /// Collection to iterate. /// /// List of activities to execute . - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// - internal ForEachActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, bool? isSequential, int? batchCount, DataFactoryExpressionDefinition items, IList activities) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) + internal ForEachActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, bool? isSequential, int? batchCount, DataFactoryExpression items, IList activities) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) { IsSequential = isSequential; BatchCount = batchCount; @@ -66,12 +66,12 @@ internal ForEachActivity(string name, string activityType, string description, A /// Batch count to be used for controlling the number of parallel execution (when isSequential is set to false). public int? BatchCount { get; set; } /// Collection to iterate. - public DataFactoryExpressionDefinition Items { get; set; } + public DataFactoryExpression Items { get; set; } /// /// List of activities to execute . - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// - public IList Activities { get; } + public IList Activities { get; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FtpServerLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FtpServerLinkedService.Serialization.cs index 7ff70fa99966..5151273f41d8 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FtpServerLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FtpServerLinkedService.Serialization.cs @@ -87,11 +87,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } if (Optional.IsDefined(EnableSsl)) { @@ -132,7 +128,7 @@ internal static FtpServerLinkedService DeserializeFtpServerLinkedService(JsonEle Optional authenticationType = default; Optional> userName = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; Optional> enableSsl = default; Optional> enableServerCertificateValidation = default; IDictionary additionalProperties = default; @@ -245,11 +241,7 @@ internal static FtpServerLinkedService DeserializeFtpServerLinkedService(JsonEle } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } if (property0.NameEquals("enableSsl"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FtpServerLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FtpServerLinkedService.cs index 33438653ceb0..3e0b347e5887 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FtpServerLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/FtpServerLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// A FTP server Linked Service. - public partial class FtpServerLinkedService : DataFactoryLinkedServiceDefinition + public partial class FtpServerLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of FtpServerLinkedService. /// Host name of the FTP server. Type: string (or Expression with resultType string). @@ -41,7 +41,7 @@ public FtpServerLinkedService(DataFactoryElement host) /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. /// If true, connect to the FTP server over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType boolean). /// If true, validate the FTP server SSL certificate when connect over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType boolean). - internal FtpServerLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement port, FtpAuthenticationType? authenticationType, DataFactoryElement userName, DataFactorySecretBaseDefinition password, BinaryData encryptedCredential, DataFactoryElement enableSsl, DataFactoryElement enableServerCertificateValidation) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal FtpServerLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement port, FtpAuthenticationType? authenticationType, DataFactoryElement userName, DataFactorySecretBaseDefinition password, string encryptedCredential, DataFactoryElement enableSsl, DataFactoryElement enableServerCertificateValidation) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Host = host; Port = port; @@ -64,37 +64,8 @@ internal FtpServerLinkedService(string linkedServiceType, IntegrationRuntimeRefe public DataFactoryElement UserName { get; set; } /// Password to logon the FTP server. public DataFactorySecretBaseDefinition Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } /// If true, connect to the FTP server over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType boolean). public DataFactoryElement EnableSsl { get; set; } /// If true, validate the FTP server SSL certificate when connect over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType boolean). diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GetDatasetMetadataActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GetDatasetMetadataActivity.Serialization.cs index edac3a3d2f59..e2913a197c6e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GetDatasetMetadataActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GetDatasetMetadataActivity.Serialization.cs @@ -120,14 +120,14 @@ internal static GetDatasetMetadataActivity DeserializeGetDatasetMetadataActivity return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; DatasetReference dataset = default; Optional> fieldList = default; Optional storeSettings = default; @@ -151,7 +151,7 @@ internal static GetDatasetMetadataActivity DeserializeGetDatasetMetadataActivity { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -175,7 +175,7 @@ internal static GetDatasetMetadataActivity DeserializeGetDatasetMetadataActivity { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -184,7 +184,7 @@ internal static GetDatasetMetadataActivity DeserializeGetDatasetMetadataActivity { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -193,10 +193,10 @@ internal static GetDatasetMetadataActivity DeserializeGetDatasetMetadataActivity { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -207,10 +207,10 @@ internal static GetDatasetMetadataActivity DeserializeGetDatasetMetadataActivity { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GetDatasetMetadataActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GetDatasetMetadataActivity.cs index 1e56265581d5..fa36e5e6a081 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GetDatasetMetadataActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GetDatasetMetadataActivity.cs @@ -52,7 +52,7 @@ public GetDatasetMetadataActivity(string name, DatasetReference dataset) : base( /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , and . /// - internal GetDatasetMetadataActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, DatasetReference dataset, IList fieldList, StoreReadSettings storeSettings, FormatReadSettings formatSettings) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal GetDatasetMetadataActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, DatasetReference dataset, IList fieldList, StoreReadSettings storeSettings, FormatReadSettings formatSettings) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { Dataset = dataset; FieldList = fieldList; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GitHubAccessTokenContent.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GitHubAccessTokenContent.cs index ab511bfd462a..ebeee24e3d5f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GitHubAccessTokenContent.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GitHubAccessTokenContent.cs @@ -31,7 +31,7 @@ public GitHubAccessTokenContent(string gitHubAccessCode, Uri gitHubAccessTokenBa /// GitHub application client ID. public string GitHubClientId { get; set; } /// GitHub bring your own app client secret information. - public GitHubClientSecret GitHubClientSecret { get; set; } + public FactoryGitHubClientSecret GitHubClientSecret { get; set; } /// GitHub access token base URL. public Uri GitHubAccessTokenBaseUri { get; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleAdWordsLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleAdWordsLinkedService.Serialization.cs index f888afc7b45c..c4f30c20a301 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleAdWordsLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleAdWordsLinkedService.Serialization.cs @@ -124,11 +124,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -165,7 +161,7 @@ internal static GoogleAdWordsLinkedService DeserializeGoogleAdWordsLinkedService Optional> keyFilePath = default; Optional> trustedCertPath = default; Optional> useSystemTrustStore = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -334,11 +330,7 @@ internal static GoogleAdWordsLinkedService DeserializeGoogleAdWordsLinkedService } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleAdWordsLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleAdWordsLinkedService.cs index 47b616a0d570..955c24927cb6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleAdWordsLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleAdWordsLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Google AdWords service linked service. - public partial class GoogleAdWordsLinkedService : DataFactoryLinkedServiceDefinition + public partial class GoogleAdWordsLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of GoogleAdWordsLinkedService. public GoogleAdWordsLinkedService() @@ -39,7 +39,7 @@ public GoogleAdWordsLinkedService() /// The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. Type: string (or Expression with resultType string). /// Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. Type: boolean (or Expression with resultType boolean). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal GoogleAdWordsLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData connectionProperties, DataFactoryElement clientCustomerId, DataFactorySecretBaseDefinition developerToken, GoogleAdWordsAuthenticationType? authenticationType, DataFactorySecretBaseDefinition refreshToken, DataFactoryElement clientId, DataFactorySecretBaseDefinition clientSecret, DataFactoryElement email, DataFactoryElement keyFilePath, DataFactoryElement trustedCertPath, DataFactoryElement useSystemTrustStore, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal GoogleAdWordsLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData connectionProperties, DataFactoryElement clientCustomerId, DataFactorySecretBaseDefinition developerToken, GoogleAdWordsAuthenticationType? authenticationType, DataFactorySecretBaseDefinition refreshToken, DataFactoryElement clientId, DataFactorySecretBaseDefinition clientSecret, DataFactoryElement email, DataFactoryElement keyFilePath, DataFactoryElement trustedCertPath, DataFactoryElement useSystemTrustStore, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionProperties = connectionProperties; ClientCustomerId = clientCustomerId; @@ -107,36 +107,7 @@ internal GoogleAdWordsLinkedService(string linkedServiceType, IntegrationRuntime public DataFactoryElement TrustedCertPath { get; set; } /// Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false. Type: boolean (or Expression with resultType boolean). public DataFactoryElement UseSystemTrustStore { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleAdWordsObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleAdWordsObjectDataset.cs index 91ba7a1364df..ccdf4b1a4820 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleAdWordsObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleAdWordsObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Google AdWords service dataset. - public partial class GoogleAdWordsObjectDataset : DataFactoryDatasetDefinition + public partial class GoogleAdWordsObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of GoogleAdWordsObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleBigQueryLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleBigQueryLinkedService.Serialization.cs index b14620cb3171..7866c4efb58a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleBigQueryLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleBigQueryLinkedService.Serialization.cs @@ -114,11 +114,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -155,7 +151,7 @@ internal static GoogleBigQueryLinkedService DeserializeGoogleBigQueryLinkedServi Optional> keyFilePath = default; Optional> trustedCertPath = default; Optional> useSystemTrustStore = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -316,11 +312,7 @@ internal static GoogleBigQueryLinkedService DeserializeGoogleBigQueryLinkedServi } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleBigQueryLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleBigQueryLinkedService.cs index 8987a11ea1a2..90d7506ffe63 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleBigQueryLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleBigQueryLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Google BigQuery service linked service. - public partial class GoogleBigQueryLinkedService : DataFactoryLinkedServiceDefinition + public partial class GoogleBigQueryLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of GoogleBigQueryLinkedService. /// The default BigQuery project to query against. Type: string (or Expression with resultType string). @@ -47,7 +47,7 @@ public GoogleBigQueryLinkedService(DataFactoryElement project, GoogleBig /// The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default value is the cacerts.pem file installed with the IR. Type: string (or Expression with resultType string). /// Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false.Type: boolean (or Expression with resultType boolean). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal GoogleBigQueryLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement project, DataFactoryElement additionalProjects, DataFactoryElement requestGoogleDriveScope, GoogleBigQueryAuthenticationType authenticationType, DataFactorySecretBaseDefinition refreshToken, DataFactoryElement clientId, DataFactorySecretBaseDefinition clientSecret, DataFactoryElement email, DataFactoryElement keyFilePath, DataFactoryElement trustedCertPath, DataFactoryElement useSystemTrustStore, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal GoogleBigQueryLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement project, DataFactoryElement additionalProjects, DataFactoryElement requestGoogleDriveScope, GoogleBigQueryAuthenticationType authenticationType, DataFactorySecretBaseDefinition refreshToken, DataFactoryElement clientId, DataFactorySecretBaseDefinition clientSecret, DataFactoryElement email, DataFactoryElement keyFilePath, DataFactoryElement trustedCertPath, DataFactoryElement useSystemTrustStore, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Project = project; AdditionalProjects = additionalProjects; @@ -86,36 +86,7 @@ internal GoogleBigQueryLinkedService(string linkedServiceType, IntegrationRuntim public DataFactoryElement TrustedCertPath { get; set; } /// Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is false.Type: boolean (or Expression with resultType boolean). public DataFactoryElement UseSystemTrustStore { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleBigQueryObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleBigQueryObjectDataset.cs index 6ce6053528dd..669499a47837 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleBigQueryObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleBigQueryObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Google BigQuery service dataset. - public partial class GoogleBigQueryObjectDataset : DataFactoryDatasetDefinition + public partial class GoogleBigQueryObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of GoogleBigQueryObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleCloudStorageLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleCloudStorageLinkedService.Serialization.cs index 69dd946227f4..85b684562016 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleCloudStorageLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleCloudStorageLinkedService.Serialization.cs @@ -80,11 +80,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -113,7 +109,7 @@ internal static GoogleCloudStorageLinkedService DeserializeGoogleCloudStorageLin Optional> accessKeyId = default; Optional secretAccessKey = default; Optional> serviceUrl = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -210,11 +206,7 @@ internal static GoogleCloudStorageLinkedService DeserializeGoogleCloudStorageLin } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleCloudStorageLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleCloudStorageLinkedService.cs index ca4d077ffcf1..4eedf8b004ef 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleCloudStorageLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleCloudStorageLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for Google Cloud Storage. - public partial class GoogleCloudStorageLinkedService : DataFactoryLinkedServiceDefinition + public partial class GoogleCloudStorageLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of GoogleCloudStorageLinkedService. public GoogleCloudStorageLinkedService() @@ -31,7 +31,7 @@ public GoogleCloudStorageLinkedService() /// The secret access key of the Google Cloud Storage Identity and Access Management (IAM) user. /// This value specifies the endpoint to access with the Google Cloud Storage Connector. This is an optional property; change it only if you want to try a different service endpoint or want to switch between https and http. Type: string (or Expression with resultType string). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal GoogleCloudStorageLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement accessKeyId, DataFactorySecretBaseDefinition secretAccessKey, DataFactoryElement serviceUri, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal GoogleCloudStorageLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement accessKeyId, DataFactorySecretBaseDefinition secretAccessKey, DataFactoryElement serviceUri, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { AccessKeyId = accessKeyId; SecretAccessKey = secretAccessKey; @@ -46,36 +46,7 @@ internal GoogleCloudStorageLinkedService(string linkedServiceType, IntegrationRu public DataFactorySecretBaseDefinition SecretAccessKey { get; set; } /// This value specifies the endpoint to access with the Google Cloud Storage Connector. This is an optional property; change it only if you want to try a different service endpoint or want to switch between https and http. Type: string (or Expression with resultType string). public DataFactoryElement ServiceUri { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleSheetsLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleSheetsLinkedService.Serialization.cs index cc54a248acdd..9b2ae40dbf76 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleSheetsLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleSheetsLinkedService.Serialization.cs @@ -66,11 +66,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) JsonSerializer.Serialize(writer, ApiToken); if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -97,7 +93,7 @@ internal static GoogleSheetsLinkedService DeserializeGoogleSheetsLinkedService(J Optional> parameters = default; Optional> annotations = default; DataFactorySecretBaseDefinition apiToken = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -172,11 +168,7 @@ internal static GoogleSheetsLinkedService DeserializeGoogleSheetsLinkedService(J } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleSheetsLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleSheetsLinkedService.cs index 1019d4fd8908..288b897435c6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleSheetsLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GoogleSheetsLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for GoogleSheets. - public partial class GoogleSheetsLinkedService : DataFactoryLinkedServiceDefinition + public partial class GoogleSheetsLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of GoogleSheetsLinkedService. /// The api token for the GoogleSheets source. @@ -35,7 +35,7 @@ public GoogleSheetsLinkedService(DataFactorySecretBaseDefinition apiToken) /// Additional Properties. /// The api token for the GoogleSheets source. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal GoogleSheetsLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactorySecretBaseDefinition apiToken, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal GoogleSheetsLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactorySecretBaseDefinition apiToken, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ApiToken = apiToken; EncryptedCredential = encryptedCredential; @@ -44,36 +44,7 @@ internal GoogleSheetsLinkedService(string linkedServiceType, IntegrationRuntimeR /// The api token for the GoogleSheets source. public DataFactorySecretBaseDefinition ApiToken { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GreenplumLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GreenplumLinkedService.Serialization.cs index 00fcb90ba35d..7beef48616ec 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GreenplumLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GreenplumLinkedService.Serialization.cs @@ -79,11 +79,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -111,7 +107,7 @@ internal static GreenplumLinkedService DeserializeGreenplumLinkedService(JsonEle Optional> annotations = default; Optional connectionString = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -199,11 +195,7 @@ internal static GreenplumLinkedService DeserializeGreenplumLinkedService(JsonEle } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GreenplumLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GreenplumLinkedService.cs index 354c1b4ca44e..a4f50ec874ae 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GreenplumLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GreenplumLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Greenplum Database linked service. - public partial class GreenplumLinkedService : DataFactoryLinkedServiceDefinition + public partial class GreenplumLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of GreenplumLinkedService. public GreenplumLinkedService() @@ -30,7 +30,7 @@ public GreenplumLinkedService() /// An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. /// The Azure key vault secret reference of password in connection string. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal GreenplumLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData connectionString, DataFactoryKeyVaultSecretReference password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal GreenplumLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData connectionString, DataFactoryKeyVaultSecretReference password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; Password = password; @@ -71,36 +71,7 @@ internal GreenplumLinkedService(string linkedServiceType, IntegrationRuntimeRefe public BinaryData ConnectionString { get; set; } /// The Azure key vault secret reference of password in connection string. public DataFactoryKeyVaultSecretReference Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GreenplumTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GreenplumTableDataset.cs index ab2d65eac595..0bfb764bfde4 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GreenplumTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/GreenplumTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Greenplum Database dataset. - public partial class GreenplumTableDataset : DataFactoryDatasetDefinition + public partial class GreenplumTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of GreenplumTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HBaseLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HBaseLinkedService.Serialization.cs index e59dd9bcfe9a..b9f0e17aff56 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HBaseLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HBaseLinkedService.Serialization.cs @@ -109,11 +109,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -149,7 +145,7 @@ internal static HBaseLinkedService DeserializeHBaseLinkedService(JsonElement ele Optional> trustedCertPath = default; Optional> allowHostNameCNMismatch = default; Optional> allowSelfSignedServerCert = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -301,11 +297,7 @@ internal static HBaseLinkedService DeserializeHBaseLinkedService(JsonElement ele } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HBaseLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HBaseLinkedService.cs index e07dffed7837..8357ff8f4bf2 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HBaseLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HBaseLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// HBase server linked service. - public partial class HBaseLinkedService : DataFactoryLinkedServiceDefinition + public partial class HBaseLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of HBaseLinkedService. /// The IP address or host name of the HBase server. (i.e. 192.168.222.160). @@ -46,7 +46,7 @@ public HBaseLinkedService(DataFactoryElement host, HBaseAuthenticationTy /// Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. /// Specifies whether to allow self-signed certificates from the server. The default value is false. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal HBaseLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement port, DataFactoryElement httpPath, HBaseAuthenticationType authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement enableSsl, DataFactoryElement trustedCertPath, DataFactoryElement allowHostNameCNMismatch, DataFactoryElement allowSelfSignedServerCert, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal HBaseLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement port, DataFactoryElement httpPath, HBaseAuthenticationType authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement enableSsl, DataFactoryElement trustedCertPath, DataFactoryElement allowHostNameCNMismatch, DataFactoryElement allowSelfSignedServerCert, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Host = host; Port = port; @@ -82,36 +82,7 @@ internal HBaseLinkedService(string linkedServiceType, IntegrationRuntimeReferenc public DataFactoryElement AllowHostNameCNMismatch { get; set; } /// Specifies whether to allow self-signed certificates from the server. The default value is false. public DataFactoryElement AllowSelfSignedServerCert { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HBaseObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HBaseObjectDataset.cs index a65d86460dbe..e37d6f84d9ad 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HBaseObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HBaseObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// HBase server dataset. - public partial class HBaseObjectDataset : DataFactoryDatasetDefinition + public partial class HBaseObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of HBaseObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightHiveActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightHiveActivity.Serialization.cs index 186cd934a214..f880db964564 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightHiveActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightHiveActivity.Serialization.cs @@ -178,14 +178,14 @@ internal static HDInsightHiveActivity DeserializeHDInsightHiveActivity(JsonEleme return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; Optional> storageLinkedServices = default; Optional> arguments = default; Optional getDebugInfo = default; @@ -213,7 +213,7 @@ internal static HDInsightHiveActivity DeserializeHDInsightHiveActivity(JsonEleme { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -237,7 +237,7 @@ internal static HDInsightHiveActivity DeserializeHDInsightHiveActivity(JsonEleme { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -246,7 +246,7 @@ internal static HDInsightHiveActivity DeserializeHDInsightHiveActivity(JsonEleme { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -255,10 +255,10 @@ internal static HDInsightHiveActivity DeserializeHDInsightHiveActivity(JsonEleme { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -269,10 +269,10 @@ internal static HDInsightHiveActivity DeserializeHDInsightHiveActivity(JsonEleme { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightHiveActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightHiveActivity.cs index aa00689fa568..63c13d4d3c7b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightHiveActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightHiveActivity.cs @@ -48,7 +48,7 @@ public HDInsightHiveActivity(string name) : base(name) /// Allows user to specify defines for Hive job request. /// User specified arguments under hivevar namespace. /// Query timeout value (in minutes). Effective when the HDInsight cluster is with ESP (Enterprise Security Package). - internal HDInsightHiveActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, IList storageLinkedServices, IList arguments, HDInsightActivityDebugInfoOptionSetting? getDebugInfo, DataFactoryElement scriptPath, DataFactoryLinkedServiceReference scriptLinkedService, IDictionary defines, IDictionary variables, int? queryTimeout) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal HDInsightHiveActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, IList storageLinkedServices, IList arguments, HDInsightActivityDebugInfoOptionSetting? getDebugInfo, DataFactoryElement scriptPath, DataFactoryLinkedServiceReference scriptLinkedService, IDictionary defines, IDictionary variables, int? queryTimeout) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { StorageLinkedServices = storageLinkedServices; Arguments = arguments; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightLinkedService.Serialization.cs index 9d301dd434cd..a3f042eeacb1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightLinkedService.Serialization.cs @@ -87,11 +87,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } if (Optional.IsDefined(IsEspEnabled)) { @@ -132,7 +128,7 @@ internal static HDInsightLinkedService DeserializeHDInsightLinkedService(JsonEle Optional password = default; Optional linkedServiceName = default; Optional hcatalogLinkedServiceName = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; Optional> isEspEnabled = default; Optional> fileSystem = default; IDictionary additionalProperties = default; @@ -245,11 +241,7 @@ internal static HDInsightLinkedService DeserializeHDInsightLinkedService(JsonEle } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } if (property0.NameEquals("isEspEnabled"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightLinkedService.cs index 2cf4f4622392..42a546760d46 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// HDInsight linked service. - public partial class HDInsightLinkedService : DataFactoryLinkedServiceDefinition + public partial class HDInsightLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of HDInsightLinkedService. /// HDInsight cluster URI. Type: string (or Expression with resultType string). @@ -41,7 +41,7 @@ public HDInsightLinkedService(DataFactoryElement clusterUri) /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. /// Specify if the HDInsight is created with ESP (Enterprise Security Package). Type: Boolean. /// Specify the FileSystem if the main storage for the HDInsight is ADLS Gen2. Type: string (or Expression with resultType string). - internal HDInsightLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement clusterUri, DataFactoryElement userName, DataFactorySecretBaseDefinition password, DataFactoryLinkedServiceReference linkedServiceName, DataFactoryLinkedServiceReference hcatalogLinkedServiceName, BinaryData encryptedCredential, DataFactoryElement isEspEnabled, DataFactoryElement fileSystem) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal HDInsightLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement clusterUri, DataFactoryElement userName, DataFactorySecretBaseDefinition password, DataFactoryLinkedServiceReference linkedServiceName, DataFactoryLinkedServiceReference hcatalogLinkedServiceName, string encryptedCredential, DataFactoryElement isEspEnabled, DataFactoryElement fileSystem) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ClusterUri = clusterUri; UserName = userName; @@ -64,37 +64,8 @@ internal HDInsightLinkedService(string linkedServiceType, IntegrationRuntimeRefe public DataFactoryLinkedServiceReference LinkedServiceName { get; set; } /// A reference to the Azure SQL linked service that points to the HCatalog database. public DataFactoryLinkedServiceReference HcatalogLinkedServiceName { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } /// Specify if the HDInsight is created with ESP (Enterprise Security Package). Type: Boolean. public DataFactoryElement IsEspEnabled { get; set; } /// Specify the FileSystem if the main storage for the HDInsight is ADLS Gen2. Type: string (or Expression with resultType string). diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightMapReduceActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightMapReduceActivity.Serialization.cs index 8a1a73849437..fda664ad6841 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightMapReduceActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightMapReduceActivity.Serialization.cs @@ -171,14 +171,14 @@ internal static HDInsightMapReduceActivity DeserializeHDInsightMapReduceActivity return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; Optional> storageLinkedServices = default; Optional> arguments = default; Optional getDebugInfo = default; @@ -206,7 +206,7 @@ internal static HDInsightMapReduceActivity DeserializeHDInsightMapReduceActivity { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -230,7 +230,7 @@ internal static HDInsightMapReduceActivity DeserializeHDInsightMapReduceActivity { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -239,7 +239,7 @@ internal static HDInsightMapReduceActivity DeserializeHDInsightMapReduceActivity { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -248,10 +248,10 @@ internal static HDInsightMapReduceActivity DeserializeHDInsightMapReduceActivity { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -262,10 +262,10 @@ internal static HDInsightMapReduceActivity DeserializeHDInsightMapReduceActivity { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightMapReduceActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightMapReduceActivity.cs index a727e8642b57..67de6f4b35ea 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightMapReduceActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightMapReduceActivity.cs @@ -54,7 +54,7 @@ public HDInsightMapReduceActivity(string name, DataFactoryElement classN /// Jar linked service reference. /// Jar libs. /// Allows user to specify defines for the MapReduce job request. - internal HDInsightMapReduceActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, IList storageLinkedServices, IList arguments, HDInsightActivityDebugInfoOptionSetting? getDebugInfo, DataFactoryElement className, DataFactoryElement jarFilePath, DataFactoryLinkedServiceReference jarLinkedService, IList jarLibs, IDictionary defines) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal HDInsightMapReduceActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, IList storageLinkedServices, IList arguments, HDInsightActivityDebugInfoOptionSetting? getDebugInfo, DataFactoryElement className, DataFactoryElement jarFilePath, DataFactoryLinkedServiceReference jarLinkedService, IList jarLibs, IDictionary defines) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { StorageLinkedServices = storageLinkedServices; Arguments = arguments; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightOnDemandLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightOnDemandLinkedService.Serialization.cs index e233772548b3..dc63e19dddc9 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightOnDemandLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightOnDemandLinkedService.Serialization.cs @@ -210,11 +210,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } if (Optional.IsDefined(HeadNodeSize)) { @@ -318,11 +314,11 @@ internal static HDInsightOnDemandLinkedService DeserializeHDInsightOnDemandLinke Optional oozieConfiguration = default; Optional stormConfiguration = default; Optional yarnConfiguration = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; Optional headNodeSize = default; Optional dataNodeSize = default; Optional zookeeperNodeSize = default; - Optional> scriptActions = default; + Optional> scriptActions = default; Optional> virtualNetworkId = default; Optional> subnetName = default; Optional credential = default; @@ -606,11 +602,7 @@ internal static HDInsightOnDemandLinkedService DeserializeHDInsightOnDemandLinke } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } if (property0.NameEquals("headNodeSize"u8)) @@ -646,10 +638,10 @@ internal static HDInsightOnDemandLinkedService DeserializeHDInsightOnDemandLinke { continue; } - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(ScriptAction.DeserializeScriptAction(item)); + array.Add(DataFactoryScriptAction.DeserializeDataFactoryScriptAction(item)); } scriptActions = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightOnDemandLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightOnDemandLinkedService.cs index 212b78982cf3..cc91a2e87d36 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightOnDemandLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightOnDemandLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// HDInsight ondemand linked service. - public partial class HDInsightOnDemandLinkedService : DataFactoryLinkedServiceDefinition + public partial class HDInsightOnDemandLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of HDInsightOnDemandLinkedService. /// Number of worker/data nodes in the cluster. Suggestion value: 4. Type: string (or Expression with resultType string). @@ -42,7 +42,7 @@ public HDInsightOnDemandLinkedService(DataFactoryElement clusterSize, Da Tenant = tenant; ClusterResourceGroup = clusterResourceGroup; AdditionalLinkedServiceNames = new ChangeTrackingList(); - ScriptActions = new ChangeTrackingList(); + ScriptActions = new ChangeTrackingList(); LinkedServiceType = "HDInsightOnDemand"; } @@ -87,7 +87,7 @@ public HDInsightOnDemandLinkedService(DataFactoryElement clusterSize, Da /// The ARM resource ID for the vNet to which the cluster should be joined after creation. Type: string (or Expression with resultType string). /// The ARM resource ID for the subnet in the vNet. If virtualNetworkId was specified, then this property is required. Type: string (or Expression with resultType string). /// The credential reference containing authentication information. - internal HDInsightOnDemandLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement clusterSize, DataFactoryElement timeToLiveExpression, DataFactoryElement version, DataFactoryLinkedServiceReference linkedServiceName, DataFactoryElement hostSubscriptionId, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, DataFactoryElement clusterResourceGroup, DataFactoryElement clusterNamePrefix, DataFactoryElement clusterUserName, DataFactorySecretBaseDefinition clusterPassword, DataFactoryElement clusterSshUserName, DataFactorySecretBaseDefinition clusterSshPassword, IList additionalLinkedServiceNames, DataFactoryLinkedServiceReference hcatalogLinkedServiceName, DataFactoryElement clusterType, DataFactoryElement sparkVersion, BinaryData coreConfiguration, BinaryData hBaseConfiguration, BinaryData hdfsConfiguration, BinaryData hiveConfiguration, BinaryData mapReduceConfiguration, BinaryData oozieConfiguration, BinaryData stormConfiguration, BinaryData yarnConfiguration, BinaryData encryptedCredential, BinaryData headNodeSize, BinaryData dataNodeSize, BinaryData zookeeperNodeSize, IList scriptActions, DataFactoryElement virtualNetworkId, DataFactoryElement subnetName, DataFactoryCredentialReference credential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal HDInsightOnDemandLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement clusterSize, DataFactoryElement timeToLiveExpression, DataFactoryElement version, DataFactoryLinkedServiceReference linkedServiceName, DataFactoryElement hostSubscriptionId, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, DataFactoryElement clusterResourceGroup, DataFactoryElement clusterNamePrefix, DataFactoryElement clusterUserName, DataFactorySecretBaseDefinition clusterPassword, DataFactoryElement clusterSshUserName, DataFactorySecretBaseDefinition clusterSshPassword, IList additionalLinkedServiceNames, DataFactoryLinkedServiceReference hcatalogLinkedServiceName, DataFactoryElement clusterType, DataFactoryElement sparkVersion, BinaryData coreConfiguration, BinaryData hBaseConfiguration, BinaryData hdfsConfiguration, BinaryData hiveConfiguration, BinaryData mapReduceConfiguration, BinaryData oozieConfiguration, BinaryData stormConfiguration, BinaryData yarnConfiguration, string encryptedCredential, BinaryData headNodeSize, BinaryData dataNodeSize, BinaryData zookeeperNodeSize, IList scriptActions, DataFactoryElement virtualNetworkId, DataFactoryElement subnetName, DataFactoryCredentialReference credential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ClusterSize = clusterSize; TimeToLiveExpression = timeToLiveExpression; @@ -410,37 +410,8 @@ internal HDInsightOnDemandLinkedService(string linkedServiceType, IntegrationRun /// /// public BinaryData YarnConfiguration { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } /// /// Specifies the size of the head node for the HDInsight cluster. /// @@ -535,7 +506,7 @@ internal HDInsightOnDemandLinkedService(string linkedServiceType, IntegrationRun /// public BinaryData ZookeeperNodeSize { get; set; } /// Custom script actions to run on HDI ondemand cluster once it's up. Please refer to https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. - public IList ScriptActions { get; } + public IList ScriptActions { get; } /// The ARM resource ID for the vNet to which the cluster should be joined after creation. Type: string (or Expression with resultType string). public DataFactoryElement VirtualNetworkId { get; set; } /// The ARM resource ID for the subnet in the vNet. If virtualNetworkId was specified, then this property is required. Type: string (or Expression with resultType string). diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightPigActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightPigActivity.Serialization.cs index 21a9127d420b..cacb8a67c75e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightPigActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightPigActivity.Serialization.cs @@ -143,14 +143,14 @@ internal static HDInsightPigActivity DeserializeHDInsightPigActivity(JsonElement return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; Optional> storageLinkedServices = default; Optional arguments = default; Optional getDebugInfo = default; @@ -176,7 +176,7 @@ internal static HDInsightPigActivity DeserializeHDInsightPigActivity(JsonElement { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -200,7 +200,7 @@ internal static HDInsightPigActivity DeserializeHDInsightPigActivity(JsonElement { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -209,7 +209,7 @@ internal static HDInsightPigActivity DeserializeHDInsightPigActivity(JsonElement { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -218,10 +218,10 @@ internal static HDInsightPigActivity DeserializeHDInsightPigActivity(JsonElement { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -232,10 +232,10 @@ internal static HDInsightPigActivity DeserializeHDInsightPigActivity(JsonElement { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightPigActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightPigActivity.cs index 0a51c272a496..41180d38e1fa 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightPigActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightPigActivity.cs @@ -44,7 +44,7 @@ public HDInsightPigActivity(string name) : base(name) /// Script path. Type: string (or Expression with resultType string). /// Script linked service reference. /// Allows user to specify defines for Pig job request. - internal HDInsightPigActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, IList storageLinkedServices, BinaryData arguments, HDInsightActivityDebugInfoOptionSetting? getDebugInfo, DataFactoryElement scriptPath, DataFactoryLinkedServiceReference scriptLinkedService, IDictionary defines) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal HDInsightPigActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, IList storageLinkedServices, BinaryData arguments, HDInsightActivityDebugInfoOptionSetting? getDebugInfo, DataFactoryElement scriptPath, DataFactoryLinkedServiceReference scriptLinkedService, IDictionary defines) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { StorageLinkedServices = storageLinkedServices; Arguments = arguments; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightSparkActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightSparkActivity.Serialization.cs index fe3ad0ffea55..4e0adb8549ef 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightSparkActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightSparkActivity.Serialization.cs @@ -152,14 +152,14 @@ internal static HDInsightSparkActivity DeserializeHDInsightSparkActivity(JsonEle return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; DataFactoryElement rootPath = default; DataFactoryElement entryFilePath = default; Optional> arguments = default; @@ -187,7 +187,7 @@ internal static HDInsightSparkActivity DeserializeHDInsightSparkActivity(JsonEle { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -211,7 +211,7 @@ internal static HDInsightSparkActivity DeserializeHDInsightSparkActivity(JsonEle { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -220,7 +220,7 @@ internal static HDInsightSparkActivity DeserializeHDInsightSparkActivity(JsonEle { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -229,10 +229,10 @@ internal static HDInsightSparkActivity DeserializeHDInsightSparkActivity(JsonEle { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -243,10 +243,10 @@ internal static HDInsightSparkActivity DeserializeHDInsightSparkActivity(JsonEle { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightSparkActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightSparkActivity.cs index afe9e1b8e366..eaeab14353af 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightSparkActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightSparkActivity.cs @@ -52,7 +52,7 @@ public HDInsightSparkActivity(string name, DataFactoryElement rootPath, /// The application's Java/Spark main class. /// The user to impersonate that will execute the job. Type: string (or Expression with resultType string). /// Spark configuration property. - internal HDInsightSparkActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, DataFactoryElement rootPath, DataFactoryElement entryFilePath, IList arguments, HDInsightActivityDebugInfoOptionSetting? getDebugInfo, DataFactoryLinkedServiceReference sparkJobLinkedService, string className, DataFactoryElement proxyUser, IDictionary sparkConfig) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal HDInsightSparkActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, DataFactoryElement rootPath, DataFactoryElement entryFilePath, IList arguments, HDInsightActivityDebugInfoOptionSetting? getDebugInfo, DataFactoryLinkedServiceReference sparkJobLinkedService, string className, DataFactoryElement proxyUser, IDictionary sparkConfig) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { RootPath = rootPath; EntryFilePath = entryFilePath; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightStreamingActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightStreamingActivity.Serialization.cs index 725a4225cc4a..a0cdcf24c129 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightStreamingActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightStreamingActivity.Serialization.cs @@ -196,14 +196,14 @@ internal static HDInsightStreamingActivity DeserializeHDInsightStreamingActivity return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; Optional> storageLinkedServices = default; Optional> arguments = default; Optional getDebugInfo = default; @@ -235,7 +235,7 @@ internal static HDInsightStreamingActivity DeserializeHDInsightStreamingActivity { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -259,7 +259,7 @@ internal static HDInsightStreamingActivity DeserializeHDInsightStreamingActivity { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -268,7 +268,7 @@ internal static HDInsightStreamingActivity DeserializeHDInsightStreamingActivity { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -277,10 +277,10 @@ internal static HDInsightStreamingActivity DeserializeHDInsightStreamingActivity { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -291,10 +291,10 @@ internal static HDInsightStreamingActivity DeserializeHDInsightStreamingActivity { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightStreamingActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightStreamingActivity.cs index 16bf2d55bd3a..91e2aeac3331 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightStreamingActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HDInsightStreamingActivity.cs @@ -68,7 +68,7 @@ public HDInsightStreamingActivity(string name, DataFactoryElement mapper /// Combiner executable name. Type: string (or Expression with resultType string). /// Command line environment values. /// Allows user to specify defines for streaming job request. - internal HDInsightStreamingActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, IList storageLinkedServices, IList arguments, HDInsightActivityDebugInfoOptionSetting? getDebugInfo, DataFactoryElement mapper, DataFactoryElement reducer, DataFactoryElement input, DataFactoryElement output, IList filePaths, DataFactoryLinkedServiceReference fileLinkedService, DataFactoryElement combiner, IList commandEnvironment, IDictionary defines) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal HDInsightStreamingActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, IList storageLinkedServices, IList arguments, HDInsightActivityDebugInfoOptionSetting? getDebugInfo, DataFactoryElement mapper, DataFactoryElement reducer, DataFactoryElement input, DataFactoryElement output, IList filePaths, DataFactoryLinkedServiceReference fileLinkedService, DataFactoryElement combiner, IList commandEnvironment, IDictionary defines) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { StorageLinkedServices = storageLinkedServices; Arguments = arguments; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HdfsLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HdfsLinkedService.Serialization.cs index 17c92fbcd465..8474bfe99659 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HdfsLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HdfsLinkedService.Serialization.cs @@ -72,11 +72,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } if (Optional.IsDefined(UserName)) { @@ -114,7 +110,7 @@ internal static HdfsLinkedService DeserializeHdfsLinkedService(JsonElement eleme Optional> annotations = default; DataFactoryElement url = default; Optional> authenticationType = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; Optional> userName = default; Optional password = default; IDictionary additionalProperties = default; @@ -200,11 +196,7 @@ internal static HdfsLinkedService DeserializeHdfsLinkedService(JsonElement eleme } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } if (property0.NameEquals("userName"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HdfsLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HdfsLinkedService.cs index 4366c7bd8c0b..ec7c1d6eae56 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HdfsLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HdfsLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Hadoop Distributed File System (HDFS) linked service. - public partial class HdfsLinkedService : DataFactoryLinkedServiceDefinition + public partial class HdfsLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of HdfsLinkedService. /// The URL of the HDFS service endpoint, e.g. http://myhostname:50070/webhdfs/v1 . Type: string (or Expression with resultType string). @@ -38,7 +38,7 @@ public HdfsLinkedService(DataFactoryElement uri) /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. /// User name for Windows authentication. Type: string (or Expression with resultType string). /// Password for Windows authentication. - internal HdfsLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement uri, DataFactoryElement authenticationType, BinaryData encryptedCredential, DataFactoryElement userName, DataFactorySecretBaseDefinition password) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal HdfsLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement uri, DataFactoryElement authenticationType, string encryptedCredential, DataFactoryElement userName, DataFactorySecretBaseDefinition password) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Uri = uri; AuthenticationType = authenticationType; @@ -52,37 +52,8 @@ internal HdfsLinkedService(string linkedServiceType, IntegrationRuntimeReference public DataFactoryElement Uri { get; set; } /// Type of authentication used to connect to the HDFS. Possible values are: Anonymous and Windows. Type: string (or Expression with resultType string). public DataFactoryElement AuthenticationType { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } /// User name for Windows authentication. Type: string (or Expression with resultType string). public DataFactoryElement UserName { get; set; } /// Password for Windows authentication. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HiveLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HiveLinkedService.Serialization.cs index 3c4db69f38ad..245ffa734082 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HiveLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HiveLinkedService.Serialization.cs @@ -139,11 +139,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -185,7 +181,7 @@ internal static HiveLinkedService DeserializeHiveLinkedService(JsonElement eleme Optional> useSystemTrustStore = default; Optional> allowHostNameCNMismatch = default; Optional> allowSelfSignedServerCert = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -391,11 +387,7 @@ internal static HiveLinkedService DeserializeHiveLinkedService(JsonElement eleme } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HiveLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HiveLinkedService.cs index 68983e723169..d2f1170ec80e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HiveLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HiveLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Hive Server linked service. - public partial class HiveLinkedService : DataFactoryLinkedServiceDefinition + public partial class HiveLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of HiveLinkedService. /// IP address or host name of the Hive server, separated by ';' for multiple hosts (only when serviceDiscoveryMode is enable). @@ -52,7 +52,7 @@ public HiveLinkedService(DataFactoryElement host, HiveAuthenticationType /// Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. /// Specifies whether to allow self-signed certificates from the server. The default value is false. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal HiveLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement port, HiveServerType? serverType, HiveThriftTransportProtocol? thriftTransportProtocol, HiveAuthenticationType authenticationType, DataFactoryElement serviceDiscoveryMode, DataFactoryElement zooKeeperNameSpace, DataFactoryElement useNativeQuery, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement httpPath, DataFactoryElement enableSsl, DataFactoryElement trustedCertPath, DataFactoryElement useSystemTrustStore, DataFactoryElement allowHostNameCNMismatch, DataFactoryElement allowSelfSignedServerCert, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal HiveLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement port, HiveServerType? serverType, HiveThriftTransportProtocol? thriftTransportProtocol, HiveAuthenticationType authenticationType, DataFactoryElement serviceDiscoveryMode, DataFactoryElement zooKeeperNameSpace, DataFactoryElement useNativeQuery, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement httpPath, DataFactoryElement enableSsl, DataFactoryElement trustedCertPath, DataFactoryElement useSystemTrustStore, DataFactoryElement allowHostNameCNMismatch, DataFactoryElement allowSelfSignedServerCert, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Host = host; Port = port; @@ -106,36 +106,7 @@ internal HiveLinkedService(string linkedServiceType, IntegrationRuntimeReference public DataFactoryElement AllowHostNameCNMismatch { get; set; } /// Specifies whether to allow self-signed certificates from the server. The default value is false. public DataFactoryElement AllowSelfSignedServerCert { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HiveObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HiveObjectDataset.cs index 60fe4744b622..e9c110016ece 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HiveObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HiveObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Hive Server dataset. - public partial class HiveObjectDataset : DataFactoryDatasetDefinition + public partial class HiveObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of HiveObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HttpLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HttpLinkedService.Serialization.cs index 94b0dc246e90..a3c6eefd1001 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HttpLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HttpLinkedService.Serialization.cs @@ -97,11 +97,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } if (Optional.IsDefined(EnableServerCertificateValidation)) { @@ -139,7 +135,7 @@ internal static HttpLinkedService DeserializeHttpLinkedService(JsonElement eleme Optional> authHeaders = default; Optional> embeddedCertData = default; Optional> certThumbprint = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; Optional> enableServerCertificateValidation = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); @@ -269,11 +265,7 @@ internal static HttpLinkedService DeserializeHttpLinkedService(JsonElement eleme } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } if (property0.NameEquals("enableServerCertificateValidation"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HttpLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HttpLinkedService.cs index 1dc3ba1eaf4e..0e45e6a11779 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HttpLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HttpLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for an HTTP source. - public partial class HttpLinkedService : DataFactoryLinkedServiceDefinition + public partial class HttpLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of HttpLinkedService. /// The base URL of the HTTP endpoint, e.g. https://www.microsoft.com. Type: string (or Expression with resultType string). @@ -42,7 +42,7 @@ public HttpLinkedService(DataFactoryElement uri) /// Thumbprint of certificate for ClientCertificate authentication. Only valid for on-premises copy. For on-premises copy with ClientCertificate authentication, either CertThumbprint or EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. /// If true, validate the HTTPS server SSL certificate. Default value is true. Type: boolean (or Expression with resultType boolean). - internal HttpLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement uri, HttpAuthenticationType? authenticationType, DataFactoryElement userName, DataFactorySecretBaseDefinition password, DataFactoryElement authHeaders, DataFactoryElement embeddedCertData, DataFactoryElement certThumbprint, BinaryData encryptedCredential, DataFactoryElement enableServerCertificateValidation) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal HttpLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement uri, HttpAuthenticationType? authenticationType, DataFactoryElement userName, DataFactorySecretBaseDefinition password, DataFactoryElement authHeaders, DataFactoryElement embeddedCertData, DataFactoryElement certThumbprint, string encryptedCredential, DataFactoryElement enableServerCertificateValidation) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Uri = uri; AuthenticationType = authenticationType; @@ -70,37 +70,8 @@ internal HttpLinkedService(string linkedServiceType, IntegrationRuntimeReference public DataFactoryElement EmbeddedCertData { get; set; } /// Thumbprint of certificate for ClientCertificate authentication. Only valid for on-premises copy. For on-premises copy with ClientCertificate authentication, either CertThumbprint or EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string). public DataFactoryElement CertThumbprint { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } /// If true, validate the HTTPS server SSL certificate. Default value is true. Type: boolean (or Expression with resultType boolean). public DataFactoryElement EnableServerCertificateValidation { get; set; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HubspotLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HubspotLinkedService.Serialization.cs index 0d1654401ce5..8a87e3e30dd4 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HubspotLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HubspotLinkedService.Serialization.cs @@ -97,11 +97,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -134,7 +130,7 @@ internal static HubspotLinkedService DeserializeHubspotLinkedService(JsonElement Optional> useEncryptedEndpoints = default; Optional> useHostVerification = default; Optional> usePeerVerification = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -263,11 +259,7 @@ internal static HubspotLinkedService DeserializeHubspotLinkedService(JsonElement } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HubspotLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HubspotLinkedService.cs index e7bbda46ad92..a8500690ab3b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HubspotLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HubspotLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Hubspot Service linked service. - public partial class HubspotLinkedService : DataFactoryLinkedServiceDefinition + public partial class HubspotLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of HubspotLinkedService. /// The client ID associated with your Hubspot application. @@ -41,7 +41,7 @@ public HubspotLinkedService(DataFactoryElement clientId) /// Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal HubspotLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement clientId, DataFactorySecretBaseDefinition clientSecret, DataFactorySecretBaseDefinition accessToken, DataFactorySecretBaseDefinition refreshToken, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal HubspotLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement clientId, DataFactorySecretBaseDefinition clientSecret, DataFactorySecretBaseDefinition accessToken, DataFactorySecretBaseDefinition refreshToken, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ClientId = clientId; ClientSecret = clientSecret; @@ -68,36 +68,7 @@ internal HubspotLinkedService(string linkedServiceType, IntegrationRuntimeRefere public DataFactoryElement UseHostVerification { get; set; } /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. public DataFactoryElement UsePeerVerification { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HubspotObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HubspotObjectDataset.cs index 8a73e5c4fe6e..fdd888b75ccd 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HubspotObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/HubspotObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Hubspot Service dataset. - public partial class HubspotObjectDataset : DataFactoryDatasetDefinition + public partial class HubspotObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of HubspotObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IfConditionActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IfConditionActivity.Serialization.cs index da4926da76b2..84bec69510df 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IfConditionActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IfConditionActivity.Serialization.cs @@ -102,13 +102,13 @@ internal static IfConditionActivity DeserializeIfConditionActivity(JsonElement e string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; - DataFactoryExpressionDefinition expression = default; - Optional> ifTrueActivities = default; - Optional> ifFalseActivities = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; + DataFactoryExpression expression = default; + Optional> ifTrueActivities = default; + Optional> ifFalseActivities = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -134,7 +134,7 @@ internal static IfConditionActivity DeserializeIfConditionActivity(JsonElement e { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -143,7 +143,7 @@ internal static IfConditionActivity DeserializeIfConditionActivity(JsonElement e { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -152,10 +152,10 @@ internal static IfConditionActivity DeserializeIfConditionActivity(JsonElement e { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -166,10 +166,10 @@ internal static IfConditionActivity DeserializeIfConditionActivity(JsonElement e { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; @@ -185,7 +185,7 @@ internal static IfConditionActivity DeserializeIfConditionActivity(JsonElement e { if (property0.NameEquals("expression"u8)) { - expression = DataFactoryExpressionDefinition.DeserializeDataFactoryExpressionDefinition(property0.Value); + expression = DataFactoryExpression.DeserializeDataFactoryExpression(property0.Value); continue; } if (property0.NameEquals("ifTrueActivities"u8)) @@ -194,10 +194,10 @@ internal static IfConditionActivity DeserializeIfConditionActivity(JsonElement e { continue; } - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(DeserializeDataFactoryActivity(item)); + array.Add(DeserializePipelineActivity(item)); } ifTrueActivities = array; continue; @@ -208,10 +208,10 @@ internal static IfConditionActivity DeserializeIfConditionActivity(JsonElement e { continue; } - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(DeserializeDataFactoryActivity(item)); + array.Add(DeserializePipelineActivity(item)); } ifFalseActivities = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IfConditionActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IfConditionActivity.cs index 0dce6b90b84c..d17408951e1a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IfConditionActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IfConditionActivity.cs @@ -18,14 +18,14 @@ public partial class IfConditionActivity : ControlActivity /// Activity name. /// An expression that would evaluate to Boolean. This is used to determine the block of activities (ifTrueActivities or ifFalseActivities) that will be executed. /// or is null. - public IfConditionActivity(string name, DataFactoryExpressionDefinition expression) : base(name) + public IfConditionActivity(string name, DataFactoryExpression expression) : base(name) { Argument.AssertNotNull(name, nameof(name)); Argument.AssertNotNull(expression, nameof(expression)); Expression = expression; - IfTrueActivities = new ChangeTrackingList(); - IfFalseActivities = new ChangeTrackingList(); + IfTrueActivities = new ChangeTrackingList(); + IfFalseActivities = new ChangeTrackingList(); ActivityType = "IfCondition"; } @@ -41,15 +41,15 @@ public IfConditionActivity(string name, DataFactoryExpressionDefinition expressi /// An expression that would evaluate to Boolean. This is used to determine the block of activities (ifTrueActivities or ifFalseActivities) that will be executed. /// /// List of activities to execute if expression is evaluated to true. This is an optional property and if not provided, the activity will exit without any action. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// /// /// List of activities to execute if expression is evaluated to false. This is an optional property and if not provided, the activity will exit without any action. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// - internal IfConditionActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryExpressionDefinition expression, IList ifTrueActivities, IList ifFalseActivities) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) + internal IfConditionActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryExpression expression, IList ifTrueActivities, IList ifFalseActivities) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) { Expression = expression; IfTrueActivities = ifTrueActivities; @@ -58,18 +58,18 @@ internal IfConditionActivity(string name, string activityType, string descriptio } /// An expression that would evaluate to Boolean. This is used to determine the block of activities (ifTrueActivities or ifFalseActivities) that will be executed. - public DataFactoryExpressionDefinition Expression { get; set; } + public DataFactoryExpression Expression { get; set; } /// /// List of activities to execute if expression is evaluated to true. This is an optional property and if not provided, the activity will exit without any action. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// - public IList IfTrueActivities { get; } + public IList IfTrueActivities { get; } /// /// List of activities to execute if expression is evaluated to false. This is an optional property and if not provided, the activity will exit without any action. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// - public IList IfFalseActivities { get; } + public IList IfFalseActivities { get; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaLinkedService.Serialization.cs index 0fddc00c9ad0..5396394d86b0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaLinkedService.Serialization.cs @@ -109,11 +109,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -149,7 +145,7 @@ internal static ImpalaLinkedService DeserializeImpalaLinkedService(JsonElement e Optional> useSystemTrustStore = default; Optional> allowHostNameCNMismatch = default; Optional> allowSelfSignedServerCert = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -301,11 +297,7 @@ internal static ImpalaLinkedService DeserializeImpalaLinkedService(JsonElement e } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaLinkedService.cs index 0473add1e8e8..0238171d1408 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Impala server linked service. - public partial class ImpalaLinkedService : DataFactoryLinkedServiceDefinition + public partial class ImpalaLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of ImpalaLinkedService. /// The IP address or host name of the Impala server. (i.e. 192.168.222.160). @@ -46,7 +46,7 @@ public ImpalaLinkedService(DataFactoryElement host, ImpalaAuthentication /// Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. /// Specifies whether to allow self-signed certificates from the server. The default value is false. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal ImpalaLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement port, ImpalaAuthenticationType authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement enableSsl, DataFactoryElement trustedCertPath, DataFactoryElement useSystemTrustStore, DataFactoryElement allowHostNameCNMismatch, DataFactoryElement allowSelfSignedServerCert, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal ImpalaLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement port, ImpalaAuthenticationType authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement enableSsl, DataFactoryElement trustedCertPath, DataFactoryElement useSystemTrustStore, DataFactoryElement allowHostNameCNMismatch, DataFactoryElement allowSelfSignedServerCert, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Host = host; Port = port; @@ -82,36 +82,7 @@ internal ImpalaLinkedService(string linkedServiceType, IntegrationRuntimeReferen public DataFactoryElement AllowHostNameCNMismatch { get; set; } /// Specifies whether to allow self-signed certificates from the server. The default value is false. public DataFactoryElement AllowSelfSignedServerCert { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaObjectDataset.cs index 8a3e510733cd..6f02a02fce82 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ImpalaObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Impala server dataset. - public partial class ImpalaObjectDataset : DataFactoryDatasetDefinition + public partial class ImpalaObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of ImpalaObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/InformixLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/InformixLinkedService.Serialization.cs index e3c0069bb58c..a11f1c5bb425 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/InformixLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/InformixLinkedService.Serialization.cs @@ -87,11 +87,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -122,7 +118,7 @@ internal static InformixLinkedService DeserializeInformixLinkedService(JsonEleme Optional credential = default; Optional> userName = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -233,11 +229,7 @@ internal static InformixLinkedService DeserializeInformixLinkedService(JsonEleme } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/InformixLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/InformixLinkedService.cs index 098e8a944c4b..5a8f7dcb31c4 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/InformixLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/InformixLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Informix linked service. - public partial class InformixLinkedService : DataFactoryLinkedServiceDefinition + public partial class InformixLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of InformixLinkedService. /// The non-access credential portion of the connection string as well as an optional encrypted credential. Type: string, or SecureString, or AzureKeyVaultSecretReference, or Expression with resultType string. @@ -39,7 +39,7 @@ public InformixLinkedService(DataFactoryElement connectionString) /// User name for Basic authentication. Type: string (or Expression with resultType string). /// Password for Basic authentication. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal InformixLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryElement authenticationType, DataFactorySecretBaseDefinition credential, DataFactoryElement userName, DataFactorySecretBaseDefinition password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal InformixLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryElement authenticationType, DataFactorySecretBaseDefinition credential, DataFactoryElement userName, DataFactorySecretBaseDefinition password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; AuthenticationType = authenticationType; @@ -60,36 +60,7 @@ internal InformixLinkedService(string linkedServiceType, IntegrationRuntimeRefer public DataFactoryElement UserName { get; set; } /// Password for Basic authentication. public DataFactorySecretBaseDefinition Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/InformixTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/InformixTableDataset.cs index 810589023783..0cc40524f4b8 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/InformixTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/InformixTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Informix table dataset. - public partial class InformixTableDataset : DataFactoryDatasetDefinition + public partial class InformixTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of InformixTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeAutoUpdate.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeAutoUpdateState.cs similarity index 59% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeAutoUpdate.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeAutoUpdateState.cs index a555be836930..b7bef64ba4df 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeAutoUpdate.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeAutoUpdateState.cs @@ -11,13 +11,13 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The state of integration runtime auto update. - public readonly partial struct IntegrationRuntimeAutoUpdate : IEquatable + public readonly partial struct IntegrationRuntimeAutoUpdateState : IEquatable { private readonly string _value; - /// Initializes a new instance of . + /// Initializes a new instance of . /// is null. - public IntegrationRuntimeAutoUpdate(string value) + public IntegrationRuntimeAutoUpdateState(string value) { _value = value ?? throw new ArgumentNullException(nameof(value)); } @@ -26,21 +26,21 @@ public IntegrationRuntimeAutoUpdate(string value) private const string OffValue = "Off"; /// On. - public static IntegrationRuntimeAutoUpdate On { get; } = new IntegrationRuntimeAutoUpdate(OnValue); + public static IntegrationRuntimeAutoUpdateState On { get; } = new IntegrationRuntimeAutoUpdateState(OnValue); /// Off. - public static IntegrationRuntimeAutoUpdate Off { get; } = new IntegrationRuntimeAutoUpdate(OffValue); - /// Determines if two values are the same. - public static bool operator ==(IntegrationRuntimeAutoUpdate left, IntegrationRuntimeAutoUpdate right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(IntegrationRuntimeAutoUpdate left, IntegrationRuntimeAutoUpdate right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator IntegrationRuntimeAutoUpdate(string value) => new IntegrationRuntimeAutoUpdate(value); + public static IntegrationRuntimeAutoUpdateState Off { get; } = new IntegrationRuntimeAutoUpdateState(OffValue); + /// Determines if two values are the same. + public static bool operator ==(IntegrationRuntimeAutoUpdateState left, IntegrationRuntimeAutoUpdateState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(IntegrationRuntimeAutoUpdateState left, IntegrationRuntimeAutoUpdateState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator IntegrationRuntimeAutoUpdateState(string value) => new IntegrationRuntimeAutoUpdateState(value); /// [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is IntegrationRuntimeAutoUpdate other && Equals(other); + public override bool Equals(object obj) => obj is IntegrationRuntimeAutoUpdateState other && Equals(other); /// - public bool Equals(IntegrationRuntimeAutoUpdate other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + public bool Equals(IntegrationRuntimeAutoUpdateState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); /// [EditorBrowsable(EditorBrowsableState.Never)] diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeComputeProperties.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeComputeProperties.Serialization.cs index 841fe64c9e1a..ae14fca04635 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeComputeProperties.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeComputeProperties.Serialization.cs @@ -42,10 +42,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("dataFlowProperties"u8); writer.WriteObjectValue(DataFlowProperties); } - if (Optional.IsDefined(VNetProperties)) + if (Optional.IsDefined(VnetProperties)) { writer.WritePropertyName("vNetProperties"u8); - writer.WriteObjectValue(VNetProperties); + writer.WriteObjectValue(VnetProperties); } if (Optional.IsDefined(CopyComputeScaleProperties)) { @@ -80,7 +80,7 @@ internal static IntegrationRuntimeComputeProperties DeserializeIntegrationRuntim Optional numberOfNodes = default; Optional maxParallelExecutionsPerNode = default; Optional dataFlowProperties = default; - Optional vNetProperties = default; + Optional vnetProperties = default; Optional copyComputeScaleProperties = default; Optional pipelineExternalComputeScaleProperties = default; IDictionary additionalProperties = default; @@ -134,7 +134,7 @@ internal static IntegrationRuntimeComputeProperties DeserializeIntegrationRuntim { continue; } - vNetProperties = IntegrationRuntimeVNetProperties.DeserializeIntegrationRuntimeVNetProperties(property.Value); + vnetProperties = IntegrationRuntimeVnetProperties.DeserializeIntegrationRuntimeVnetProperties(property.Value); continue; } if (property.NameEquals("copyComputeScaleProperties"u8)) @@ -158,7 +158,7 @@ internal static IntegrationRuntimeComputeProperties DeserializeIntegrationRuntim additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } additionalProperties = additionalPropertiesDictionary; - return new IntegrationRuntimeComputeProperties(Optional.ToNullable(location), nodeSize.Value, Optional.ToNullable(numberOfNodes), Optional.ToNullable(maxParallelExecutionsPerNode), dataFlowProperties.Value, vNetProperties.Value, copyComputeScaleProperties.Value, pipelineExternalComputeScaleProperties.Value, additionalProperties); + return new IntegrationRuntimeComputeProperties(Optional.ToNullable(location), nodeSize.Value, Optional.ToNullable(numberOfNodes), Optional.ToNullable(maxParallelExecutionsPerNode), dataFlowProperties.Value, vnetProperties.Value, copyComputeScaleProperties.Value, pipelineExternalComputeScaleProperties.Value, additionalProperties); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeComputeProperties.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeComputeProperties.cs index beca9b663345..77235759932a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeComputeProperties.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeComputeProperties.cs @@ -26,18 +26,18 @@ public IntegrationRuntimeComputeProperties() /// The required number of nodes for managed integration runtime. /// Maximum parallel executions count per node for managed integration runtime. /// Data flow properties for managed integration runtime. - /// VNet properties for managed integration runtime. + /// VNet properties for managed integration runtime. /// CopyComputeScale properties for managed integration runtime. /// PipelineExternalComputeScale properties for managed integration runtime. /// Additional Properties. - internal IntegrationRuntimeComputeProperties(AzureLocation? location, string nodeSize, int? numberOfNodes, int? maxParallelExecutionsPerNode, IntegrationRuntimeDataFlowProperties dataFlowProperties, IntegrationRuntimeVNetProperties vNetProperties, CopyComputeScaleProperties copyComputeScaleProperties, PipelineExternalComputeScaleProperties pipelineExternalComputeScaleProperties, IDictionary additionalProperties) + internal IntegrationRuntimeComputeProperties(AzureLocation? location, string nodeSize, int? numberOfNodes, int? maxParallelExecutionsPerNode, IntegrationRuntimeDataFlowProperties dataFlowProperties, IntegrationRuntimeVnetProperties vnetProperties, CopyComputeScaleProperties copyComputeScaleProperties, PipelineExternalComputeScaleProperties pipelineExternalComputeScaleProperties, IDictionary additionalProperties) { Location = location; NodeSize = nodeSize; NumberOfNodes = numberOfNodes; MaxParallelExecutionsPerNode = maxParallelExecutionsPerNode; DataFlowProperties = dataFlowProperties; - VNetProperties = vNetProperties; + VnetProperties = vnetProperties; CopyComputeScaleProperties = copyComputeScaleProperties; PipelineExternalComputeScaleProperties = pipelineExternalComputeScaleProperties; AdditionalProperties = additionalProperties; @@ -54,7 +54,7 @@ internal IntegrationRuntimeComputeProperties(AzureLocation? location, string nod /// Data flow properties for managed integration runtime. public IntegrationRuntimeDataFlowProperties DataFlowProperties { get; set; } /// VNet properties for managed integration runtime. - public IntegrationRuntimeVNetProperties VNetProperties { get; set; } + public IntegrationRuntimeVnetProperties VnetProperties { get; set; } /// CopyComputeScale properties for managed integration runtime. public CopyComputeScaleProperties CopyComputeScaleProperties { get; set; } /// PipelineExternalComputeScale properties for managed integration runtime. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowCustomItem.Serialization.cs similarity index 78% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowCustomItem.Serialization.cs index 456358c74325..cd02b02c59b0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowCustomItem.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem : IUtf8JsonSerializable + public partial class IntegrationRuntimeDataFlowCustomItem : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -28,7 +28,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem DeserializeIntegrationRuntimeDataFlowPropertiesCustomPropertiesItem(JsonElement element) + internal static IntegrationRuntimeDataFlowCustomItem DeserializeIntegrationRuntimeDataFlowCustomItem(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -49,7 +49,7 @@ internal static IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem Deseria continue; } } - return new IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem(name.Value, value.Value); + return new IntegrationRuntimeDataFlowCustomItem(name.Value, value.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowCustomItem.cs similarity index 62% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowCustomItem.cs index 8963eb0c0a72..a1783ab5a875 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowCustomItem.cs @@ -7,18 +7,18 @@ namespace Azure.ResourceManager.DataFactory.Models { - /// The IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem. - public partial class IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem + /// The IntegrationRuntimeDataFlowCustomItem. + public partial class IntegrationRuntimeDataFlowCustomItem { - /// Initializes a new instance of IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem. - public IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem() + /// Initializes a new instance of IntegrationRuntimeDataFlowCustomItem. + public IntegrationRuntimeDataFlowCustomItem() { } - /// Initializes a new instance of IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem. + /// Initializes a new instance of IntegrationRuntimeDataFlowCustomItem. /// Name of custom property. /// Value of custom property. - internal IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem(string name, string value) + internal IntegrationRuntimeDataFlowCustomItem(string name, string value) { Name = name; Value = value; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowProperties.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowProperties.Serialization.cs index 7979c108652a..30b7d78f7bc4 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowProperties.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowProperties.Serialization.cs @@ -69,7 +69,7 @@ internal static IntegrationRuntimeDataFlowProperties DeserializeIntegrationRunti Optional coreCount = default; Optional timeToLive = default; Optional cleanup = default; - Optional> customProperties = default; + Optional> customProperties = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -116,10 +116,10 @@ internal static IntegrationRuntimeDataFlowProperties DeserializeIntegrationRunti { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem.DeserializeIntegrationRuntimeDataFlowPropertiesCustomPropertiesItem(item)); + array.Add(IntegrationRuntimeDataFlowCustomItem.DeserializeIntegrationRuntimeDataFlowCustomItem(item)); } customProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowProperties.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowProperties.cs index 8711abd63807..f3c8ae7f67fc 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowProperties.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeDataFlowProperties.cs @@ -17,7 +17,7 @@ public partial class IntegrationRuntimeDataFlowProperties /// Initializes a new instance of IntegrationRuntimeDataFlowProperties. public IntegrationRuntimeDataFlowProperties() { - CustomProperties = new ChangeTrackingList(); + CustomProperties = new ChangeTrackingList(); AdditionalProperties = new ChangeTrackingDictionary(); } @@ -28,7 +28,7 @@ public IntegrationRuntimeDataFlowProperties() /// Cluster will not be recycled and it will be used in next data flow activity run until TTL (time to live) is reached if this is set as false. Default is true. /// Custom properties are used to tune the data flow runtime performance. /// Additional Properties. - internal IntegrationRuntimeDataFlowProperties(DataFlowComputeType? computeType, int? coreCount, int? timeToLiveInMinutes, bool? shouldCleanupAfterTtl, IList customProperties, IDictionary additionalProperties) + internal IntegrationRuntimeDataFlowProperties(DataFlowComputeType? computeType, int? coreCount, int? timeToLiveInMinutes, bool? shouldCleanupAfterTtl, IList customProperties, IDictionary additionalProperties) { ComputeType = computeType; CoreCount = coreCount; @@ -47,7 +47,7 @@ internal IntegrationRuntimeDataFlowProperties(DataFlowComputeType? computeType, /// Cluster will not be recycled and it will be used in next data flow activity run until TTL (time to live) is reached if this is set as false. Default is true. public bool? ShouldCleanupAfterTtl { get; set; } /// Custom properties are used to tune the data flow runtime performance. - public IList CustomProperties { get; } + public IList CustomProperties { get; } /// /// Additional Properties /// diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeVNetProperties.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeVnetProperties.Serialization.cs similarity index 90% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeVNetProperties.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeVnetProperties.Serialization.cs index efa43a1053ac..abdc0e97cdc7 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeVNetProperties.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeVnetProperties.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class IntegrationRuntimeVNetProperties : IUtf8JsonSerializable + public partial class IntegrationRuntimeVnetProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -54,13 +54,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static IntegrationRuntimeVNetProperties DeserializeIntegrationRuntimeVNetProperties(JsonElement element) + internal static IntegrationRuntimeVnetProperties DeserializeIntegrationRuntimeVnetProperties(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - Optional vNetId = default; + Optional vnetId = default; Optional subnet = default; Optional> publicIPs = default; Optional subnetId = default; @@ -74,7 +74,7 @@ internal static IntegrationRuntimeVNetProperties DeserializeIntegrationRuntimeVN { continue; } - vNetId = property.Value.GetGuid(); + vnetId = property.Value.GetGuid(); continue; } if (property.NameEquals("subnet"u8)) @@ -108,7 +108,7 @@ internal static IntegrationRuntimeVNetProperties DeserializeIntegrationRuntimeVN additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } additionalProperties = additionalPropertiesDictionary; - return new IntegrationRuntimeVNetProperties(Optional.ToNullable(vNetId), subnet.Value, Optional.ToList(publicIPs), subnetId.Value, additionalProperties); + return new IntegrationRuntimeVnetProperties(Optional.ToNullable(vnetId), subnet.Value, Optional.ToList(publicIPs), subnetId.Value, additionalProperties); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeVNetProperties.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeVnetProperties.cs similarity index 93% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeVNetProperties.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeVnetProperties.cs index 6cb647fb7225..a6b6b6b04301 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeVNetProperties.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/IntegrationRuntimeVnetProperties.cs @@ -12,22 +12,22 @@ namespace Azure.ResourceManager.DataFactory.Models { /// VNet properties for managed integration runtime. - public partial class IntegrationRuntimeVNetProperties + public partial class IntegrationRuntimeVnetProperties { - /// Initializes a new instance of IntegrationRuntimeVNetProperties. - public IntegrationRuntimeVNetProperties() + /// Initializes a new instance of IntegrationRuntimeVnetProperties. + public IntegrationRuntimeVnetProperties() { PublicIPs = new ChangeTrackingList(); AdditionalProperties = new ChangeTrackingDictionary(); } - /// Initializes a new instance of IntegrationRuntimeVNetProperties. + /// Initializes a new instance of IntegrationRuntimeVnetProperties. /// The ID of the VNet that this integration runtime will join. /// The name of the subnet this integration runtime will join. /// Resource IDs of the public IP addresses that this integration runtime will use. /// The ID of subnet, to which this Azure-SSIS integration runtime will be joined. /// Additional Properties. - internal IntegrationRuntimeVNetProperties(Guid? vnetId, string subnet, IList publicIPs, ResourceIdentifier subnetId, IDictionary additionalProperties) + internal IntegrationRuntimeVnetProperties(Guid? vnetId, string subnet, IList publicIPs, ResourceIdentifier subnetId, IDictionary additionalProperties) { VnetId = vnetId; Subnet = subnet; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/JiraLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/JiraLinkedService.Serialization.cs index a73cab3d20a3..2c324d06cfe2 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/JiraLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/JiraLinkedService.Serialization.cs @@ -94,11 +94,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -131,7 +127,7 @@ internal static JiraLinkedService DeserializeJiraLinkedService(JsonElement eleme Optional> useEncryptedEndpoints = default; Optional> useHostVerification = default; Optional> usePeerVerification = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -256,11 +252,7 @@ internal static JiraLinkedService DeserializeJiraLinkedService(JsonElement eleme } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/JiraLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/JiraLinkedService.cs index 9c6b0510a908..8d78d81c335a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/JiraLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/JiraLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Jira Service linked service. - public partial class JiraLinkedService : DataFactoryLinkedServiceDefinition + public partial class JiraLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of JiraLinkedService. /// The IP address or host name of the Jira service. (e.g. jira.example.com). @@ -44,7 +44,7 @@ public JiraLinkedService(DataFactoryElement host, DataFactoryElement Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal JiraLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement port, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal JiraLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement port, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Host = host; Port = port; @@ -71,36 +71,7 @@ internal JiraLinkedService(string linkedServiceType, IntegrationRuntimeReference public DataFactoryElement UseHostVerification { get; set; } /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. public DataFactoryElement UsePeerVerification { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/JiraObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/JiraObjectDataset.cs index efc47c20e2c8..59770af35f1f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/JiraObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/JiraObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Jira Service dataset. - public partial class JiraObjectDataset : DataFactoryDatasetDefinition + public partial class JiraObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of JiraObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/JsonDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/JsonDataset.cs index b6474a992fc0..3c3f1e4eae23 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/JsonDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/JsonDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Json dataset. - public partial class JsonDataset : DataFactoryDatasetDefinition + public partial class JsonDataset : DataFactoryDatasetProperties { /// Initializes a new instance of JsonDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LinkedIntegrationRuntimeRbacAuthorization.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LinkedIntegrationRuntimeRbacAuthorization.Serialization.cs index fcee120e83b3..8a47c25c9c1b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LinkedIntegrationRuntimeRbacAuthorization.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LinkedIntegrationRuntimeRbacAuthorization.Serialization.cs @@ -33,14 +33,14 @@ internal static LinkedIntegrationRuntimeRbacAuthorization DeserializeLinkedInteg { return null; } - string resourceId = default; + ResourceIdentifier resourceId = default; Optional credential = default; string authorizationType = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("resourceId"u8)) { - resourceId = property.Value.GetString(); + resourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("credential"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LinkedIntegrationRuntimeRbacAuthorization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LinkedIntegrationRuntimeRbacAuthorization.cs index f654c4c52e98..835ddbf9b0c8 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LinkedIntegrationRuntimeRbacAuthorization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LinkedIntegrationRuntimeRbacAuthorization.cs @@ -16,7 +16,7 @@ public partial class LinkedIntegrationRuntimeRbacAuthorization : LinkedIntegrati /// Initializes a new instance of LinkedIntegrationRuntimeRbacAuthorization. /// The resource identifier of the integration runtime to be shared. /// is null. - public LinkedIntegrationRuntimeRbacAuthorization(string resourceId) + public LinkedIntegrationRuntimeRbacAuthorization(ResourceIdentifier resourceId) { Argument.AssertNotNull(resourceId, nameof(resourceId)); @@ -28,7 +28,7 @@ public LinkedIntegrationRuntimeRbacAuthorization(string resourceId) /// The authorization type for integration runtime sharing. /// The resource identifier of the integration runtime to be shared. /// The credential reference containing authentication information. - internal LinkedIntegrationRuntimeRbacAuthorization(string authorizationType, string resourceId, DataFactoryCredentialReference credential) : base(authorizationType) + internal LinkedIntegrationRuntimeRbacAuthorization(string authorizationType, ResourceIdentifier resourceId, DataFactoryCredentialReference credential) : base(authorizationType) { ResourceId = resourceId; Credential = credential; @@ -36,7 +36,7 @@ internal LinkedIntegrationRuntimeRbacAuthorization(string authorizationType, str } /// The resource identifier of the integration runtime to be shared. - public string ResourceId { get; set; } + public ResourceIdentifier ResourceId { get; set; } /// The credential reference containing authentication information. public DataFactoryCredentialReference Credential { get; set; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LookupActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LookupActivity.Serialization.cs index e7c5414ac764..7b1be427b4e0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LookupActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LookupActivity.Serialization.cs @@ -98,14 +98,14 @@ internal static LookupActivity DeserializeLookupActivity(JsonElement element) return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; CopyActivitySource source = default; DatasetReference dataset = default; Optional> firstRowOnly = default; @@ -128,7 +128,7 @@ internal static LookupActivity DeserializeLookupActivity(JsonElement element) { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -152,7 +152,7 @@ internal static LookupActivity DeserializeLookupActivity(JsonElement element) { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -161,7 +161,7 @@ internal static LookupActivity DeserializeLookupActivity(JsonElement element) { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -170,10 +170,10 @@ internal static LookupActivity DeserializeLookupActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -184,10 +184,10 @@ internal static LookupActivity DeserializeLookupActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LookupActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LookupActivity.cs index 9e8798ff1064..d7ad4df5aa60 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LookupActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/LookupActivity.cs @@ -20,7 +20,7 @@ public partial class LookupActivity : ExecutionActivity /// /// Dataset-specific source properties, same as copy activity source. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// /// Lookup activity dataset reference. /// , or is null. @@ -49,11 +49,11 @@ public LookupActivity(string name, CopyActivitySource source, DatasetReference d /// /// Dataset-specific source properties, same as copy activity source. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// /// Lookup activity dataset reference. /// Whether to return first row or all rows. Default value is true. Type: boolean (or Expression with resultType boolean). - internal LookupActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, CopyActivitySource source, DatasetReference dataset, DataFactoryElement firstRowOnly) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal LookupActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, CopyActivitySource source, DatasetReference dataset, DataFactoryElement firstRowOnly) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { Source = source; Dataset = dataset; @@ -64,7 +64,7 @@ internal LookupActivity(string name, string activityType, string description, Ac /// /// Dataset-specific source properties, same as copy activity source. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// public CopyActivitySource Source { get; set; } /// Lookup activity dataset reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MagentoLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MagentoLinkedService.Serialization.cs index 766c214fe4b9..b406ffd103ed 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MagentoLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MagentoLinkedService.Serialization.cs @@ -87,11 +87,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -122,7 +118,7 @@ internal static MagentoLinkedService DeserializeMagentoLinkedService(JsonElement Optional> useEncryptedEndpoints = default; Optional> useHostVerification = default; Optional> usePeerVerification = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -233,11 +229,7 @@ internal static MagentoLinkedService DeserializeMagentoLinkedService(JsonElement } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MagentoLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MagentoLinkedService.cs index 9b951971f0a9..e99bd8e638c5 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MagentoLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MagentoLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Magento server linked service. - public partial class MagentoLinkedService : DataFactoryLinkedServiceDefinition + public partial class MagentoLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of MagentoLinkedService. /// The URL of the Magento instance. (i.e. 192.168.222.110/magento3). @@ -39,7 +39,7 @@ public MagentoLinkedService(DataFactoryElement host) /// Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal MagentoLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactorySecretBaseDefinition accessToken, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal MagentoLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactorySecretBaseDefinition accessToken, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Host = host; AccessToken = accessToken; @@ -60,36 +60,7 @@ internal MagentoLinkedService(string linkedServiceType, IntegrationRuntimeRefere public DataFactoryElement UseHostVerification { get; set; } /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. public DataFactoryElement UsePeerVerification { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MagentoObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MagentoObjectDataset.cs index dcf20cc3ae0b..0330817d080e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MagentoObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MagentoObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Magento server dataset. - public partial class MagentoObjectDataset : DataFactoryDatasetDefinition + public partial class MagentoObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of MagentoObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedIntegrationRuntime.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedIntegrationRuntime.cs index 392da96f3591..52f607c6c2dc 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedIntegrationRuntime.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedIntegrationRuntime.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Managed integration runtime, including managed elastic and managed dedicated integration runtimes. - public partial class ManagedIntegrationRuntime : DataFactoryIntegrationRuntimeDefinition + public partial class ManagedIntegrationRuntime : DataFactoryIntegrationRuntimeProperties { /// Initializes a new instance of ManagedIntegrationRuntime. public ManagedIntegrationRuntime() diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedPrivateEndpoint.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedPrivateEndpoint.Serialization.cs deleted file mode 100644 index 442c565fb94d..000000000000 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedPrivateEndpoint.Serialization.cs +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.DataFactory.Models -{ - public partial class ManagedPrivateEndpoint : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(ConnectionState)) - { - writer.WritePropertyName("connectionState"u8); - writer.WriteObjectValue(ConnectionState); - } - if (Optional.IsCollectionDefined(Fqdns)) - { - writer.WritePropertyName("fqdns"u8); - writer.WriteStartArray(); - foreach (var item in Fqdns) - { - writer.WriteStringValue(item); - } - writer.WriteEndArray(); - } - if (Optional.IsDefined(GroupId)) - { - writer.WritePropertyName("groupId"u8); - writer.WriteStringValue(GroupId); - } - if (Optional.IsDefined(PrivateLinkResourceId)) - { - writer.WritePropertyName("privateLinkResourceId"u8); - writer.WriteStringValue(PrivateLinkResourceId); - } - foreach (var item in AdditionalProperties) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(item.Value.ToString()).RootElement); -#endif - } - writer.WriteEndObject(); - } - - internal static ManagedPrivateEndpoint DeserializeManagedPrivateEndpoint(JsonElement element) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - Optional connectionState = default; - Optional> fqdns = default; - Optional groupId = default; - Optional isReserved = default; - Optional privateLinkResourceId = default; - Optional provisioningState = default; - IDictionary additionalProperties = default; - Dictionary additionalPropertiesDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("connectionState"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - connectionState = ConnectionStateProperties.DeserializeConnectionStateProperties(property.Value); - continue; - } - if (property.NameEquals("fqdns"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(item.GetString()); - } - fqdns = array; - continue; - } - if (property.NameEquals("groupId"u8)) - { - groupId = property.Value.GetString(); - continue; - } - if (property.NameEquals("isReserved"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - isReserved = property.Value.GetBoolean(); - continue; - } - if (property.NameEquals("privateLinkResourceId"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - privateLinkResourceId = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (property.NameEquals("provisioningState"u8)) - { - provisioningState = property.Value.GetString(); - continue; - } - additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - additionalProperties = additionalPropertiesDictionary; - return new ManagedPrivateEndpoint(connectionState.Value, Optional.ToList(fqdns), groupId.Value, Optional.ToNullable(isReserved), privateLinkResourceId.Value, provisioningState.Value, additionalProperties); - } - } -} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedPrivateEndpoint.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedPrivateEndpoint.cs deleted file mode 100644 index 903d6079bc70..000000000000 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ManagedPrivateEndpoint.cs +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.DataFactory.Models -{ - /// Properties of a managed private endpoint. - public partial class ManagedPrivateEndpoint - { - /// Initializes a new instance of ManagedPrivateEndpoint. - public ManagedPrivateEndpoint() - { - Fqdns = new ChangeTrackingList(); - AdditionalProperties = new ChangeTrackingDictionary(); - } - - /// Initializes a new instance of ManagedPrivateEndpoint. - /// The managed private endpoint connection state. - /// Fully qualified domain names. - /// The groupId to which the managed private endpoint is created. - /// Denotes whether the managed private endpoint is reserved. - /// The ARM resource ID of the resource to which the managed private endpoint is created. - /// The managed private endpoint provisioning state. - /// Additional Properties. - internal ManagedPrivateEndpoint(ConnectionStateProperties connectionState, IList fqdns, string groupId, bool? isReserved, ResourceIdentifier privateLinkResourceId, string provisioningState, IDictionary additionalProperties) - { - ConnectionState = connectionState; - Fqdns = fqdns; - GroupId = groupId; - IsReserved = isReserved; - PrivateLinkResourceId = privateLinkResourceId; - ProvisioningState = provisioningState; - AdditionalProperties = additionalProperties; - } - - /// The managed private endpoint connection state. - public ConnectionStateProperties ConnectionState { get; set; } - /// Fully qualified domain names. - public IList Fqdns { get; } - /// The groupId to which the managed private endpoint is created. - public string GroupId { get; set; } - /// Denotes whether the managed private endpoint is reserved. - public bool? IsReserved { get; } - /// The ARM resource ID of the resource to which the managed private endpoint is created. - public ResourceIdentifier PrivateLinkResourceId { get; set; } - /// The managed private endpoint provisioning state. - public string ProvisioningState { get; } - /// - /// Additional Properties - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public IDictionary AdditionalProperties { get; } - } -} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMapping.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMapping.Serialization.cs new file mode 100644 index 000000000000..edd781026a75 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMapping.Serialization.cs @@ -0,0 +1,122 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DataFactory.Models +{ + public partial class MapperAttributeMapping : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (Optional.IsDefined(MappingType)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(MappingType.Value.ToString()); + } + if (Optional.IsDefined(FunctionName)) + { + writer.WritePropertyName("functionName"u8); + writer.WriteStringValue(FunctionName); + } + if (Optional.IsDefined(Expression)) + { + writer.WritePropertyName("expression"u8); + writer.WriteStringValue(Expression); + } + if (Optional.IsDefined(AttributeReference)) + { + writer.WritePropertyName("attributeReference"u8); + writer.WriteObjectValue(AttributeReference); + } + if (Optional.IsCollectionDefined(AttributeReferences)) + { + writer.WritePropertyName("attributeReferences"u8); + writer.WriteStartArray(); + foreach (var item in AttributeReferences) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static MapperAttributeMapping DeserializeMapperAttributeMapping(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional name = default; + Optional type = default; + Optional functionName = default; + Optional expression = default; + Optional attributeReference = default; + Optional> attributeReferences = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = new MappingType(property.Value.GetString()); + continue; + } + if (property.NameEquals("functionName"u8)) + { + functionName = property.Value.GetString(); + continue; + } + if (property.NameEquals("expression"u8)) + { + expression = property.Value.GetString(); + continue; + } + if (property.NameEquals("attributeReference"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + attributeReference = MapperAttributeReference.DeserializeMapperAttributeReference(property.Value); + continue; + } + if (property.NameEquals("attributeReferences"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(MapperAttributeReference.DeserializeMapperAttributeReference(item)); + } + attributeReferences = array; + continue; + } + } + return new MapperAttributeMapping(name.Value, Optional.ToNullable(type), functionName.Value, expression.Value, attributeReference.Value, Optional.ToList(attributeReferences)); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMapping.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMapping.cs new file mode 100644 index 000000000000..b7ed23e4de95 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMapping.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// Source and target column mapping details. + public partial class MapperAttributeMapping + { + /// Initializes a new instance of MapperAttributeMapping. + public MapperAttributeMapping() + { + AttributeReferences = new ChangeTrackingList(); + } + + /// Initializes a new instance of MapperAttributeMapping. + /// Name of the target column. + /// Type of the CDC attribute mapping. Note: 'Advanced' mapping type is also saved as 'Derived'. + /// Name of the function used for 'Aggregate' and 'Derived' (except 'Advanced') type mapping. + /// Expression used for 'Aggregate' and 'Derived' type mapping. + /// Reference of the source column used in the mapping. It is used for 'Direct' mapping type only. + /// List of references for source columns. It is used for 'Derived' and 'Aggregate' type mappings only. + internal MapperAttributeMapping(string name, MappingType? mappingType, string functionName, string expression, MapperAttributeReference attributeReference, IList attributeReferences) + { + Name = name; + MappingType = mappingType; + FunctionName = functionName; + Expression = expression; + AttributeReference = attributeReference; + AttributeReferences = attributeReferences; + } + + /// Name of the target column. + public string Name { get; set; } + /// Type of the CDC attribute mapping. Note: 'Advanced' mapping type is also saved as 'Derived'. + public MappingType? MappingType { get; set; } + /// Name of the function used for 'Aggregate' and 'Derived' (except 'Advanced') type mapping. + public string FunctionName { get; set; } + /// Expression used for 'Aggregate' and 'Derived' type mapping. + public string Expression { get; set; } + /// Reference of the source column used in the mapping. It is used for 'Direct' mapping type only. + public MapperAttributeReference AttributeReference { get; set; } + /// List of references for source columns. It is used for 'Derived' and 'Aggregate' type mappings only. + public IList AttributeReferences { get; } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMappings.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMappings.Serialization.cs new file mode 100644 index 000000000000..87d267f6a177 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMappings.Serialization.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DataFactory.Models +{ + internal partial class MapperAttributeMappings : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(AttributeMappings)) + { + writer.WritePropertyName("attributeMappings"u8); + writer.WriteStartArray(); + foreach (var item in AttributeMappings) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static MapperAttributeMappings DeserializeMapperAttributeMappings(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> attributeMappings = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("attributeMappings"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(MapperAttributeMapping.DeserializeMapperAttributeMapping(item)); + } + attributeMappings = array; + continue; + } + } + return new MapperAttributeMappings(Optional.ToList(attributeMappings)); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMappings.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMappings.cs new file mode 100644 index 000000000000..4df3e3071bff --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeMappings.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// Attribute mapping details. + internal partial class MapperAttributeMappings + { + /// Initializes a new instance of MapperAttributeMappings. + public MapperAttributeMappings() + { + AttributeMappings = new ChangeTrackingList(); + } + + /// Initializes a new instance of MapperAttributeMappings. + /// List of attribute mappings. + internal MapperAttributeMappings(IList attributeMappings) + { + AttributeMappings = attributeMappings; + } + + /// List of attribute mappings. + public IList AttributeMappings { get; } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeReference.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeReference.Serialization.cs new file mode 100644 index 000000000000..2dae39b0372c --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeReference.Serialization.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DataFactory.Models +{ + public partial class MapperAttributeReference : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (Optional.IsDefined(Entity)) + { + writer.WritePropertyName("entity"u8); + writer.WriteStringValue(Entity); + } + if (Optional.IsDefined(EntityConnectionReference)) + { + writer.WritePropertyName("entityConnectionReference"u8); + writer.WriteObjectValue(EntityConnectionReference); + } + writer.WriteEndObject(); + } + + internal static MapperAttributeReference DeserializeMapperAttributeReference(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional name = default; + Optional entity = default; + Optional entityConnectionReference = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("entity"u8)) + { + entity = property.Value.GetString(); + continue; + } + if (property.NameEquals("entityConnectionReference"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + entityConnectionReference = MapperConnectionReference.DeserializeMapperConnectionReference(property.Value); + continue; + } + } + return new MapperAttributeReference(name.Value, entity.Value, entityConnectionReference.Value); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeReference.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeReference.cs new file mode 100644 index 000000000000..17bcb73af84a --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperAttributeReference.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// Attribute reference details for the referred column. + public partial class MapperAttributeReference + { + /// Initializes a new instance of MapperAttributeReference. + public MapperAttributeReference() + { + } + + /// Initializes a new instance of MapperAttributeReference. + /// Name of the column. + /// Name of the table. + /// The connection reference for the connection. + internal MapperAttributeReference(string name, string entity, MapperConnectionReference entityConnectionReference) + { + Name = name; + Entity = entity; + EntityConnectionReference = entityConnectionReference; + } + + /// Name of the column. + public string Name { get; set; } + /// Name of the table. + public string Entity { get; set; } + /// The connection reference for the connection. + public MapperConnectionReference EntityConnectionReference { get; set; } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnection.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnection.Serialization.cs new file mode 100644 index 000000000000..16f08c0d962e --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnection.Serialization.cs @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.Core.Expressions.DataFactory; + +namespace Azure.ResourceManager.DataFactory.Models +{ + public partial class MapperConnection : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(LinkedService)) + { + writer.WritePropertyName("linkedService"u8); + JsonSerializer.Serialize(writer, LinkedService); + } + if (Optional.IsDefined(LinkedServiceType)) + { + writer.WritePropertyName("linkedServiceType"u8); + writer.WriteStringValue(LinkedServiceType); + } + writer.WritePropertyName("type"u8); + writer.WriteStringValue(ConnectionType.ToString()); + if (Optional.IsDefined(IsInlineDataset)) + { + writer.WritePropertyName("isInlineDataset"u8); + writer.WriteBooleanValue(IsInlineDataset.Value); + } + if (Optional.IsCollectionDefined(CommonDslConnectorProperties)) + { + writer.WritePropertyName("commonDslConnectorProperties"u8); + writer.WriteStartArray(); + foreach (var item in CommonDslConnectorProperties) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static MapperConnection DeserializeMapperConnection(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional linkedService = default; + Optional linkedServiceType = default; + MapperConnectionType type = default; + Optional isInlineDataset = default; + Optional> commonDslConnectorProperties = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("linkedService"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + linkedService = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("linkedServiceType"u8)) + { + linkedServiceType = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new MapperConnectionType(property.Value.GetString()); + continue; + } + if (property.NameEquals("isInlineDataset"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isInlineDataset = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("commonDslConnectorProperties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(MapperDslConnectorProperties.DeserializeMapperDslConnectorProperties(item)); + } + commonDslConnectorProperties = array; + continue; + } + } + return new MapperConnection(linkedService, linkedServiceType.Value, type, Optional.ToNullable(isInlineDataset), Optional.ToList(commonDslConnectorProperties)); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnection.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnection.cs new file mode 100644 index 000000000000..50f3ff1713af --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnection.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; +using Azure.Core.Expressions.DataFactory; + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// Source connection details. + public partial class MapperConnection + { + /// Initializes a new instance of MapperConnection. + /// Type of connection via linked service or dataset. + public MapperConnection(MapperConnectionType connectionType) + { + ConnectionType = connectionType; + CommonDslConnectorProperties = new ChangeTrackingList(); + } + + /// Initializes a new instance of MapperConnection. + /// Linked service reference. + /// Type of the linked service e.g.: AzureBlobFS. + /// Type of connection via linked service or dataset. + /// A boolean indicating whether linked service is of type inline dataset. Currently only inline datasets are supported. + /// List of name/value pairs for connection properties. + internal MapperConnection(DataFactoryLinkedServiceReference linkedService, string linkedServiceType, MapperConnectionType connectionType, bool? isInlineDataset, IList commonDslConnectorProperties) + { + LinkedService = linkedService; + LinkedServiceType = linkedServiceType; + ConnectionType = connectionType; + IsInlineDataset = isInlineDataset; + CommonDslConnectorProperties = commonDslConnectorProperties; + } + + /// Linked service reference. + public DataFactoryLinkedServiceReference LinkedService { get; set; } + /// Type of the linked service e.g.: AzureBlobFS. + public string LinkedServiceType { get; set; } + /// Type of connection via linked service or dataset. + public MapperConnectionType ConnectionType { get; set; } + /// A boolean indicating whether linked service is of type inline dataset. Currently only inline datasets are supported. + public bool? IsInlineDataset { get; set; } + /// List of name/value pairs for connection properties. + public IList CommonDslConnectorProperties { get; } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnectionReference.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnectionReference.Serialization.cs new file mode 100644 index 000000000000..19103cd1a5b9 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnectionReference.Serialization.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DataFactory.Models +{ + public partial class MapperConnectionReference : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ConnectionName)) + { + writer.WritePropertyName("connectionName"u8); + writer.WriteStringValue(ConnectionName); + } + if (Optional.IsDefined(ConnectionType)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(ConnectionType.Value.ToString()); + } + writer.WriteEndObject(); + } + + internal static MapperConnectionReference DeserializeMapperConnectionReference(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional connectionName = default; + Optional type = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("connectionName"u8)) + { + connectionName = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = new MapperConnectionType(property.Value.GetString()); + continue; + } + } + return new MapperConnectionReference(connectionName.Value, Optional.ToNullable(type)); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnectionReference.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnectionReference.cs new file mode 100644 index 000000000000..7050d9e33d46 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnectionReference.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// Source or target connection reference details. + public partial class MapperConnectionReference + { + /// Initializes a new instance of MapperConnectionReference. + public MapperConnectionReference() + { + } + + /// Initializes a new instance of MapperConnectionReference. + /// Name of the connection. + /// Type of connection via linked service or dataset. + internal MapperConnectionReference(string connectionName, MapperConnectionType? connectionType) + { + ConnectionName = connectionName; + ConnectionType = connectionType; + } + + /// Name of the connection. + public string ConnectionName { get; set; } + /// Type of connection via linked service or dataset. + public MapperConnectionType? ConnectionType { get; set; } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnectionType.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnectionType.cs new file mode 100644 index 000000000000..c1f5cb96c41e --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperConnectionType.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// Type of connection via linked service or dataset. + public readonly partial struct MapperConnectionType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MapperConnectionType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string LinkedservicetypeValue = "linkedservicetype"; + + /// linkedservicetype. + public static MapperConnectionType Linkedservicetype { get; } = new MapperConnectionType(LinkedservicetypeValue); + /// Determines if two values are the same. + public static bool operator ==(MapperConnectionType left, MapperConnectionType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MapperConnectionType left, MapperConnectionType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MapperConnectionType(string value) => new MapperConnectionType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MapperConnectionType other && Equals(other); + /// + public bool Equals(MapperConnectionType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperDslConnectorProperties.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperDslConnectorProperties.Serialization.cs new file mode 100644 index 000000000000..d1060ace7f70 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperDslConnectorProperties.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DataFactory.Models +{ + public partial class MapperDslConnectorProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (Optional.IsDefined(Value)) + { + writer.WritePropertyName("value"u8); +#if NET6_0_OR_GREATER + writer.WriteRawValue(Value); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(Value.ToString()).RootElement); +#endif + } + writer.WriteEndObject(); + } + + internal static MapperDslConnectorProperties DeserializeMapperDslConnectorProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional name = default; + Optional value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + value = BinaryData.FromString(property.Value.GetRawText()); + continue; + } + } + return new MapperDslConnectorProperties(name.Value, value.Value); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperDslConnectorProperties.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperDslConnectorProperties.cs new file mode 100644 index 000000000000..81ba26c4f5a1 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperDslConnectorProperties.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// Connector properties of a CDC table in terms of name / value pairs. + public partial class MapperDslConnectorProperties + { + /// Initializes a new instance of MapperDslConnectorProperties. + public MapperDslConnectorProperties() + { + } + + /// Initializes a new instance of MapperDslConnectorProperties. + /// Name of the property. + /// Value of the property. + internal MapperDslConnectorProperties(string name, BinaryData value) + { + Name = name; + Value = value; + } + + /// Name of the property. + public string Name { get; set; } + /// + /// Value of the property. + /// + /// To assign an object to this property use . + /// + /// + /// To assign an already formated json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + public BinaryData Value { get; set; } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperPolicy.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperPolicy.Serialization.cs new file mode 100644 index 000000000000..2f3b900167a5 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperPolicy.Serialization.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DataFactory.Models +{ + public partial class MapperPolicy : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Mode)) + { + writer.WritePropertyName("mode"u8); + writer.WriteStringValue(Mode); + } + if (Optional.IsDefined(Recurrence)) + { + writer.WritePropertyName("recurrence"u8); + writer.WriteObjectValue(Recurrence); + } + writer.WriteEndObject(); + } + + internal static MapperPolicy DeserializeMapperPolicy(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional mode = default; + Optional recurrence = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("mode"u8)) + { + mode = property.Value.GetString(); + continue; + } + if (property.NameEquals("recurrence"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + recurrence = MapperPolicyRecurrence.DeserializeMapperPolicyRecurrence(property.Value); + continue; + } + } + return new MapperPolicy(mode.Value, recurrence.Value); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperPolicy.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperPolicy.cs new file mode 100644 index 000000000000..315c0989c64e --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperPolicy.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// CDC Policy. + public partial class MapperPolicy + { + /// Initializes a new instance of MapperPolicy. + public MapperPolicy() + { + } + + /// Initializes a new instance of MapperPolicy. + /// Mode of running the CDC: batch vs continuous. + /// Defines the frequency and interval for running the CDC for batch mode. + internal MapperPolicy(string mode, MapperPolicyRecurrence recurrence) + { + Mode = mode; + Recurrence = recurrence; + } + + /// Mode of running the CDC: batch vs continuous. + public string Mode { get; set; } + /// Defines the frequency and interval for running the CDC for batch mode. + public MapperPolicyRecurrence Recurrence { get; set; } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperPolicyRecurrence.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperPolicyRecurrence.Serialization.cs new file mode 100644 index 000000000000..3dbb0e50e382 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperPolicyRecurrence.Serialization.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DataFactory.Models +{ + public partial class MapperPolicyRecurrence : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Frequency)) + { + writer.WritePropertyName("frequency"u8); + writer.WriteStringValue(Frequency.Value.ToString()); + } + if (Optional.IsDefined(Interval)) + { + writer.WritePropertyName("interval"u8); + writer.WriteNumberValue(Interval.Value); + } + writer.WriteEndObject(); + } + + internal static MapperPolicyRecurrence DeserializeMapperPolicyRecurrence(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional frequency = default; + Optional interval = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("frequency"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + frequency = new MapperPolicyRecurrenceFrequencyType(property.Value.GetString()); + continue; + } + if (property.NameEquals("interval"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + interval = property.Value.GetInt32(); + continue; + } + } + return new MapperPolicyRecurrence(Optional.ToNullable(frequency), Optional.ToNullable(interval)); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperPolicyRecurrence.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperPolicyRecurrence.cs new file mode 100644 index 000000000000..93748cfa25ee --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperPolicyRecurrence.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// CDC policy recurrence details. + public partial class MapperPolicyRecurrence + { + /// Initializes a new instance of MapperPolicyRecurrence. + public MapperPolicyRecurrence() + { + } + + /// Initializes a new instance of MapperPolicyRecurrence. + /// Frequency of period in terms of 'Hour', 'Minute' or 'Second'. + /// Actual interval value as per chosen frequency. + internal MapperPolicyRecurrence(MapperPolicyRecurrenceFrequencyType? frequency, int? interval) + { + Frequency = frequency; + Interval = interval; + } + + /// Frequency of period in terms of 'Hour', 'Minute' or 'Second'. + public MapperPolicyRecurrenceFrequencyType? Frequency { get; set; } + /// Actual interval value as per chosen frequency. + public int? Interval { get; set; } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperPolicyRecurrenceFrequencyType.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperPolicyRecurrenceFrequencyType.cs new file mode 100644 index 000000000000..0d655e78dbf3 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperPolicyRecurrenceFrequencyType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// Frequency of period in terms of 'Hour', 'Minute' or 'Second'. + public readonly partial struct MapperPolicyRecurrenceFrequencyType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MapperPolicyRecurrenceFrequencyType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string HourValue = "Hour"; + private const string MinuteValue = "Minute"; + private const string SecondValue = "Second"; + + /// Hour. + public static MapperPolicyRecurrenceFrequencyType Hour { get; } = new MapperPolicyRecurrenceFrequencyType(HourValue); + /// Minute. + public static MapperPolicyRecurrenceFrequencyType Minute { get; } = new MapperPolicyRecurrenceFrequencyType(MinuteValue); + /// Second. + public static MapperPolicyRecurrenceFrequencyType Second { get; } = new MapperPolicyRecurrenceFrequencyType(SecondValue); + /// Determines if two values are the same. + public static bool operator ==(MapperPolicyRecurrenceFrequencyType left, MapperPolicyRecurrenceFrequencyType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MapperPolicyRecurrenceFrequencyType left, MapperPolicyRecurrenceFrequencyType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MapperPolicyRecurrenceFrequencyType(string value) => new MapperPolicyRecurrenceFrequencyType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MapperPolicyRecurrenceFrequencyType other && Equals(other); + /// + public bool Equals(MapperPolicyRecurrenceFrequencyType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperSourceConnectionsInfo.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperSourceConnectionsInfo.Serialization.cs new file mode 100644 index 000000000000..efba10087669 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperSourceConnectionsInfo.Serialization.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DataFactory.Models +{ + public partial class MapperSourceConnectionsInfo : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(SourceEntities)) + { + writer.WritePropertyName("sourceEntities"u8); + writer.WriteStartArray(); + foreach (var item in SourceEntities) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Connection)) + { + writer.WritePropertyName("connection"u8); + writer.WriteObjectValue(Connection); + } + writer.WriteEndObject(); + } + + internal static MapperSourceConnectionsInfo DeserializeMapperSourceConnectionsInfo(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> sourceEntities = default; + Optional connection = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("sourceEntities"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(MapperTable.DeserializeMapperTable(item)); + } + sourceEntities = array; + continue; + } + if (property.NameEquals("connection"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + connection = MapperConnection.DeserializeMapperConnection(property.Value); + continue; + } + } + return new MapperSourceConnectionsInfo(Optional.ToList(sourceEntities), connection.Value); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperSourceConnectionsInfo.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperSourceConnectionsInfo.cs new file mode 100644 index 000000000000..70f9d44134b0 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperSourceConnectionsInfo.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// A object which contains list of tables and connection details for a source connection. + public partial class MapperSourceConnectionsInfo + { + /// Initializes a new instance of MapperSourceConnectionsInfo. + public MapperSourceConnectionsInfo() + { + SourceEntities = new ChangeTrackingList(); + } + + /// Initializes a new instance of MapperSourceConnectionsInfo. + /// List of source tables for a source connection. + /// Source connection details. + internal MapperSourceConnectionsInfo(IList sourceEntities, MapperConnection connection) + { + SourceEntities = sourceEntities; + Connection = connection; + } + + /// List of source tables for a source connection. + public IList SourceEntities { get; } + /// Source connection details. + public MapperConnection Connection { get; set; } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTable.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTable.Serialization.cs new file mode 100644 index 000000000000..a8b03e652743 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTable.Serialization.cs @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DataFactory.Models +{ + public partial class MapperTable : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + writer.WritePropertyName("properties"u8); + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Schema)) + { + writer.WritePropertyName("schema"u8); + writer.WriteStartArray(); + foreach (var item in Schema) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(DslConnectorProperties)) + { + writer.WritePropertyName("dslConnectorProperties"u8); + writer.WriteStartArray(); + foreach (var item in DslConnectorProperties) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + writer.WriteEndObject(); + } + + internal static MapperTable DeserializeMapperTable(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional name = default; + Optional> schema = default; + Optional> dslConnectorProperties = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("schema"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(MapperTableSchema.DeserializeMapperTableSchema(item)); + } + schema = array; + continue; + } + if (property0.NameEquals("dslConnectorProperties"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(MapperDslConnectorProperties.DeserializeMapperDslConnectorProperties(item)); + } + dslConnectorProperties = array; + continue; + } + } + continue; + } + } + return new MapperTable(name.Value, Optional.ToList(schema), Optional.ToList(dslConnectorProperties)); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTable.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTable.cs new file mode 100644 index 000000000000..ef8bf56d2b1c --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTable.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// CDC table details. + public partial class MapperTable + { + /// Initializes a new instance of MapperTable. + public MapperTable() + { + Schema = new ChangeTrackingList(); + DslConnectorProperties = new ChangeTrackingList(); + } + + /// Initializes a new instance of MapperTable. + /// Name of the table. + /// List of columns for the source table. + /// List of name/value pairs for connection properties. + internal MapperTable(string name, IList schema, IList dslConnectorProperties) + { + Name = name; + Schema = schema; + DslConnectorProperties = dslConnectorProperties; + } + + /// Name of the table. + public string Name { get; set; } + /// List of columns for the source table. + public IList Schema { get; } + /// List of name/value pairs for connection properties. + public IList DslConnectorProperties { get; } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTableSchema.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTableSchema.Serialization.cs new file mode 100644 index 000000000000..f4a128667540 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTableSchema.Serialization.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DataFactory.Models +{ + public partial class MapperTableSchema : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (Optional.IsDefined(DataType)) + { + writer.WritePropertyName("dataType"u8); + writer.WriteStringValue(DataType); + } + writer.WriteEndObject(); + } + + internal static MapperTableSchema DeserializeMapperTableSchema(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional name = default; + Optional dataType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("dataType"u8)) + { + dataType = property.Value.GetString(); + continue; + } + } + return new MapperTableSchema(name.Value, dataType.Value); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTableSchema.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTableSchema.cs new file mode 100644 index 000000000000..285353e2563a --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTableSchema.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// Schema of a CDC table in terms of column names and their corresponding data types. + public partial class MapperTableSchema + { + /// Initializes a new instance of MapperTableSchema. + public MapperTableSchema() + { + } + + /// Initializes a new instance of MapperTableSchema. + /// Name of the column. + /// Data type of the column. + internal MapperTableSchema(string name, string dataType) + { + Name = name; + DataType = dataType; + } + + /// Name of the column. + public string Name { get; set; } + /// Data type of the column. + public string DataType { get; set; } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTargetConnectionsInfo.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTargetConnectionsInfo.Serialization.cs new file mode 100644 index 000000000000..316b5be17bfe --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTargetConnectionsInfo.Serialization.cs @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DataFactory.Models +{ + public partial class MapperTargetConnectionsInfo : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(TargetEntities)) + { + writer.WritePropertyName("targetEntities"u8); + writer.WriteStartArray(); + foreach (var item in TargetEntities) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Connection)) + { + writer.WritePropertyName("connection"u8); + writer.WriteObjectValue(Connection); + } + if (Optional.IsCollectionDefined(DataMapperMappings)) + { + writer.WritePropertyName("dataMapperMappings"u8); + writer.WriteStartArray(); + foreach (var item in DataMapperMappings) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Relationships)) + { + writer.WritePropertyName("relationships"u8); + writer.WriteStartArray(); + foreach (var item in Relationships) + { + if (item == null) + { + writer.WriteNullValue(); + continue; + } +#if NET6_0_OR_GREATER + writer.WriteRawValue(item); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(item.ToString()).RootElement); +#endif + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static MapperTargetConnectionsInfo DeserializeMapperTargetConnectionsInfo(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional> targetEntities = default; + Optional connection = default; + Optional> dataMapperMappings = default; + Optional> relationships = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("targetEntities"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(MapperTable.DeserializeMapperTable(item)); + } + targetEntities = array; + continue; + } + if (property.NameEquals("connection"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + connection = MapperConnection.DeserializeMapperConnection(property.Value); + continue; + } + if (property.NameEquals("dataMapperMappings"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(DataMapperMapping.DeserializeDataMapperMapping(item)); + } + dataMapperMappings = array; + continue; + } + if (property.NameEquals("relationships"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(BinaryData.FromString(item.GetRawText())); + } + } + relationships = array; + continue; + } + } + return new MapperTargetConnectionsInfo(Optional.ToList(targetEntities), connection.Value, Optional.ToList(dataMapperMappings), Optional.ToList(relationships)); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTargetConnectionsInfo.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTargetConnectionsInfo.cs new file mode 100644 index 000000000000..95a846ba1b6f --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MapperTargetConnectionsInfo.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// A object which contains list of tables and connection details for a target connection. + public partial class MapperTargetConnectionsInfo + { + /// Initializes a new instance of MapperTargetConnectionsInfo. + public MapperTargetConnectionsInfo() + { + TargetEntities = new ChangeTrackingList(); + DataMapperMappings = new ChangeTrackingList(); + Relationships = new ChangeTrackingList(); + } + + /// Initializes a new instance of MapperTargetConnectionsInfo. + /// List of source tables for a target connection. + /// Source connection details. + /// List of table mappings. + /// List of relationship info among the tables. + internal MapperTargetConnectionsInfo(IList targetEntities, MapperConnection connection, IList dataMapperMappings, IList relationships) + { + TargetEntities = targetEntities; + Connection = connection; + DataMapperMappings = dataMapperMappings; + Relationships = relationships; + } + + /// List of source tables for a target connection. + public IList TargetEntities { get; } + /// Source connection details. + public MapperConnection Connection { get; set; } + /// List of table mappings. + public IList DataMapperMappings { get; } + /// + /// List of relationship info among the tables. + /// + /// To assign an object to the element of this property use . + /// + /// + /// To assign an already formated json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + public IList Relationships { get; } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MappingType.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MappingType.cs new file mode 100644 index 000000000000..eb3036a51b8f --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MappingType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// Type of the CDC attribute mapping. Note: 'Advanced' mapping type is also saved as 'Derived'. + public readonly partial struct MappingType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MappingType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string DirectValue = "Direct"; + private const string DerivedValue = "Derived"; + private const string AggregateValue = "Aggregate"; + + /// Direct. + public static MappingType Direct { get; } = new MappingType(DirectValue); + /// Derived. + public static MappingType Derived { get; } = new MappingType(DerivedValue); + /// Aggregate. + public static MappingType Aggregate { get; } = new MappingType(AggregateValue); + /// Determines if two values are the same. + public static bool operator ==(MappingType left, MappingType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MappingType left, MappingType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MappingType(string value) => new MappingType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MappingType other && Equals(other); + /// + public bool Equals(MappingType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MariaDBLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MariaDBLinkedService.Serialization.cs index 3d7ccc7cb64d..d37a0a2e5b98 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MariaDBLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MariaDBLinkedService.Serialization.cs @@ -75,11 +75,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -107,7 +103,7 @@ internal static MariaDBLinkedService DeserializeMariaDBLinkedService(JsonElement Optional> annotations = default; Optional> connectionString = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -195,11 +191,7 @@ internal static MariaDBLinkedService DeserializeMariaDBLinkedService(JsonElement } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MariaDBLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MariaDBLinkedService.cs index 508533f8fb89..05041eae15fa 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MariaDBLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MariaDBLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// MariaDB server linked service. - public partial class MariaDBLinkedService : DataFactoryLinkedServiceDefinition + public partial class MariaDBLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of MariaDBLinkedService. public MariaDBLinkedService() @@ -30,7 +30,7 @@ public MariaDBLinkedService() /// An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. /// The Azure key vault secret reference of password in connection string. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal MariaDBLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal MariaDBLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; Password = password; @@ -42,36 +42,7 @@ internal MariaDBLinkedService(string linkedServiceType, IntegrationRuntimeRefere public DataFactoryElement ConnectionString { get; set; } /// The Azure key vault secret reference of password in connection string. public DataFactoryKeyVaultSecretReference Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MariaDBTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MariaDBTableDataset.cs index de95f547c940..5adea7364387 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MariaDBTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MariaDBTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// MariaDB server dataset. - public partial class MariaDBTableDataset : DataFactoryDatasetDefinition + public partial class MariaDBTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of MariaDBTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MarketoLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MarketoLinkedService.Serialization.cs index cd5bbc68e199..c41522d12dca 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MarketoLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MarketoLinkedService.Serialization.cs @@ -89,11 +89,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -125,7 +121,7 @@ internal static MarketoLinkedService DeserializeMarketoLinkedService(JsonElement Optional> useEncryptedEndpoints = default; Optional> useHostVerification = default; Optional> usePeerVerification = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -241,11 +237,7 @@ internal static MarketoLinkedService DeserializeMarketoLinkedService(JsonElement } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MarketoLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MarketoLinkedService.cs index fd27e01c53e0..b3e1a5578c52 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MarketoLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MarketoLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Marketo server linked service. - public partial class MarketoLinkedService : DataFactoryLinkedServiceDefinition + public partial class MarketoLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of MarketoLinkedService. /// The endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com). @@ -43,7 +43,7 @@ public MarketoLinkedService(DataFactoryElement endpoint, DataFactoryElem /// Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal MarketoLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement endpoint, DataFactoryElement clientId, DataFactorySecretBaseDefinition clientSecret, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal MarketoLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement endpoint, DataFactoryElement clientId, DataFactorySecretBaseDefinition clientSecret, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Endpoint = endpoint; ClientId = clientId; @@ -67,36 +67,7 @@ internal MarketoLinkedService(string linkedServiceType, IntegrationRuntimeRefere public DataFactoryElement UseHostVerification { get; set; } /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. public DataFactoryElement UsePeerVerification { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MarketoObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MarketoObjectDataset.cs index f3101cf01dbf..51be78faf71c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MarketoObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MarketoObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Marketo server dataset. - public partial class MarketoObjectDataset : DataFactoryDatasetDefinition + public partial class MarketoObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of MarketoObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MicrosoftAccessLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MicrosoftAccessLinkedService.Serialization.cs index face9ab8a7c1..8dde47fa66fb 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MicrosoftAccessLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MicrosoftAccessLinkedService.Serialization.cs @@ -87,11 +87,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -122,7 +118,7 @@ internal static MicrosoftAccessLinkedService DeserializeMicrosoftAccessLinkedSer Optional credential = default; Optional> userName = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -233,11 +229,7 @@ internal static MicrosoftAccessLinkedService DeserializeMicrosoftAccessLinkedSer } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MicrosoftAccessLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MicrosoftAccessLinkedService.cs index dae48c3525d7..26a0990f11b6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MicrosoftAccessLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MicrosoftAccessLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Microsoft Access linked service. - public partial class MicrosoftAccessLinkedService : DataFactoryLinkedServiceDefinition + public partial class MicrosoftAccessLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of MicrosoftAccessLinkedService. /// The non-access credential portion of the connection string as well as an optional encrypted credential. Type: string, or SecureString, or AzureKeyVaultSecretReference, or Expression with resultType string. @@ -39,7 +39,7 @@ public MicrosoftAccessLinkedService(DataFactoryElement connectionString) /// User name for Basic authentication. Type: string (or Expression with resultType string). /// Password for Basic authentication. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal MicrosoftAccessLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryElement authenticationType, DataFactorySecretBaseDefinition credential, DataFactoryElement userName, DataFactorySecretBaseDefinition password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal MicrosoftAccessLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryElement authenticationType, DataFactorySecretBaseDefinition credential, DataFactoryElement userName, DataFactorySecretBaseDefinition password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; AuthenticationType = authenticationType; @@ -60,36 +60,7 @@ internal MicrosoftAccessLinkedService(string linkedServiceType, IntegrationRunti public DataFactoryElement UserName { get; set; } /// Password for Basic authentication. public DataFactorySecretBaseDefinition Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MicrosoftAccessTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MicrosoftAccessTableDataset.cs index ef71078b0464..17fdd8a005d1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MicrosoftAccessTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MicrosoftAccessTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Microsoft Access table dataset. - public partial class MicrosoftAccessTableDataset : DataFactoryDatasetDefinition + public partial class MicrosoftAccessTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of MicrosoftAccessTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBAtlasCollectionDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBAtlasCollectionDataset.cs index 552fb3937f92..5da78800e9ab 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBAtlasCollectionDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBAtlasCollectionDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The MongoDB Atlas database dataset. - public partial class MongoDBAtlasCollectionDataset : DataFactoryDatasetDefinition + public partial class MongoDBAtlasCollectionDataset : DataFactoryDatasetProperties { /// Initializes a new instance of MongoDBAtlasCollectionDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBAtlasLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBAtlasLinkedService.Serialization.cs index 25fd3b86cf70..a8c66450bc0f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBAtlasLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBAtlasLinkedService.Serialization.cs @@ -66,10 +66,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) JsonSerializer.Serialize(writer, ConnectionString); writer.WritePropertyName("database"u8); JsonSerializer.Serialize(writer, Database); - if (Optional.IsDefined(MongoDBAtlasDriverVersion)) + if (Optional.IsDefined(DriverVersion)) { - writer.WritePropertyName("mongoDbAtlasDriverVersion"u8); - JsonSerializer.Serialize(writer, MongoDBAtlasDriverVersion); + writer.WritePropertyName("driverVersion"u8); + JsonSerializer.Serialize(writer, DriverVersion); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -97,7 +97,7 @@ internal static MongoDBAtlasLinkedService DeserializeMongoDBAtlasLinkedService(J Optional> annotations = default; DataFactoryElement connectionString = default; DataFactoryElement database = default; - Optional> mongoDBAtlasDriverVersion = default; + Optional> driverVersion = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -175,13 +175,13 @@ internal static MongoDBAtlasLinkedService DeserializeMongoDBAtlasLinkedService(J database = JsonSerializer.Deserialize>(property0.Value.GetRawText()); continue; } - if (property0.NameEquals("mongoDbAtlasDriverVersion"u8)) + if (property0.NameEquals("driverVersion"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) { continue; } - mongoDBAtlasDriverVersion = JsonSerializer.Deserialize>(property0.Value.GetRawText()); + driverVersion = JsonSerializer.Deserialize>(property0.Value.GetRawText()); continue; } } @@ -190,7 +190,7 @@ internal static MongoDBAtlasLinkedService DeserializeMongoDBAtlasLinkedService(J additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } additionalProperties = additionalPropertiesDictionary; - return new MongoDBAtlasLinkedService(type, connectVia.Value, description.Value, Optional.ToDictionary(parameters), Optional.ToList(annotations), additionalProperties, connectionString, database, mongoDBAtlasDriverVersion.Value); + return new MongoDBAtlasLinkedService(type, connectVia.Value, description.Value, Optional.ToDictionary(parameters), Optional.ToList(annotations), additionalProperties, connectionString, database, driverVersion.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBAtlasLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBAtlasLinkedService.cs index fae80e904f21..6af363a1beed 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBAtlasLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBAtlasLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for MongoDB Atlas data source. - public partial class MongoDBAtlasLinkedService : DataFactoryLinkedServiceDefinition + public partial class MongoDBAtlasLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of MongoDBAtlasLinkedService. /// The MongoDB Atlas connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. @@ -38,12 +38,12 @@ public MongoDBAtlasLinkedService(DataFactoryElement connectionString, Da /// Additional Properties. /// The MongoDB Atlas connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. /// The name of the MongoDB Atlas database that you want to access. Type: string (or Expression with resultType string). - /// The MongoDB Atlas Driver version that you want to choose. Allowed value are 2.10.4 and 2.19.0. Type: string (or Expression with resultType string). - internal MongoDBAtlasLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryElement database, DataFactoryElement mongoDBAtlasDriverVersion) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + /// The driver version that you want to choose. Allowed value are v1 and v2. Type: string (or Expression with resultType string). + internal MongoDBAtlasLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryElement database, DataFactoryElement driverVersion) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; Database = database; - MongoDBAtlasDriverVersion = mongoDBAtlasDriverVersion; + DriverVersion = driverVersion; LinkedServiceType = linkedServiceType ?? "MongoDbAtlas"; } @@ -51,7 +51,7 @@ internal MongoDBAtlasLinkedService(string linkedServiceType, IntegrationRuntimeR public DataFactoryElement ConnectionString { get; set; } /// The name of the MongoDB Atlas database that you want to access. Type: string (or Expression with resultType string). public DataFactoryElement Database { get; set; } - /// The MongoDB Atlas Driver version that you want to choose. Allowed value are 2.10.4 and 2.19.0. Type: string (or Expression with resultType string). - public DataFactoryElement MongoDBAtlasDriverVersion { get; set; } + /// The driver version that you want to choose. Allowed value are v1 and v2. Type: string (or Expression with resultType string). + public DataFactoryElement DriverVersion { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBCollectionDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBCollectionDataset.cs index fdc30becd062..eb1f7d60ef19 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBCollectionDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBCollectionDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The MongoDB database dataset. - public partial class MongoDBCollectionDataset : DataFactoryDatasetDefinition + public partial class MongoDBCollectionDataset : DataFactoryDatasetProperties { /// Initializes a new instance of MongoDBCollectionDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBLinkedService.Serialization.cs index 79e6b3b125b7..240c9ae7e964 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBLinkedService.Serialization.cs @@ -104,11 +104,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -143,7 +139,7 @@ internal static MongoDBLinkedService DeserializeMongoDBLinkedService(JsonElement Optional> port = default; Optional> enableSsl = default; Optional> allowSelfSignedServerCert = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -286,11 +282,7 @@ internal static MongoDBLinkedService DeserializeMongoDBLinkedService(JsonElement } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBLinkedService.cs index b72921dbc116..c07e1274e204 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for MongoDb data source. - public partial class MongoDBLinkedService : DataFactoryLinkedServiceDefinition + public partial class MongoDBLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of MongoDBLinkedService. /// The IP address or server name of the MongoDB server. Type: string (or Expression with resultType string). @@ -46,7 +46,7 @@ public MongoDBLinkedService(DataFactoryElement server, DataFactoryElemen /// Specifies whether the connections to the server are encrypted using SSL. The default value is false. Type: boolean (or Expression with resultType boolean). /// Specifies whether to allow self-signed certificates from the server. The default value is false. Type: boolean (or Expression with resultType boolean). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal MongoDBLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement server, MongoDBAuthenticationType? authenticationType, DataFactoryElement databaseName, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement authSource, DataFactoryElement port, DataFactoryElement enableSsl, DataFactoryElement allowSelfSignedServerCert, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal MongoDBLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement server, MongoDBAuthenticationType? authenticationType, DataFactoryElement databaseName, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement authSource, DataFactoryElement port, DataFactoryElement enableSsl, DataFactoryElement allowSelfSignedServerCert, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Server = server; AuthenticationType = authenticationType; @@ -79,36 +79,7 @@ internal MongoDBLinkedService(string linkedServiceType, IntegrationRuntimeRefere public DataFactoryElement EnableSsl { get; set; } /// Specifies whether to allow self-signed certificates from the server. The default value is false. Type: boolean (or Expression with resultType boolean). public DataFactoryElement AllowSelfSignedServerCert { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBV2CollectionDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBV2CollectionDataset.cs index 94da4328fb5e..632409884d6d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBV2CollectionDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBV2CollectionDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The MongoDB database dataset. - public partial class MongoDBV2CollectionDataset : DataFactoryDatasetDefinition + public partial class MongoDBV2CollectionDataset : DataFactoryDatasetProperties { /// Initializes a new instance of MongoDBV2CollectionDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBV2LinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBV2LinkedService.cs index 387f46a3e5b4..499a4f3e894d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBV2LinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MongoDBV2LinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for MongoDB data source. - public partial class MongoDBV2LinkedService : DataFactoryLinkedServiceDefinition + public partial class MongoDBV2LinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of MongoDBV2LinkedService. /// The MongoDB connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MultiplePipelineTrigger.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MultiplePipelineTrigger.Serialization.cs index 863639427e2a..82bc11b26518 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MultiplePipelineTrigger.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MultiplePipelineTrigger.Serialization.cs @@ -78,7 +78,7 @@ internal static MultiplePipelineTrigger DeserializeMultiplePipelineTrigger(JsonE case "BlobEventsTrigger": return DataFactoryBlobEventsTrigger.DeserializeDataFactoryBlobEventsTrigger(element); case "BlobTrigger": return DataFactoryBlobTrigger.DeserializeDataFactoryBlobTrigger(element); case "CustomEventsTrigger": return CustomEventsTrigger.DeserializeCustomEventsTrigger(element); - case "ScheduleTrigger": return ScheduleTrigger.DeserializeScheduleTrigger(element); + case "ScheduleTrigger": return DataFactoryScheduleTrigger.DeserializeDataFactoryScheduleTrigger(element); } } Optional> pipelines = default; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MultiplePipelineTrigger.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MultiplePipelineTrigger.cs index fcf025388446..be0a60928e1a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MultiplePipelineTrigger.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MultiplePipelineTrigger.cs @@ -14,9 +14,9 @@ namespace Azure.ResourceManager.DataFactory.Models /// /// Base class for all triggers that support one to many model for trigger to pipeline. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , and . /// - public partial class MultiplePipelineTrigger : DataFactoryTriggerDefinition + public partial class MultiplePipelineTrigger : DataFactoryTriggerProperties { /// Initializes a new instance of MultiplePipelineTrigger. public MultiplePipelineTrigger() diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MySqlLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MySqlLinkedService.Serialization.cs index ca18f8993250..6731a45d61a1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MySqlLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MySqlLinkedService.Serialization.cs @@ -72,11 +72,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -104,7 +100,7 @@ internal static MySqlLinkedService DeserializeMySqlLinkedService(JsonElement ele Optional> annotations = default; DataFactoryElement connectionString = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -188,11 +184,7 @@ internal static MySqlLinkedService DeserializeMySqlLinkedService(JsonElement ele } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MySqlLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MySqlLinkedService.cs index f64b5cb87bde..4ac44469c175 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MySqlLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MySqlLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for MySQL data source. - public partial class MySqlLinkedService : DataFactoryLinkedServiceDefinition + public partial class MySqlLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of MySqlLinkedService. /// The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. @@ -36,7 +36,7 @@ public MySqlLinkedService(DataFactoryElement connectionString) /// The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. /// The Azure key vault secret reference of password in connection string. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal MySqlLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal MySqlLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; Password = password; @@ -48,36 +48,7 @@ internal MySqlLinkedService(string linkedServiceType, IntegrationRuntimeReferenc public DataFactoryElement ConnectionString { get; set; } /// The Azure key vault secret reference of password in connection string. public DataFactoryKeyVaultSecretReference Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MySqlTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MySqlTableDataset.cs index 305fce845655..605c31ea99ab 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MySqlTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/MySqlTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The MySQL table dataset. - public partial class MySqlTableDataset : DataFactoryDatasetDefinition + public partial class MySqlTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of MySqlTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/NetezzaLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/NetezzaLinkedService.Serialization.cs index fd16b554912b..532d3ebd5b84 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/NetezzaLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/NetezzaLinkedService.Serialization.cs @@ -75,11 +75,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -107,7 +103,7 @@ internal static NetezzaLinkedService DeserializeNetezzaLinkedService(JsonElement Optional> annotations = default; Optional> connectionString = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -195,11 +191,7 @@ internal static NetezzaLinkedService DeserializeNetezzaLinkedService(JsonElement } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/NetezzaLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/NetezzaLinkedService.cs index 3bad5ba7ebfc..c63b4bd7c104 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/NetezzaLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/NetezzaLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Netezza linked service. - public partial class NetezzaLinkedService : DataFactoryLinkedServiceDefinition + public partial class NetezzaLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of NetezzaLinkedService. public NetezzaLinkedService() @@ -30,7 +30,7 @@ public NetezzaLinkedService() /// An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. /// The Azure key vault secret reference of password in connection string. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal NetezzaLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal NetezzaLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; Password = password; @@ -42,36 +42,7 @@ internal NetezzaLinkedService(string linkedServiceType, IntegrationRuntimeRefere public DataFactoryElement ConnectionString { get; set; } /// The Azure key vault secret reference of password in connection string. public DataFactoryKeyVaultSecretReference Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/NetezzaTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/NetezzaTableDataset.cs index dfa16bf31acf..72d041966b48 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/NetezzaTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/NetezzaTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Netezza dataset. - public partial class NetezzaTableDataset : DataFactoryDatasetDefinition + public partial class NetezzaTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of NetezzaTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ODataLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ODataLinkedService.Serialization.cs index c1b549a9f242..a86252883505 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ODataLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ODataLinkedService.Serialization.cs @@ -127,11 +127,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -170,7 +166,7 @@ internal static ODataLinkedService DeserializeODataLinkedService(JsonElement ele Optional servicePrincipalKey = default; Optional servicePrincipalEmbeddedCert = default; Optional servicePrincipalEmbeddedCertPassword = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -353,11 +349,7 @@ internal static ODataLinkedService DeserializeODataLinkedService(JsonElement ele } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ODataLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ODataLinkedService.cs index 177242c375e8..382420526fd3 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ODataLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ODataLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Open Data Protocol (OData) linked service. - public partial class ODataLinkedService : DataFactoryLinkedServiceDefinition + public partial class ODataLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of ODataLinkedService. /// The URL of the OData service endpoint. Type: string (or Expression with resultType string). @@ -47,7 +47,7 @@ public ODataLinkedService(DataFactoryElement uri) /// Specify the base64 encoded certificate of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). /// Specify the password of your certificate if your certificate has a password and you are using AadServicePrincipal authentication. Type: string (or Expression with resultType string). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal ODataLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement uri, ODataAuthenticationType? authenticationType, DataFactoryElement userName, DataFactorySecretBaseDefinition password, DataFactoryElement authHeaders, DataFactoryElement tenant, DataFactoryElement servicePrincipalId, DataFactoryElement azureCloudType, DataFactoryElement aadResourceId, ODataAadServicePrincipalCredentialType? aadServicePrincipalCredentialType, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactorySecretBaseDefinition servicePrincipalEmbeddedCert, DataFactorySecretBaseDefinition servicePrincipalEmbeddedCertPassword, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal ODataLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement uri, ODataAuthenticationType? authenticationType, DataFactoryElement userName, DataFactorySecretBaseDefinition password, DataFactoryElement authHeaders, DataFactoryElement tenant, DataFactoryElement servicePrincipalId, DataFactoryElement azureCloudType, DataFactoryElement aadResourceId, ODataAadServicePrincipalCredentialType? aadServicePrincipalCredentialType, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactorySecretBaseDefinition servicePrincipalEmbeddedCert, DataFactorySecretBaseDefinition servicePrincipalEmbeddedCertPassword, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Uri = uri; AuthenticationType = authenticationType; @@ -92,36 +92,7 @@ internal ODataLinkedService(string linkedServiceType, IntegrationRuntimeReferenc public DataFactorySecretBaseDefinition ServicePrincipalEmbeddedCert { get; set; } /// Specify the password of your certificate if your certificate has a password and you are using AadServicePrincipal authentication. Type: string (or Expression with resultType string). public DataFactorySecretBaseDefinition ServicePrincipalEmbeddedCertPassword { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ODataResourceDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ODataResourceDataset.cs index df58902a757f..b3523b71c65b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ODataResourceDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ODataResourceDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Open Data Protocol (OData) resource dataset. - public partial class ODataResourceDataset : DataFactoryDatasetDefinition + public partial class ODataResourceDataset : DataFactoryDatasetProperties { /// Initializes a new instance of ODataResourceDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OdbcLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OdbcLinkedService.Serialization.cs index 4e5c5c7606da..5a96f02df921 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OdbcLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OdbcLinkedService.Serialization.cs @@ -87,11 +87,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -122,7 +118,7 @@ internal static OdbcLinkedService DeserializeOdbcLinkedService(JsonElement eleme Optional credential = default; Optional> userName = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -233,11 +229,7 @@ internal static OdbcLinkedService DeserializeOdbcLinkedService(JsonElement eleme } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OdbcLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OdbcLinkedService.cs index 79d5300b6a04..c81c7071bd56 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OdbcLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OdbcLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Open Database Connectivity (ODBC) linked service. - public partial class OdbcLinkedService : DataFactoryLinkedServiceDefinition + public partial class OdbcLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of OdbcLinkedService. /// The non-access credential portion of the connection string as well as an optional encrypted credential. Type: string, or SecureString, or AzureKeyVaultSecretReference, or Expression with resultType string. @@ -39,7 +39,7 @@ public OdbcLinkedService(DataFactoryElement connectionString) /// User name for Basic authentication. Type: string (or Expression with resultType string). /// Password for Basic authentication. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal OdbcLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryElement authenticationType, DataFactorySecretBaseDefinition credential, DataFactoryElement userName, DataFactorySecretBaseDefinition password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal OdbcLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryElement authenticationType, DataFactorySecretBaseDefinition credential, DataFactoryElement userName, DataFactorySecretBaseDefinition password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; AuthenticationType = authenticationType; @@ -60,36 +60,7 @@ internal OdbcLinkedService(string linkedServiceType, IntegrationRuntimeReference public DataFactoryElement UserName { get; set; } /// Password for Basic authentication. public DataFactorySecretBaseDefinition Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OdbcTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OdbcTableDataset.cs index 3d8df8170bab..fca668321e4d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OdbcTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OdbcTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The ODBC table dataset. - public partial class OdbcTableDataset : DataFactoryDatasetDefinition + public partial class OdbcTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of OdbcTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365Dataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365Dataset.cs index 6d3c15ed664f..4fcdc14e8db5 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365Dataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365Dataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Office365 account. - public partial class Office365Dataset : DataFactoryDatasetDefinition + public partial class Office365Dataset : DataFactoryDatasetProperties { /// Initializes a new instance of Office365Dataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365LinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365LinkedService.Serialization.cs index de2b92ba5a7a..4b741c5c42b4 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365LinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365LinkedService.Serialization.cs @@ -72,11 +72,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) JsonSerializer.Serialize(writer, ServicePrincipalKey); if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -106,7 +102,7 @@ internal static Office365LinkedService DeserializeOffice365LinkedService(JsonEle DataFactoryElement servicePrincipalTenantId = default; DataFactoryElement servicePrincipalId = default; DataFactorySecretBaseDefinition servicePrincipalKey = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -196,11 +192,7 @@ internal static Office365LinkedService DeserializeOffice365LinkedService(JsonEle } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365LinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365LinkedService.cs index 5b7901917cba..ade5848f10aa 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365LinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365LinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Office365 linked service. - public partial class Office365LinkedService : DataFactoryLinkedServiceDefinition + public partial class Office365LinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of Office365LinkedService. /// Azure tenant ID to which the Office 365 account belongs. Type: string (or Expression with resultType string). @@ -47,7 +47,7 @@ public Office365LinkedService(DataFactoryElement office365TenantId, Data /// Specify the application's client ID. Type: string (or Expression with resultType string). /// Specify the application's key. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal Office365LinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement office365TenantId, DataFactoryElement servicePrincipalTenantId, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal Office365LinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement office365TenantId, DataFactoryElement servicePrincipalTenantId, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Office365TenantId = office365TenantId; ServicePrincipalTenantId = servicePrincipalTenantId; @@ -65,36 +65,7 @@ internal Office365LinkedService(string linkedServiceType, IntegrationRuntimeRefe public DataFactoryElement ServicePrincipalId { get; set; } /// Specify the application's key. public DataFactorySecretBaseDefinition ServicePrincipalKey { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365Source.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365Source.Serialization.cs index 13059a214d32..91c166995d48 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365Source.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365Source.Serialization.cs @@ -93,7 +93,7 @@ internal static Office365Source DeserializeOffice365Source(JsonElement element) Optional> dateFilterColumn = default; Optional> startTime = default; Optional> endTime = default; - Optional>> outputColumns = default; + Optional>> outputColumns = default; string type = default; Optional> sourceRetryCount = default; Optional> sourceRetryWait = default; @@ -154,7 +154,7 @@ internal static Office365Source DeserializeOffice365Source(JsonElement element) { continue; } - outputColumns = JsonSerializer.Deserialize>>(property.Value.GetRawText()); + outputColumns = JsonSerializer.Deserialize>>(property.Value.GetRawText()); continue; } if (property.NameEquals("type"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365Source.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365Source.cs index 329a5c25a5bc..3e08f2e92046 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365Source.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365Source.cs @@ -33,7 +33,7 @@ public Office365Source() /// Start time of the requested range for this dataset. Type: string (or Expression with resultType string). /// End time of the requested range for this dataset. Type: string (or Expression with resultType string). /// The columns to be read out from the Office 365 table. Type: array of objects (or Expression with resultType array of objects). itemType: OutputColumn. Example: [ { "name": "Id" }, { "name": "CreatedDateTime" } ]. - internal Office365Source(string copySourceType, DataFactoryElement sourceRetryCount, DataFactoryElement sourceRetryWait, DataFactoryElement maxConcurrentConnections, DataFactoryElement disableMetricsCollection, IDictionary additionalProperties, DataFactoryElement> allowedGroups, DataFactoryElement userScopeFilterUri, DataFactoryElement dateFilterColumn, DataFactoryElement startOn, DataFactoryElement endOn, DataFactoryElement> outputColumns) : base(copySourceType, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, disableMetricsCollection, additionalProperties) + internal Office365Source(string copySourceType, DataFactoryElement sourceRetryCount, DataFactoryElement sourceRetryWait, DataFactoryElement maxConcurrentConnections, DataFactoryElement disableMetricsCollection, IDictionary additionalProperties, DataFactoryElement> allowedGroups, DataFactoryElement userScopeFilterUri, DataFactoryElement dateFilterColumn, DataFactoryElement startOn, DataFactoryElement endOn, DataFactoryElement> outputColumns) : base(copySourceType, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, disableMetricsCollection, additionalProperties) { AllowedGroups = allowedGroups; UserScopeFilterUri = userScopeFilterUri; @@ -55,6 +55,6 @@ internal Office365Source(string copySourceType, DataFactoryElement sourceRe /// End time of the requested range for this dataset. Type: string (or Expression with resultType string). public DataFactoryElement EndOn { get; set; } /// The columns to be read out from the Office 365 table. Type: array of objects (or Expression with resultType array of objects). itemType: OutputColumn. Example: [ { "name": "Id" }, { "name": "CreatedDateTime" } ]. - public DataFactoryElement> OutputColumns { get; set; } + public DataFactoryElement> OutputColumns { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OutputColumn.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365TableOutputColumn.Serialization.cs similarity index 62% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OutputColumn.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365TableOutputColumn.Serialization.cs index 55c3e991b0fc..28685066fad6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OutputColumn.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365TableOutputColumn.Serialization.cs @@ -12,8 +12,8 @@ namespace Azure.ResourceManager.DataFactory.Models { - [JsonConverter(typeof(OutputColumnConverter))] - public partial class OutputColumn : IUtf8JsonSerializable + [JsonConverter(typeof(Office365TableOutputColumnConverter))] + public partial class Office365TableOutputColumn : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -26,7 +26,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static OutputColumn DeserializeOutputColumn(JsonElement element) + internal static Office365TableOutputColumn DeserializeOffice365TableOutputColumn(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -41,19 +41,19 @@ internal static OutputColumn DeserializeOutputColumn(JsonElement element) continue; } } - return new OutputColumn(name.Value); + return new Office365TableOutputColumn(name.Value); } - internal partial class OutputColumnConverter : JsonConverter + internal partial class Office365TableOutputColumnConverter : JsonConverter { - public override void Write(Utf8JsonWriter writer, OutputColumn model, JsonSerializerOptions options) + public override void Write(Utf8JsonWriter writer, Office365TableOutputColumn model, JsonSerializerOptions options) { writer.WriteObjectValue(model); } - public override OutputColumn Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + public override Office365TableOutputColumn Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { using var document = JsonDocument.ParseValue(ref reader); - return DeserializeOutputColumn(document.RootElement); + return DeserializeOffice365TableOutputColumn(document.RootElement); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OutputColumn.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365TableOutputColumn.cs similarity index 62% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OutputColumn.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365TableOutputColumn.cs index d1c63dc8440a..7be5bedccac9 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OutputColumn.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/Office365TableOutputColumn.cs @@ -8,16 +8,16 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The columns to be read out from the Office 365 table. - public partial class OutputColumn + public partial class Office365TableOutputColumn { - /// Initializes a new instance of OutputColumn. - public OutputColumn() + /// Initializes a new instance of Office365TableOutputColumn. + public Office365TableOutputColumn() { } - /// Initializes a new instance of OutputColumn. + /// Initializes a new instance of Office365TableOutputColumn. /// Name of the table column. Type: string. - internal OutputColumn(string name) + internal Office365TableOutputColumn(string name) { Name = name; } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleCloudStorageLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleCloudStorageLinkedService.Serialization.cs index 38502aa7d51c..82e2aa372452 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleCloudStorageLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleCloudStorageLinkedService.Serialization.cs @@ -80,11 +80,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -113,7 +109,7 @@ internal static OracleCloudStorageLinkedService DeserializeOracleCloudStorageLin Optional> accessKeyId = default; Optional secretAccessKey = default; Optional> serviceUrl = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -210,11 +206,7 @@ internal static OracleCloudStorageLinkedService DeserializeOracleCloudStorageLin } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleCloudStorageLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleCloudStorageLinkedService.cs index 7a5b4b0aa7a9..b07bfedf2fe6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleCloudStorageLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleCloudStorageLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for Oracle Cloud Storage. - public partial class OracleCloudStorageLinkedService : DataFactoryLinkedServiceDefinition + public partial class OracleCloudStorageLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of OracleCloudStorageLinkedService. public OracleCloudStorageLinkedService() @@ -31,7 +31,7 @@ public OracleCloudStorageLinkedService() /// The secret access key of the Oracle Cloud Storage Identity and Access Management (IAM) user. /// This value specifies the endpoint to access with the Oracle Cloud Storage Connector. This is an optional property; change it only if you want to try a different service endpoint or want to switch between https and http. Type: string (or Expression with resultType string). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal OracleCloudStorageLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement accessKeyId, DataFactorySecretBaseDefinition secretAccessKey, DataFactoryElement serviceUri, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal OracleCloudStorageLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement accessKeyId, DataFactorySecretBaseDefinition secretAccessKey, DataFactoryElement serviceUri, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { AccessKeyId = accessKeyId; SecretAccessKey = secretAccessKey; @@ -46,36 +46,7 @@ internal OracleCloudStorageLinkedService(string linkedServiceType, IntegrationRu public DataFactorySecretBaseDefinition SecretAccessKey { get; set; } /// This value specifies the endpoint to access with the Oracle Cloud Storage Connector. This is an optional property; change it only if you want to try a different service endpoint or want to switch between https and http. Type: string (or Expression with resultType string). public DataFactoryElement ServiceUri { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleLinkedService.Serialization.cs index 9557b0123cd6..2d7cdefcd902 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleLinkedService.Serialization.cs @@ -72,11 +72,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -104,7 +100,7 @@ internal static OracleLinkedService DeserializeOracleLinkedService(JsonElement e Optional> annotations = default; DataFactoryElement connectionString = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -188,11 +184,7 @@ internal static OracleLinkedService DeserializeOracleLinkedService(JsonElement e } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleLinkedService.cs index 7f6fed50528c..3bbbd53feec0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Oracle database. - public partial class OracleLinkedService : DataFactoryLinkedServiceDefinition + public partial class OracleLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of OracleLinkedService. /// The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. @@ -36,7 +36,7 @@ public OracleLinkedService(DataFactoryElement connectionString) /// The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. /// The Azure key vault secret reference of password in connection string. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal OracleLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal OracleLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; Password = password; @@ -48,36 +48,7 @@ internal OracleLinkedService(string linkedServiceType, IntegrationRuntimeReferen public DataFactoryElement ConnectionString { get; set; } /// The Azure key vault secret reference of password in connection string. public DataFactoryKeyVaultSecretReference Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleServiceCloudLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleServiceCloudLinkedService.Serialization.cs index 4d5817a7a8a0..45977f1b4bf1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleServiceCloudLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleServiceCloudLinkedService.Serialization.cs @@ -93,11 +93,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -129,7 +125,7 @@ internal static OracleServiceCloudLinkedService DeserializeOracleServiceCloudLin Optional> useEncryptedEndpoints = default; Optional> useHostVerification = default; Optional> usePeerVerification = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -241,11 +237,7 @@ internal static OracleServiceCloudLinkedService DeserializeOracleServiceCloudLin } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleServiceCloudLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleServiceCloudLinkedService.cs index 908d9d6c1602..cf80340b8864 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleServiceCloudLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleServiceCloudLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Oracle Service Cloud linked service. - public partial class OracleServiceCloudLinkedService : DataFactoryLinkedServiceDefinition + public partial class OracleServiceCloudLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of OracleServiceCloudLinkedService. /// The URL of the Oracle Service Cloud instance. @@ -46,7 +46,7 @@ public OracleServiceCloudLinkedService(BinaryData host, BinaryData username, Dat /// Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal OracleServiceCloudLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData host, BinaryData username, DataFactorySecretBaseDefinition password, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal OracleServiceCloudLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData host, BinaryData username, DataFactorySecretBaseDefinition password, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Host = host; Username = username; @@ -128,36 +128,7 @@ internal OracleServiceCloudLinkedService(string linkedServiceType, IntegrationRu public DataFactoryElement UseHostVerification { get; set; } /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). public DataFactoryElement UsePeerVerification { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleServiceCloudObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleServiceCloudObjectDataset.cs index f1b0b534526a..39990a1fbaa5 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleServiceCloudObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleServiceCloudObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Oracle Service Cloud dataset. - public partial class OracleServiceCloudObjectDataset : DataFactoryDatasetDefinition + public partial class OracleServiceCloudObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of OracleServiceCloudObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleTableDataset.cs index ab99033e77dd..38fc2775d52d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OracleTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The on-premises Oracle database dataset. - public partial class OracleTableDataset : DataFactoryDatasetDefinition + public partial class OracleTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of OracleTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OrcDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OrcDataset.cs index c2e640b7743f..6020f1bc41b7 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OrcDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/OrcDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// ORC dataset. - public partial class OrcDataset : DataFactoryDatasetDefinition + public partial class OrcDataset : DataFactoryDatasetProperties { /// Initializes a new instance of OrcDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ParquetDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ParquetDataset.cs index 898b6d214c38..b9e81e9ea716 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ParquetDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ParquetDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Parquet dataset. - public partial class ParquetDataset : DataFactoryDatasetDefinition + public partial class ParquetDataset : DataFactoryDatasetProperties { /// Initializes a new instance of ParquetDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PaypalLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PaypalLinkedService.Serialization.cs index f724e477c47b..6e02e740f2bf 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PaypalLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PaypalLinkedService.Serialization.cs @@ -89,11 +89,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -125,7 +121,7 @@ internal static PaypalLinkedService DeserializePaypalLinkedService(JsonElement e Optional> useEncryptedEndpoints = default; Optional> useHostVerification = default; Optional> usePeerVerification = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -241,11 +237,7 @@ internal static PaypalLinkedService DeserializePaypalLinkedService(JsonElement e } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PaypalLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PaypalLinkedService.cs index 8e4c6eceabe4..dbdce253de71 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PaypalLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PaypalLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Paypal Service linked service. - public partial class PaypalLinkedService : DataFactoryLinkedServiceDefinition + public partial class PaypalLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of PaypalLinkedService. /// The URL of the PayPal instance. (i.e. api.sandbox.paypal.com). @@ -43,7 +43,7 @@ public PaypalLinkedService(DataFactoryElement host, DataFactoryElement Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal PaypalLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement clientId, DataFactorySecretBaseDefinition clientSecret, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal PaypalLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement clientId, DataFactorySecretBaseDefinition clientSecret, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Host = host; ClientId = clientId; @@ -67,36 +67,7 @@ internal PaypalLinkedService(string linkedServiceType, IntegrationRuntimeReferen public DataFactoryElement UseHostVerification { get; set; } /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. public DataFactoryElement UsePeerVerification { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PaypalObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PaypalObjectDataset.cs index 460cca207585..9d4a9c8ac96b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PaypalObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PaypalObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Paypal Service dataset. - public partial class PaypalObjectDataset : DataFactoryDatasetDefinition + public partial class PaypalObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of PaypalObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PhoenixLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PhoenixLinkedService.Serialization.cs index 8894cd44fbc0..c2967e0874d9 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PhoenixLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PhoenixLinkedService.Serialization.cs @@ -114,11 +114,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -155,7 +151,7 @@ internal static PhoenixLinkedService DeserializePhoenixLinkedService(JsonElement Optional> useSystemTrustStore = default; Optional> allowHostNameCNMismatch = default; Optional> allowSelfSignedServerCert = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -316,11 +312,7 @@ internal static PhoenixLinkedService DeserializePhoenixLinkedService(JsonElement } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PhoenixLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PhoenixLinkedService.cs index 26e93a248c5c..d40749f649ae 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PhoenixLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PhoenixLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Phoenix server linked service. - public partial class PhoenixLinkedService : DataFactoryLinkedServiceDefinition + public partial class PhoenixLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of PhoenixLinkedService. /// The IP address or host name of the Phoenix server. (i.e. 192.168.222.160). @@ -47,7 +47,7 @@ public PhoenixLinkedService(DataFactoryElement host, PhoenixAuthenticati /// Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. /// Specifies whether to allow self-signed certificates from the server. The default value is false. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal PhoenixLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement port, DataFactoryElement httpPath, PhoenixAuthenticationType authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement enableSsl, DataFactoryElement trustedCertPath, DataFactoryElement useSystemTrustStore, DataFactoryElement allowHostNameCNMismatch, DataFactoryElement allowSelfSignedServerCert, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal PhoenixLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement port, DataFactoryElement httpPath, PhoenixAuthenticationType authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement enableSsl, DataFactoryElement trustedCertPath, DataFactoryElement useSystemTrustStore, DataFactoryElement allowHostNameCNMismatch, DataFactoryElement allowSelfSignedServerCert, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Host = host; Port = port; @@ -86,36 +86,7 @@ internal PhoenixLinkedService(string linkedServiceType, IntegrationRuntimeRefere public DataFactoryElement AllowHostNameCNMismatch { get; set; } /// Specifies whether to allow self-signed certificates from the server. The default value is false. public DataFactoryElement AllowSelfSignedServerCert { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PhoenixObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PhoenixObjectDataset.cs index 54fb09e6b2c9..52684cb640b9 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PhoenixObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PhoenixObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Phoenix server dataset. - public partial class PhoenixObjectDataset : DataFactoryDatasetDefinition + public partial class PhoenixObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of PhoenixObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivity.Serialization.cs similarity index 96% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryActivity.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivity.Serialization.cs index c3a84d1936f2..a389b930958d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivity.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class DataFactoryActivity : IUtf8JsonSerializable + public partial class PipelineActivity : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -66,7 +66,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static DataFactoryActivity DeserializeDataFactoryActivity(JsonElement element) + internal static PipelineActivity DeserializePipelineActivity(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -106,7 +106,7 @@ internal static DataFactoryActivity DeserializeDataFactoryActivity(JsonElement e case "HDInsightStreaming": return HDInsightStreamingActivity.DeserializeHDInsightStreamingActivity(element); case "IfCondition": return IfConditionActivity.DeserializeIfConditionActivity(element); case "Lookup": return LookupActivity.DeserializeLookupActivity(element); - case "Script": return ScriptActivity.DeserializeScriptActivity(element); + case "Script": return DataFactoryScriptActivity.DeserializeDataFactoryScriptActivity(element); case "SetVariable": return SetVariableActivity.DeserializeSetVariableActivity(element); case "SparkJob": return SynapseSparkJobDefinitionActivity.DeserializeSynapseSparkJobDefinitionActivity(element); case "SqlServerStoredProcedure": return SqlServerStoredProcedureActivity.DeserializeSqlServerStoredProcedureActivity(element); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivity.cs similarity index 75% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryActivity.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivity.cs index b0dd37419d25..9de5fb5c6fec 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivity.cs @@ -13,25 +13,25 @@ namespace Azure.ResourceManager.DataFactory.Models { /// /// A pipeline activity. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// - public partial class DataFactoryActivity + public partial class PipelineActivity { - /// Initializes a new instance of DataFactoryActivity. + /// Initializes a new instance of PipelineActivity. /// Activity name. /// is null. - public DataFactoryActivity(string name) + public PipelineActivity(string name) { Argument.AssertNotNull(name, nameof(name)); Name = name; - DependsOn = new ChangeTrackingList(); - UserProperties = new ChangeTrackingList(); + DependsOn = new ChangeTrackingList(); + UserProperties = new ChangeTrackingList(); AdditionalProperties = new ChangeTrackingDictionary(); } - /// Initializes a new instance of DataFactoryActivity. + /// Initializes a new instance of PipelineActivity. /// Activity name. /// Type of activity. /// Activity description. @@ -40,7 +40,7 @@ public DataFactoryActivity(string name) /// Activity depends on condition. /// Activity user properties. /// Additional Properties. - internal DataFactoryActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties) + internal PipelineActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties) { Name = name; ActivityType = activityType; @@ -59,13 +59,13 @@ internal DataFactoryActivity(string name, string activityType, string descriptio /// Activity description. public string Description { get; set; } /// Activity state. This is an optional property and if not provided, the state will be Active by default. - public ActivityState? State { get; set; } + public PipelineActivityState? State { get; set; } /// Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when the activity is inactive, the status will be Succeeded by default. - public ActivityOnInactiveMarkA? OnInactiveMarkAs { get; set; } + public ActivityOnInactiveMarkAs? OnInactiveMarkAs { get; set; } /// Activity depends on condition. - public IList DependsOn { get; } + public IList DependsOn { get; } /// Activity user properties. - public IList UserProperties { get; } + public IList UserProperties { get; } /// /// Additional Properties /// diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityDependency.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityDependency.Serialization.cs similarity index 89% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityDependency.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityDependency.Serialization.cs index 26edc1f0fe7e..ffc3acfa04ca 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityDependency.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityDependency.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class ActivityDependency : IUtf8JsonSerializable + public partial class PipelineActivityDependency : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -38,7 +38,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ActivityDependency DeserializeActivityDependency(JsonElement element) + internal static PipelineActivityDependency DeserializePipelineActivityDependency(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -68,7 +68,7 @@ internal static ActivityDependency DeserializeActivityDependency(JsonElement ele additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } additionalProperties = additionalPropertiesDictionary; - return new ActivityDependency(activity, dependencyConditions, additionalProperties); + return new PipelineActivityDependency(activity, dependencyConditions, additionalProperties); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityDependency.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityDependency.cs similarity index 85% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityDependency.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityDependency.cs index fd503d996c5f..2546d16de6f6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityDependency.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityDependency.cs @@ -13,13 +13,13 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Activity dependency information. - public partial class ActivityDependency + public partial class PipelineActivityDependency { - /// Initializes a new instance of ActivityDependency. + /// Initializes a new instance of PipelineActivityDependency. /// Activity name. /// Match-Condition for the dependency. /// or is null. - public ActivityDependency(string activity, IEnumerable dependencyConditions) + public PipelineActivityDependency(string activity, IEnumerable dependencyConditions) { Argument.AssertNotNull(activity, nameof(activity)); Argument.AssertNotNull(dependencyConditions, nameof(dependencyConditions)); @@ -29,11 +29,11 @@ public ActivityDependency(string activity, IEnumerable depe AdditionalProperties = new ChangeTrackingDictionary(); } - /// Initializes a new instance of ActivityDependency. + /// Initializes a new instance of PipelineActivityDependency. /// Activity name. /// Match-Condition for the dependency. /// Additional Properties. - internal ActivityDependency(string activity, IList dependencyConditions, IDictionary additionalProperties) + internal PipelineActivityDependency(string activity, IList dependencyConditions, IDictionary additionalProperties) { Activity = activity; DependencyConditions = dependencyConditions; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityPolicy.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityPolicy.Serialization.cs similarity index 86% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityPolicy.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityPolicy.Serialization.cs index ebaa9e80e333..c7f7bbbb639c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityPolicy.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityPolicy.Serialization.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class ActivityPolicy : IUtf8JsonSerializable + public partial class PipelineActivityPolicy : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -33,15 +33,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("retryIntervalInSeconds"u8); writer.WriteNumberValue(RetryIntervalInSeconds.Value); } - if (Optional.IsDefined(EnableSecureInput)) + if (Optional.IsDefined(IsSecureInputEnabled)) { writer.WritePropertyName("secureInput"u8); - writer.WriteBooleanValue(EnableSecureInput.Value); + writer.WriteBooleanValue(IsSecureInputEnabled.Value); } - if (Optional.IsDefined(EnableSecureOutput)) + if (Optional.IsDefined(IsSecureOutputEnabled)) { writer.WritePropertyName("secureOutput"u8); - writer.WriteBooleanValue(EnableSecureOutput.Value); + writer.WriteBooleanValue(IsSecureOutputEnabled.Value); } foreach (var item in AdditionalProperties) { @@ -55,7 +55,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ActivityPolicy DeserializeActivityPolicy(JsonElement element) + internal static PipelineActivityPolicy DeserializePipelineActivityPolicy(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -118,7 +118,7 @@ internal static ActivityPolicy DeserializeActivityPolicy(JsonElement element) additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } additionalProperties = additionalPropertiesDictionary; - return new ActivityPolicy(timeout.Value, retry.Value, Optional.ToNullable(retryIntervalInSeconds), Optional.ToNullable(secureInput), Optional.ToNullable(secureOutput), additionalProperties); + return new PipelineActivityPolicy(timeout.Value, retry.Value, Optional.ToNullable(retryIntervalInSeconds), Optional.ToNullable(secureInput), Optional.ToNullable(secureOutput), additionalProperties); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityPolicy.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityPolicy.cs similarity index 77% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityPolicy.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityPolicy.cs index 6cbfc19e5d0b..e8ec50e50e38 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityPolicy.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityPolicy.cs @@ -13,28 +13,28 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Execution policy for an activity. - public partial class ActivityPolicy + public partial class PipelineActivityPolicy { - /// Initializes a new instance of ActivityPolicy. - public ActivityPolicy() + /// Initializes a new instance of PipelineActivityPolicy. + public PipelineActivityPolicy() { AdditionalProperties = new ChangeTrackingDictionary(); } - /// Initializes a new instance of ActivityPolicy. + /// Initializes a new instance of PipelineActivityPolicy. /// Specifies the timeout for the activity to run. The default timeout is 7 days. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). /// Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0. /// Interval between each retry attempt (in seconds). The default is 30 sec. - /// When set to true, Input from activity is considered as secure and will not be logged to monitoring. - /// When set to true, Output from activity is considered as secure and will not be logged to monitoring. + /// When set to true, Input from activity is considered as secure and will not be logged to monitoring. + /// When set to true, Output from activity is considered as secure and will not be logged to monitoring. /// Additional Properties. - internal ActivityPolicy(DataFactoryElement timeout, DataFactoryElement retry, int? retryIntervalInSeconds, bool? enableSecureInput, bool? enableSecureOutput, IDictionary additionalProperties) + internal PipelineActivityPolicy(DataFactoryElement timeout, DataFactoryElement retry, int? retryIntervalInSeconds, bool? isSecureInputEnabled, bool? isSecureOutputEnabled, IDictionary additionalProperties) { Timeout = timeout; Retry = retry; RetryIntervalInSeconds = retryIntervalInSeconds; - EnableSecureInput = enableSecureInput; - EnableSecureOutput = enableSecureOutput; + IsSecureInputEnabled = isSecureInputEnabled; + IsSecureOutputEnabled = isSecureOutputEnabled; AdditionalProperties = additionalProperties; } @@ -45,9 +45,9 @@ internal ActivityPolicy(DataFactoryElement timeout, DataFactoryElement Interval between each retry attempt (in seconds). The default is 30 sec. public int? RetryIntervalInSeconds { get; set; } /// When set to true, Input from activity is considered as secure and will not be logged to monitoring. - public bool? EnableSecureInput { get; set; } + public bool? IsSecureInputEnabled { get; set; } /// When set to true, Output from activity is considered as secure and will not be logged to monitoring. - public bool? EnableSecureOutput { get; set; } + public bool? IsSecureOutputEnabled { get; set; } /// /// Additional Properties /// diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryActivityRunInfo.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityRunInformation.Serialization.cs similarity index 90% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryActivityRunInfo.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityRunInformation.Serialization.cs index 16aec5eabad0..693d698459c6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryActivityRunInfo.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityRunInformation.Serialization.cs @@ -12,9 +12,9 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class DataFactoryActivityRunInfo + public partial class PipelineActivityRunInformation { - internal static DataFactoryActivityRunInfo DeserializeDataFactoryActivityRunInfo(JsonElement element) + internal static PipelineActivityRunInformation DeserializePipelineActivityRunInformation(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -137,7 +137,7 @@ internal static DataFactoryActivityRunInfo DeserializeDataFactoryActivityRunInfo additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } additionalProperties = additionalPropertiesDictionary; - return new DataFactoryActivityRunInfo(pipelineName.Value, Optional.ToNullable(pipelineRunId), activityName.Value, activityType.Value, Optional.ToNullable(activityRunId), linkedServiceName.Value, status.Value, Optional.ToNullable(activityRunStart), Optional.ToNullable(activityRunEnd), Optional.ToNullable(durationInMs), input.Value, output.Value, error.Value, additionalProperties); + return new PipelineActivityRunInformation(pipelineName.Value, Optional.ToNullable(pipelineRunId), activityName.Value, activityType.Value, Optional.ToNullable(activityRunId), linkedServiceName.Value, status.Value, Optional.ToNullable(activityRunStart), Optional.ToNullable(activityRunEnd), Optional.ToNullable(durationInMs), input.Value, output.Value, error.Value, additionalProperties); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryActivityRunInfo.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityRunInformation.cs similarity index 90% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryActivityRunInfo.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityRunInformation.cs index 069691a10c5e..9e31003a6006 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryActivityRunInfo.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityRunInformation.cs @@ -12,15 +12,15 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Information about an activity run in a pipeline. - public partial class DataFactoryActivityRunInfo + public partial class PipelineActivityRunInformation { - /// Initializes a new instance of DataFactoryActivityRunInfo. - internal DataFactoryActivityRunInfo() + /// Initializes a new instance of PipelineActivityRunInformation. + internal PipelineActivityRunInformation() { AdditionalProperties = new ChangeTrackingDictionary(); } - /// Initializes a new instance of DataFactoryActivityRunInfo. + /// Initializes a new instance of PipelineActivityRunInformation. /// The name of the pipeline. /// The id of the pipeline run. /// The name of the activity. @@ -28,14 +28,14 @@ internal DataFactoryActivityRunInfo() /// The id of the activity run. /// The name of the compute linked service. /// The status of the activity run. - /// The start time of the activity run in 'ISO 8601' format. + /// The start time of the activity run in 'ISO 8601' format. /// The end time of the activity run in 'ISO 8601' format. /// The duration of the activity run. /// The input for the activity. /// The output for the activity. /// The error if any from the activity run. /// Additional Properties. - internal DataFactoryActivityRunInfo(string pipelineName, Guid? pipelineRunId, string activityName, string activityType, Guid? activityRunId, string linkedServiceName, string status, DateTimeOffset? activityRunStart, DateTimeOffset? endOn, int? durationInMs, BinaryData input, BinaryData output, BinaryData error, IReadOnlyDictionary additionalProperties) + internal PipelineActivityRunInformation(string pipelineName, Guid? pipelineRunId, string activityName, string activityType, Guid? activityRunId, string linkedServiceName, string status, DateTimeOffset? startOn, DateTimeOffset? endOn, int? durationInMs, BinaryData input, BinaryData output, BinaryData error, IReadOnlyDictionary additionalProperties) { PipelineName = pipelineName; PipelineRunId = pipelineRunId; @@ -44,7 +44,7 @@ internal DataFactoryActivityRunInfo(string pipelineName, Guid? pipelineRunId, st ActivityRunId = activityRunId; LinkedServiceName = linkedServiceName; Status = status; - ActivityRunStart = activityRunStart; + StartOn = startOn; EndOn = endOn; DurationInMs = durationInMs; Input = input; @@ -68,7 +68,7 @@ internal DataFactoryActivityRunInfo(string pipelineName, Guid? pipelineRunId, st /// The status of the activity run. public string Status { get; } /// The start time of the activity run in 'ISO 8601' format. - public DateTimeOffset? ActivityRunStart { get; } + public DateTimeOffset? StartOn { get; } /// The end time of the activity run in 'ISO 8601' format. public DateTimeOffset? EndOn { get; } /// The duration of the activity run. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryActivityRunsResult.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityRunsResult.Serialization.cs similarity index 65% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryActivityRunsResult.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityRunsResult.Serialization.cs index 49c704a8d4e5..e9169375e35a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryActivityRunsResult.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityRunsResult.Serialization.cs @@ -11,24 +11,24 @@ namespace Azure.ResourceManager.DataFactory.Models { - internal partial class DataFactoryActivityRunsResult + internal partial class PipelineActivityRunsResult { - internal static DataFactoryActivityRunsResult DeserializeDataFactoryActivityRunsResult(JsonElement element) + internal static PipelineActivityRunsResult DeserializePipelineActivityRunsResult(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - IReadOnlyList value = default; + IReadOnlyList value = default; Optional continuationToken = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(DataFactoryActivityRunInfo.DeserializeDataFactoryActivityRunInfo(item)); + array.Add(PipelineActivityRunInformation.DeserializePipelineActivityRunInformation(item)); } value = array; continue; @@ -39,7 +39,7 @@ internal static DataFactoryActivityRunsResult DeserializeDataFactoryActivityRuns continue; } } - return new DataFactoryActivityRunsResult(value, continuationToken.Value); + return new PipelineActivityRunsResult(value, continuationToken.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryActivityRunsResult.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityRunsResult.cs similarity index 69% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryActivityRunsResult.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityRunsResult.cs index 9a62c41b7b4b..f1aec5a5801a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryActivityRunsResult.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityRunsResult.cs @@ -13,29 +13,29 @@ namespace Azure.ResourceManager.DataFactory.Models { /// A list activity runs. - internal partial class DataFactoryActivityRunsResult + internal partial class PipelineActivityRunsResult { - /// Initializes a new instance of DataFactoryActivityRunsResult. + /// Initializes a new instance of PipelineActivityRunsResult. /// List of activity runs. /// is null. - internal DataFactoryActivityRunsResult(IEnumerable value) + internal PipelineActivityRunsResult(IEnumerable value) { Argument.AssertNotNull(value, nameof(value)); Value = value.ToList(); } - /// Initializes a new instance of DataFactoryActivityRunsResult. + /// Initializes a new instance of PipelineActivityRunsResult. /// List of activity runs. /// The continuation token for getting the next page of results, if any remaining results exist, null otherwise. - internal DataFactoryActivityRunsResult(IReadOnlyList value, string continuationToken) + internal PipelineActivityRunsResult(IReadOnlyList value, string continuationToken) { Value = value; ContinuationToken = continuationToken; } /// List of activity runs. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// The continuation token for getting the next page of results, if any remaining results exist, null otherwise. public string ContinuationToken { get; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityState.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityState.cs new file mode 100644 index 000000000000..0bae62878acd --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityState.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// Activity state. This is an optional property and if not provided, the state will be Active by default. + public readonly partial struct PipelineActivityState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public PipelineActivityState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ActiveValue = "Active"; + private const string InactiveValue = "Inactive"; + + /// Active. + public static PipelineActivityState Active { get; } = new PipelineActivityState(ActiveValue); + /// Inactive. + public static PipelineActivityState Inactive { get; } = new PipelineActivityState(InactiveValue); + /// Determines if two values are the same. + public static bool operator ==(PipelineActivityState left, PipelineActivityState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(PipelineActivityState left, PipelineActivityState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator PipelineActivityState(string value) => new PipelineActivityState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is PipelineActivityState other && Equals(other); + /// + public bool Equals(PipelineActivityState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityUserProperty.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityUserProperty.Serialization.cs similarity index 84% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityUserProperty.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityUserProperty.Serialization.cs index d76bf873eae5..a5353f354263 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityUserProperty.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityUserProperty.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class ActivityUserProperty : IUtf8JsonSerializable + public partial class PipelineActivityUserProperty : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -23,7 +23,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ActivityUserProperty DeserializeActivityUserProperty(JsonElement element) + internal static PipelineActivityUserProperty DeserializePipelineActivityUserProperty(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -44,7 +44,7 @@ internal static ActivityUserProperty DeserializeActivityUserProperty(JsonElement continue; } } - return new ActivityUserProperty(name, value); + return new PipelineActivityUserProperty(name, value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityUserProperty.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityUserProperty.cs similarity index 81% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityUserProperty.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityUserProperty.cs index 80e0fb097c9b..ceac0b5e845a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ActivityUserProperty.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PipelineActivityUserProperty.cs @@ -12,13 +12,13 @@ namespace Azure.ResourceManager.DataFactory.Models { /// User property. - public partial class ActivityUserProperty + public partial class PipelineActivityUserProperty { - /// Initializes a new instance of ActivityUserProperty. + /// Initializes a new instance of PipelineActivityUserProperty. /// User property name. /// User property value. Type: string (or Expression with resultType string). /// or is null. - public ActivityUserProperty(string name, DataFactoryElement value) + public PipelineActivityUserProperty(string name, DataFactoryElement value) { Argument.AssertNotNull(name, nameof(name)); Argument.AssertNotNull(value, nameof(value)); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PostgreSqlLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PostgreSqlLinkedService.Serialization.cs index 0f773940c4c4..256656103ac6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PostgreSqlLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PostgreSqlLinkedService.Serialization.cs @@ -72,11 +72,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -104,7 +100,7 @@ internal static PostgreSqlLinkedService DeserializePostgreSqlLinkedService(JsonE Optional> annotations = default; DataFactoryElement connectionString = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -188,11 +184,7 @@ internal static PostgreSqlLinkedService DeserializePostgreSqlLinkedService(JsonE } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PostgreSqlLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PostgreSqlLinkedService.cs index 3c29ba7b08fd..c81ff70680a5 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PostgreSqlLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PostgreSqlLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for PostgreSQL data source. - public partial class PostgreSqlLinkedService : DataFactoryLinkedServiceDefinition + public partial class PostgreSqlLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of PostgreSqlLinkedService. /// The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. @@ -36,7 +36,7 @@ public PostgreSqlLinkedService(DataFactoryElement connectionString) /// The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. /// The Azure key vault secret reference of password in connection string. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal PostgreSqlLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal PostgreSqlLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; Password = password; @@ -48,36 +48,7 @@ internal PostgreSqlLinkedService(string linkedServiceType, IntegrationRuntimeRef public DataFactoryElement ConnectionString { get; set; } /// The Azure key vault secret reference of password in connection string. public DataFactoryKeyVaultSecretReference Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PostgreSqlTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PostgreSqlTableDataset.cs index cb75fbece5fd..139ce4c17822 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PostgreSqlTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PostgreSqlTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The PostgreSQL table dataset. - public partial class PostgreSqlTableDataset : DataFactoryDatasetDefinition + public partial class PostgreSqlTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of PostgreSqlTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PrestoLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PrestoLinkedService.Serialization.cs index e62e87d087b8..df415bb17efd 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PrestoLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PrestoLinkedService.Serialization.cs @@ -118,11 +118,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -161,7 +157,7 @@ internal static PrestoLinkedService DeserializePrestoLinkedService(JsonElement e Optional> allowHostNameCNMismatch = default; Optional> allowSelfSignedServerCert = default; Optional> timeZoneId = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -332,11 +328,7 @@ internal static PrestoLinkedService DeserializePrestoLinkedService(JsonElement e } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PrestoLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PrestoLinkedService.cs index e3438a292651..6bf931bf0f9d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PrestoLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PrestoLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Presto server linked service. - public partial class PrestoLinkedService : DataFactoryLinkedServiceDefinition + public partial class PrestoLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of PrestoLinkedService. /// The IP address or host name of the Presto server. (i.e. 192.168.222.160). @@ -55,7 +55,7 @@ public PrestoLinkedService(DataFactoryElement host, DataFactoryElement Specifies whether to allow self-signed certificates from the server. The default value is false. /// The local time zone used by the connection. Valid values for this option are specified in the IANA Time Zone Database. The default value is the system time zone. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal PrestoLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement serverVersion, DataFactoryElement catalog, DataFactoryElement port, PrestoAuthenticationType authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement enableSsl, DataFactoryElement trustedCertPath, DataFactoryElement useSystemTrustStore, DataFactoryElement allowHostNameCNMismatch, DataFactoryElement allowSelfSignedServerCert, DataFactoryElement timeZoneId, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal PrestoLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement serverVersion, DataFactoryElement catalog, DataFactoryElement port, PrestoAuthenticationType authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement enableSsl, DataFactoryElement trustedCertPath, DataFactoryElement useSystemTrustStore, DataFactoryElement allowHostNameCNMismatch, DataFactoryElement allowSelfSignedServerCert, DataFactoryElement timeZoneId, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Host = host; ServerVersion = serverVersion; @@ -100,36 +100,7 @@ internal PrestoLinkedService(string linkedServiceType, IntegrationRuntimeReferen public DataFactoryElement AllowSelfSignedServerCert { get; set; } /// The local time zone used by the connection. Valid values for this option are specified in the IANA Time Zone Database. The default value is the system time zone. public DataFactoryElement TimeZoneId { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PrestoObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PrestoObjectDataset.cs index 05b169d06f3f..0be34bd2cb74 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PrestoObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/PrestoObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Presto server dataset. - public partial class PrestoObjectDataset : DataFactoryDatasetDefinition + public partial class PrestoObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of PrestoObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QuickBooksLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QuickBooksLinkedService.Serialization.cs index 9b0df9652f35..47603bdf0479 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QuickBooksLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QuickBooksLinkedService.Serialization.cs @@ -109,11 +109,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -147,7 +143,7 @@ internal static QuickBooksLinkedService DeserializeQuickBooksLinkedService(JsonE Optional accessToken = default; Optional accessTokenSecret = default; Optional> useEncryptedEndpoints = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -289,11 +285,7 @@ internal static QuickBooksLinkedService DeserializeQuickBooksLinkedService(JsonE } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QuickBooksLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QuickBooksLinkedService.cs index fbe6234a6997..20b73d23f363 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QuickBooksLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QuickBooksLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// QuickBooks server linked service. - public partial class QuickBooksLinkedService : DataFactoryLinkedServiceDefinition + public partial class QuickBooksLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of QuickBooksLinkedService. public QuickBooksLinkedService() @@ -36,7 +36,7 @@ public QuickBooksLinkedService() /// The access token secret for OAuth 1.0 authentication. /// Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal QuickBooksLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData connectionProperties, DataFactoryElement endpoint, DataFactoryElement companyId, DataFactoryElement consumerKey, DataFactorySecretBaseDefinition consumerSecret, DataFactorySecretBaseDefinition accessToken, DataFactorySecretBaseDefinition accessTokenSecret, DataFactoryElement useEncryptedEndpoints, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal QuickBooksLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData connectionProperties, DataFactoryElement endpoint, DataFactoryElement companyId, DataFactoryElement consumerKey, DataFactorySecretBaseDefinition consumerSecret, DataFactorySecretBaseDefinition accessToken, DataFactorySecretBaseDefinition accessTokenSecret, DataFactoryElement useEncryptedEndpoints, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionProperties = connectionProperties; Endpoint = endpoint; @@ -95,36 +95,7 @@ internal QuickBooksLinkedService(string linkedServiceType, IntegrationRuntimeRef public DataFactorySecretBaseDefinition AccessTokenSecret { get; set; } /// Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. public DataFactoryElement UseEncryptedEndpoints { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QuickBooksObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QuickBooksObjectDataset.cs index bfadcd2c6066..8d8821fbad25 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QuickBooksObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QuickBooksObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// QuickBooks server dataset. - public partial class QuickBooksObjectDataset : DataFactoryDatasetDefinition + public partial class QuickBooksObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of QuickBooksObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QuickbaseLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QuickbaseLinkedService.Serialization.cs index a2fafad41afd..567f5e9a69ef 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QuickbaseLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QuickbaseLinkedService.Serialization.cs @@ -68,11 +68,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) JsonSerializer.Serialize(writer, UserToken); if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -100,7 +96,7 @@ internal static QuickbaseLinkedService DeserializeQuickbaseLinkedService(JsonEle Optional> annotations = default; DataFactoryElement url = default; DataFactorySecretBaseDefinition userToken = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -180,11 +176,7 @@ internal static QuickbaseLinkedService DeserializeQuickbaseLinkedService(JsonEle } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QuickbaseLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QuickbaseLinkedService.cs index f9cd2ca7a316..8bac7df0ede8 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QuickbaseLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/QuickbaseLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for Quickbase. - public partial class QuickbaseLinkedService : DataFactoryLinkedServiceDefinition + public partial class QuickbaseLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of QuickbaseLinkedService. /// The url to connect Quickbase source. Type: string (or Expression with resultType string). @@ -39,7 +39,7 @@ public QuickbaseLinkedService(DataFactoryElement uri, DataFactorySecretB /// The url to connect Quickbase source. Type: string (or Expression with resultType string). /// The user token for the Quickbase source. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal QuickbaseLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement uri, DataFactorySecretBaseDefinition userToken, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal QuickbaseLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement uri, DataFactorySecretBaseDefinition userToken, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Uri = uri; UserToken = userToken; @@ -51,36 +51,7 @@ internal QuickbaseLinkedService(string linkedServiceType, IntegrationRuntimeRefe public DataFactoryElement Uri { get; set; } /// The user token for the Quickbase source. public DataFactorySecretBaseDefinition UserToken { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RecurrenceFrequency.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RecurrenceFrequency.cs deleted file mode 100644 index 1fe013040fc3..000000000000 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RecurrenceFrequency.cs +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.DataFactory.Models -{ - /// Enumerates possible frequency option for the schedule trigger. - public readonly partial struct RecurrenceFrequency : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public RecurrenceFrequency(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string NotSpecifiedValue = "NotSpecified"; - private const string MinuteValue = "Minute"; - private const string HourValue = "Hour"; - private const string DayValue = "Day"; - private const string WeekValue = "Week"; - private const string MonthValue = "Month"; - private const string YearValue = "Year"; - - /// NotSpecified. - public static RecurrenceFrequency NotSpecified { get; } = new RecurrenceFrequency(NotSpecifiedValue); - /// Minute. - public static RecurrenceFrequency Minute { get; } = new RecurrenceFrequency(MinuteValue); - /// Hour. - public static RecurrenceFrequency Hour { get; } = new RecurrenceFrequency(HourValue); - /// Day. - public static RecurrenceFrequency Day { get; } = new RecurrenceFrequency(DayValue); - /// Week. - public static RecurrenceFrequency Week { get; } = new RecurrenceFrequency(WeekValue); - /// Month. - public static RecurrenceFrequency Month { get; } = new RecurrenceFrequency(MonthValue); - /// Year. - public static RecurrenceFrequency Year { get; } = new RecurrenceFrequency(YearValue); - /// Determines if two values are the same. - public static bool operator ==(RecurrenceFrequency left, RecurrenceFrequency right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(RecurrenceFrequency left, RecurrenceFrequency right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator RecurrenceFrequency(string value) => new RecurrenceFrequency(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is RecurrenceFrequency other && Equals(other); - /// - public bool Equals(RecurrenceFrequency other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RelationalTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RelationalTableDataset.cs index 5d721f31027b..edef56d44c8f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RelationalTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RelationalTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The relational table dataset. - public partial class RelationalTableDataset : DataFactoryDatasetDefinition + public partial class RelationalTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of RelationalTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RerunTumblingWindowTrigger.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RerunTumblingWindowTrigger.cs index 3c3c4c2f54cb..92a5cbbcea0a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RerunTumblingWindowTrigger.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RerunTumblingWindowTrigger.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Trigger that schedules pipeline reruns for all fixed time interval windows from a requested start time to requested end time. - public partial class RerunTumblingWindowTrigger : DataFactoryTriggerDefinition + public partial class RerunTumblingWindowTrigger : DataFactoryTriggerProperties { /// Initializes a new instance of RerunTumblingWindowTrigger. /// The parent trigger reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ResponsysLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ResponsysLinkedService.Serialization.cs index 9f57b319fc39..08ec69ed00de 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ResponsysLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ResponsysLinkedService.Serialization.cs @@ -93,11 +93,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -129,7 +125,7 @@ internal static ResponsysLinkedService DeserializeResponsysLinkedService(JsonEle Optional> useEncryptedEndpoints = default; Optional> useHostVerification = default; Optional> usePeerVerification = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -245,11 +241,7 @@ internal static ResponsysLinkedService DeserializeResponsysLinkedService(JsonEle } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ResponsysLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ResponsysLinkedService.cs index 49da5e8af49e..e9c43cf6d3e4 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ResponsysLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ResponsysLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Responsys linked service. - public partial class ResponsysLinkedService : DataFactoryLinkedServiceDefinition + public partial class ResponsysLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of ResponsysLinkedService. /// The endpoint of the Responsys server. @@ -43,7 +43,7 @@ public ResponsysLinkedService(BinaryData endpoint, DataFactoryElement cl /// Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal ResponsysLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData endpoint, DataFactoryElement clientId, DataFactorySecretBaseDefinition clientSecret, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal ResponsysLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData endpoint, DataFactoryElement clientId, DataFactorySecretBaseDefinition clientSecret, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Endpoint = endpoint; ClientId = clientId; @@ -96,36 +96,7 @@ internal ResponsysLinkedService(string linkedServiceType, IntegrationRuntimeRefe public DataFactoryElement UseHostVerification { get; set; } /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). public DataFactoryElement UsePeerVerification { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ResponsysObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ResponsysObjectDataset.cs index 39b1f9e98204..be5957211b3f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ResponsysObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ResponsysObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Responsys dataset. - public partial class ResponsysObjectDataset : DataFactoryDatasetDefinition + public partial class ResponsysObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of ResponsysObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RestResourceDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RestResourceDataset.cs index 85971efa1354..b225c698579b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RestResourceDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RestResourceDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// A Rest service dataset. - public partial class RestResourceDataset : DataFactoryDatasetDefinition + public partial class RestResourceDataset : DataFactoryDatasetProperties { /// Initializes a new instance of RestResourceDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RestServiceLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RestServiceLinkedService.Serialization.cs index e6c7639bf5b1..3e26afa932a2 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RestServiceLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RestServiceLinkedService.Serialization.cs @@ -114,11 +114,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } if (Optional.IsDefined(Credential)) { @@ -185,7 +181,7 @@ internal static RestServiceLinkedService DeserializeRestServiceLinkedService(Jso Optional> tenant = default; Optional> azureCloudType = default; Optional> aadResourceId = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; Optional credential = default; Optional> clientId = default; Optional clientSecret = default; @@ -352,11 +348,7 @@ internal static RestServiceLinkedService DeserializeRestServiceLinkedService(Jso } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } if (property0.NameEquals("credential"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RestServiceLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RestServiceLinkedService.cs index 9eefd8d73578..48646e5678e5 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RestServiceLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/RestServiceLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Rest Service linked service. - public partial class RestServiceLinkedService : DataFactoryLinkedServiceDefinition + public partial class RestServiceLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of RestServiceLinkedService. /// The base URL of the REST service. Type: string (or Expression with resultType string). @@ -53,7 +53,7 @@ public RestServiceLinkedService(DataFactoryElement uri, RestServiceAuthe /// The token endpoint of the authorization server to acquire access token. Type: string (or Expression with resultType string). /// The target service or resource to which the access will be requested. Type: string (or Expression with resultType string). /// The scope of the access required. It describes what kind of access will be requested. Type: string (or Expression with resultType string). - internal RestServiceLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement uri, DataFactoryElement enableServerCertificateValidation, RestServiceAuthenticationType authenticationType, DataFactoryElement userName, DataFactorySecretBaseDefinition password, DataFactoryElement authHeaders, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, DataFactoryElement azureCloudType, DataFactoryElement aadResourceId, BinaryData encryptedCredential, DataFactoryCredentialReference credential, DataFactoryElement clientId, DataFactorySecretBaseDefinition clientSecret, DataFactoryElement tokenEndpoint, DataFactoryElement resource, DataFactoryElement scope) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal RestServiceLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement uri, DataFactoryElement enableServerCertificateValidation, RestServiceAuthenticationType authenticationType, DataFactoryElement userName, DataFactorySecretBaseDefinition password, DataFactoryElement authHeaders, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, DataFactoryElement tenant, DataFactoryElement azureCloudType, DataFactoryElement aadResourceId, string encryptedCredential, DataFactoryCredentialReference credential, DataFactoryElement clientId, DataFactorySecretBaseDefinition clientSecret, DataFactoryElement tokenEndpoint, DataFactoryElement resource, DataFactoryElement scope) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Uri = uri; EnableServerCertificateValidation = enableServerCertificateValidation; @@ -98,37 +98,8 @@ internal RestServiceLinkedService(string linkedServiceType, IntegrationRuntimeRe public DataFactoryElement AzureCloudType { get; set; } /// The resource you are requesting authorization to use. Type: string (or Expression with resultType string). public DataFactoryElement AadResourceId { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } /// The credential reference containing authentication information. public DataFactoryCredentialReference Credential { get; set; } /// The client ID associated with your application. Type: string (or Expression with resultType string). diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceLinkedService.Serialization.cs index 94ede091e4b9..0974933b1dfe 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceLinkedService.Serialization.cs @@ -90,11 +90,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -125,7 +121,7 @@ internal static SalesforceLinkedService DeserializeSalesforceLinkedService(JsonE Optional password = default; Optional securityToken = default; Optional> apiVersion = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -240,11 +236,7 @@ internal static SalesforceLinkedService DeserializeSalesforceLinkedService(JsonE } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceLinkedService.cs index 14bca177c01c..e17082d58e8a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for Salesforce. - public partial class SalesforceLinkedService : DataFactoryLinkedServiceDefinition + public partial class SalesforceLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of SalesforceLinkedService. public SalesforceLinkedService() @@ -33,7 +33,7 @@ public SalesforceLinkedService() /// The security token is optional to remotely access Salesforce instance. /// The Salesforce API version used in ADF. Type: string (or Expression with resultType string). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal SalesforceLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement environmentUri, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactorySecretBaseDefinition securityToken, DataFactoryElement apiVersion, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal SalesforceLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement environmentUri, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactorySecretBaseDefinition securityToken, DataFactoryElement apiVersion, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { EnvironmentUri = environmentUri; Username = username; @@ -54,36 +54,7 @@ internal SalesforceLinkedService(string linkedServiceType, IntegrationRuntimeRef public DataFactorySecretBaseDefinition SecurityToken { get; set; } /// The Salesforce API version used in ADF. Type: string (or Expression with resultType string). public DataFactoryElement ApiVersion { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceMarketingCloudLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceMarketingCloudLinkedService.Serialization.cs index 066b31d3104a..cb3da818c781 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceMarketingCloudLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceMarketingCloudLinkedService.Serialization.cs @@ -99,11 +99,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -135,7 +131,7 @@ internal static SalesforceMarketingCloudLinkedService DeserializeSalesforceMarke Optional> useEncryptedEndpoints = default; Optional> useHostVerification = default; Optional> usePeerVerification = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -259,11 +255,7 @@ internal static SalesforceMarketingCloudLinkedService DeserializeSalesforceMarke } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceMarketingCloudLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceMarketingCloudLinkedService.cs index b5ffc2ccf0cc..005dc976567c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceMarketingCloudLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceMarketingCloudLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Salesforce Marketing Cloud linked service. - public partial class SalesforceMarketingCloudLinkedService : DataFactoryLinkedServiceDefinition + public partial class SalesforceMarketingCloudLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of SalesforceMarketingCloudLinkedService. public SalesforceMarketingCloudLinkedService() @@ -34,7 +34,7 @@ public SalesforceMarketingCloudLinkedService() /// Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal SalesforceMarketingCloudLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData connectionProperties, DataFactoryElement clientId, DataFactorySecretBaseDefinition clientSecret, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal SalesforceMarketingCloudLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData connectionProperties, DataFactoryElement clientId, DataFactorySecretBaseDefinition clientSecret, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionProperties = connectionProperties; ClientId = clientId; @@ -87,36 +87,7 @@ internal SalesforceMarketingCloudLinkedService(string linkedServiceType, Integra public DataFactoryElement UseHostVerification { get; set; } /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean (or Expression with resultType boolean). public DataFactoryElement UsePeerVerification { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceMarketingCloudObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceMarketingCloudObjectDataset.cs index dd43f1769031..725932e3368c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceMarketingCloudObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceMarketingCloudObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Salesforce Marketing Cloud dataset. - public partial class SalesforceMarketingCloudObjectDataset : DataFactoryDatasetDefinition + public partial class SalesforceMarketingCloudObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of SalesforceMarketingCloudObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceObjectDataset.cs index 3ebe3f73ae96..24bc4689cdf7 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Salesforce object dataset. - public partial class SalesforceObjectDataset : DataFactoryDatasetDefinition + public partial class SalesforceObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of SalesforceObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceServiceCloudLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceServiceCloudLinkedService.Serialization.cs index 4cf4ceaef222..994da8949334 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceServiceCloudLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceServiceCloudLinkedService.Serialization.cs @@ -95,11 +95,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -131,7 +127,7 @@ internal static SalesforceServiceCloudLinkedService DeserializeSalesforceService Optional securityToken = default; Optional> apiVersion = default; Optional> extendedProperties = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -255,11 +251,7 @@ internal static SalesforceServiceCloudLinkedService DeserializeSalesforceService } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceServiceCloudLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceServiceCloudLinkedService.cs index 20c98cc70888..91629844a39c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceServiceCloudLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceServiceCloudLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for Salesforce Service Cloud. - public partial class SalesforceServiceCloudLinkedService : DataFactoryLinkedServiceDefinition + public partial class SalesforceServiceCloudLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of SalesforceServiceCloudLinkedService. public SalesforceServiceCloudLinkedService() @@ -34,7 +34,7 @@ public SalesforceServiceCloudLinkedService() /// The Salesforce API version used in ADF. Type: string (or Expression with resultType string). /// Extended properties appended to the connection string. Type: string (or Expression with resultType string). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal SalesforceServiceCloudLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement environmentUri, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactorySecretBaseDefinition securityToken, DataFactoryElement apiVersion, DataFactoryElement extendedProperties, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal SalesforceServiceCloudLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement environmentUri, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactorySecretBaseDefinition securityToken, DataFactoryElement apiVersion, DataFactoryElement extendedProperties, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { EnvironmentUri = environmentUri; Username = username; @@ -58,36 +58,7 @@ internal SalesforceServiceCloudLinkedService(string linkedServiceType, Integrati public DataFactoryElement ApiVersion { get; set; } /// Extended properties appended to the connection string. Type: string (or Expression with resultType string). public DataFactoryElement ExtendedProperties { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceServiceCloudObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceServiceCloudObjectDataset.cs index e81eca02d2d9..bf1d412ae1eb 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceServiceCloudObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceServiceCloudObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Salesforce Service Cloud object dataset. - public partial class SalesforceServiceCloudObjectDataset : DataFactoryDatasetDefinition + public partial class SalesforceServiceCloudObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of SalesforceServiceCloudObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceServiceCloudSource.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceServiceCloudSource.Serialization.cs index 96740c517adf..1bc9a2b04b85 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceServiceCloudSource.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceServiceCloudSource.Serialization.cs @@ -26,7 +26,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(ReadBehavior)) { writer.WritePropertyName("readBehavior"u8); - writer.WriteStringValue(ReadBehavior.Value.ToString()); + JsonSerializer.Serialize(writer, ReadBehavior); } if (Optional.IsDefined(AdditionalColumns)) { @@ -78,7 +78,7 @@ internal static SalesforceServiceCloudSource DeserializeSalesforceServiceCloudSo return null; } Optional> query = default; - Optional readBehavior = default; + Optional> readBehavior = default; Optional additionalColumns = default; string type = default; Optional> sourceRetryCount = default; @@ -104,7 +104,7 @@ internal static SalesforceServiceCloudSource DeserializeSalesforceServiceCloudSo { continue; } - readBehavior = new SalesforceSourceReadBehavior(property.Value.GetString()); + readBehavior = JsonSerializer.Deserialize>(property.Value.GetRawText()); continue; } if (property.NameEquals("additionalColumns"u8)) @@ -160,7 +160,7 @@ internal static SalesforceServiceCloudSource DeserializeSalesforceServiceCloudSo additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } additionalProperties = additionalPropertiesDictionary; - return new SalesforceServiceCloudSource(type, sourceRetryCount.Value, sourceRetryWait.Value, maxConcurrentConnections.Value, disableMetricsCollection.Value, additionalProperties, query.Value, Optional.ToNullable(readBehavior), additionalColumns.Value); + return new SalesforceServiceCloudSource(type, sourceRetryCount.Value, sourceRetryWait.Value, maxConcurrentConnections.Value, disableMetricsCollection.Value, additionalProperties, query.Value, readBehavior.Value, additionalColumns.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceServiceCloudSource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceServiceCloudSource.cs index 41ecc396fa64..680952bbca2f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceServiceCloudSource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceServiceCloudSource.cs @@ -28,9 +28,9 @@ public SalesforceServiceCloudSource() /// If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). /// Additional Properties. /// Database query. Type: string (or Expression with resultType string). - /// The read behavior for the operation. Default is Query. + /// The read behavior for the operation. Default is Query. Allowed values: Query/QueryAll. Type: string (or Expression with resultType string). /// Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects). - internal SalesforceServiceCloudSource(string copySourceType, DataFactoryElement sourceRetryCount, DataFactoryElement sourceRetryWait, DataFactoryElement maxConcurrentConnections, DataFactoryElement disableMetricsCollection, IDictionary additionalProperties, DataFactoryElement query, SalesforceSourceReadBehavior? readBehavior, BinaryData additionalColumns) : base(copySourceType, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, disableMetricsCollection, additionalProperties) + internal SalesforceServiceCloudSource(string copySourceType, DataFactoryElement sourceRetryCount, DataFactoryElement sourceRetryWait, DataFactoryElement maxConcurrentConnections, DataFactoryElement disableMetricsCollection, IDictionary additionalProperties, DataFactoryElement query, DataFactoryElement readBehavior, BinaryData additionalColumns) : base(copySourceType, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, disableMetricsCollection, additionalProperties) { Query = query; ReadBehavior = readBehavior; @@ -40,8 +40,8 @@ internal SalesforceServiceCloudSource(string copySourceType, DataFactoryElement< /// Database query. Type: string (or Expression with resultType string). public DataFactoryElement Query { get; set; } - /// The read behavior for the operation. Default is Query. - public SalesforceSourceReadBehavior? ReadBehavior { get; set; } + /// The read behavior for the operation. Default is Query. Allowed values: Query/QueryAll. Type: string (or Expression with resultType string). + public DataFactoryElement ReadBehavior { get; set; } /// /// Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects). /// diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceSource.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceSource.Serialization.cs index e97db9755963..519b61a4da2e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceSource.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceSource.Serialization.cs @@ -26,7 +26,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(ReadBehavior)) { writer.WritePropertyName("readBehavior"u8); - writer.WriteStringValue(ReadBehavior.Value.ToString()); + JsonSerializer.Serialize(writer, ReadBehavior); } if (Optional.IsDefined(QueryTimeout)) { @@ -83,7 +83,7 @@ internal static SalesforceSource DeserializeSalesforceSource(JsonElement element return null; } Optional> query = default; - Optional readBehavior = default; + Optional> readBehavior = default; Optional> queryTimeout = default; Optional additionalColumns = default; string type = default; @@ -110,7 +110,7 @@ internal static SalesforceSource DeserializeSalesforceSource(JsonElement element { continue; } - readBehavior = new SalesforceSourceReadBehavior(property.Value.GetString()); + readBehavior = JsonSerializer.Deserialize>(property.Value.GetRawText()); continue; } if (property.NameEquals("queryTimeout"u8)) @@ -175,7 +175,7 @@ internal static SalesforceSource DeserializeSalesforceSource(JsonElement element additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } additionalProperties = additionalPropertiesDictionary; - return new SalesforceSource(type, sourceRetryCount.Value, sourceRetryWait.Value, maxConcurrentConnections.Value, disableMetricsCollection.Value, additionalProperties, queryTimeout.Value, additionalColumns.Value, query.Value, Optional.ToNullable(readBehavior)); + return new SalesforceSource(type, sourceRetryCount.Value, sourceRetryWait.Value, maxConcurrentConnections.Value, disableMetricsCollection.Value, additionalProperties, queryTimeout.Value, additionalColumns.Value, query.Value, readBehavior.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceSource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceSource.cs index 87e00bda596f..83803c0fec68 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceSource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceSource.cs @@ -30,8 +30,8 @@ public SalesforceSource() /// Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). /// Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects). /// Database query. Type: string (or Expression with resultType string). - /// The read behavior for the operation. Default is Query. - internal SalesforceSource(string copySourceType, DataFactoryElement sourceRetryCount, DataFactoryElement sourceRetryWait, DataFactoryElement maxConcurrentConnections, DataFactoryElement disableMetricsCollection, IDictionary additionalProperties, DataFactoryElement queryTimeout, BinaryData additionalColumns, DataFactoryElement query, SalesforceSourceReadBehavior? readBehavior) : base(copySourceType, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, disableMetricsCollection, additionalProperties, queryTimeout, additionalColumns) + /// The read behavior for the operation. Default is Query. Allowed values: Query/QueryAll. Type: string (or Expression with resultType string). + internal SalesforceSource(string copySourceType, DataFactoryElement sourceRetryCount, DataFactoryElement sourceRetryWait, DataFactoryElement maxConcurrentConnections, DataFactoryElement disableMetricsCollection, IDictionary additionalProperties, DataFactoryElement queryTimeout, BinaryData additionalColumns, DataFactoryElement query, DataFactoryElement readBehavior) : base(copySourceType, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, disableMetricsCollection, additionalProperties, queryTimeout, additionalColumns) { Query = query; ReadBehavior = readBehavior; @@ -40,7 +40,7 @@ internal SalesforceSource(string copySourceType, DataFactoryElement sourceR /// Database query. Type: string (or Expression with resultType string). public DataFactoryElement Query { get; set; } - /// The read behavior for the operation. Default is Query. - public SalesforceSourceReadBehavior? ReadBehavior { get; set; } + /// The read behavior for the operation. Default is Query. Allowed values: Query/QueryAll. Type: string (or Expression with resultType string). + public DataFactoryElement ReadBehavior { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceSourceReadBehavior.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceSourceReadBehavior.cs deleted file mode 100644 index 79385fbdb011..000000000000 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SalesforceSourceReadBehavior.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.DataFactory.Models -{ - /// The read behavior for the operation. Default is Query. - public readonly partial struct SalesforceSourceReadBehavior : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public SalesforceSourceReadBehavior(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string QueryValue = "Query"; - private const string QueryAllValue = "QueryAll"; - - /// Query. - public static SalesforceSourceReadBehavior Query { get; } = new SalesforceSourceReadBehavior(QueryValue); - /// QueryAll. - public static SalesforceSourceReadBehavior QueryAll { get; } = new SalesforceSourceReadBehavior(QueryAllValue); - /// Determines if two values are the same. - public static bool operator ==(SalesforceSourceReadBehavior left, SalesforceSourceReadBehavior right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(SalesforceSourceReadBehavior left, SalesforceSourceReadBehavior right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator SalesforceSourceReadBehavior(string value) => new SalesforceSourceReadBehavior(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is SalesforceSourceReadBehavior other && Equals(other); - /// - public bool Equals(SalesforceSourceReadBehavior other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBwCubeDataset.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBWCubeDataset.Serialization.cs similarity index 97% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBwCubeDataset.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBWCubeDataset.Serialization.cs index 77b23c818e7f..aecded013d2a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBwCubeDataset.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBWCubeDataset.Serialization.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class SapBwCubeDataset : IUtf8JsonSerializable + public partial class SapBWCubeDataset : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -83,7 +83,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static SapBwCubeDataset DeserializeSapBwCubeDataset(JsonElement element) + internal static SapBWCubeDataset DeserializeSapBWCubeDataset(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -181,7 +181,7 @@ internal static SapBwCubeDataset DeserializeSapBwCubeDataset(JsonElement element additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } additionalProperties = additionalPropertiesDictionary; - return new SapBwCubeDataset(type, description.Value, structure.Value, schema.Value, linkedServiceName, Optional.ToDictionary(parameters), Optional.ToList(annotations), folder.Value, additionalProperties); + return new SapBWCubeDataset(type, description.Value, structure.Value, schema.Value, linkedServiceName, Optional.ToDictionary(parameters), Optional.ToList(annotations), folder.Value, additionalProperties); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBwCubeDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBWCubeDataset.cs similarity index 87% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBwCubeDataset.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBWCubeDataset.cs index 6907c172e97b..32093578c2f0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBwCubeDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBWCubeDataset.cs @@ -13,19 +13,19 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The SAP BW cube dataset. - public partial class SapBwCubeDataset : DataFactoryDatasetDefinition + public partial class SapBWCubeDataset : DataFactoryDatasetProperties { - /// Initializes a new instance of SapBwCubeDataset. + /// Initializes a new instance of SapBWCubeDataset. /// Linked service reference. /// is null. - public SapBwCubeDataset(DataFactoryLinkedServiceReference linkedServiceName) : base(linkedServiceName) + public SapBWCubeDataset(DataFactoryLinkedServiceReference linkedServiceName) : base(linkedServiceName) { Argument.AssertNotNull(linkedServiceName, nameof(linkedServiceName)); DatasetType = "SapBwCube"; } - /// Initializes a new instance of SapBwCubeDataset. + /// Initializes a new instance of SapBWCubeDataset. /// Type of dataset. /// Dataset description. /// Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. @@ -35,7 +35,7 @@ public SapBwCubeDataset(DataFactoryLinkedServiceReference linkedServiceName) : b /// List of tags that can be used for describing the Dataset. /// The folder that this Dataset is in. If not specified, Dataset will appear at the root level. /// Additional Properties. - internal SapBwCubeDataset(string datasetType, string description, DataFactoryElement> structure, DataFactoryElement> schema, DataFactoryLinkedServiceReference linkedServiceName, IDictionary parameters, IList annotations, DatasetFolder folder, IDictionary additionalProperties) : base(datasetType, description, structure, schema, linkedServiceName, parameters, annotations, folder, additionalProperties) + internal SapBWCubeDataset(string datasetType, string description, DataFactoryElement> structure, DataFactoryElement> schema, DataFactoryLinkedServiceReference linkedServiceName, IDictionary parameters, IList annotations, DatasetFolder folder, IDictionary additionalProperties) : base(datasetType, description, structure, schema, linkedServiceName, parameters, annotations, folder, additionalProperties) { DatasetType = datasetType ?? "SapBwCube"; } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBWLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBWLinkedService.Serialization.cs index 957236e7e0d6..3ea14473deed 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBWLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBWLinkedService.Serialization.cs @@ -81,11 +81,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -116,7 +112,7 @@ internal static SapBWLinkedService DeserializeSapBWLinkedService(JsonElement ele DataFactoryElement clientId = default; Optional> userName = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -219,11 +215,7 @@ internal static SapBWLinkedService DeserializeSapBWLinkedService(JsonElement ele } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBWLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBWLinkedService.cs index 5fb9dc6b07c7..575491ee714d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBWLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBWLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// SAP Business Warehouse Linked Service. - public partial class SapBWLinkedService : DataFactoryLinkedServiceDefinition + public partial class SapBWLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of SapBWLinkedService. /// Host name of the SAP BW instance. Type: string (or Expression with resultType string). @@ -45,7 +45,7 @@ public SapBWLinkedService(DataFactoryElement server, DataFactoryElement< /// Username to access the SAP BW server. Type: string (or Expression with resultType string). /// Password to access the SAP BW server. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal SapBWLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement server, DataFactoryElement systemNumber, DataFactoryElement clientId, DataFactoryElement userName, DataFactorySecretBaseDefinition password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal SapBWLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement server, DataFactoryElement systemNumber, DataFactoryElement clientId, DataFactoryElement userName, DataFactorySecretBaseDefinition password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Server = server; SystemNumber = systemNumber; @@ -66,36 +66,7 @@ internal SapBWLinkedService(string linkedServiceType, IntegrationRuntimeReferenc public DataFactoryElement UserName { get; set; } /// Password to access the SAP BW server. public DataFactorySecretBaseDefinition Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBwSource.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBWSource.Serialization.cs similarity index 97% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBwSource.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBWSource.Serialization.cs index 1a8bd6b9d604..8140ef929139 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBwSource.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBWSource.Serialization.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class SapBwSource : IUtf8JsonSerializable + public partial class SapBWSource : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -71,7 +71,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static SapBwSource DeserializeSapBwSource(JsonElement element) + internal static SapBWSource DeserializeSapBWSource(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -160,7 +160,7 @@ internal static SapBwSource DeserializeSapBwSource(JsonElement element) additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } additionalProperties = additionalPropertiesDictionary; - return new SapBwSource(type, sourceRetryCount.Value, sourceRetryWait.Value, maxConcurrentConnections.Value, disableMetricsCollection.Value, additionalProperties, queryTimeout.Value, additionalColumns.Value, query.Value); + return new SapBWSource(type, sourceRetryCount.Value, sourceRetryWait.Value, maxConcurrentConnections.Value, disableMetricsCollection.Value, additionalProperties, queryTimeout.Value, additionalColumns.Value, query.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBwSource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBWSource.cs similarity index 90% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBwSource.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBWSource.cs index a716b404a81e..1c0fd640b4c2 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBwSource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapBWSource.cs @@ -12,15 +12,15 @@ namespace Azure.ResourceManager.DataFactory.Models { /// A copy activity source for SapBW server via MDX. - public partial class SapBwSource : TabularSource + public partial class SapBWSource : TabularSource { - /// Initializes a new instance of SapBwSource. - public SapBwSource() + /// Initializes a new instance of SapBWSource. + public SapBWSource() { CopySourceType = "SapBwSource"; } - /// Initializes a new instance of SapBwSource. + /// Initializes a new instance of SapBWSource. /// Copy source type. /// Source retry count. Type: integer (or Expression with resultType integer). /// Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). @@ -30,7 +30,7 @@ public SapBwSource() /// Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). /// Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects). /// MDX query. Type: string (or Expression with resultType string). - internal SapBwSource(string copySourceType, DataFactoryElement sourceRetryCount, DataFactoryElement sourceRetryWait, DataFactoryElement maxConcurrentConnections, DataFactoryElement disableMetricsCollection, IDictionary additionalProperties, DataFactoryElement queryTimeout, BinaryData additionalColumns, DataFactoryElement query) : base(copySourceType, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, disableMetricsCollection, additionalProperties, queryTimeout, additionalColumns) + internal SapBWSource(string copySourceType, DataFactoryElement sourceRetryCount, DataFactoryElement sourceRetryWait, DataFactoryElement maxConcurrentConnections, DataFactoryElement disableMetricsCollection, IDictionary additionalProperties, DataFactoryElement queryTimeout, BinaryData additionalColumns, DataFactoryElement query) : base(copySourceType, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, disableMetricsCollection, additionalProperties, queryTimeout, additionalColumns) { Query = query; CopySourceType = copySourceType ?? "SapBwSource"; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapCloudForCustomerLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapCloudForCustomerLinkedService.Serialization.cs index cb19d28e7c8b..58b310b2f587 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapCloudForCustomerLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapCloudForCustomerLinkedService.Serialization.cs @@ -77,11 +77,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -110,7 +106,7 @@ internal static SapCloudForCustomerLinkedService DeserializeSapCloudForCustomerL DataFactoryElement url = default; Optional> username = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -203,11 +199,7 @@ internal static SapCloudForCustomerLinkedService DeserializeSapCloudForCustomerL } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapCloudForCustomerLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapCloudForCustomerLinkedService.cs index 764414b2fca2..8a8042cc1ee7 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapCloudForCustomerLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapCloudForCustomerLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for SAP Cloud for Customer. - public partial class SapCloudForCustomerLinkedService : DataFactoryLinkedServiceDefinition + public partial class SapCloudForCustomerLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of SapCloudForCustomerLinkedService. /// The URL of SAP Cloud for Customer OData API. For example, '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. Type: string (or Expression with resultType string). @@ -37,7 +37,7 @@ public SapCloudForCustomerLinkedService(DataFactoryElement uri) /// The username for Basic authentication. Type: string (or Expression with resultType string). /// The password for Basic authentication. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Either encryptedCredential or username/password must be provided. Type: string. - internal SapCloudForCustomerLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement uri, DataFactoryElement username, DataFactorySecretBaseDefinition password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal SapCloudForCustomerLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement uri, DataFactoryElement username, DataFactorySecretBaseDefinition password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Uri = uri; Username = username; @@ -52,36 +52,7 @@ internal SapCloudForCustomerLinkedService(string linkedServiceType, IntegrationR public DataFactoryElement Username { get; set; } /// The password for Basic authentication. public DataFactorySecretBaseDefinition Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Either encryptedCredential or username/password must be provided. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Either encryptedCredential or username/password must be provided. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapCloudForCustomerResourceDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapCloudForCustomerResourceDataset.cs index 617653b71b18..bb1ade26d99e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapCloudForCustomerResourceDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapCloudForCustomerResourceDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The path of the SAP Cloud for Customer OData entity. - public partial class SapCloudForCustomerResourceDataset : DataFactoryDatasetDefinition + public partial class SapCloudForCustomerResourceDataset : DataFactoryDatasetProperties { /// Initializes a new instance of SapCloudForCustomerResourceDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapEccLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapEccLinkedService.Serialization.cs index 80b22a66dd3e..f208a8083493 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapEccLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapEccLinkedService.Serialization.cs @@ -77,11 +77,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -110,7 +106,7 @@ internal static SapEccLinkedService DeserializeSapEccLinkedService(JsonElement e DataFactoryElement url = default; Optional> username = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -203,11 +199,7 @@ internal static SapEccLinkedService DeserializeSapEccLinkedService(JsonElement e } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapEccLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapEccLinkedService.cs index f2bdb4870b78..057629ff7c1a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapEccLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapEccLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for SAP ERP Central Component(SAP ECC). - public partial class SapEccLinkedService : DataFactoryLinkedServiceDefinition + public partial class SapEccLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of SapEccLinkedService. /// The URL of SAP ECC OData API. For example, '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string (or Expression with resultType string). @@ -37,7 +37,7 @@ public SapEccLinkedService(DataFactoryElement uri) /// The username for Basic authentication. Type: string (or Expression with resultType string). /// The password for Basic authentication. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Either encryptedCredential or username/password must be provided. Type: string. - internal SapEccLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement uri, DataFactoryElement username, DataFactorySecretBaseDefinition password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal SapEccLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement uri, DataFactoryElement username, DataFactorySecretBaseDefinition password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Uri = uri; Username = username; @@ -52,36 +52,7 @@ internal SapEccLinkedService(string linkedServiceType, IntegrationRuntimeReferen public DataFactoryElement Username { get; set; } /// The password for Basic authentication. public DataFactorySecretBaseDefinition Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Either encryptedCredential or username/password must be provided. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Either encryptedCredential or username/password must be provided. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapEccResourceDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapEccResourceDataset.cs index d5aee621c8bf..0a20e9b1101e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapEccResourceDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapEccResourceDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The path of the SAP ECC OData entity. - public partial class SapEccResourceDataset : DataFactoryDatasetDefinition + public partial class SapEccResourceDataset : DataFactoryDatasetProperties { /// Initializes a new instance of SapEccResourceDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapHanaLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapHanaLinkedService.Serialization.cs index 2e7dd0063805..29d3eb91d2e7 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapHanaLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapHanaLinkedService.Serialization.cs @@ -90,11 +90,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -125,7 +121,7 @@ internal static SapHanaLinkedService DeserializeSapHanaLinkedService(JsonElement Optional authenticationType = default; Optional> userName = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -240,11 +236,7 @@ internal static SapHanaLinkedService DeserializeSapHanaLinkedService(JsonElement } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapHanaLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapHanaLinkedService.cs index 47ea945fffb1..a3e57e4e28ed 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapHanaLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapHanaLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// SAP HANA Linked Service. - public partial class SapHanaLinkedService : DataFactoryLinkedServiceDefinition + public partial class SapHanaLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of SapHanaLinkedService. public SapHanaLinkedService() @@ -33,7 +33,7 @@ public SapHanaLinkedService() /// Username to access the SAP HANA server. Type: string (or Expression with resultType string). /// Password to access the SAP HANA server. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal SapHanaLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryElement server, SapHanaAuthenticationType? authenticationType, DataFactoryElement userName, DataFactorySecretBaseDefinition password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal SapHanaLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryElement server, SapHanaAuthenticationType? authenticationType, DataFactoryElement userName, DataFactorySecretBaseDefinition password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; Server = server; @@ -54,36 +54,7 @@ internal SapHanaLinkedService(string linkedServiceType, IntegrationRuntimeRefere public DataFactoryElement UserName { get; set; } /// Password to access the SAP HANA server. public DataFactorySecretBaseDefinition Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapHanaTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapHanaTableDataset.cs index 06ba4a61a823..f4003d98f4f4 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapHanaTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapHanaTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// SAP HANA Table properties. - public partial class SapHanaTableDataset : DataFactoryDatasetDefinition + public partial class SapHanaTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of SapHanaTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOdpLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOdpLinkedService.Serialization.cs index ffe20a84b8dd..2772260ff4db 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOdpLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOdpLinkedService.Serialization.cs @@ -150,11 +150,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -197,7 +193,7 @@ internal static SapOdpLinkedService DeserializeSapOdpLinkedService(JsonElement e Optional> x509CertificatePath = default; Optional> logonGroup = default; Optional> subscriberName = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -420,11 +416,7 @@ internal static SapOdpLinkedService DeserializeSapOdpLinkedService(JsonElement e } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOdpLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOdpLinkedService.cs index b3a74a09ea2a..119aa471c004 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOdpLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOdpLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// SAP ODP Linked Service. - public partial class SapOdpLinkedService : DataFactoryLinkedServiceDefinition + public partial class SapOdpLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of SapOdpLinkedService. public SapOdpLinkedService() @@ -45,7 +45,7 @@ public SapOdpLinkedService() /// The Logon Group for the SAP System. Type: string (or Expression with resultType string). /// The subscriber name. Type: string (or Expression with resultType string). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal SapOdpLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement server, DataFactoryElement systemNumber, DataFactoryElement clientId, DataFactoryElement language, DataFactoryElement systemId, DataFactoryElement userName, DataFactorySecretBaseDefinition password, DataFactoryElement messageServer, DataFactoryElement messageServerService, DataFactoryElement sncMode, DataFactoryElement sncMyName, DataFactoryElement sncPartnerName, DataFactoryElement sncLibraryPath, DataFactoryElement sncQop, DataFactoryElement x509CertificatePath, DataFactoryElement logonGroup, DataFactoryElement subscriberName, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal SapOdpLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement server, DataFactoryElement systemNumber, DataFactoryElement clientId, DataFactoryElement language, DataFactoryElement systemId, DataFactoryElement userName, DataFactorySecretBaseDefinition password, DataFactoryElement messageServer, DataFactoryElement messageServerService, DataFactoryElement sncMode, DataFactoryElement sncMyName, DataFactoryElement sncPartnerName, DataFactoryElement sncLibraryPath, DataFactoryElement sncQop, DataFactoryElement x509CertificatePath, DataFactoryElement logonGroup, DataFactoryElement subscriberName, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Server = server; SystemNumber = systemNumber; @@ -102,36 +102,7 @@ internal SapOdpLinkedService(string linkedServiceType, IntegrationRuntimeReferen public DataFactoryElement LogonGroup { get; set; } /// The subscriber name. Type: string (or Expression with resultType string). public DataFactoryElement SubscriberName { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOdpResourceDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOdpResourceDataset.cs index bdd62f2a1a2f..6b02c57e9864 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOdpResourceDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOdpResourceDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// SAP ODP Resource properties. - public partial class SapOdpResourceDataset : DataFactoryDatasetDefinition + public partial class SapOdpResourceDataset : DataFactoryDatasetProperties { /// Initializes a new instance of SapOdpResourceDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOpenHubLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOpenHubLinkedService.Serialization.cs index 4f7c1207b7a2..e4cbfc9f3153 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOpenHubLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOpenHubLinkedService.Serialization.cs @@ -115,11 +115,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -155,7 +151,7 @@ internal static SapOpenHubLinkedService DeserializeSapOpenHubLinkedService(JsonE Optional> messageServer = default; Optional> messageServerService = default; Optional> logonGroup = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -315,11 +311,7 @@ internal static SapOpenHubLinkedService DeserializeSapOpenHubLinkedService(JsonE } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOpenHubLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOpenHubLinkedService.cs index 5344dc3865b3..e066a2458faa 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOpenHubLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOpenHubLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// SAP Business Warehouse Open Hub Destination Linked Service. - public partial class SapOpenHubLinkedService : DataFactoryLinkedServiceDefinition + public partial class SapOpenHubLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of SapOpenHubLinkedService. public SapOpenHubLinkedService() @@ -38,7 +38,7 @@ public SapOpenHubLinkedService() /// The service name or port number of the Message Server. Type: string (or Expression with resultType string). /// The Logon Group for the SAP System. Type: string (or Expression with resultType string). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal SapOpenHubLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement server, DataFactoryElement systemNumber, DataFactoryElement clientId, DataFactoryElement language, DataFactoryElement systemId, DataFactoryElement userName, DataFactorySecretBaseDefinition password, DataFactoryElement messageServer, DataFactoryElement messageServerService, DataFactoryElement logonGroup, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal SapOpenHubLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement server, DataFactoryElement systemNumber, DataFactoryElement clientId, DataFactoryElement language, DataFactoryElement systemId, DataFactoryElement userName, DataFactorySecretBaseDefinition password, DataFactoryElement messageServer, DataFactoryElement messageServerService, DataFactoryElement logonGroup, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Server = server; SystemNumber = systemNumber; @@ -74,36 +74,7 @@ internal SapOpenHubLinkedService(string linkedServiceType, IntegrationRuntimeRef public DataFactoryElement MessageServerService { get; set; } /// The Logon Group for the SAP System. Type: string (or Expression with resultType string). public DataFactoryElement LogonGroup { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOpenHubTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOpenHubTableDataset.cs index d40f0645d3f9..baf8587c3078 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOpenHubTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapOpenHubTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Sap Business Warehouse Open Hub Destination Table properties. - public partial class SapOpenHubTableDataset : DataFactoryDatasetDefinition + public partial class SapOpenHubTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of SapOpenHubTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapTableLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapTableLinkedService.Serialization.cs index 85ba06f4e2df..53e2e99209ae 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapTableLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapTableLinkedService.Serialization.cs @@ -140,11 +140,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -185,7 +181,7 @@ internal static SapTableLinkedService DeserializeSapTableLinkedService(JsonEleme Optional> sncLibraryPath = default; Optional> sncQop = default; Optional> logonGroup = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -390,11 +386,7 @@ internal static SapTableLinkedService DeserializeSapTableLinkedService(JsonEleme } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapTableLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapTableLinkedService.cs index e3862613a417..f57fe2cd79ab 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapTableLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapTableLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// SAP Table Linked Service. - public partial class SapTableLinkedService : DataFactoryLinkedServiceDefinition + public partial class SapTableLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of SapTableLinkedService. public SapTableLinkedService() @@ -43,7 +43,7 @@ public SapTableLinkedService() /// SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or Expression with resultType string). /// The Logon Group for the SAP System. Type: string (or Expression with resultType string). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal SapTableLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement server, DataFactoryElement systemNumber, DataFactoryElement clientId, DataFactoryElement language, DataFactoryElement systemId, DataFactoryElement userName, DataFactorySecretBaseDefinition password, DataFactoryElement messageServer, DataFactoryElement messageServerService, DataFactoryElement sncMode, DataFactoryElement sncMyName, DataFactoryElement sncPartnerName, DataFactoryElement sncLibraryPath, DataFactoryElement sncQop, DataFactoryElement logonGroup, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal SapTableLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement server, DataFactoryElement systemNumber, DataFactoryElement clientId, DataFactoryElement language, DataFactoryElement systemId, DataFactoryElement userName, DataFactorySecretBaseDefinition password, DataFactoryElement messageServer, DataFactoryElement messageServerService, DataFactoryElement sncMode, DataFactoryElement sncMyName, DataFactoryElement sncPartnerName, DataFactoryElement sncLibraryPath, DataFactoryElement sncQop, DataFactoryElement logonGroup, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Server = server; SystemNumber = systemNumber; @@ -94,36 +94,7 @@ internal SapTableLinkedService(string linkedServiceType, IntegrationRuntimeRefer public DataFactoryElement SncQop { get; set; } /// The Logon Group for the SAP System. Type: string (or Expression with resultType string). public DataFactoryElement LogonGroup { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapTableResourceDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapTableResourceDataset.cs index 8a6359d88cbf..3f1c735b2775 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapTableResourceDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SapTableResourceDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// SAP Table Resource properties. - public partial class SapTableResourceDataset : DataFactoryDatasetDefinition + public partial class SapTableResourceDataset : DataFactoryDatasetProperties { /// Initializes a new instance of SapTableResourceDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScheduleTriggerRecurrence.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScheduleTriggerRecurrence.Serialization.cs index 316f79559d08..f637ef49efb0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScheduleTriggerRecurrence.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScheduleTriggerRecurrence.Serialization.cs @@ -65,12 +65,12 @@ internal static ScheduleTriggerRecurrence DeserializeScheduleTriggerRecurrence(J { return null; } - Optional frequency = default; + Optional frequency = default; Optional interval = default; Optional startTime = default; Optional endTime = default; Optional timeZone = default; - Optional schedule = default; + Optional schedule = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -81,7 +81,7 @@ internal static ScheduleTriggerRecurrence DeserializeScheduleTriggerRecurrence(J { continue; } - frequency = new RecurrenceFrequency(property.Value.GetString()); + frequency = new DataFactoryRecurrenceFrequency(property.Value.GetString()); continue; } if (property.NameEquals("interval"u8)) @@ -122,7 +122,7 @@ internal static ScheduleTriggerRecurrence DeserializeScheduleTriggerRecurrence(J { continue; } - schedule = RecurrenceSchedule.DeserializeRecurrenceSchedule(property.Value); + schedule = DataFactoryRecurrenceSchedule.DeserializeDataFactoryRecurrenceSchedule(property.Value); continue; } additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScheduleTriggerRecurrence.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScheduleTriggerRecurrence.cs index 13b2bac1e25a..53282870ea55 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScheduleTriggerRecurrence.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScheduleTriggerRecurrence.cs @@ -28,7 +28,7 @@ public ScheduleTriggerRecurrence() /// The time zone. /// The recurrence schedule. /// Additional Properties. - internal ScheduleTriggerRecurrence(RecurrenceFrequency? frequency, int? interval, DateTimeOffset? startOn, DateTimeOffset? endOn, string timeZone, RecurrenceSchedule schedule, IDictionary additionalProperties) + internal ScheduleTriggerRecurrence(DataFactoryRecurrenceFrequency? frequency, int? interval, DateTimeOffset? startOn, DateTimeOffset? endOn, string timeZone, DataFactoryRecurrenceSchedule schedule, IDictionary additionalProperties) { Frequency = frequency; Interval = interval; @@ -40,7 +40,7 @@ internal ScheduleTriggerRecurrence(RecurrenceFrequency? frequency, int? interval } /// The frequency. - public RecurrenceFrequency? Frequency { get; set; } + public DataFactoryRecurrenceFrequency? Frequency { get; set; } /// The interval. public int? Interval { get; set; } /// The start time. @@ -50,7 +50,7 @@ internal ScheduleTriggerRecurrence(RecurrenceFrequency? frequency, int? interval /// The time zone. public string TimeZone { get; set; } /// The recurrence schedule. - public RecurrenceSchedule Schedule { get; set; } + public DataFactoryRecurrenceSchedule Schedule { get; set; } /// /// Additional Properties /// diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.Serialization.cs index 02a44e58ebaa..9efa242e19f9 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.Serialization.cs @@ -41,7 +41,7 @@ internal static ScriptActivityScriptBlock DeserializeScriptActivityScriptBlock(J return null; } DataFactoryElement text = default; - ScriptType type = default; + DataFactoryScriptType type = default; Optional> parameters = default; foreach (var property in element.EnumerateObject()) { @@ -52,7 +52,7 @@ internal static ScriptActivityScriptBlock DeserializeScriptActivityScriptBlock(J } if (property.NameEquals("type"u8)) { - type = new ScriptType(property.Value.GetString()); + type = new DataFactoryScriptType(property.Value.GetString()); continue; } if (property.NameEquals("parameters"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.cs index 0e1bb8289915..b0604829722f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.cs @@ -19,7 +19,7 @@ public partial class ScriptActivityScriptBlock /// The query text. Type: string (or Expression with resultType string). /// The type of the query. Type: string. /// is null. - public ScriptActivityScriptBlock(DataFactoryElement text, ScriptType scriptType) + public ScriptActivityScriptBlock(DataFactoryElement text, DataFactoryScriptType scriptType) { Argument.AssertNotNull(text, nameof(text)); @@ -32,7 +32,7 @@ public ScriptActivityScriptBlock(DataFactoryElement text, ScriptType scr /// The query text. Type: string (or Expression with resultType string). /// The type of the query. Type: string. /// Array of script parameters. Type: array. - internal ScriptActivityScriptBlock(DataFactoryElement text, ScriptType scriptType, IList parameters) + internal ScriptActivityScriptBlock(DataFactoryElement text, DataFactoryScriptType scriptType, IList parameters) { Text = text; ScriptType = scriptType; @@ -42,7 +42,7 @@ internal ScriptActivityScriptBlock(DataFactoryElement text, ScriptType s /// The query text. Type: string (or Expression with resultType string). public DataFactoryElement Text { get; set; } /// The type of the query. Type: string. - public ScriptType ScriptType { get; set; } + public DataFactoryScriptType ScriptType { get; set; } /// Array of script parameters. Type: array. public IList Parameters { get; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityTypePropertiesLogSettings.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityTypeLogSettings.Serialization.cs similarity index 83% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityTypePropertiesLogSettings.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityTypeLogSettings.Serialization.cs index 7125a361f063..33f25a5a62d0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityTypePropertiesLogSettings.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityTypeLogSettings.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.DataFactory.Models { - public partial class ScriptActivityTypePropertiesLogSettings : IUtf8JsonSerializable + public partial class ScriptActivityTypeLogSettings : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -25,7 +25,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ScriptActivityTypePropertiesLogSettings DeserializeScriptActivityTypePropertiesLogSettings(JsonElement element) + internal static ScriptActivityTypeLogSettings DeserializeScriptActivityTypeLogSettings(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -50,7 +50,7 @@ internal static ScriptActivityTypePropertiesLogSettings DeserializeScriptActivit continue; } } - return new ScriptActivityTypePropertiesLogSettings(logDestination, logLocationSettings.Value); + return new ScriptActivityTypeLogSettings(logDestination, logLocationSettings.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityTypePropertiesLogSettings.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityTypeLogSettings.cs similarity index 75% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityTypePropertiesLogSettings.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityTypeLogSettings.cs index 0874cf63513b..0c70f5d62d8f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityTypePropertiesLogSettings.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityTypeLogSettings.cs @@ -8,19 +8,19 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Log settings of script activity. - public partial class ScriptActivityTypePropertiesLogSettings + public partial class ScriptActivityTypeLogSettings { - /// Initializes a new instance of ScriptActivityTypePropertiesLogSettings. + /// Initializes a new instance of ScriptActivityTypeLogSettings. /// The destination of logs. Type: string. - public ScriptActivityTypePropertiesLogSettings(ScriptActivityLogDestination logDestination) + public ScriptActivityTypeLogSettings(ScriptActivityLogDestination logDestination) { LogDestination = logDestination; } - /// Initializes a new instance of ScriptActivityTypePropertiesLogSettings. + /// Initializes a new instance of ScriptActivityTypeLogSettings. /// The destination of logs. Type: string. /// Log location settings customer needs to provide when enabling log. - internal ScriptActivityTypePropertiesLogSettings(ScriptActivityLogDestination logDestination, LogLocationSettings logLocationSettings) + internal ScriptActivityTypeLogSettings(ScriptActivityLogDestination logDestination, LogLocationSettings logLocationSettings) { LogDestination = logDestination; LogLocationSettings = logLocationSettings; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptType.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptType.cs deleted file mode 100644 index 64cff9a97a33..000000000000 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptType.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.DataFactory.Models -{ - /// The type of the query. Type: string. - public readonly partial struct ScriptType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ScriptType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string QueryValue = "Query"; - private const string NonQueryValue = "NonQuery"; - - /// Query. - public static ScriptType Query { get; } = new ScriptType(QueryValue); - /// NonQuery. - public static ScriptType NonQuery { get; } = new ScriptType(NonQueryValue); - /// Determines if two values are the same. - public static bool operator ==(ScriptType left, ScriptType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ScriptType left, ScriptType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator ScriptType(string value) => new ScriptType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ScriptType other && Equals(other); - /// - public bool Equals(ScriptType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SecureInputOutputPolicy.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SecureInputOutputPolicy.Serialization.cs new file mode 100644 index 000000000000..f3d8ecadd0c2 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SecureInputOutputPolicy.Serialization.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.DataFactory.Models +{ + public partial class SecureInputOutputPolicy : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(IsSecureInputEnabled)) + { + writer.WritePropertyName("secureInput"u8); + writer.WriteBooleanValue(IsSecureInputEnabled.Value); + } + if (Optional.IsDefined(IsSecureOutputEnabled)) + { + writer.WritePropertyName("secureOutput"u8); + writer.WriteBooleanValue(IsSecureOutputEnabled.Value); + } + writer.WriteEndObject(); + } + + internal static SecureInputOutputPolicy DeserializeSecureInputOutputPolicy(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional secureInput = default; + Optional secureOutput = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("secureInput"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + secureInput = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("secureOutput"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + secureOutput = property.Value.GetBoolean(); + continue; + } + } + return new SecureInputOutputPolicy(Optional.ToNullable(secureInput), Optional.ToNullable(secureOutput)); + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SecureInputOutputPolicy.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SecureInputOutputPolicy.cs new file mode 100644 index 000000000000..70891116f011 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SecureInputOutputPolicy.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.DataFactory.Models +{ + /// Execution policy for an activity that supports secure input and output. + public partial class SecureInputOutputPolicy + { + /// Initializes a new instance of SecureInputOutputPolicy. + public SecureInputOutputPolicy() + { + } + + /// Initializes a new instance of SecureInputOutputPolicy. + /// When set to true, Input from activity is considered as secure and will not be logged to monitoring. + /// When set to true, Output from activity is considered as secure and will not be logged to monitoring. + internal SecureInputOutputPolicy(bool? isSecureInputEnabled, bool? isSecureOutputEnabled) + { + IsSecureInputEnabled = isSecureInputEnabled; + IsSecureOutputEnabled = isSecureOutputEnabled; + } + + /// When set to true, Input from activity is considered as secure and will not be logged to monitoring. + public bool? IsSecureInputEnabled { get; set; } + /// When set to true, Output from activity is considered as secure and will not be logged to monitoring. + public bool? IsSecureOutputEnabled { get; set; } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SelfHostedIntegrationRuntime.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SelfHostedIntegrationRuntime.cs index 8b38ccc31cc6..fe0b6424d608 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SelfHostedIntegrationRuntime.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SelfHostedIntegrationRuntime.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Self-hosted integration runtime. - public partial class SelfHostedIntegrationRuntime : DataFactoryIntegrationRuntimeDefinition + public partial class SelfHostedIntegrationRuntime : DataFactoryIntegrationRuntimeProperties { /// Initializes a new instance of SelfHostedIntegrationRuntime. public SelfHostedIntegrationRuntime() diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SelfHostedIntegrationRuntimeStatus.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SelfHostedIntegrationRuntimeStatus.Serialization.cs index 64a1bb841f8d..fb92a29a8e22 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SelfHostedIntegrationRuntimeStatus.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SelfHostedIntegrationRuntimeStatus.Serialization.cs @@ -33,7 +33,7 @@ internal static SelfHostedIntegrationRuntimeStatus DeserializeSelfHostedIntegrat Optional localTimeZoneOffset = default; Optional> capabilities = default; Optional> serviceUrls = default; - Optional autoUpdate = default; + Optional autoUpdate = default; Optional versionStatus = default; Optional> links = default; Optional pushedVersion = default; @@ -185,7 +185,7 @@ internal static SelfHostedIntegrationRuntimeStatus DeserializeSelfHostedIntegrat { continue; } - autoUpdate = new IntegrationRuntimeAutoUpdate(property0.Value.GetString()); + autoUpdate = new IntegrationRuntimeAutoUpdateState(property0.Value.GetString()); continue; } if (property0.NameEquals("versionStatus"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SelfHostedIntegrationRuntimeStatus.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SelfHostedIntegrationRuntimeStatus.cs index 0612f6190ab6..4574fb58ba3a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SelfHostedIntegrationRuntimeStatus.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SelfHostedIntegrationRuntimeStatus.cs @@ -45,7 +45,7 @@ internal SelfHostedIntegrationRuntimeStatus() /// The version that the integration runtime is going to update to. /// The latest version on download center. /// The estimated time when the self-hosted integration runtime will be updated. - internal SelfHostedIntegrationRuntimeStatus(IntegrationRuntimeType runtimeType, string dataFactoryName, IntegrationRuntimeState? state, IReadOnlyDictionary additionalProperties, DateTimeOffset? createdOn, Guid? taskQueueId, IntegrationRuntimeInternalChannelEncryptionMode? internalChannelEncryption, string version, IReadOnlyList nodes, DateTimeOffset? scheduledUpdateOn, TimeSpan? updateDelayOffset, TimeSpan? localTimeZoneOffset, IReadOnlyDictionary capabilities, IReadOnlyList serviceUris, IntegrationRuntimeAutoUpdate? autoUpdate, string versionStatus, IReadOnlyList links, string pushedVersion, string latestVersion, DateTimeOffset? autoUpdateEta) : base(runtimeType, dataFactoryName, state, additionalProperties) + internal SelfHostedIntegrationRuntimeStatus(IntegrationRuntimeType runtimeType, string dataFactoryName, IntegrationRuntimeState? state, IReadOnlyDictionary additionalProperties, DateTimeOffset? createdOn, Guid? taskQueueId, IntegrationRuntimeInternalChannelEncryptionMode? internalChannelEncryption, string version, IReadOnlyList nodes, DateTimeOffset? scheduledUpdateOn, TimeSpan? updateDelayOffset, TimeSpan? localTimeZoneOffset, IReadOnlyDictionary capabilities, IReadOnlyList serviceUris, IntegrationRuntimeAutoUpdateState? autoUpdate, string versionStatus, IReadOnlyList links, string pushedVersion, string latestVersion, DateTimeOffset? autoUpdateEta) : base(runtimeType, dataFactoryName, state, additionalProperties) { CreatedOn = createdOn; TaskQueueId = taskQueueId; @@ -87,7 +87,7 @@ internal SelfHostedIntegrationRuntimeStatus(IntegrationRuntimeType runtimeType, /// The URLs for the services used in integration runtime backend service. public IReadOnlyList ServiceUris { get; } /// Whether Self-hosted integration runtime auto update has been turned on. - public IntegrationRuntimeAutoUpdate? AutoUpdate { get; } + public IntegrationRuntimeAutoUpdateState? AutoUpdate { get; } /// Status of the integration runtime version. public string VersionStatus { get; } /// The list of linked integration runtimes that are created to share with this integration runtime. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServiceNowLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServiceNowLinkedService.Serialization.cs index a05966b07137..02412d8c8abf 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServiceNowLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServiceNowLinkedService.Serialization.cs @@ -108,11 +108,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -147,7 +143,7 @@ internal static ServiceNowLinkedService DeserializeServiceNowLinkedService(JsonE Optional> useEncryptedEndpoints = default; Optional> useHostVerification = default; Optional> usePeerVerification = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -290,11 +286,7 @@ internal static ServiceNowLinkedService DeserializeServiceNowLinkedService(JsonE } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServiceNowLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServiceNowLinkedService.cs index 50fbe988234a..756b0b69ca37 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServiceNowLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServiceNowLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// ServiceNow server linked service. - public partial class ServiceNowLinkedService : DataFactoryLinkedServiceDefinition + public partial class ServiceNowLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of ServiceNowLinkedService. /// The endpoint of the ServiceNow server. (i.e. <instance>.service-now.com). @@ -45,7 +45,7 @@ public ServiceNowLinkedService(BinaryData endpoint, ServiceNowAuthenticationType /// Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal ServiceNowLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData endpoint, ServiceNowAuthenticationType authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement clientId, DataFactorySecretBaseDefinition clientSecret, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal ServiceNowLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData endpoint, ServiceNowAuthenticationType authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement clientId, DataFactorySecretBaseDefinition clientSecret, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Endpoint = endpoint; AuthenticationType = authenticationType; @@ -107,36 +107,7 @@ internal ServiceNowLinkedService(string linkedServiceType, IntegrationRuntimeRef public DataFactoryElement UseHostVerification { get; set; } /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. public DataFactoryElement UsePeerVerification { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServiceNowObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServiceNowObjectDataset.cs index 6a4769457948..8ce1cc189533 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServiceNowObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServiceNowObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// ServiceNow server dataset. - public partial class ServiceNowObjectDataset : DataFactoryDatasetDefinition + public partial class ServiceNowObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of ServiceNowObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServicePrincipalCredential.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServicePrincipalCredential.cs index d197cd90abcb..8328061e6baf 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServicePrincipalCredential.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ServicePrincipalCredential.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Service principal credential. - public partial class ServicePrincipalCredential : Credential + public partial class ServicePrincipalCredential : DataFactoryCredential { /// Initializes a new instance of ServicePrincipalCredential. public ServicePrincipalCredential() diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SetVariableActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SetVariableActivity.Serialization.cs index 625f44cb2644..306dd8906c3a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SetVariableActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SetVariableActivity.Serialization.cs @@ -18,6 +18,11 @@ public partial class SetVariableActivity : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); + if (Optional.IsDefined(Policy)) + { + writer.WritePropertyName("policy"u8); + writer.WriteObjectValue(Policy); + } writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); writer.WritePropertyName("type"u8); @@ -93,13 +98,14 @@ internal static SetVariableActivity DeserializeSetVariableActivity(JsonElement e { return null; } + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; Optional variableName = default; Optional> value = default; Optional setSystemVariable = default; @@ -107,6 +113,15 @@ internal static SetVariableActivity DeserializeSetVariableActivity(JsonElement e Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("policy"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + policy = SecureInputOutputPolicy.DeserializeSecureInputOutputPolicy(property.Value); + continue; + } if (property.NameEquals("name"u8)) { name = property.Value.GetString(); @@ -128,7 +143,7 @@ internal static SetVariableActivity DeserializeSetVariableActivity(JsonElement e { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -137,7 +152,7 @@ internal static SetVariableActivity DeserializeSetVariableActivity(JsonElement e { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -146,10 +161,10 @@ internal static SetVariableActivity DeserializeSetVariableActivity(JsonElement e { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -160,10 +175,10 @@ internal static SetVariableActivity DeserializeSetVariableActivity(JsonElement e { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; @@ -206,7 +221,7 @@ internal static SetVariableActivity DeserializeSetVariableActivity(JsonElement e additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } additionalProperties = additionalPropertiesDictionary; - return new SetVariableActivity(name, type, description.Value, Optional.ToNullable(state), Optional.ToNullable(onInactiveMarkAs), Optional.ToList(dependsOn), Optional.ToList(userProperties), additionalProperties, variableName.Value, value.Value, Optional.ToNullable(setSystemVariable)); + return new SetVariableActivity(name, type, description.Value, Optional.ToNullable(state), Optional.ToNullable(onInactiveMarkAs), Optional.ToList(dependsOn), Optional.ToList(userProperties), additionalProperties, policy.Value, variableName.Value, value.Value, Optional.ToNullable(setSystemVariable)); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SetVariableActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SetVariableActivity.cs index 59f76e7ce727..b9093dae4274 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SetVariableActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SetVariableActivity.cs @@ -34,17 +34,21 @@ public SetVariableActivity(string name) : base(name) /// Activity depends on condition. /// Activity user properties. /// Additional Properties. + /// Activity policy. /// Name of the variable whose value needs to be set. /// Value to be set. Could be a static value or Expression. /// If set to true, it sets the pipeline run return value. - internal SetVariableActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, string variableName, DataFactoryElement value, bool? setSystemVariable) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) + internal SetVariableActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, SecureInputOutputPolicy policy, string variableName, DataFactoryElement value, bool? setSystemVariable) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) { + Policy = policy; VariableName = variableName; Value = value; SetSystemVariable = setSystemVariable; ActivityType = activityType ?? "SetVariable"; } + /// Activity policy. + public SecureInputOutputPolicy Policy { get; set; } /// Name of the variable whose value needs to be set. public string VariableName { get; set; } /// Value to be set. Could be a static value or Expression. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SftpServerLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SftpServerLinkedService.Serialization.cs index 20d33760d318..0f47ecf6e962 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SftpServerLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SftpServerLinkedService.Serialization.cs @@ -87,11 +87,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } if (Optional.IsDefined(PrivateKeyPath)) { @@ -147,7 +143,7 @@ internal static SftpServerLinkedService DeserializeSftpServerLinkedService(JsonE Optional authenticationType = default; Optional> userName = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; Optional> privateKeyPath = default; Optional privateKeyContent = default; Optional passPhrase = default; @@ -263,11 +259,7 @@ internal static SftpServerLinkedService DeserializeSftpServerLinkedService(JsonE } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } if (property0.NameEquals("privateKeyPath"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SftpServerLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SftpServerLinkedService.cs index a41bb18c9bbd..473d6c50ee14 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SftpServerLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SftpServerLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// A linked service for an SSH File Transfer Protocol (SFTP) server. - public partial class SftpServerLinkedService : DataFactoryLinkedServiceDefinition + public partial class SftpServerLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of SftpServerLinkedService. /// The SFTP server host name. Type: string (or Expression with resultType string). @@ -44,7 +44,7 @@ public SftpServerLinkedService(DataFactoryElement host) /// The password to decrypt the SSH private key if the SSH private key is encrypted. /// If true, skip the SSH host key validation. Default value is false. Type: boolean (or Expression with resultType boolean). /// The host key finger-print of the SFTP server. When SkipHostKeyValidation is false, HostKeyFingerprint should be specified. Type: string (or Expression with resultType string). - internal SftpServerLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement port, SftpAuthenticationType? authenticationType, DataFactoryElement userName, DataFactorySecretBaseDefinition password, BinaryData encryptedCredential, DataFactoryElement privateKeyPath, DataFactorySecretBaseDefinition privateKeyContent, DataFactorySecretBaseDefinition passPhrase, DataFactoryElement skipHostKeyValidation, DataFactoryElement hostKeyFingerprint) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal SftpServerLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement port, SftpAuthenticationType? authenticationType, DataFactoryElement userName, DataFactorySecretBaseDefinition password, string encryptedCredential, DataFactoryElement privateKeyPath, DataFactorySecretBaseDefinition privateKeyContent, DataFactorySecretBaseDefinition passPhrase, DataFactoryElement skipHostKeyValidation, DataFactoryElement hostKeyFingerprint) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Host = host; Port = port; @@ -70,37 +70,8 @@ internal SftpServerLinkedService(string linkedServiceType, IntegrationRuntimeRef public DataFactoryElement UserName { get; set; } /// Password to logon the SFTP server for Basic authentication. public DataFactorySecretBaseDefinition Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } /// The SSH private key file path for SshPublicKey authentication. Only valid for on-premises copy. For on-premises copy with SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent should be specified. SSH private key should be OpenSSH format. Type: string (or Expression with resultType string). public DataFactoryElement PrivateKeyPath { get; set; } /// Base64 encoded SSH private key content for SshPublicKey authentication. For on-premises copy with SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent should be specified. SSH private key should be OpenSSH format. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SharePointOnlineListLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SharePointOnlineListLinkedService.Serialization.cs index b4cb8268e110..4cec162c5525 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SharePointOnlineListLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SharePointOnlineListLinkedService.Serialization.cs @@ -72,11 +72,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) JsonSerializer.Serialize(writer, ServicePrincipalKey); if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -106,7 +102,7 @@ internal static SharePointOnlineListLinkedService DeserializeSharePointOnlineLis DataFactoryElement tenantId = default; DataFactoryElement servicePrincipalId = default; DataFactorySecretBaseDefinition servicePrincipalKey = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -196,11 +192,7 @@ internal static SharePointOnlineListLinkedService DeserializeSharePointOnlineLis } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SharePointOnlineListLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SharePointOnlineListLinkedService.cs index 71617ed9d650..29c0f5331004 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SharePointOnlineListLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SharePointOnlineListLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// SharePoint Online List linked service. - public partial class SharePointOnlineListLinkedService : DataFactoryLinkedServiceDefinition + public partial class SharePointOnlineListLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of SharePointOnlineListLinkedService. /// The URL of the SharePoint Online site. For example, https://contoso.sharepoint.com/sites/siteName. Type: string (or Expression with resultType string). @@ -47,7 +47,7 @@ public SharePointOnlineListLinkedService(DataFactoryElement siteUri, Dat /// The application (client) ID of your application registered in Azure Active Directory. Make sure to grant SharePoint site permission to this application. Type: string (or Expression with resultType string). /// The client secret of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal SharePointOnlineListLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement siteUri, DataFactoryElement tenantId, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal SharePointOnlineListLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement siteUri, DataFactoryElement tenantId, DataFactoryElement servicePrincipalId, DataFactorySecretBaseDefinition servicePrincipalKey, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { SiteUri = siteUri; TenantId = tenantId; @@ -65,36 +65,7 @@ internal SharePointOnlineListLinkedService(string linkedServiceType, Integration public DataFactoryElement ServicePrincipalId { get; set; } /// The client secret of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). public DataFactorySecretBaseDefinition ServicePrincipalKey { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SharePointOnlineListResourceDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SharePointOnlineListResourceDataset.cs index 873372123c76..a645eb9ed50a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SharePointOnlineListResourceDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SharePointOnlineListResourceDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The sharepoint online list resource dataset. - public partial class SharePointOnlineListResourceDataset : DataFactoryDatasetDefinition + public partial class SharePointOnlineListResourceDataset : DataFactoryDatasetProperties { /// Initializes a new instance of SharePointOnlineListResourceDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ShopifyLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ShopifyLinkedService.Serialization.cs index e74ea1b4f5cb..c9b59d6f13f0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ShopifyLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ShopifyLinkedService.Serialization.cs @@ -87,11 +87,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -122,7 +118,7 @@ internal static ShopifyLinkedService DeserializeShopifyLinkedService(JsonElement Optional> useEncryptedEndpoints = default; Optional> useHostVerification = default; Optional> usePeerVerification = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -233,11 +229,7 @@ internal static ShopifyLinkedService DeserializeShopifyLinkedService(JsonElement } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ShopifyLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ShopifyLinkedService.cs index df9d1ffc64f5..802a0ea9a508 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ShopifyLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ShopifyLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Shopify Service linked service. - public partial class ShopifyLinkedService : DataFactoryLinkedServiceDefinition + public partial class ShopifyLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of ShopifyLinkedService. /// The endpoint of the Shopify server. (i.e. mystore.myshopify.com). @@ -39,7 +39,7 @@ public ShopifyLinkedService(DataFactoryElement host) /// Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal ShopifyLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactorySecretBaseDefinition accessToken, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal ShopifyLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactorySecretBaseDefinition accessToken, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Host = host; AccessToken = accessToken; @@ -60,36 +60,7 @@ internal ShopifyLinkedService(string linkedServiceType, IntegrationRuntimeRefere public DataFactoryElement UseHostVerification { get; set; } /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. public DataFactoryElement UsePeerVerification { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ShopifyObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ShopifyObjectDataset.cs index 466591d7a34a..a5cd652ce3a8 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ShopifyObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ShopifyObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Shopify Service dataset. - public partial class ShopifyObjectDataset : DataFactoryDatasetDefinition + public partial class ShopifyObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of ShopifyObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SmartsheetLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SmartsheetLinkedService.Serialization.cs index fdaa5c403f51..db7b72a2abef 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SmartsheetLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SmartsheetLinkedService.Serialization.cs @@ -66,11 +66,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) JsonSerializer.Serialize(writer, ApiToken); if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -97,7 +93,7 @@ internal static SmartsheetLinkedService DeserializeSmartsheetLinkedService(JsonE Optional> parameters = default; Optional> annotations = default; DataFactorySecretBaseDefinition apiToken = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -172,11 +168,7 @@ internal static SmartsheetLinkedService DeserializeSmartsheetLinkedService(JsonE } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SmartsheetLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SmartsheetLinkedService.cs index 1c19dad5ba86..7f508d9a284d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SmartsheetLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SmartsheetLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for Smartsheet. - public partial class SmartsheetLinkedService : DataFactoryLinkedServiceDefinition + public partial class SmartsheetLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of SmartsheetLinkedService. /// The api token for the Smartsheet source. @@ -35,7 +35,7 @@ public SmartsheetLinkedService(DataFactorySecretBaseDefinition apiToken) /// Additional Properties. /// The api token for the Smartsheet source. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal SmartsheetLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactorySecretBaseDefinition apiToken, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal SmartsheetLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactorySecretBaseDefinition apiToken, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ApiToken = apiToken; EncryptedCredential = encryptedCredential; @@ -44,36 +44,7 @@ internal SmartsheetLinkedService(string linkedServiceType, IntegrationRuntimeRef /// The api token for the Smartsheet source. public DataFactorySecretBaseDefinition ApiToken { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SnowflakeDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SnowflakeDataset.cs index 24a2ee6a3c31..75b60382115d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SnowflakeDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SnowflakeDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The snowflake dataset. - public partial class SnowflakeDataset : DataFactoryDatasetDefinition + public partial class SnowflakeDataset : DataFactoryDatasetProperties { /// Initializes a new instance of SnowflakeDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SnowflakeLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SnowflakeLinkedService.Serialization.cs index 43563db84c65..fa54623694bc 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SnowflakeLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SnowflakeLinkedService.Serialization.cs @@ -76,11 +76,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -108,7 +104,7 @@ internal static SnowflakeLinkedService DeserializeSnowflakeLinkedService(JsonEle Optional> annotations = default; BinaryData connectionString = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -192,11 +188,7 @@ internal static SnowflakeLinkedService DeserializeSnowflakeLinkedService(JsonEle } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SnowflakeLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SnowflakeLinkedService.cs index b9667565c4b3..0a7f1718543e 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SnowflakeLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SnowflakeLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Snowflake linked service. - public partial class SnowflakeLinkedService : DataFactoryLinkedServiceDefinition + public partial class SnowflakeLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of SnowflakeLinkedService. /// The connection string of snowflake. Type: string, SecureString. @@ -36,7 +36,7 @@ public SnowflakeLinkedService(BinaryData connectionString) /// The connection string of snowflake. Type: string, SecureString. /// The Azure key vault secret reference of password in connection string. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal SnowflakeLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData connectionString, DataFactoryKeyVaultSecretReference password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal SnowflakeLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData connectionString, DataFactoryKeyVaultSecretReference password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; Password = password; @@ -77,36 +77,7 @@ internal SnowflakeLinkedService(string linkedServiceType, IntegrationRuntimeRefe public BinaryData ConnectionString { get; set; } /// The Azure key vault secret reference of password in connection string. public DataFactoryKeyVaultSecretReference Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SparkLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SparkLinkedService.Serialization.cs index de810f79866d..69b7117f3b31 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SparkLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SparkLinkedService.Serialization.cs @@ -121,11 +121,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -164,7 +160,7 @@ internal static SparkLinkedService DeserializeSparkLinkedService(JsonElement ele Optional> useSystemTrustStore = default; Optional> allowHostNameCNMismatch = default; Optional> allowSelfSignedServerCert = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -339,11 +335,7 @@ internal static SparkLinkedService DeserializeSparkLinkedService(JsonElement ele } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SparkLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SparkLinkedService.cs index 9387ecebbc62..7aded59a7e38 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SparkLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SparkLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Spark Server linked service. - public partial class SparkLinkedService : DataFactoryLinkedServiceDefinition + public partial class SparkLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of SparkLinkedService. /// IP address or host name of the Spark server. @@ -52,7 +52,7 @@ public SparkLinkedService(DataFactoryElement host, DataFactoryElement Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over SSL. The default value is false. /// Specifies whether to allow self-signed certificates from the server. The default value is false. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal SparkLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement port, SparkServerType? serverType, SparkThriftTransportProtocol? thriftTransportProtocol, SparkAuthenticationType authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement httpPath, DataFactoryElement enableSsl, DataFactoryElement trustedCertPath, DataFactoryElement useSystemTrustStore, DataFactoryElement allowHostNameCNMismatch, DataFactoryElement allowSelfSignedServerCert, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal SparkLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement host, DataFactoryElement port, SparkServerType? serverType, SparkThriftTransportProtocol? thriftTransportProtocol, SparkAuthenticationType authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, DataFactoryElement httpPath, DataFactoryElement enableSsl, DataFactoryElement trustedCertPath, DataFactoryElement useSystemTrustStore, DataFactoryElement allowHostNameCNMismatch, DataFactoryElement allowSelfSignedServerCert, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Host = host; Port = port; @@ -97,36 +97,7 @@ internal SparkLinkedService(string linkedServiceType, IntegrationRuntimeReferenc public DataFactoryElement AllowHostNameCNMismatch { get; set; } /// Specifies whether to allow self-signed certificates from the server. The default value is false. public DataFactoryElement AllowSelfSignedServerCert { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SparkObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SparkObjectDataset.cs index 787cfd36245b..4f6159331e8d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SparkObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SparkObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Spark Server dataset. - public partial class SparkObjectDataset : DataFactoryDatasetDefinition + public partial class SparkObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of SparkObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SqlServerLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SqlServerLinkedService.Serialization.cs index a9d0f6945b16..8b53097d85a5 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SqlServerLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SqlServerLinkedService.Serialization.cs @@ -77,11 +77,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } if (Optional.IsDefined(AlwaysEncryptedSettings)) { @@ -115,7 +111,7 @@ internal static SqlServerLinkedService DeserializeSqlServerLinkedService(JsonEle DataFactoryElement connectionString = default; Optional> userName = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; Optional alwaysEncryptedSettings = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); @@ -209,11 +205,7 @@ internal static SqlServerLinkedService DeserializeSqlServerLinkedService(JsonEle } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } if (property0.NameEquals("alwaysEncryptedSettings"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SqlServerLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SqlServerLinkedService.cs index 668dad2b7215..e5ceff42f4fc 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SqlServerLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SqlServerLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// SQL Server linked service. - public partial class SqlServerLinkedService : DataFactoryLinkedServiceDefinition + public partial class SqlServerLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of SqlServerLinkedService. /// The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. @@ -38,7 +38,7 @@ public SqlServerLinkedService(DataFactoryElement connectionString) /// The on-premises Windows authentication password. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. /// Sql always encrypted properties. - internal SqlServerLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryElement userName, DataFactorySecretBaseDefinition password, BinaryData encryptedCredential, SqlAlwaysEncryptedProperties alwaysEncryptedSettings) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal SqlServerLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryElement userName, DataFactorySecretBaseDefinition password, string encryptedCredential, SqlAlwaysEncryptedProperties alwaysEncryptedSettings) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; UserName = userName; @@ -54,37 +54,8 @@ internal SqlServerLinkedService(string linkedServiceType, IntegrationRuntimeRefe public DataFactoryElement UserName { get; set; } /// The on-premises Windows authentication password. public DataFactorySecretBaseDefinition Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } /// Sql always encrypted properties. public SqlAlwaysEncryptedProperties AlwaysEncryptedSettings { get; set; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SqlServerStoredProcedureActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SqlServerStoredProcedureActivity.Serialization.cs index c9e11e9e3d05..b55123872bd0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SqlServerStoredProcedureActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SqlServerStoredProcedureActivity.Serialization.cs @@ -100,14 +100,14 @@ internal static SqlServerStoredProcedureActivity DeserializeSqlServerStoredProce return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; DataFactoryElement storedProcedureName = default; Optional storedProcedureParameters = default; IDictionary additionalProperties = default; @@ -129,7 +129,7 @@ internal static SqlServerStoredProcedureActivity DeserializeSqlServerStoredProce { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -153,7 +153,7 @@ internal static SqlServerStoredProcedureActivity DeserializeSqlServerStoredProce { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -162,7 +162,7 @@ internal static SqlServerStoredProcedureActivity DeserializeSqlServerStoredProce { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -171,10 +171,10 @@ internal static SqlServerStoredProcedureActivity DeserializeSqlServerStoredProce { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -185,10 +185,10 @@ internal static SqlServerStoredProcedureActivity DeserializeSqlServerStoredProce { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SqlServerStoredProcedureActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SqlServerStoredProcedureActivity.cs index e9f1e9ffff52..3cc8f0ef3b96 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SqlServerStoredProcedureActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SqlServerStoredProcedureActivity.cs @@ -41,7 +41,7 @@ public SqlServerStoredProcedureActivity(string name, DataFactoryElement /// Activity policy. /// Stored procedure name. Type: string (or Expression with resultType string). /// Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - internal SqlServerStoredProcedureActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, DataFactoryElement storedProcedureName, BinaryData storedProcedureParameters) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal SqlServerStoredProcedureActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, DataFactoryElement storedProcedureName, BinaryData storedProcedureParameters) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { StoredProcedureName = storedProcedureName; StoredProcedureParameters = storedProcedureParameters; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SqlServerTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SqlServerTableDataset.cs index 26cc3cf68c46..7310bed42c7d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SqlServerTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SqlServerTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The on-premises SQL Server dataset. - public partial class SqlServerTableDataset : DataFactoryDatasetDefinition + public partial class SqlServerTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of SqlServerTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SquareLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SquareLinkedService.Serialization.cs index c40ea5d9ff2e..9993e2c55aec 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SquareLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SquareLinkedService.Serialization.cs @@ -109,11 +109,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -147,7 +143,7 @@ internal static SquareLinkedService DeserializeSquareLinkedService(JsonElement e Optional> useEncryptedEndpoints = default; Optional> useHostVerification = default; Optional> usePeerVerification = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -289,11 +285,7 @@ internal static SquareLinkedService DeserializeSquareLinkedService(JsonElement e } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SquareLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SquareLinkedService.cs index 450b1b65c458..539d6b359006 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SquareLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SquareLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Square Service linked service. - public partial class SquareLinkedService : DataFactoryLinkedServiceDefinition + public partial class SquareLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of SquareLinkedService. public SquareLinkedService() @@ -36,7 +36,7 @@ public SquareLinkedService() /// Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal SquareLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData connectionProperties, DataFactoryElement host, DataFactoryElement clientId, DataFactorySecretBaseDefinition clientSecret, DataFactoryElement redirectUri, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal SquareLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData connectionProperties, DataFactoryElement host, DataFactoryElement clientId, DataFactorySecretBaseDefinition clientSecret, DataFactoryElement redirectUri, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionProperties = connectionProperties; Host = host; @@ -95,36 +95,7 @@ internal SquareLinkedService(string linkedServiceType, IntegrationRuntimeReferen public DataFactoryElement UseHostVerification { get; set; } /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. public DataFactoryElement UsePeerVerification { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SquareObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SquareObjectDataset.cs index c96e10cc41f7..77fa6b618c52 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SquareObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SquareObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Square Service dataset. - public partial class SquareObjectDataset : DataFactoryDatasetDefinition + public partial class SquareObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of SquareObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisObjectMetadataListResponse.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisObjectMetadataListResult.Serialization.cs similarity index 83% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisObjectMetadataListResponse.Serialization.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisObjectMetadataListResult.Serialization.cs index e32550d0d8ed..2362fbc1e6a3 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisObjectMetadataListResponse.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisObjectMetadataListResult.Serialization.cs @@ -11,9 +11,9 @@ namespace Azure.ResourceManager.DataFactory.Models { - internal partial class SsisObjectMetadataListResponse + internal partial class SsisObjectMetadataListResult { - internal static SsisObjectMetadataListResponse DeserializeSsisObjectMetadataListResponse(JsonElement element) + internal static SsisObjectMetadataListResult DeserializeSsisObjectMetadataListResult(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -43,7 +43,7 @@ internal static SsisObjectMetadataListResponse DeserializeSsisObjectMetadataList continue; } } - return new SsisObjectMetadataListResponse(Optional.ToList(value), nextLink.Value); + return new SsisObjectMetadataListResult(Optional.ToList(value), nextLink.Value); } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisObjectMetadataListResponse.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisObjectMetadataListResult.cs similarity index 87% rename from sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisObjectMetadataListResponse.cs rename to sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisObjectMetadataListResult.cs index 1e55b2eabca9..8a7e5e15dc57 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisObjectMetadataListResponse.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SsisObjectMetadataListResult.cs @@ -11,22 +11,22 @@ namespace Azure.ResourceManager.DataFactory.Models { /// A list of SSIS object metadata. - internal partial class SsisObjectMetadataListResponse + internal partial class SsisObjectMetadataListResult { - /// Initializes a new instance of SsisObjectMetadataListResponse. - internal SsisObjectMetadataListResponse() + /// Initializes a new instance of SsisObjectMetadataListResult. + internal SsisObjectMetadataListResult() { Value = new ChangeTrackingList(); } - /// Initializes a new instance of SsisObjectMetadataListResponse. + /// Initializes a new instance of SsisObjectMetadataListResult. /// /// List of SSIS object metadata. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include , , and . /// /// The link to the next page of results, if any remaining results exist. - internal SsisObjectMetadataListResponse(IReadOnlyList value, string nextLink) + internal SsisObjectMetadataListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchActivity.Serialization.cs index 66300616e7fd..bcdf445c387b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchActivity.Serialization.cs @@ -102,13 +102,13 @@ internal static SwitchActivity DeserializeSwitchActivity(JsonElement element) string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; - DataFactoryExpressionDefinition @on = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; + DataFactoryExpression @on = default; Optional> cases = default; - Optional> defaultActivities = default; + Optional> defaultActivities = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -134,7 +134,7 @@ internal static SwitchActivity DeserializeSwitchActivity(JsonElement element) { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -143,7 +143,7 @@ internal static SwitchActivity DeserializeSwitchActivity(JsonElement element) { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -152,10 +152,10 @@ internal static SwitchActivity DeserializeSwitchActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -166,10 +166,10 @@ internal static SwitchActivity DeserializeSwitchActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; @@ -185,7 +185,7 @@ internal static SwitchActivity DeserializeSwitchActivity(JsonElement element) { if (property0.NameEquals("on"u8)) { - @on = DataFactoryExpressionDefinition.DeserializeDataFactoryExpressionDefinition(property0.Value); + @on = DataFactoryExpression.DeserializeDataFactoryExpression(property0.Value); continue; } if (property0.NameEquals("cases"u8)) @@ -208,10 +208,10 @@ internal static SwitchActivity DeserializeSwitchActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(DeserializeDataFactoryActivity(item)); + array.Add(DeserializePipelineActivity(item)); } defaultActivities = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchActivity.cs index fc4e7d54abb3..6f21ed103253 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchActivity.cs @@ -18,14 +18,14 @@ public partial class SwitchActivity : ControlActivity /// Activity name. /// An expression that would evaluate to a string or integer. This is used to determine the block of activities in cases that will be executed. /// or is null. - public SwitchActivity(string name, DataFactoryExpressionDefinition @on) : base(name) + public SwitchActivity(string name, DataFactoryExpression @on) : base(name) { Argument.AssertNotNull(name, nameof(name)); Argument.AssertNotNull(@on, nameof(@on)); On = @on; Cases = new ChangeTrackingList(); - DefaultActivities = new ChangeTrackingList(); + DefaultActivities = new ChangeTrackingList(); ActivityType = "Switch"; } @@ -42,10 +42,10 @@ public SwitchActivity(string name, DataFactoryExpressionDefinition @on) : base(n /// List of cases that correspond to expected values of the 'on' property. This is an optional property and if not provided, the activity will execute activities provided in defaultActivities. /// /// List of activities to execute if no case condition is satisfied. This is an optional property and if not provided, the activity will exit without any action. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// - internal SwitchActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryExpressionDefinition @on, IList cases, IList defaultActivities) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) + internal SwitchActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryExpression @on, IList cases, IList defaultActivities) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) { On = @on; Cases = cases; @@ -54,14 +54,14 @@ internal SwitchActivity(string name, string activityType, string description, Ac } /// An expression that would evaluate to a string or integer. This is used to determine the block of activities in cases that will be executed. - public DataFactoryExpressionDefinition On { get; set; } + public DataFactoryExpression On { get; set; } /// List of cases that correspond to expected values of the 'on' property. This is an optional property and if not provided, the activity will execute activities provided in defaultActivities. public IList Cases { get; } /// /// List of activities to execute if no case condition is satisfied. This is an optional property and if not provided, the activity will exit without any action. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// - public IList DefaultActivities { get; } + public IList DefaultActivities { get; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchCaseActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchCaseActivity.Serialization.cs index 5cd148e5039f..9430aa4e9c55 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchCaseActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchCaseActivity.Serialization.cs @@ -41,7 +41,7 @@ internal static SwitchCaseActivity DeserializeSwitchCaseActivity(JsonElement ele return null; } Optional value = default; - Optional> activities = default; + Optional> activities = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) @@ -55,10 +55,10 @@ internal static SwitchCaseActivity DeserializeSwitchCaseActivity(JsonElement ele { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(DataFactoryActivity.DeserializeDataFactoryActivity(item)); + array.Add(PipelineActivity.DeserializePipelineActivity(item)); } activities = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchCaseActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchCaseActivity.cs index 8c3a18ae8d49..ffce59d55959 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchCaseActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SwitchCaseActivity.cs @@ -16,17 +16,17 @@ public partial class SwitchCaseActivity /// Initializes a new instance of SwitchCaseActivity. public SwitchCaseActivity() { - Activities = new ChangeTrackingList(); + Activities = new ChangeTrackingList(); } /// Initializes a new instance of SwitchCaseActivity. /// Expected value that satisfies the expression result of the 'on' property. /// /// List of activities to execute for satisfied case condition. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// - internal SwitchCaseActivity(string value, IList activities) + internal SwitchCaseActivity(string value, IList activities) { Value = value; Activities = activities; @@ -36,9 +36,9 @@ internal SwitchCaseActivity(string value, IList activities) public string Value { get; set; } /// /// List of activities to execute for satisfied case condition. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// - public IList Activities { get; } + public IList Activities { get; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SybaseLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SybaseLinkedService.Serialization.cs index f65e8d925602..0ab07d74f054 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SybaseLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SybaseLinkedService.Serialization.cs @@ -89,11 +89,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -125,7 +121,7 @@ internal static SybaseLinkedService DeserializeSybaseLinkedService(JsonElement e Optional authenticationType = default; Optional> username = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -241,11 +237,7 @@ internal static SybaseLinkedService DeserializeSybaseLinkedService(JsonElement e } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SybaseLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SybaseLinkedService.cs index 367fa7522301..473aca3e2615 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SybaseLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SybaseLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for Sybase data source. - public partial class SybaseLinkedService : DataFactoryLinkedServiceDefinition + public partial class SybaseLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of SybaseLinkedService. /// Server name for connection. Type: string (or Expression with resultType string). @@ -43,7 +43,7 @@ public SybaseLinkedService(DataFactoryElement server, DataFactoryElement /// Username for authentication. Type: string (or Expression with resultType string). /// Password for authentication. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal SybaseLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement server, DataFactoryElement database, DataFactoryElement schema, SybaseAuthenticationType? authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal SybaseLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement server, DataFactoryElement database, DataFactoryElement schema, SybaseAuthenticationType? authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { Server = server; Database = database; @@ -67,36 +67,7 @@ internal SybaseLinkedService(string linkedServiceType, IntegrationRuntimeReferen public DataFactoryElement Username { get; set; } /// Password for authentication. public DataFactorySecretBaseDefinition Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SybaseTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SybaseTableDataset.cs index 763a8b0d2ef1..db8e0d5d975d 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SybaseTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SybaseTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Sybase table dataset. - public partial class SybaseTableDataset : DataFactoryDatasetDefinition + public partial class SybaseTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of SybaseTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SynapseNotebookActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SynapseNotebookActivity.Serialization.cs index e9ce53d02dc1..0ea86e2da6d3 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SynapseNotebookActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SynapseNotebookActivity.Serialization.cs @@ -161,14 +161,14 @@ internal static SynapseNotebookActivity DeserializeSynapseNotebookActivity(JsonE return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; SynapseNotebookReference notebook = default; Optional sparkPool = default; Optional> parameters = default; @@ -176,7 +176,7 @@ internal static SynapseNotebookActivity DeserializeSynapseNotebookActivity(JsonE Optional conf = default; Optional> driverSize = default; Optional> numExecutors = default; - Optional configurationType = default; + Optional configurationType = default; Optional targetSparkConfiguration = default; Optional> sparkConfig = default; IDictionary additionalProperties = default; @@ -198,7 +198,7 @@ internal static SynapseNotebookActivity DeserializeSynapseNotebookActivity(JsonE { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -222,7 +222,7 @@ internal static SynapseNotebookActivity DeserializeSynapseNotebookActivity(JsonE { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -231,7 +231,7 @@ internal static SynapseNotebookActivity DeserializeSynapseNotebookActivity(JsonE { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -240,10 +240,10 @@ internal static SynapseNotebookActivity DeserializeSynapseNotebookActivity(JsonE { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -254,10 +254,10 @@ internal static SynapseNotebookActivity DeserializeSynapseNotebookActivity(JsonE { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; @@ -341,7 +341,7 @@ internal static SynapseNotebookActivity DeserializeSynapseNotebookActivity(JsonE { continue; } - configurationType = new ConfigurationType(property0.Value.GetString()); + configurationType = new DataFactorySparkConfigurationType(property0.Value.GetString()); continue; } if (property0.NameEquals("targetSparkConfiguration"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SynapseNotebookActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SynapseNotebookActivity.cs index f90e005ee185..7cace514486f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SynapseNotebookActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SynapseNotebookActivity.cs @@ -51,7 +51,7 @@ public SynapseNotebookActivity(string name, SynapseNotebookReference notebook) : /// The type of the spark config. /// The spark configuration of the spark job. /// Spark configuration property. - internal SynapseNotebookActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, SynapseNotebookReference notebook, BigDataPoolParametrizationReference sparkPool, IDictionary parameters, DataFactoryElement executorSize, BinaryData conf, DataFactoryElement driverSize, DataFactoryElement numExecutors, ConfigurationType? configurationType, SparkConfigurationParametrizationReference targetSparkConfiguration, IDictionary sparkConfig) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal SynapseNotebookActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, SynapseNotebookReference notebook, BigDataPoolParametrizationReference sparkPool, IDictionary parameters, DataFactoryElement executorSize, BinaryData conf, DataFactoryElement driverSize, DataFactoryElement numExecutors, DataFactorySparkConfigurationType? configurationType, SparkConfigurationParametrizationReference targetSparkConfiguration, IDictionary sparkConfig) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { Notebook = notebook; SparkPool = sparkPool; @@ -110,7 +110,7 @@ internal SynapseNotebookActivity(string name, string activityType, string descri /// Number of executors to launch for this session, which will override the 'numExecutors' of the notebook you provide. Type: integer (or Expression with resultType integer). public DataFactoryElement NumExecutors { get; set; } /// The type of the spark config. - public ConfigurationType? ConfigurationType { get; set; } + public DataFactorySparkConfigurationType? ConfigurationType { get; set; } /// The spark configuration of the spark job. public SparkConfigurationParametrizationReference TargetSparkConfiguration { get; set; } /// diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SynapseSparkJobDefinitionActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SynapseSparkJobDefinitionActivity.Serialization.cs index 8aac01ad29bb..12fdd4f47ab1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SynapseSparkJobDefinitionActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SynapseSparkJobDefinitionActivity.Serialization.cs @@ -241,14 +241,14 @@ internal static SynapseSparkJobDefinitionActivity DeserializeSynapseSparkJobDefi return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; SynapseSparkJobReference sparkJob = default; Optional> args = default; Optional> file = default; @@ -262,7 +262,7 @@ internal static SynapseSparkJobDefinitionActivity DeserializeSynapseSparkJobDefi Optional conf = default; Optional> driverSize = default; Optional> numExecutors = default; - Optional configurationType = default; + Optional configurationType = default; Optional targetSparkConfiguration = default; Optional> sparkConfig = default; IDictionary additionalProperties = default; @@ -284,7 +284,7 @@ internal static SynapseSparkJobDefinitionActivity DeserializeSynapseSparkJobDefi { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -308,7 +308,7 @@ internal static SynapseSparkJobDefinitionActivity DeserializeSynapseSparkJobDefi { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -317,7 +317,7 @@ internal static SynapseSparkJobDefinitionActivity DeserializeSynapseSparkJobDefi { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -326,10 +326,10 @@ internal static SynapseSparkJobDefinitionActivity DeserializeSynapseSparkJobDefi { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -340,10 +340,10 @@ internal static SynapseSparkJobDefinitionActivity DeserializeSynapseSparkJobDefi { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; @@ -524,7 +524,7 @@ internal static SynapseSparkJobDefinitionActivity DeserializeSynapseSparkJobDefi { continue; } - configurationType = new ConfigurationType(property0.Value.GetString()); + configurationType = new DataFactorySparkConfigurationType(property0.Value.GetString()); continue; } if (property0.NameEquals("targetSparkConfiguration"u8)) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SynapseSparkJobDefinitionActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SynapseSparkJobDefinitionActivity.cs index 312a691a3409..adba324cb94c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SynapseSparkJobDefinitionActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/SynapseSparkJobDefinitionActivity.cs @@ -60,7 +60,7 @@ public SynapseSparkJobDefinitionActivity(string name, SynapseSparkJobReference s /// The type of the spark config. /// The spark configuration of the spark job. /// Spark configuration property. - internal SynapseSparkJobDefinitionActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, SynapseSparkJobReference sparkJob, IList arguments, DataFactoryElement file, DataFactoryElement scanFolder, DataFactoryElement className, IList files, IList pythonCodeReference, IList filesV2, BigDataPoolParametrizationReference targetBigDataPool, DataFactoryElement executorSize, BinaryData conf, DataFactoryElement driverSize, DataFactoryElement numExecutors, ConfigurationType? configurationType, SparkConfigurationParametrizationReference targetSparkConfiguration, IDictionary sparkConfig) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal SynapseSparkJobDefinitionActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, SynapseSparkJobReference sparkJob, IList arguments, DataFactoryElement file, DataFactoryElement scanFolder, DataFactoryElement className, IList files, IList pythonCodeReference, IList filesV2, BigDataPoolParametrizationReference targetBigDataPool, DataFactoryElement executorSize, BinaryData conf, DataFactoryElement driverSize, DataFactoryElement numExecutors, DataFactorySparkConfigurationType? configurationType, SparkConfigurationParametrizationReference targetSparkConfiguration, IDictionary sparkConfig) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { SparkJob = sparkJob; Arguments = arguments; @@ -253,7 +253,7 @@ internal SynapseSparkJobDefinitionActivity(string name, string activityType, str /// Number of executors to launch for this job, which will override the 'numExecutors' of the spark job definition you provide. Type: integer (or Expression with resultType integer). public DataFactoryElement NumExecutors { get; set; } /// The type of the spark config. - public ConfigurationType? ConfigurationType { get; set; } + public DataFactorySparkConfigurationType? ConfigurationType { get; set; } /// The spark configuration of the spark job. public SparkConfigurationParametrizationReference TargetSparkConfiguration { get; set; } /// diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TabularSource.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TabularSource.Serialization.cs index 5fbf749728a8..0cbca618fef3 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TabularSource.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TabularSource.Serialization.cs @@ -115,7 +115,7 @@ internal static TabularSource DeserializeTabularSource(JsonElement element) case "ResponsysSource": return ResponsysSource.DeserializeResponsysSource(element); case "SalesforceMarketingCloudSource": return SalesforceMarketingCloudSource.DeserializeSalesforceMarketingCloudSource(element); case "SalesforceSource": return SalesforceSource.DeserializeSalesforceSource(element); - case "SapBwSource": return SapBwSource.DeserializeSapBwSource(element); + case "SapBwSource": return SapBWSource.DeserializeSapBWSource(element); case "SapCloudForCustomerSource": return SapCloudForCustomerSource.DeserializeSapCloudForCustomerSource(element); case "SapEccSource": return SapEccSource.DeserializeSapEccSource(element); case "SapHanaSource": return SapHanaSource.DeserializeSapHanaSource(element); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TabularSource.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TabularSource.cs index 6a6ffbd03a5e..b87bddf1daa2 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TabularSource.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TabularSource.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.DataFactory.Models /// /// Copy activity sources of tabular type. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// public partial class TabularSource : CopyActivitySource { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TeamDeskLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TeamDeskLinkedService.Serialization.cs index f7972434170e..85475b06b230 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TeamDeskLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TeamDeskLinkedService.Serialization.cs @@ -84,11 +84,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -119,7 +115,7 @@ internal static TeamDeskLinkedService DeserializeTeamDeskLinkedService(JsonEleme Optional> userName = default; Optional password = default; Optional apiToken = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -226,11 +222,7 @@ internal static TeamDeskLinkedService DeserializeTeamDeskLinkedService(JsonEleme } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TeamDeskLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TeamDeskLinkedService.cs index 083bbc7ebb30..1cd74ef52d7b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TeamDeskLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TeamDeskLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for TeamDesk. - public partial class TeamDeskLinkedService : DataFactoryLinkedServiceDefinition + public partial class TeamDeskLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of TeamDeskLinkedService. /// The authentication type to use. @@ -41,7 +41,7 @@ public TeamDeskLinkedService(TeamDeskAuthenticationType authenticationType, Data /// The password of the TeamDesk source. /// The api token for the TeamDesk source. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal TeamDeskLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, TeamDeskAuthenticationType authenticationType, DataFactoryElement uri, DataFactoryElement userName, DataFactorySecretBaseDefinition password, DataFactorySecretBaseDefinition apiToken, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal TeamDeskLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, TeamDeskAuthenticationType authenticationType, DataFactoryElement uri, DataFactoryElement userName, DataFactorySecretBaseDefinition password, DataFactorySecretBaseDefinition apiToken, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { AuthenticationType = authenticationType; Uri = uri; @@ -62,36 +62,7 @@ internal TeamDeskLinkedService(string linkedServiceType, IntegrationRuntimeRefer public DataFactorySecretBaseDefinition Password { get; set; } /// The api token for the TeamDesk source. public DataFactorySecretBaseDefinition ApiToken { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TeradataLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TeradataLinkedService.Serialization.cs index f8c46b85faaa..1b11938336fb 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TeradataLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TeradataLinkedService.Serialization.cs @@ -94,11 +94,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -129,7 +125,7 @@ internal static TeradataLinkedService DeserializeTeradataLinkedService(JsonEleme Optional authenticationType = default; Optional> username = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -244,11 +240,7 @@ internal static TeradataLinkedService DeserializeTeradataLinkedService(JsonEleme } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TeradataLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TeradataLinkedService.cs index a0fbad03037d..135f55a37381 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TeradataLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TeradataLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for Teradata data source. - public partial class TeradataLinkedService : DataFactoryLinkedServiceDefinition + public partial class TeradataLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of TeradataLinkedService. public TeradataLinkedService() @@ -33,7 +33,7 @@ public TeradataLinkedService() /// Username for authentication. Type: string (or Expression with resultType string). /// Password for authentication. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal TeradataLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData connectionString, DataFactoryElement server, TeradataAuthenticationType? authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal TeradataLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData connectionString, DataFactoryElement server, TeradataAuthenticationType? authenticationType, DataFactoryElement username, DataFactorySecretBaseDefinition password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; Server = server; @@ -83,36 +83,7 @@ internal TeradataLinkedService(string linkedServiceType, IntegrationRuntimeRefer public DataFactoryElement Username { get; set; } /// Password for authentication. public DataFactorySecretBaseDefinition Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TeradataTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TeradataTableDataset.cs index d41e1d294ed4..a7b84ba63b1a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TeradataTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TeradataTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The Teradata database dataset. - public partial class TeradataTableDataset : DataFactoryDatasetDefinition + public partial class TeradataTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of TeradataTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TumblingWindowTrigger.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TumblingWindowTrigger.cs index 7abc25d6adb3..2b06592e302c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TumblingWindowTrigger.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TumblingWindowTrigger.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Trigger that schedules pipeline runs for all fixed time interval windows from a start time without gaps and also supports backfill scenarios (when start time is in the past). - public partial class TumblingWindowTrigger : DataFactoryTriggerDefinition + public partial class TumblingWindowTrigger : DataFactoryTriggerProperties { /// Initializes a new instance of TumblingWindowTrigger. /// Pipeline for which runs are created when an event is fired for trigger window that is ready. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TwilioLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TwilioLinkedService.cs index f249687f867c..54ffc8609fd9 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TwilioLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/TwilioLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for Twilio. - public partial class TwilioLinkedService : DataFactoryLinkedServiceDefinition + public partial class TwilioLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of TwilioLinkedService. /// The Account SID of Twilio service. Type: string (or Expression with resultType string). diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownActivity.Serialization.cs index b4905c4a59d6..1e03944063c0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownActivity.Serialization.cs @@ -77,10 +77,10 @@ internal static UnknownActivity DeserializeUnknownActivity(JsonElement element) string name = default; string type = "Unknown"; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -106,7 +106,7 @@ internal static UnknownActivity DeserializeUnknownActivity(JsonElement element) { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -115,7 +115,7 @@ internal static UnknownActivity DeserializeUnknownActivity(JsonElement element) { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -124,10 +124,10 @@ internal static UnknownActivity DeserializeUnknownActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -138,10 +138,10 @@ internal static UnknownActivity DeserializeUnknownActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownActivity.cs index b1b703d23c05..c585282de783 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownActivity.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The UnknownActivity. - internal partial class UnknownActivity : DataFactoryActivity + internal partial class UnknownActivity : PipelineActivity { /// Initializes a new instance of UnknownActivity. /// Activity name. @@ -22,7 +22,7 @@ internal partial class UnknownActivity : DataFactoryActivity /// Activity depends on condition. /// Activity user properties. /// Additional Properties. - internal UnknownActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) + internal UnknownActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) { ActivityType = activityType ?? "Unknown"; } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownCredential.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownCredential.cs index 346e3ee92562..93f13b7c42c4 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownCredential.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownCredential.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The UnknownCredential. - internal partial class UnknownCredential : Credential + internal partial class UnknownCredential : DataFactoryCredential { /// Initializes a new instance of UnknownCredential. /// Type of credential. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownDataFlow.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownDataFlow.cs index 002434760f51..7706b9db2549 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownDataFlow.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownDataFlow.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The UnknownDataFlow. - internal partial class UnknownDataFlow : DataFactoryDataFlowDefinition + internal partial class UnknownDataFlow : DataFactoryDataFlowProperties { /// Initializes a new instance of UnknownDataFlow. /// Type of data flow. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownDataset.cs index 62d333fd9516..6221f5a086e2 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownDataset.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The UnknownDataset. - internal partial class UnknownDataset : DataFactoryDatasetDefinition + internal partial class UnknownDataset : DataFactoryDatasetProperties { /// Initializes a new instance of UnknownDataset. /// Type of dataset. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownIntegrationRuntime.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownIntegrationRuntime.cs index fa8f09ba9959..0406fa1a7fa2 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownIntegrationRuntime.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownIntegrationRuntime.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The UnknownIntegrationRuntime. - internal partial class UnknownIntegrationRuntime : DataFactoryIntegrationRuntimeDefinition + internal partial class UnknownIntegrationRuntime : DataFactoryIntegrationRuntimeProperties { /// Initializes a new instance of UnknownIntegrationRuntime. /// Type of integration runtime. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownLinkedService.cs index 2da3e33b551c..b3e46440d954 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownLinkedService.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The UnknownLinkedService. - internal partial class UnknownLinkedService : DataFactoryLinkedServiceDefinition + internal partial class UnknownLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of UnknownLinkedService. /// Type of linked service. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownTrigger.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownTrigger.cs index 8ddcca5c447a..e98962b76e71 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownTrigger.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UnknownTrigger.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The UnknownTrigger. - internal partial class UnknownTrigger : DataFactoryTriggerDefinition + internal partial class UnknownTrigger : DataFactoryTriggerProperties { /// Initializes a new instance of UnknownTrigger. /// Trigger type. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UntilActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UntilActivity.Serialization.cs index b4d1dcab8ebd..4e7869497fdd 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UntilActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UntilActivity.Serialization.cs @@ -95,13 +95,13 @@ internal static UntilActivity DeserializeUntilActivity(JsonElement element) string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; - DataFactoryExpressionDefinition expression = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; + DataFactoryExpression expression = default; Optional> timeout = default; - IList activities = default; + IList activities = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -127,7 +127,7 @@ internal static UntilActivity DeserializeUntilActivity(JsonElement element) { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -136,7 +136,7 @@ internal static UntilActivity DeserializeUntilActivity(JsonElement element) { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -145,10 +145,10 @@ internal static UntilActivity DeserializeUntilActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -159,10 +159,10 @@ internal static UntilActivity DeserializeUntilActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; @@ -178,7 +178,7 @@ internal static UntilActivity DeserializeUntilActivity(JsonElement element) { if (property0.NameEquals("expression"u8)) { - expression = DataFactoryExpressionDefinition.DeserializeDataFactoryExpressionDefinition(property0.Value); + expression = DataFactoryExpression.DeserializeDataFactoryExpression(property0.Value); continue; } if (property0.NameEquals("timeout"u8)) @@ -192,10 +192,10 @@ internal static UntilActivity DeserializeUntilActivity(JsonElement element) } if (property0.NameEquals("activities"u8)) { - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(DeserializeDataFactoryActivity(item)); + array.Add(DeserializePipelineActivity(item)); } activities = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UntilActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UntilActivity.cs index b06a7b152174..8e941ff423f6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UntilActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/UntilActivity.cs @@ -21,11 +21,11 @@ public partial class UntilActivity : ControlActivity /// An expression that would evaluate to Boolean. The loop will continue until this expression evaluates to true. /// /// List of activities to execute. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// /// , or is null. - public UntilActivity(string name, DataFactoryExpressionDefinition expression, IEnumerable activities) : base(name) + public UntilActivity(string name, DataFactoryExpression expression, IEnumerable activities) : base(name) { Argument.AssertNotNull(name, nameof(name)); Argument.AssertNotNull(expression, nameof(expression)); @@ -49,10 +49,10 @@ public UntilActivity(string name, DataFactoryExpressionDefinition expression, IE /// Specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). /// /// List of activities to execute. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// - internal UntilActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryExpressionDefinition expression, DataFactoryElement timeout, IList activities) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) + internal UntilActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryExpression expression, DataFactoryElement timeout, IList activities) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) { Expression = expression; Timeout = timeout; @@ -61,14 +61,14 @@ internal UntilActivity(string name, string activityType, string description, Act } /// An expression that would evaluate to Boolean. The loop will continue until this expression evaluates to true. - public DataFactoryExpressionDefinition Expression { get; set; } + public DataFactoryExpression Expression { get; set; } /// Specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). public DataFactoryElement Timeout { get; set; } /// /// List of activities to execute. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . /// - public IList Activities { get; } + public IList Activities { get; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ValidationActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ValidationActivity.Serialization.cs index 514a0d1a8849..79cbe1840f96 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ValidationActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ValidationActivity.Serialization.cs @@ -103,10 +103,10 @@ internal static ValidationActivity DeserializeValidationActivity(JsonElement ele string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; Optional> timeout = default; Optional> sleep = default; Optional> minimumSize = default; @@ -137,7 +137,7 @@ internal static ValidationActivity DeserializeValidationActivity(JsonElement ele { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -146,7 +146,7 @@ internal static ValidationActivity DeserializeValidationActivity(JsonElement ele { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -155,10 +155,10 @@ internal static ValidationActivity DeserializeValidationActivity(JsonElement ele { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -169,10 +169,10 @@ internal static ValidationActivity DeserializeValidationActivity(JsonElement ele { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ValidationActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ValidationActivity.cs index 1b79185019c4..1857600e5b06 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ValidationActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ValidationActivity.cs @@ -42,7 +42,7 @@ public ValidationActivity(string name, DatasetReference dataset) : base(name) /// Can be used if dataset points to a file. The file must be greater than or equal in size to the value specified. Type: integer (or Expression with resultType integer). /// Can be used if dataset points to a folder. If set to true, the folder must have at least one file. If set to false, the folder must be empty. Type: boolean (or Expression with resultType boolean). /// Validation activity dataset reference. - internal ValidationActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryElement timeout, DataFactoryElement sleep, DataFactoryElement minimumSize, DataFactoryElement childItems, DatasetReference dataset) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) + internal ValidationActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryElement timeout, DataFactoryElement sleep, DataFactoryElement minimumSize, DataFactoryElement childItems, DatasetReference dataset) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) { Timeout = timeout; Sleep = sleep; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/VerticaLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/VerticaLinkedService.Serialization.cs index e96ee2e0d139..f5476db30999 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/VerticaLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/VerticaLinkedService.Serialization.cs @@ -75,11 +75,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -107,7 +103,7 @@ internal static VerticaLinkedService DeserializeVerticaLinkedService(JsonElement Optional> annotations = default; Optional> connectionString = default; Optional password = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -195,11 +191,7 @@ internal static VerticaLinkedService DeserializeVerticaLinkedService(JsonElement } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/VerticaLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/VerticaLinkedService.cs index 097d08307bec..85fe45693369 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/VerticaLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/VerticaLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Vertica linked service. - public partial class VerticaLinkedService : DataFactoryLinkedServiceDefinition + public partial class VerticaLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of VerticaLinkedService. public VerticaLinkedService() @@ -30,7 +30,7 @@ public VerticaLinkedService() /// An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. /// The Azure key vault secret reference of password in connection string. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal VerticaLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal VerticaLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, DataFactoryElement connectionString, DataFactoryKeyVaultSecretReference password, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionString = connectionString; Password = password; @@ -42,36 +42,7 @@ internal VerticaLinkedService(string linkedServiceType, IntegrationRuntimeRefere public DataFactoryElement ConnectionString { get; set; } /// The Azure key vault secret reference of password in connection string. public DataFactoryKeyVaultSecretReference Password { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/VerticaTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/VerticaTableDataset.cs index 43c69de29870..4a0c24cfc608 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/VerticaTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/VerticaTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Vertica dataset. - public partial class VerticaTableDataset : DataFactoryDatasetDefinition + public partial class VerticaTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of VerticaTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WaitActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WaitActivity.Serialization.cs index 223b5653f7c9..5df262b261ec 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WaitActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WaitActivity.Serialization.cs @@ -83,10 +83,10 @@ internal static WaitActivity DeserializeWaitActivity(JsonElement element) string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; DataFactoryElement waitTimeInSeconds = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); @@ -113,7 +113,7 @@ internal static WaitActivity DeserializeWaitActivity(JsonElement element) { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -122,7 +122,7 @@ internal static WaitActivity DeserializeWaitActivity(JsonElement element) { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -131,10 +131,10 @@ internal static WaitActivity DeserializeWaitActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -145,10 +145,10 @@ internal static WaitActivity DeserializeWaitActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WaitActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WaitActivity.cs index e65559fe448b..d706e8ff3840 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WaitActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WaitActivity.cs @@ -38,7 +38,7 @@ public WaitActivity(string name, DataFactoryElement waitTimeInSeconds) : ba /// Activity user properties. /// Additional Properties. /// Duration in seconds. Type: integer (or Expression with resultType integer). - internal WaitActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryElement waitTimeInSeconds) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) + internal WaitActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryElement waitTimeInSeconds) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) { WaitTimeInSeconds = waitTimeInSeconds; ActivityType = activityType ?? "Wait"; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebActivity.Serialization.cs index 447aae6c23d6..b819510448ff 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebActivity.Serialization.cs @@ -138,14 +138,14 @@ internal static WebActivity DeserializeWebActivity(JsonElement element) return null; } Optional linkedServiceName = default; - Optional policy = default; + Optional policy = default; string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; WebActivityMethod method = default; DataFactoryElement url = default; Optional> headers = default; @@ -174,7 +174,7 @@ internal static WebActivity DeserializeWebActivity(JsonElement element) { continue; } - policy = ActivityPolicy.DeserializeActivityPolicy(property.Value); + policy = PipelineActivityPolicy.DeserializePipelineActivityPolicy(property.Value); continue; } if (property.NameEquals("name"u8)) @@ -198,7 +198,7 @@ internal static WebActivity DeserializeWebActivity(JsonElement element) { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -207,7 +207,7 @@ internal static WebActivity DeserializeWebActivity(JsonElement element) { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -216,10 +216,10 @@ internal static WebActivity DeserializeWebActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -230,10 +230,10 @@ internal static WebActivity DeserializeWebActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebActivity.cs index a74fb7d761cb..9c6d15aa496f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebActivity.cs @@ -52,7 +52,7 @@ public WebActivity(string name, WebActivityMethod method, DataFactoryElement List of datasets passed to web endpoint. /// List of linked services passed to web endpoint. /// The integration runtime reference. - internal WebActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, ActivityPolicy policy, WebActivityMethod method, DataFactoryElement uri, DataFactoryElement headers, DataFactoryElement body, WebActivityAuthentication authentication, bool? disableCertValidation, IList datasets, IList linkedServices, IntegrationRuntimeReference connectVia) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal WebActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, DataFactoryLinkedServiceReference linkedServiceName, PipelineActivityPolicy policy, WebActivityMethod method, DataFactoryElement uri, DataFactoryElement headers, DataFactoryElement body, WebActivityAuthentication authentication, bool? disableCertValidation, IList datasets, IList linkedServices, IntegrationRuntimeReference connectVia) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { Method = method; Uri = uri; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebHookActivity.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebHookActivity.Serialization.cs index 3c80f29d218e..c1dda5014031 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebHookActivity.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebHookActivity.Serialization.cs @@ -110,10 +110,10 @@ internal static WebHookActivity DeserializeWebHookActivity(JsonElement element) string name = default; string type = default; Optional description = default; - Optional state = default; - Optional onInactiveMarkAs = default; - Optional> dependsOn = default; - Optional> userProperties = default; + Optional state = default; + Optional onInactiveMarkAs = default; + Optional> dependsOn = default; + Optional> userProperties = default; WebHookActivityMethod method = default; DataFactoryElement url = default; Optional timeout = default; @@ -146,7 +146,7 @@ internal static WebHookActivity DeserializeWebHookActivity(JsonElement element) { continue; } - state = new ActivityState(property.Value.GetString()); + state = new PipelineActivityState(property.Value.GetString()); continue; } if (property.NameEquals("onInactiveMarkAs"u8)) @@ -155,7 +155,7 @@ internal static WebHookActivity DeserializeWebHookActivity(JsonElement element) { continue; } - onInactiveMarkAs = new ActivityOnInactiveMarkA(property.Value.GetString()); + onInactiveMarkAs = new ActivityOnInactiveMarkAs(property.Value.GetString()); continue; } if (property.NameEquals("dependsOn"u8)) @@ -164,10 +164,10 @@ internal static WebHookActivity DeserializeWebHookActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityDependency.DeserializeActivityDependency(item)); + array.Add(PipelineActivityDependency.DeserializePipelineActivityDependency(item)); } dependsOn = array; continue; @@ -178,10 +178,10 @@ internal static WebHookActivity DeserializeWebHookActivity(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityUserProperty.DeserializeActivityUserProperty(item)); + array.Add(PipelineActivityUserProperty.DeserializePipelineActivityUserProperty(item)); } userProperties = array; continue; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebHookActivity.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebHookActivity.cs index c3677c81564b..96156ed7c3e6 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebHookActivity.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebHookActivity.cs @@ -46,7 +46,7 @@ public WebHookActivity(string name, WebHookActivityMethod method, DataFactoryEle /// Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string). /// Authentication method used for calling the endpoint. /// When set to true, statusCode, output and error in callback request body will be consumed by activity. The activity can be marked as failed by setting statusCode >= 400 in callback request. Default is false. Type: boolean (or Expression with resultType boolean). - internal WebHookActivity(string name, string activityType, string description, ActivityState? state, ActivityOnInactiveMarkA? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, WebHookActivityMethod method, DataFactoryElement uri, string timeout, DataFactoryElement headers, DataFactoryElement body, WebActivityAuthentication authentication, DataFactoryElement reportStatusOnCallBack) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) + internal WebHookActivity(string name, string activityType, string description, PipelineActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, WebHookActivityMethod method, DataFactoryElement uri, string timeout, DataFactoryElement headers, DataFactoryElement body, WebActivityAuthentication authentication, DataFactoryElement reportStatusOnCallBack) : base(name, activityType, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) { Method = method; Uri = uri; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebLinkedService.cs index 9428debb9fb4..9552f723e2e8 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Web linked service. - public partial class WebLinkedService : DataFactoryLinkedServiceDefinition + public partial class WebLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of WebLinkedService. /// diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebTableDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebTableDataset.cs index 94a0cd6b8738..baf01af9381c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebTableDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/WebTableDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// The dataset points to a HTML table in the web page. - public partial class WebTableDataset : DataFactoryDatasetDefinition + public partial class WebTableDataset : DataFactoryDatasetProperties { /// Initializes a new instance of WebTableDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/XeroLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/XeroLinkedService.Serialization.cs index 089033df97cd..0bf18f10c458 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/XeroLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/XeroLinkedService.Serialization.cs @@ -104,11 +104,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -141,7 +137,7 @@ internal static XeroLinkedService DeserializeXeroLinkedService(JsonElement eleme Optional> useEncryptedEndpoints = default; Optional> useHostVerification = default; Optional> usePeerVerification = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -274,11 +270,7 @@ internal static XeroLinkedService DeserializeXeroLinkedService(JsonElement eleme } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/XeroLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/XeroLinkedService.cs index 89e5dece3d69..852800111ac9 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/XeroLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/XeroLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Xero Service linked service. - public partial class XeroLinkedService : DataFactoryLinkedServiceDefinition + public partial class XeroLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of XeroLinkedService. public XeroLinkedService() @@ -38,7 +38,7 @@ public XeroLinkedService() /// Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal XeroLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData connectionProperties, DataFactoryElement host, DataFactorySecretBaseDefinition consumerKey, DataFactorySecretBaseDefinition privateKey, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal XeroLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData connectionProperties, DataFactoryElement host, DataFactorySecretBaseDefinition consumerKey, DataFactorySecretBaseDefinition privateKey, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionProperties = connectionProperties; Host = host; @@ -97,36 +97,7 @@ internal XeroLinkedService(string linkedServiceType, IntegrationRuntimeReference public DataFactoryElement UseHostVerification { get; set; } /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. public DataFactoryElement UsePeerVerification { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/XeroObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/XeroObjectDataset.cs index c5e41811bf2e..156bc33d22a1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/XeroObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/XeroObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Xero Service dataset. - public partial class XeroObjectDataset : DataFactoryDatasetDefinition + public partial class XeroObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of XeroObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/XmlDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/XmlDataset.cs index 0d769f0559fb..a8596078074a 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/XmlDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/XmlDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Xml dataset. - public partial class XmlDataset : DataFactoryDatasetDefinition + public partial class XmlDataset : DataFactoryDatasetProperties { /// Initializes a new instance of XmlDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ZendeskLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ZendeskLinkedService.Serialization.cs index 2fb14d1b8e06..2cb2ebad9333 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ZendeskLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ZendeskLinkedService.Serialization.cs @@ -84,11 +84,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -119,7 +115,7 @@ internal static ZendeskLinkedService DeserializeZendeskLinkedService(JsonElement Optional> userName = default; Optional password = default; Optional apiToken = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -226,11 +222,7 @@ internal static ZendeskLinkedService DeserializeZendeskLinkedService(JsonElement } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ZendeskLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ZendeskLinkedService.cs index a36fe973c8c1..8cafe132723b 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ZendeskLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ZendeskLinkedService.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Linked service for Zendesk. - public partial class ZendeskLinkedService : DataFactoryLinkedServiceDefinition + public partial class ZendeskLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of ZendeskLinkedService. /// The authentication type to use. @@ -41,7 +41,7 @@ public ZendeskLinkedService(ZendeskAuthenticationType authenticationType, DataFa /// The password of the Zendesk source. /// The api token for the Zendesk source. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal ZendeskLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, ZendeskAuthenticationType authenticationType, DataFactoryElement uri, DataFactoryElement userName, DataFactorySecretBaseDefinition password, DataFactorySecretBaseDefinition apiToken, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal ZendeskLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, ZendeskAuthenticationType authenticationType, DataFactoryElement uri, DataFactoryElement userName, DataFactorySecretBaseDefinition password, DataFactorySecretBaseDefinition apiToken, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { AuthenticationType = authenticationType; Uri = uri; @@ -62,36 +62,7 @@ internal ZendeskLinkedService(string linkedServiceType, IntegrationRuntimeRefere public DataFactorySecretBaseDefinition Password { get; set; } /// The api token for the Zendesk source. public DataFactorySecretBaseDefinition ApiToken { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ZohoLinkedService.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ZohoLinkedService.Serialization.cs index c0a68081c4c2..12eca02fe8db 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ZohoLinkedService.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ZohoLinkedService.Serialization.cs @@ -99,11 +99,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EncryptedCredential)) { writer.WritePropertyName("encryptedCredential"u8); -#if NET6_0_OR_GREATER - writer.WriteRawValue(EncryptedCredential); -#else - JsonSerializer.Serialize(writer, JsonDocument.Parse(EncryptedCredential.ToString()).RootElement); -#endif + writer.WriteStringValue(EncryptedCredential); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -135,7 +131,7 @@ internal static ZohoLinkedService DeserializeZohoLinkedService(JsonElement eleme Optional> useEncryptedEndpoints = default; Optional> useHostVerification = default; Optional> usePeerVerification = default; - Optional encryptedCredential = default; + Optional encryptedCredential = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -259,11 +255,7 @@ internal static ZohoLinkedService DeserializeZohoLinkedService(JsonElement eleme } if (property0.NameEquals("encryptedCredential"u8)) { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - encryptedCredential = BinaryData.FromString(property0.Value.GetRawText()); + encryptedCredential = property0.Value.GetString(); continue; } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ZohoLinkedService.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ZohoLinkedService.cs index 390874e4235e..fd909e9d316c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ZohoLinkedService.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ZohoLinkedService.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Zoho server linked service. - public partial class ZohoLinkedService : DataFactoryLinkedServiceDefinition + public partial class ZohoLinkedService : DataFactoryLinkedServiceProperties { /// Initializes a new instance of ZohoLinkedService. public ZohoLinkedService() @@ -34,7 +34,7 @@ public ZohoLinkedService() /// Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting over SSL. The default value is true. /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - internal ZohoLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData connectionProperties, DataFactoryElement endpoint, DataFactorySecretBaseDefinition accessToken, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, BinaryData encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) + internal ZohoLinkedService(string linkedServiceType, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties, BinaryData connectionProperties, DataFactoryElement endpoint, DataFactorySecretBaseDefinition accessToken, DataFactoryElement useEncryptedEndpoints, DataFactoryElement useHostVerification, DataFactoryElement usePeerVerification, string encryptedCredential) : base(linkedServiceType, connectVia, description, parameters, annotations, additionalProperties) { ConnectionProperties = connectionProperties; Endpoint = endpoint; @@ -87,36 +87,7 @@ internal ZohoLinkedService(string linkedServiceType, IntegrationRuntimeReference public DataFactoryElement UseHostVerification { get; set; } /// Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. public DataFactoryElement UsePeerVerification { get; set; } - /// - /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - /// - /// To assign an object to this property use . - /// - /// - /// To assign an already formated json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - public BinaryData EncryptedCredential { get; set; } + /// The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + public string EncryptedCredential { get; set; } } } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ZohoObjectDataset.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ZohoObjectDataset.cs index 382de718a5eb..faae5a89626c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ZohoObjectDataset.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ZohoObjectDataset.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.DataFactory.Models { /// Zoho server dataset. - public partial class ZohoObjectDataset : DataFactoryDatasetDefinition + public partial class ZohoObjectDataset : DataFactoryDatasetProperties { /// Initializes a new instance of ZohoObjectDataset. /// Linked service reference. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ActivityRunsRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ActivityRunsRestOperations.cs index 487c72500041..8080a2dc44f2 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ActivityRunsRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ActivityRunsRestOperations.cs @@ -73,7 +73,7 @@ internal HttpMessage CreateQueryByPipelineRunRequest(string subscriptionId, stri /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> QueryByPipelineRunAsync(string subscriptionId, string resourceGroupName, string factoryName, string runId, RunFilterContent content, CancellationToken cancellationToken = default) + public async Task> QueryByPipelineRunAsync(string subscriptionId, string resourceGroupName, string factoryName, string runId, RunFilterContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -87,9 +87,9 @@ public async Task> QueryByPipelineRunAsy { case 200: { - DataFactoryActivityRunsResult value = default; + PipelineActivityRunsResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = DataFactoryActivityRunsResult.DeserializeDataFactoryActivityRunsResult(document.RootElement); + value = PipelineActivityRunsResult.DeserializePipelineActivityRunsResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -106,7 +106,7 @@ public async Task> QueryByPipelineRunAsy /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response QueryByPipelineRun(string subscriptionId, string resourceGroupName, string factoryName, string runId, RunFilterContent content, CancellationToken cancellationToken = default) + public Response QueryByPipelineRun(string subscriptionId, string resourceGroupName, string factoryName, string runId, RunFilterContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -120,9 +120,9 @@ public Response QueryByPipelineRun(string subscri { case 200: { - DataFactoryActivityRunsResult value = default; + PipelineActivityRunsResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = DataFactoryActivityRunsResult.DeserializeDataFactoryActivityRunsResult(document.RootElement); + value = PipelineActivityRunsResult.DeserializePipelineActivityRunsResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ChangeDataCaptureRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ChangeDataCaptureRestOperations.cs new file mode 100644 index 000000000000..c11607247f40 --- /dev/null +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ChangeDataCaptureRestOperations.cs @@ -0,0 +1,698 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.DataFactory.Models; + +namespace Azure.ResourceManager.DataFactory +{ + internal partial class ChangeDataCaptureRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of ChangeDataCaptureRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public ChangeDataCaptureRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2018-06-01"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListByFactoryRequest(string subscriptionId, string resourceGroupName, string factoryName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/adfcdcs", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists all resources of type change data capture. + /// The subscription identifier. + /// The resource group name. + /// The factory name. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByFactoryAsync(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(factoryName, nameof(factoryName)); + + using var message = CreateListByFactoryRequest(subscriptionId, resourceGroupName, factoryName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ChangeDataCaptureListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ChangeDataCaptureListResult.DeserializeChangeDataCaptureListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists all resources of type change data capture. + /// The subscription identifier. + /// The resource group name. + /// The factory name. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByFactory(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(factoryName, nameof(factoryName)); + + using var message = CreateListByFactoryRequest(subscriptionId, resourceGroupName, factoryName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ChangeDataCaptureListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ChangeDataCaptureListResult.DeserializeChangeDataCaptureListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName, DataFactoryChangeDataCaptureData data, string ifMatch) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/adfcdcs/", false); + uri.AppendPath(changeDataCaptureName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + if (ifMatch != null) + { + request.Headers.Add("If-Match", ifMatch); + } + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Creates or updates a change data capture resource. + /// The subscription identifier. + /// The resource group name. + /// The factory name. + /// The change data capture name. + /// Change data capture resource definition. + /// ETag of the change data capture entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName, DataFactoryChangeDataCaptureData data, string ifMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(factoryName, nameof(factoryName)); + Argument.AssertNotNullOrEmpty(changeDataCaptureName, nameof(changeDataCaptureName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, factoryName, changeDataCaptureName, data, ifMatch); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DataFactoryChangeDataCaptureData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = DataFactoryChangeDataCaptureData.DeserializeDataFactoryChangeDataCaptureData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Creates or updates a change data capture resource. + /// The subscription identifier. + /// The resource group name. + /// The factory name. + /// The change data capture name. + /// Change data capture resource definition. + /// ETag of the change data capture entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName, DataFactoryChangeDataCaptureData data, string ifMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(factoryName, nameof(factoryName)); + Argument.AssertNotNullOrEmpty(changeDataCaptureName, nameof(changeDataCaptureName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, factoryName, changeDataCaptureName, data, ifMatch); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DataFactoryChangeDataCaptureData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = DataFactoryChangeDataCaptureData.DeserializeDataFactoryChangeDataCaptureData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName, string ifNoneMatch) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/adfcdcs/", false); + uri.AppendPath(changeDataCaptureName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + if (ifNoneMatch != null) + { + request.Headers.Add("If-None-Match", ifNoneMatch); + } + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets a change data capture. + /// The subscription identifier. + /// The resource group name. + /// The factory name. + /// The change data capture name. + /// ETag of the change data capture entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(factoryName, nameof(factoryName)); + Argument.AssertNotNullOrEmpty(changeDataCaptureName, nameof(changeDataCaptureName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, factoryName, changeDataCaptureName, ifNoneMatch); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DataFactoryChangeDataCaptureData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = DataFactoryChangeDataCaptureData.DeserializeDataFactoryChangeDataCaptureData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((DataFactoryChangeDataCaptureData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets a change data capture. + /// The subscription identifier. + /// The resource group name. + /// The factory name. + /// The change data capture name. + /// ETag of the change data capture entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName, string ifNoneMatch = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(factoryName, nameof(factoryName)); + Argument.AssertNotNullOrEmpty(changeDataCaptureName, nameof(changeDataCaptureName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, factoryName, changeDataCaptureName, ifNoneMatch); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DataFactoryChangeDataCaptureData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = DataFactoryChangeDataCaptureData.DeserializeDataFactoryChangeDataCaptureData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((DataFactoryChangeDataCaptureData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/adfcdcs/", false); + uri.AppendPath(changeDataCaptureName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Deletes a change data capture. + /// The subscription identifier. + /// The resource group name. + /// The factory name. + /// The change data capture name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(factoryName, nameof(factoryName)); + Argument.AssertNotNullOrEmpty(changeDataCaptureName, nameof(changeDataCaptureName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, factoryName, changeDataCaptureName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Deletes a change data capture. + /// The subscription identifier. + /// The resource group name. + /// The factory name. + /// The change data capture name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(factoryName, nameof(factoryName)); + Argument.AssertNotNullOrEmpty(changeDataCaptureName, nameof(changeDataCaptureName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, factoryName, changeDataCaptureName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/adfcdcs/", false); + uri.AppendPath(changeDataCaptureName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Starts a change data capture. + /// The subscription identifier. + /// The resource group name. + /// The factory name. + /// The change data capture name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task StartAsync(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(factoryName, nameof(factoryName)); + Argument.AssertNotNullOrEmpty(changeDataCaptureName, nameof(changeDataCaptureName)); + + using var message = CreateStartRequest(subscriptionId, resourceGroupName, factoryName, changeDataCaptureName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Starts a change data capture. + /// The subscription identifier. + /// The resource group name. + /// The factory name. + /// The change data capture name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Start(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(factoryName, nameof(factoryName)); + Argument.AssertNotNullOrEmpty(changeDataCaptureName, nameof(changeDataCaptureName)); + + using var message = CreateStartRequest(subscriptionId, resourceGroupName, factoryName, changeDataCaptureName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/adfcdcs/", false); + uri.AppendPath(changeDataCaptureName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Stops a change data capture. + /// The subscription identifier. + /// The resource group name. + /// The factory name. + /// The change data capture name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task StopAsync(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(factoryName, nameof(factoryName)); + Argument.AssertNotNullOrEmpty(changeDataCaptureName, nameof(changeDataCaptureName)); + + using var message = CreateStopRequest(subscriptionId, resourceGroupName, factoryName, changeDataCaptureName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Stops a change data capture. + /// The subscription identifier. + /// The resource group name. + /// The factory name. + /// The change data capture name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Stop(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(factoryName, nameof(factoryName)); + Argument.AssertNotNullOrEmpty(changeDataCaptureName, nameof(changeDataCaptureName)); + + using var message = CreateStopRequest(subscriptionId, resourceGroupName, factoryName, changeDataCaptureName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateStatusRequest(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.DataFactory/factories/", false); + uri.AppendPath(factoryName, true); + uri.AppendPath("/adfcdcs/", false); + uri.AppendPath(changeDataCaptureName, true); + uri.AppendPath("/status", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets the current status for the change data capture resource. + /// The subscription identifier. + /// The resource group name. + /// The factory name. + /// The change data capture name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> StatusAsync(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(factoryName, nameof(factoryName)); + Argument.AssertNotNullOrEmpty(changeDataCaptureName, nameof(changeDataCaptureName)); + + using var message = CreateStatusRequest(subscriptionId, resourceGroupName, factoryName, changeDataCaptureName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + string value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = document.RootElement.GetString(); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets the current status for the change data capture resource. + /// The subscription identifier. + /// The resource group name. + /// The factory name. + /// The change data capture name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Status(string subscriptionId, string resourceGroupName, string factoryName, string changeDataCaptureName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(factoryName, nameof(factoryName)); + Argument.AssertNotNullOrEmpty(changeDataCaptureName, nameof(changeDataCaptureName)); + + using var message = CreateStatusRequest(subscriptionId, resourceGroupName, factoryName, changeDataCaptureName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + string value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = document.RootElement.GetString(); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListByFactoryNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string factoryName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists all resources of type change data capture. + /// The URL to the next page of results. + /// The subscription identifier. + /// The resource group name. + /// The factory name. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByFactoryNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(factoryName, nameof(factoryName)); + + using var message = CreateListByFactoryNextPageRequest(nextLink, subscriptionId, resourceGroupName, factoryName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ChangeDataCaptureListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ChangeDataCaptureListResult.DeserializeChangeDataCaptureListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists all resources of type change data capture. + /// The URL to the next page of results. + /// The subscription identifier. + /// The resource group name. + /// The factory name. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByFactoryNextPage(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(factoryName, nameof(factoryName)); + + using var message = CreateListByFactoryNextPageRequest(nextLink, subscriptionId, resourceGroupName, factoryName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ChangeDataCaptureListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ChangeDataCaptureListResult.DeserializeChangeDataCaptureListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/CredentialRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/CredentialRestOperations.cs index f9f68f65d9db..1386d1e44d18 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/CredentialRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/CredentialRestOperations.cs @@ -65,7 +65,7 @@ internal HttpMessage CreateListByFactoryRequest(string subscriptionId, string re /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByFactoryAsync(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public async Task> ListByFactoryAsync(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -77,9 +77,9 @@ public async Task> ListByFactoryAsync(string su { case 200: { - CredentialListResponse value = default; + DataFactoryCredentialListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = CredentialListResponse.DeserializeCredentialListResponse(document.RootElement); + value = DataFactoryCredentialListResult.DeserializeDataFactoryCredentialListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -94,7 +94,7 @@ public async Task> ListByFactoryAsync(string su /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByFactory(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public Response ListByFactory(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -106,9 +106,9 @@ public Response ListByFactory(string subscriptionId, str { case 200: { - CredentialListResponse value = default; + DataFactoryCredentialListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = CredentialListResponse.DeserializeCredentialListResponse(document.RootElement); + value = DataFactoryCredentialListResult.DeserializeDataFactoryCredentialListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -408,7 +408,7 @@ internal HttpMessage CreateListByFactoryNextPageRequest(string nextLink, string /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByFactoryNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public async Task> ListByFactoryNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -421,9 +421,9 @@ public async Task> ListByFactoryNextPageAsync(s { case 200: { - CredentialListResponse value = default; + DataFactoryCredentialListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = CredentialListResponse.DeserializeCredentialListResponse(document.RootElement); + value = DataFactoryCredentialListResult.DeserializeDataFactoryCredentialListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -439,7 +439,7 @@ public async Task> ListByFactoryNextPageAsync(s /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByFactoryNextPage(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public Response ListByFactoryNextPage(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -452,9 +452,9 @@ public Response ListByFactoryNextPage(string nextLink, s { case 200: { - CredentialListResponse value = default; + DataFactoryCredentialListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = CredentialListResponse.DeserializeCredentialListResponse(document.RootElement); + value = DataFactoryCredentialListResult.DeserializeDataFactoryCredentialListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DataFlowDebugSessionRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DataFlowDebugSessionRestOperations.cs index bfb51a650043..7cf7a0ec2f1c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DataFlowDebugSessionRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DataFlowDebugSessionRestOperations.cs @@ -144,7 +144,7 @@ internal HttpMessage CreateQueryByFactoryRequest(string subscriptionId, string r /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> QueryByFactoryAsync(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public async Task> QueryByFactoryAsync(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -156,9 +156,9 @@ public async Task> QueryByFactoryAs { case 200: { - QueryDataFlowDebugSessionsResponse value = default; + DataFlowDebugSessionInfoListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = QueryDataFlowDebugSessionsResponse.DeserializeQueryDataFlowDebugSessionsResponse(document.RootElement); + value = DataFlowDebugSessionInfoListResult.DeserializeDataFlowDebugSessionInfoListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -173,7 +173,7 @@ public async Task> QueryByFactoryAs /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response QueryByFactory(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public Response QueryByFactory(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -185,9 +185,9 @@ public Response QueryByFactory(string subscr { case 200: { - QueryDataFlowDebugSessionsResponse value = default; + DataFlowDebugSessionInfoListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = QueryDataFlowDebugSessionsResponse.DeserializeQueryDataFlowDebugSessionsResponse(document.RootElement); + value = DataFlowDebugSessionInfoListResult.DeserializeDataFlowDebugSessionInfoListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -460,7 +460,7 @@ internal HttpMessage CreateQueryByFactoryNextPageRequest(string nextLink, string /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> QueryByFactoryNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public async Task> QueryByFactoryNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -473,9 +473,9 @@ public async Task> QueryByFactoryNe { case 200: { - QueryDataFlowDebugSessionsResponse value = default; + DataFlowDebugSessionInfoListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = QueryDataFlowDebugSessionsResponse.DeserializeQueryDataFlowDebugSessionsResponse(document.RootElement); + value = DataFlowDebugSessionInfoListResult.DeserializeDataFlowDebugSessionInfoListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -491,7 +491,7 @@ public async Task> QueryByFactoryNe /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response QueryByFactoryNextPage(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public Response QueryByFactoryNextPage(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -504,9 +504,9 @@ public Response QueryByFactoryNextPage(strin { case 200: { - QueryDataFlowDebugSessionsResponse value = default; + DataFlowDebugSessionInfoListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = QueryDataFlowDebugSessionsResponse.DeserializeQueryDataFlowDebugSessionsResponse(document.RootElement); + value = DataFlowDebugSessionInfoListResult.DeserializeDataFlowDebugSessionInfoListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DataFlowsRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DataFlowsRestOperations.cs index 4b418851f358..06b08313f841 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DataFlowsRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DataFlowsRestOperations.cs @@ -333,7 +333,7 @@ internal HttpMessage CreateListByFactoryRequest(string subscriptionId, string re /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByFactoryAsync(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public async Task> ListByFactoryAsync(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -345,9 +345,9 @@ public async Task> ListByFactoryAsync(string subs { case 200: { - DataFlowListResponse value = default; + DataFactoryDataFlowListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = DataFlowListResponse.DeserializeDataFlowListResponse(document.RootElement); + value = DataFactoryDataFlowListResult.DeserializeDataFactoryDataFlowListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -362,7 +362,7 @@ public async Task> ListByFactoryAsync(string subs /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByFactory(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public Response ListByFactory(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -374,9 +374,9 @@ public Response ListByFactory(string subscriptionId, strin { case 200: { - DataFlowListResponse value = default; + DataFactoryDataFlowListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = DataFlowListResponse.DeserializeDataFlowListResponse(document.RootElement); + value = DataFactoryDataFlowListResult.DeserializeDataFactoryDataFlowListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -406,7 +406,7 @@ internal HttpMessage CreateListByFactoryNextPageRequest(string nextLink, string /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByFactoryNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public async Task> ListByFactoryNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -419,9 +419,9 @@ public async Task> ListByFactoryNextPageAsync(str { case 200: { - DataFlowListResponse value = default; + DataFactoryDataFlowListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = DataFlowListResponse.DeserializeDataFlowListResponse(document.RootElement); + value = DataFactoryDataFlowListResult.DeserializeDataFactoryDataFlowListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -437,7 +437,7 @@ public async Task> ListByFactoryNextPageAsync(str /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByFactoryNextPage(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public Response ListByFactoryNextPage(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -450,9 +450,9 @@ public Response ListByFactoryNextPage(string nextLink, str { case 200: { - DataFlowListResponse value = default; + DataFactoryDataFlowListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = DataFlowListResponse.DeserializeDataFlowListResponse(document.RootElement); + value = DataFactoryDataFlowListResult.DeserializeDataFactoryDataFlowListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DatasetsRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DatasetsRestOperations.cs index b478b960708a..05ffeee3c7ce 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DatasetsRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/DatasetsRestOperations.cs @@ -65,7 +65,7 @@ internal HttpMessage CreateListByFactoryRequest(string subscriptionId, string re /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByFactoryAsync(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public async Task> ListByFactoryAsync(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -77,9 +77,9 @@ public async Task> ListByFactoryAsync(string subsc { case 200: { - DatasetListResponse value = default; + DataFactoryDatasetListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = DatasetListResponse.DeserializeDatasetListResponse(document.RootElement); + value = DataFactoryDatasetListResult.DeserializeDataFactoryDatasetListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -94,7 +94,7 @@ public async Task> ListByFactoryAsync(string subsc /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByFactory(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public Response ListByFactory(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -106,9 +106,9 @@ public Response ListByFactory(string subscriptionId, string { case 200: { - DatasetListResponse value = default; + DataFactoryDatasetListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = DatasetListResponse.DeserializeDatasetListResponse(document.RootElement); + value = DataFactoryDatasetListResult.DeserializeDataFactoryDatasetListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -408,7 +408,7 @@ internal HttpMessage CreateListByFactoryNextPageRequest(string nextLink, string /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByFactoryNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public async Task> ListByFactoryNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -421,9 +421,9 @@ public async Task> ListByFactoryNextPageAsync(stri { case 200: { - DatasetListResponse value = default; + DataFactoryDatasetListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = DatasetListResponse.DeserializeDatasetListResponse(document.RootElement); + value = DataFactoryDatasetListResult.DeserializeDataFactoryDatasetListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -439,7 +439,7 @@ public async Task> ListByFactoryNextPageAsync(stri /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByFactoryNextPage(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public Response ListByFactoryNextPage(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -452,9 +452,9 @@ public Response ListByFactoryNextPage(string nextLink, stri { case 200: { - DatasetListResponse value = default; + DataFactoryDatasetListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = DatasetListResponse.DeserializeDatasetListResponse(document.RootElement); + value = DataFactoryDatasetListResult.DeserializeDataFactoryDatasetListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/FactoriesRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/FactoriesRestOperations.cs index bc8dd775df65..28c5a484d166 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/FactoriesRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/FactoriesRestOperations.cs @@ -104,7 +104,7 @@ public Response List(string subscriptionId, CancellationT } } - internal HttpMessage CreateConfigureFactoryRepoRequest(string subscriptionId, AzureLocation locationId, FactoryRepoUpdate factoryRepoUpdate) + internal HttpMessage CreateConfigureFactoryRepoRequest(string subscriptionId, AzureLocation locationId, FactoryRepoContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -120,9 +120,9 @@ internal HttpMessage CreateConfigureFactoryRepoRequest(string subscriptionId, Az request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(factoryRepoUpdate); - request.Content = content; + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; _userAgent.Apply(message); return message; } @@ -130,16 +130,16 @@ internal HttpMessage CreateConfigureFactoryRepoRequest(string subscriptionId, Az /// Updates a factory's repo information. /// The subscription identifier. /// The location identifier. - /// Update factory repo request definition. + /// Update factory repo request definition. /// The cancellation token to use. - /// or is null. + /// or is null. /// is an empty string, and was expected to be non-empty. - public async Task> ConfigureFactoryRepoAsync(string subscriptionId, AzureLocation locationId, FactoryRepoUpdate factoryRepoUpdate, CancellationToken cancellationToken = default) + public async Task> ConfigureFactoryRepoAsync(string subscriptionId, AzureLocation locationId, FactoryRepoContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNull(factoryRepoUpdate, nameof(factoryRepoUpdate)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreateConfigureFactoryRepoRequest(subscriptionId, locationId, factoryRepoUpdate); + using var message = CreateConfigureFactoryRepoRequest(subscriptionId, locationId, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -158,16 +158,16 @@ public async Task> ConfigureFactoryRepoAsync(string su /// Updates a factory's repo information. /// The subscription identifier. /// The location identifier. - /// Update factory repo request definition. + /// Update factory repo request definition. /// The cancellation token to use. - /// or is null. + /// or is null. /// is an empty string, and was expected to be non-empty. - public Response ConfigureFactoryRepo(string subscriptionId, AzureLocation locationId, FactoryRepoUpdate factoryRepoUpdate, CancellationToken cancellationToken = default) + public Response ConfigureFactoryRepo(string subscriptionId, AzureLocation locationId, FactoryRepoContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNull(factoryRepoUpdate, nameof(factoryRepoUpdate)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreateConfigureFactoryRepoRequest(subscriptionId, locationId, factoryRepoUpdate); + using var message = CreateConfigureFactoryRepoRequest(subscriptionId, locationId, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/GlobalParametersRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/GlobalParametersRestOperations.cs index 6aa5c2dcf71c..d0bc8ae4568c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/GlobalParametersRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/GlobalParametersRestOperations.cs @@ -65,7 +65,7 @@ internal HttpMessage CreateListByFactoryRequest(string subscriptionId, string re /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByFactoryAsync(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public async Task> ListByFactoryAsync(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -77,9 +77,9 @@ public async Task> ListByFactoryAsync(stri { case 200: { - GlobalParameterListResponse value = default; + DataFactoryGlobalParameterListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = GlobalParameterListResponse.DeserializeGlobalParameterListResponse(document.RootElement); + value = DataFactoryGlobalParameterListResult.DeserializeDataFactoryGlobalParameterListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -94,7 +94,7 @@ public async Task> ListByFactoryAsync(stri /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByFactory(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public Response ListByFactory(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -106,9 +106,9 @@ public Response ListByFactory(string subscriptionId { case 200: { - GlobalParameterListResponse value = default; + DataFactoryGlobalParameterListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = GlobalParameterListResponse.DeserializeGlobalParameterListResponse(document.RootElement); + value = DataFactoryGlobalParameterListResult.DeserializeDataFactoryGlobalParameterListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -394,7 +394,7 @@ internal HttpMessage CreateListByFactoryNextPageRequest(string nextLink, string /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByFactoryNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public async Task> ListByFactoryNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -407,9 +407,9 @@ public async Task> ListByFactoryNextPageAs { case 200: { - GlobalParameterListResponse value = default; + DataFactoryGlobalParameterListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = GlobalParameterListResponse.DeserializeGlobalParameterListResponse(document.RootElement); + value = DataFactoryGlobalParameterListResult.DeserializeDataFactoryGlobalParameterListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -425,7 +425,7 @@ public async Task> ListByFactoryNextPageAs /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByFactoryNextPage(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public Response ListByFactoryNextPage(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -438,9 +438,9 @@ public Response ListByFactoryNextPage(string nextLi { case 200: { - GlobalParameterListResponse value = default; + DataFactoryGlobalParameterListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = GlobalParameterListResponse.DeserializeGlobalParameterListResponse(document.RootElement); + value = DataFactoryGlobalParameterListResult.DeserializeDataFactoryGlobalParameterListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/IntegrationRuntimeObjectMetadataRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/IntegrationRuntimeObjectMetadataRestOperations.cs index 385848259fbf..eaa6606552df 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/IntegrationRuntimeObjectMetadataRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/IntegrationRuntimeObjectMetadataRestOperations.cs @@ -153,7 +153,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, GetSsisObjectMetadataContent content = null, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, GetSsisObjectMetadataContent content = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -166,9 +166,9 @@ public async Task> GetAsync(string subs { case 200: { - SsisObjectMetadataListResponse value = default; + SsisObjectMetadataListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SsisObjectMetadataListResponse.DeserializeSsisObjectMetadataListResponse(document.RootElement); + value = SsisObjectMetadataListResult.DeserializeSsisObjectMetadataListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -185,7 +185,7 @@ public async Task> GetAsync(string subs /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, GetSsisObjectMetadataContent content = null, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string factoryName, string integrationRuntimeName, GetSsisObjectMetadataContent content = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -198,9 +198,9 @@ public Response Get(string subscriptionId, strin { case 200: { - SsisObjectMetadataListResponse value = default; + SsisObjectMetadataListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SsisObjectMetadataListResponse.DeserializeSsisObjectMetadataListResponse(document.RootElement); + value = SsisObjectMetadataListResult.DeserializeSsisObjectMetadataListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/IntegrationRuntimesRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/IntegrationRuntimesRestOperations.cs index 970b95ba5325..c8a81e228e81 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/IntegrationRuntimesRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/IntegrationRuntimesRestOperations.cs @@ -65,7 +65,7 @@ internal HttpMessage CreateListByFactoryRequest(string subscriptionId, string re /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByFactoryAsync(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public async Task> ListByFactoryAsync(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -77,9 +77,9 @@ public async Task> ListByFactoryAsync(s { case 200: { - IntegrationRuntimeListResponse value = default; + DataFactoryIntegrationRuntimeListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = IntegrationRuntimeListResponse.DeserializeIntegrationRuntimeListResponse(document.RootElement); + value = DataFactoryIntegrationRuntimeListResult.DeserializeDataFactoryIntegrationRuntimeListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -94,7 +94,7 @@ public async Task> ListByFactoryAsync(s /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByFactory(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public Response ListByFactory(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -106,9 +106,9 @@ public Response ListByFactory(string subscriptio { case 200: { - IntegrationRuntimeListResponse value = default; + DataFactoryIntegrationRuntimeListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = IntegrationRuntimeListResponse.DeserializeIntegrationRuntimeListResponse(document.RootElement); + value = DataFactoryIntegrationRuntimeListResult.DeserializeDataFactoryIntegrationRuntimeListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -1498,7 +1498,7 @@ internal HttpMessage CreateListByFactoryNextPageRequest(string nextLink, string /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByFactoryNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public async Task> ListByFactoryNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -1511,9 +1511,9 @@ public async Task> ListByFactoryNextPag { case 200: { - IntegrationRuntimeListResponse value = default; + DataFactoryIntegrationRuntimeListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = IntegrationRuntimeListResponse.DeserializeIntegrationRuntimeListResponse(document.RootElement); + value = DataFactoryIntegrationRuntimeListResult.DeserializeDataFactoryIntegrationRuntimeListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -1529,7 +1529,7 @@ public async Task> ListByFactoryNextPag /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByFactoryNextPage(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public Response ListByFactoryNextPage(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -1542,9 +1542,9 @@ public Response ListByFactoryNextPage(string nex { case 200: { - IntegrationRuntimeListResponse value = default; + DataFactoryIntegrationRuntimeListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = IntegrationRuntimeListResponse.DeserializeIntegrationRuntimeListResponse(document.RootElement); + value = DataFactoryIntegrationRuntimeListResult.DeserializeDataFactoryIntegrationRuntimeListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/LinkedServicesRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/LinkedServicesRestOperations.cs index 08b02727d760..de12f8f2dd43 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/LinkedServicesRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/LinkedServicesRestOperations.cs @@ -65,7 +65,7 @@ internal HttpMessage CreateListByFactoryRequest(string subscriptionId, string re /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByFactoryAsync(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public async Task> ListByFactoryAsync(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -77,9 +77,9 @@ public async Task> ListByFactoryAsync(string { case 200: { - LinkedServiceListResponse value = default; + DataFactoryLinkedServiceListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = LinkedServiceListResponse.DeserializeLinkedServiceListResponse(document.RootElement); + value = DataFactoryLinkedServiceListResult.DeserializeDataFactoryLinkedServiceListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -94,7 +94,7 @@ public async Task> ListByFactoryAsync(string /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByFactory(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public Response ListByFactory(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -106,9 +106,9 @@ public Response ListByFactory(string subscriptionId, { case 200: { - LinkedServiceListResponse value = default; + DataFactoryLinkedServiceListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = LinkedServiceListResponse.DeserializeLinkedServiceListResponse(document.RootElement); + value = DataFactoryLinkedServiceListResult.DeserializeDataFactoryLinkedServiceListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -408,7 +408,7 @@ internal HttpMessage CreateListByFactoryNextPageRequest(string nextLink, string /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByFactoryNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public async Task> ListByFactoryNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -421,9 +421,9 @@ public async Task> ListByFactoryNextPageAsyn { case 200: { - LinkedServiceListResponse value = default; + DataFactoryLinkedServiceListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = LinkedServiceListResponse.DeserializeLinkedServiceListResponse(document.RootElement); + value = DataFactoryLinkedServiceListResult.DeserializeDataFactoryLinkedServiceListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -439,7 +439,7 @@ public async Task> ListByFactoryNextPageAsyn /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByFactoryNextPage(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public Response ListByFactoryNextPage(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -452,9 +452,9 @@ public Response ListByFactoryNextPage(string nextLink { case 200: { - LinkedServiceListResponse value = default; + DataFactoryLinkedServiceListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = LinkedServiceListResponse.DeserializeLinkedServiceListResponse(document.RootElement); + value = DataFactoryLinkedServiceListResult.DeserializeDataFactoryLinkedServiceListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs index 5654e16c4b33..80920af25141 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs @@ -68,7 +68,7 @@ internal HttpMessage CreateListByFactoryRequest(string subscriptionId, string re /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListByFactoryAsync(string subscriptionId, string resourceGroupName, string factoryName, string managedVirtualNetworkName, CancellationToken cancellationToken = default) + public async Task> ListByFactoryAsync(string subscriptionId, string resourceGroupName, string factoryName, string managedVirtualNetworkName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -81,9 +81,9 @@ public async Task> ListByFactoryAsy { case 200: { - ManagedPrivateEndpointListResponse value = default; + DataFactoryPrivateEndpointListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ManagedPrivateEndpointListResponse.DeserializeManagedPrivateEndpointListResponse(document.RootElement); + value = DataFactoryPrivateEndpointListResult.DeserializeDataFactoryPrivateEndpointListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -99,7 +99,7 @@ public async Task> ListByFactoryAsy /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response ListByFactory(string subscriptionId, string resourceGroupName, string factoryName, string managedVirtualNetworkName, CancellationToken cancellationToken = default) + public Response ListByFactory(string subscriptionId, string resourceGroupName, string factoryName, string managedVirtualNetworkName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -112,9 +112,9 @@ public Response ListByFactory(string subscri { case 200: { - ManagedPrivateEndpointListResponse value = default; + DataFactoryPrivateEndpointListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ManagedPrivateEndpointListResponse.DeserializeManagedPrivateEndpointListResponse(document.RootElement); + value = DataFactoryPrivateEndpointListResult.DeserializeDataFactoryPrivateEndpointListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -431,7 +431,7 @@ internal HttpMessage CreateListByFactoryNextPageRequest(string nextLink, string /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListByFactoryNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, string managedVirtualNetworkName, CancellationToken cancellationToken = default) + public async Task> ListByFactoryNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, string managedVirtualNetworkName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -445,9 +445,9 @@ public async Task> ListByFactoryNex { case 200: { - ManagedPrivateEndpointListResponse value = default; + DataFactoryPrivateEndpointListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ManagedPrivateEndpointListResponse.DeserializeManagedPrivateEndpointListResponse(document.RootElement); + value = DataFactoryPrivateEndpointListResult.DeserializeDataFactoryPrivateEndpointListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -464,7 +464,7 @@ public async Task> ListByFactoryNex /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response ListByFactoryNextPage(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, string managedVirtualNetworkName, CancellationToken cancellationToken = default) + public Response ListByFactoryNextPage(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, string managedVirtualNetworkName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -478,9 +478,9 @@ public Response ListByFactoryNextPage(string { case 200: { - ManagedPrivateEndpointListResponse value = default; + DataFactoryPrivateEndpointListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ManagedPrivateEndpointListResponse.DeserializeManagedPrivateEndpointListResponse(document.RootElement); + value = DataFactoryPrivateEndpointListResult.DeserializeDataFactoryPrivateEndpointListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ManagedVirtualNetworksRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ManagedVirtualNetworksRestOperations.cs index aa5b9a0d6bcc..3ba7d6b7bb80 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ManagedVirtualNetworksRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/ManagedVirtualNetworksRestOperations.cs @@ -65,7 +65,7 @@ internal HttpMessage CreateListByFactoryRequest(string subscriptionId, string re /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByFactoryAsync(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public async Task> ListByFactoryAsync(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -77,9 +77,9 @@ public async Task> ListByFactoryAsyn { case 200: { - ManagedVirtualNetworkListResponse value = default; + DataFactoryManagedVirtualNetworkListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ManagedVirtualNetworkListResponse.DeserializeManagedVirtualNetworkListResponse(document.RootElement); + value = DataFactoryManagedVirtualNetworkListResult.DeserializeDataFactoryManagedVirtualNetworkListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -94,7 +94,7 @@ public async Task> ListByFactoryAsyn /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByFactory(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public Response ListByFactory(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -106,9 +106,9 @@ public Response ListByFactory(string subscrip { case 200: { - ManagedVirtualNetworkListResponse value = default; + DataFactoryManagedVirtualNetworkListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ManagedVirtualNetworkListResponse.DeserializeManagedVirtualNetworkListResponse(document.RootElement); + value = DataFactoryManagedVirtualNetworkListResult.DeserializeDataFactoryManagedVirtualNetworkListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -330,7 +330,7 @@ internal HttpMessage CreateListByFactoryNextPageRequest(string nextLink, string /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByFactoryNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public async Task> ListByFactoryNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -343,9 +343,9 @@ public async Task> ListByFactoryNext { case 200: { - ManagedVirtualNetworkListResponse value = default; + DataFactoryManagedVirtualNetworkListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ManagedVirtualNetworkListResponse.DeserializeManagedVirtualNetworkListResponse(document.RootElement); + value = DataFactoryManagedVirtualNetworkListResult.DeserializeDataFactoryManagedVirtualNetworkListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -361,7 +361,7 @@ public async Task> ListByFactoryNext /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByFactoryNextPage(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public Response ListByFactoryNextPage(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -374,9 +374,9 @@ public Response ListByFactoryNextPage(string { case 200: { - ManagedVirtualNetworkListResponse value = default; + DataFactoryManagedVirtualNetworkListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ManagedVirtualNetworkListResponse.DeserializeManagedVirtualNetworkListResponse(document.RootElement); + value = DataFactoryManagedVirtualNetworkListResult.DeserializeDataFactoryManagedVirtualNetworkListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PrivateEndPointConnectionsRestOperations.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PrivateEndPointConnectionsRestOperations.cs index 26a36801f8b8..d0ff85cfc4b8 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PrivateEndPointConnectionsRestOperations.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/RestOperations/PrivateEndPointConnectionsRestOperations.cs @@ -65,7 +65,7 @@ internal HttpMessage CreateListByFactoryRequest(string subscriptionId, string re /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByFactoryAsync(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public async Task> ListByFactoryAsync(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -77,9 +77,9 @@ public async Task> ListByFactory { case 200: { - PrivateEndpointConnectionListResponse value = default; + DataFactoryPrivateEndpointConnectionListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = PrivateEndpointConnectionListResponse.DeserializePrivateEndpointConnectionListResponse(document.RootElement); + value = DataFactoryPrivateEndpointConnectionListResult.DeserializeDataFactoryPrivateEndpointConnectionListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -94,7 +94,7 @@ public async Task> ListByFactory /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByFactory(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public Response ListByFactory(string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -106,9 +106,9 @@ public Response ListByFactory(string subs { case 200: { - PrivateEndpointConnectionListResponse value = default; + DataFactoryPrivateEndpointConnectionListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = PrivateEndpointConnectionListResponse.DeserializePrivateEndpointConnectionListResponse(document.RootElement); + value = DataFactoryPrivateEndpointConnectionListResult.DeserializeDataFactoryPrivateEndpointConnectionListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -138,7 +138,7 @@ internal HttpMessage CreateListByFactoryNextPageRequest(string nextLink, string /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByFactoryNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public async Task> ListByFactoryNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -151,9 +151,9 @@ public async Task> ListByFactory { case 200: { - PrivateEndpointConnectionListResponse value = default; + DataFactoryPrivateEndpointConnectionListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = PrivateEndpointConnectionListResponse.DeserializePrivateEndpointConnectionListResponse(document.RootElement); + value = DataFactoryPrivateEndpointConnectionListResult.DeserializeDataFactoryPrivateEndpointConnectionListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -169,7 +169,7 @@ public async Task> ListByFactory /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByFactoryNextPage(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) + public Response ListByFactoryNextPage(string nextLink, string subscriptionId, string resourceGroupName, string factoryName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -182,9 +182,9 @@ public Response ListByFactoryNextPage(str { case 200: { - PrivateEndpointConnectionListResponse value = default; + DataFactoryPrivateEndpointConnectionListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = PrivateEndpointConnectionListResponse.DeserializePrivateEndpointConnectionListResponse(document.RootElement); + value = DataFactoryPrivateEndpointConnectionListResult.DeserializeDataFactoryPrivateEndpointConnectionListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/autorest.md b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/autorest.md index 5b86ca164eb4..5368c78b3a54 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/autorest.md +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/autorest.md @@ -9,14 +9,14 @@ generate-model-factory: false csharp: true library-name: DataFactory namespace: Azure.ResourceManager.DataFactory -require: https://github.com/Azure/azure-rest-api-specs/blob/cd06d327e115cdb55f8e7c9fd1b23fa551b5b750/specification/datafactory/resource-manager/readme.md +require: https://github.com/Azure/azure-rest-api-specs/blob/6885351bec8d6a2cea85c5aa793e53616e5f517b/specification/datafactory/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true modelerfour: flatten-payloads: false -#mgmt-debug: +#mgmt-debug: # show-serialized-names: true format-by-name-rules: @@ -30,7 +30,6 @@ format-by-name-rules: 'activityRunId': 'uuid' 'pipelineRunId': 'uuid' 'sessionId': 'uuid' - 'encryptedCredential': 'any' 'dataFactoryLocation': 'azure-location' rename-rules: @@ -63,178 +62,220 @@ rename-rules: PUT: Put GZip: Gzip Pwd: Password + Ml: ML + VNet: Vnet + Bw: BW + +keep-plural-enums: + - ActivityOnInactiveMarkAs rename-mapping: - # Property + AccessPolicyResponse: DataFactoryDataPlaneAccessPolicyResult + Activity: PipelineActivity + ActivityDependency: PipelineActivityDependency + ActivityPolicy: PipelineActivityPolicy + ActivityPolicy.secureInput: IsSecureInputEnabled + ActivityPolicy.secureOutput: IsSecureOutputEnabled + ActivityRun: PipelineActivityRunInformation + ActivityRun.activityRunStart: StartOn ActivityRun.activityRunEnd: EndOn + ActivityRunsQueryResponse: PipelineActivityRunsResult + ActivityState: PipelineActivityState + AddDataFlowToDebugSessionResponse: DataFactoryDataFlowStartDebugSessionResult + AvroDataset.typeProperties.location: DataLocation + AvroFormat: DatasetAvroFormat + BinaryDataset.typeProperties.location: DataLocation CassandraSourceReadConsistencyLevels.ALL: All CassandraSourceReadConsistencyLevels.ONE: One CassandraSourceReadConsistencyLevels.TWO: Two CassandraSourceReadConsistencyLevels.LOCAL_ONE: LocalOne + ChangeDataCaptureResource: DataFactoryChangeDataCapture + ChangeDataCaptureListResponse: ChangeDataCaptureListResult + CMKIdentityDefinition: DataFactoryCmkIdentity + ConfigurationType: DataFactorySparkConfigurationType + ConnectionType: MapperConnectionType + CopySource: CopyActivitySource + CreateDataFlowDebugSessionRequest: DataFactoryDataFlowDebugSessionContent CreateDataFlowDebugSessionRequest.timeToLive: TimeToLiveInMinutes - DataFlowDebugSessionInfo.startTime: StartOn + CreateDataFlowDebugSessionResponse: DataFactoryDataFlowCreateDebugSessionResult + CreateRunResponse: PipelineCreateRunResult + CredentialListResponse: DataFactoryCredentialListResult + DataFlow: DataFactoryDataFlowProperties + DataFlowListResponse: DataFactoryDataFlowListResult + DataFlowDebugCommandResponse: DataFactoryDataFlowDebugCommandResult + DataFlowDebugPackage: DataFactoryDataFlowDebugPackageContent + DataFlowDebugResource: DataFactoryDataFlowDebugInfo + DataFlowDebugSessionInfo.startTime: StartOn|date-time DataFlowDebugSessionInfo.timeToLiveInMinutes: TimeToLiveInMinutes - DataFlowDebugSessionInfo.lastActivityTime: LastActivityOn + DataFlowDebugSessionInfo.lastActivityTime: LastActivityOn|date-time + DataFlowResource: DataFactoryDataFlow + Dataset: DataFactoryDatasetProperties + DatasetListResponse: DataFactoryDatasetListResult DatasetDataElement.name: ColumnName - DatasetDataElement.type: columnType - DatasetSchemaDataElement.name: schemaColumnName - DatasetSchemaDataElement.type: schemaColumnType - DatasetCompression.type: datasetCompressionType + DatasetDataElement.type: ColumnType + DatasetDebugResource: DataFactoryDatasetDebugInfo + DatasetResource: DataFactoryDataset + DatasetSchemaDataElement.name: SchemaColumnName + DatasetSchemaDataElement.type: SchemaColumnType + DatasetCompression.type: DatasetCompressionType + DayOfWeek: DataFactoryDayOfWeek + DaysOfWeek: DataFactoryDayOfWeek + DelimitedTextDataset.typeProperties.location: DataLocation + ExcelDataset.typeProperties.location: DataLocation + ExecuteDataFlowActivityTypePropertiesCompute: ExecuteDataFlowActivityComputeType + ExecutePipelineActivityPolicy.secureInput: IsSecureInputEnabled + ExposureControlBatchResponse: ExposureControlBatchResult ExposureControlBatchResponse.exposureControlResponses: ExposureControlResults + ExposureControlRequest: ExposureControlContent + ExposureControlResponse: ExposureControlResult + Factory: DataFactory + FactoryListResponse: DataFactoryListResult + FactoryRepoUpdate: FactoryRepoContent FactoryRepoUpdate.factoryResourceId: -|arm-id + FrequencyType: MapperPolicyRecurrenceFrequencyType + GetMetadataActivity: GetDatasetMetadataActivity + GitHubClientSecret: FactoryGitHubClientSecret + GitHubAccessTokenResponse: GitHubAccessTokenResult + GlobalParameterListResponse: DataFactoryGlobalParameterListResult + GlobalParameterResource: DataFactoryGlobalParameter + GlobalParameterSpecification: DataFactoryGlobalParameterProperties + HDInsightActivityDebugInfoOption: HDInsightActivityDebugInfoOptionSetting HDInsightOnDemandLinkedService.typeProperties.timeToLive: TimeToLiveExpression + HttpSource: DataFactoryHttpFileSource + IntegrationRuntime: DataFactoryIntegrationRuntimeProperties + IntegrationRuntimeAutoUpdate: IntegrationRuntimeAutoUpdateState IntegrationRuntimeCustomerVirtualNetwork.subnetId: SubnetId|arm-id + IntegrationRuntimeDataFlowProperties.cleanup: ShouldCleanupAfterTtl IntegrationRuntimeDataFlowProperties.timeToLive: TimeToLiveInMinutes + IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem: IntegrationRuntimeDataFlowCustomItem + IntegrationRuntimeDebugResource: DataFactoryIntegrationRuntimeDebugInfo + IntegrationRuntimeListResponse: DataFactoryIntegrationRuntimeListResult IntegrationRuntimeNodeIpAddress.ipAddress: IPAddress|ip-address + IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse: IntegrationRuntimeOutboundNetworkDependenciesResult + IntegrationRuntimeResource: DataFactoryIntegrationRuntime + IntegrationRuntimeStatusResponse: DataFactoryIntegrationRuntimeStatusResult IntegrationRuntimeVNetProperties.vNetId: VnetId|uuid IntegrationRuntimeVNetProperties.subnetId: SubnetId|arm-id Factory.properties.createTime: CreatedOn + Flowlet: DataFactoryFlowletProperties + JsonDataset.typeProperties.location: DataLocation + JsonFormat: DatasetJsonFormat LinkedIntegrationRuntime.createTime: CreatedOn + LinkedIntegrationRuntimeRbacAuthorization.resourceId: -|arm-id + LinkedService: DataFactoryLinkedServiceProperties + LinkedServiceDebugResource: DataFactoryLinkedServiceDebugInfo + LinkedServiceListResponse: DataFactoryLinkedServiceListResult + LinkedServiceResource: DataFactoryLinkedService + ManagedIdentityCredential: DataFactoryManagedIdentityCredentialProperties + ManagedIdentityCredential.typeProperties.resourceId: -|arm-id + ManagedIdentityCredentialResource: DataFactoryManagedIdentityCredential ManagedIntegrationRuntimeStatus.typeProperties.createTime: CreatedOn - ManagedVirtualNetwork.vNetId: VnetId|uuid + ManagedPrivateEndpoint: DataFactoryPrivateEndpointProperties ManagedPrivateEndpoint.privateLinkResourceId: -|arm-id + ManagedPrivateEndpointListResponse: DataFactoryPrivateEndpointListResult + ManagedVirtualNetworkListResponse: DataFactoryManagedVirtualNetworkListResult + ManagedPrivateEndpointResource: DataFactoryPrivateEndpoint + ManagedVirtualNetwork: DataFactoryManagedVirtualNetworkProperties + ManagedVirtualNetwork.vNetId: VnetId|uuid + ManagedVirtualNetworkResource: DataFactoryManagedVirtualNetwork + MappingDataFlow: DataFactoryMappingDataFlowProperties + MetadataItem: DataFactoryMetadataItemInfo Office365Source.endTime: EndOn Office365Source.startTime: StartOn - SelfHostedIntegrationRuntimeStatus.typeProperties.createTime: CreatedOn + OrcDataset.typeProperties.location: DataLocation + OrcFormat: DatasetOrcFormat + OutputColumn: Office365TableOutputColumn + ParameterSpecification: EntityParameterSpecification + ParameterType: EntityParameterType + ParquetDataset.typeProperties.location: DataLocation + ParquetFormat: DatasetParquetFormat + PipelineListResponse: DataFactoryPipelineListResult + PipelineResource: DataFactoryPipeline + PipelineRun: DataFactoryPipelineRunInfo + PipelineRun.lastUpdated: LastUpdatedOn + PipelineRun.runStart: RunStartOn + PipelineRun.runEnd: RunEndOn + PipelineRunInvokedBy: DataFactoryPipelineRunEntityInfo + PipelineRunsQueryResponse: DataFactoryPipelineRunsQueryResult + PrivateEndpointConnectionListResponse: DataFactoryPrivateEndpointConnectionListResult + RemotePrivateEndpointConnection: DataFactoryPrivateEndpointConnectionProperties + RunFilterParameters: RunFilterContent + PrivateEndpointConnectionResource: DataFactoryPrivateEndpointConnection + QueryDataFlowDebugSessionsResponse: DataFlowDebugSessionInfoListResult ScriptActivityParameterType.Timespan: TimeSpan + ScriptActivityTypePropertiesLogSettings: ScriptActivityTypeLogSettings + SecretBase: DataFactorySecret + SecureInputOutputPolicy.secureInput: IsSecureInputEnabled + SecureInputOutputPolicy.secureOutput: IsSecureOutputEnabled + SelfHostedIntegrationRuntimeStatus.typeProperties.createTime: CreatedOn SelfHostedIntegrationRuntimeNode.expiryTime: ExpireOn SelfHostedIntegrationRuntimeStatus.typeProperties.taskQueueId: -|uuid SelfHostedIntegrationRuntimeStatus.typeProperties.serviceUrls: serviceUris - ActivityPolicy.secureInput: EnableSecureInput - ActivityPolicy.secureOutput: EnableSecureOutput - ExecutePipelineActivityPolicy.secureInput: EnableSecureInput + SubResourceDebugResource: DataFactoryDebugInfo + SsisObjectMetadataListResponse: SsisObjectMetadataListResult + SsisObjectMetadataStatusResponse: SsisObjectMetadataStatusResult + SsisPackageLocationType.SSISDB: SsisDB + SsisParameter: SsisParameterInfo SsisParameter.required: IsRequired SsisParameter.sensitive: IsSensitive SsisParameter.valueSet: HasValueSet SsisVariable.sensitive: IsSensitive - AvroDataset.typeProperties.location: DataLocation - BinaryDataset.typeProperties.location: DataLocation - DelimitedTextDataset.typeProperties.location: DataLocation - ExcelDataset.typeProperties.location: DataLocation - JsonDataset.typeProperties.location: DataLocation - OrcDataset.typeProperties.location: DataLocation - ParquetDataset.typeProperties.location: DataLocation - XmlDataset.typeProperties.location: DataLocation - IntegrationRuntimeDataFlowProperties.cleanup: ShouldCleanupAfterTtl - SsisPackageLocationType.SSISDB: SsisDB - # Factory - Factory: DataFactory - FactoryListResponse: DataFactoryListResult - # Dataset - Dataset: DataFactoryDatasetDefinition - DatasetResource: DataFactoryDataset - HttpDataset: DataFactoryHttpDataset - AvroFormat: DatasetAvroFormat - JsonFormat: DatasetJsonFormat - OrcFormat: DatasetOrcFormat - ParquetFormat: DatasetParquetFormat + SwitchCase: SwitchCaseActivity TextFormat: DatasetTextFormat - # DataFlow - DataFlow: DataFactoryDataFlowDefinition - DataFlowResource: DataFactoryDataFlow - Flowlet: DataFactoryFlowletDefinition - MappingDataFlow: DataFactoryMappingDataFlowDefinition - WranglingDataFlow: DataFactoryWranglingDataFlowDefinition Transformation: DataFlowTransformation - # Data source - BlobSink: DataFactoryBlobSink - BlobSource: DataFactoryBlobSource - # Debug resource - AddDataFlowToDebugSessionResponse: DataFactoryDataFlowStartDebugSessionResult - CreateDataFlowDebugSessionRequest: DataFactoryDataFlowDebugSessionContent - CreateDataFlowDebugSessionResponse: DataFactoryDataFlowCreateDebugSessionResult - DataFlowDebugResource: DataFactoryDataFlowDebugInfo - DataFlowDebugCommandResponse: DataFactoryDataFlowDebugCommandResult - DataFlowDebugPackage: DataFactoryDataFlowDebugPackageContent - DatasetDebugResource: DataFactoryDatasetDebugInfo - IntegrationRuntimeDebugResource: DataFactoryIntegrationRuntimeDebugInfo - LinkedServiceDebugResource: DataFactoryLinkedServiceDebugInfo - SubResourceDebugResource: DataFactoryDebugInfo - # GlobalParameter - GlobalParameterResource: DataFactoryGlobalParameter - GlobalParameterSpecification: DataFactoryGlobalParameterSpecification - GlobalParameterType: DataFactoryGlobalParameterType - ParameterSpecification: EntityParameterSpecification - ParameterDefinitionSpecification: EntityParameterDefinitionSpecification - ParameterType: EntityParameterType - # IntegrationRuntime - IntegrationRuntime: DataFactoryIntegrationRuntimeDefinition - IntegrationRuntimeResource: DataFactoryIntegrationRuntime - IntegrationRuntimeStatusResponse: DataFactoryIntegrationRuntimeStatusResult - PackageStore: DataFactoryPackageStore - # LinkedService - LinkedService: DataFactoryLinkedServiceDefinition - LinkedServiceResource: DataFactoryLinkedService - LinkedServiceReference: DataFactoryLinkedServiceReference - LinkedServiceReferenceType: DataFactoryLinkedServiceReferenceType - # Network - ManagedVirtualNetworkResource: DataFactoryManagedVirtualNetwork - PublicNetworkAccess: DataFactoryPublicNetworkAccess - # Pipeline - PipelineResource: DataFactoryPipeline - PipelineListResponse: DataFactoryPipelineListResult - PipelinePolicy: DataFactoryPipelinePolicy - PipelineReference: DataFactoryPipelineReference - PipelineReferenceType: DataFactoryPipelineReferenceType - PipelineRun: DataFactoryPipelineRunInfo - PipelineRunInvokedBy: DataFactoryPipelineRunEntityInfo - PipelineRunsQueryResponse: DataFactoryPipelineRunsQueryResult - Activity: DataFactoryActivity - ActivityRun: DataFactoryActivityRunInfo - ActivityRunsQueryResponse: DataFactoryActivityRunsResult - CopySource: CopyActivitySource - CreateRunResponse: PipelineCreateRunResult - Expression: DataFactoryExpressionDefinition - ExpressionType: DataFactoryExpressionType - GetMetadataActivity: GetDatasetMetadataActivity - SwitchCase: SwitchCaseActivity - UserProperty: ActivityUserProperty - VariableSpecification: PipelineVariableSpecification - VariableType: PipelineVariableType - # Private link - ManagedPrivateEndpointResource: DataFactoryPrivateEndpoint - RemotePrivateEndpointConnection: DataFactoryPrivateEndpointProperties - PrivateEndpointConnectionResource: DataFactoryPrivateEndpointConnection - PrivateLinkResource: DataFactoryPrivateLinkResource - PrivateLinkResourceProperties: DataFactoryPrivateLinkResourceProperties - # Trigger - BlobEventsTrigger: DataFactoryBlobEventsTrigger - BlobEventTypes: DataFactoryBlobEventType - BlobTrigger: DataFactoryBlobTrigger - TriggerResource: DataFactoryTrigger - Trigger: DataFactoryTriggerDefinition + Trigger: DataFactoryTriggerProperties TriggerListResponse: DataFactoryTriggerListResult TriggerQueryResponse: DataFactoryTriggerQueryResult - TriggerReference: DataFactoryTriggerReference - TriggerReferenceType: DataFactoryTriggerReferenceType - TriggerRun: DataFactoryTriggerRun + TriggerResource: DataFactoryTrigger TriggerRunsQueryResponse: DataFactoryTriggerRunsQueryResult - TriggerRunStatus: DataFactoryTriggerRunStatus - TriggerRuntimeState: DataFactoryTriggerRuntimeState TriggerSubscriptionOperationStatus: DataFactoryTriggerSubscriptionOperationResult - # Others UserAccessPolicy: DataFactoryDataPlaneUserAccessPolicy - AccessPolicyResponse: DataFactoryDataPlaneAccessPolicyResult - CredentialReference: DataFactoryCredentialReference - CredentialReferenceType: DataFactoryCredentialReferenceType - DaysOfWeek: DataFactoryDayOfWeek - EncryptionConfiguration: DataFactoryEncryptionConfiguration - ExposureControlBatchResponse: ExposureControlBatchResult - ExposureControlResponse: ExposureControlResult - ExposureControlRequest: ExposureControlContent - HDInsightActivityDebugInfoOption: HDInsightActivityDebugInfoOptionSetting - GitHubAccessTokenResponse: GitHubAccessTokenResult - HttpSource: DataFactoryHttpFileSource - MetadataItem: DataFactoryMetadataItemInfo - PurviewConfiguration: DataFactoryPurviewConfiguration - RunFilterParameters: RunFilterContent - SecretBase: DataFactorySecretBaseDefinition - SecureString: DataFactorySecretString - SsisObjectMetadataStatusResponse: SsisObjectMetadataStatusResult - SsisParameter: SsisParameterInfo - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse: IntegrationRuntimeOutboundNetworkDependenciesResult - ManagedIdentityCredential: DataFactoryManagedIdentityCredentialDefinition - ManagedIdentityCredentialResource: DataFactoryManagedIdentityCredential + UserAccessPolicy.startTime: StartOn|date-time + UserAccessPolicy.expireTime: ExpireOn|date-time + UserProperty: PipelineActivityUserProperty + VariableSpecification: PipelineVariableSpecification + VariableType: PipelineVariableType + WranglingDataFlow: DataFactoryWranglingDataFlowProperties + XmlDataset.typeProperties.location: DataLocation + +prepend-rp-prefix: + - BlobEventsTrigger + - BlobEventTypes + - BlobSink + - BlobSource + - BlobTrigger + - Credential + - CredentialReference + - CredentialReferenceType + - EncryptionConfiguration + - Expression + - ExpressionType + - GlobalParameterType + - HttpDataset + - LinkedServiceReference + - LinkedServiceReferenceType + - PackageStore + - PipelinePolicy + - PipelineReference + - PipelineReferenceType + - PublicNetworkAccess + - PurviewConfiguration + - PrivateLinkResource + - PrivateLinkResourceProperties + - SecureString + - TriggerReference + - TriggerReferenceType + - TriggerRun + - TriggerRunStatus + - TriggerRuntimeState + - LogSettings + - RecurrenceFrequency + - RecurrenceSchedule + - RecurrenceScheduleOccurrence + - ScheduleTrigger + - ScriptAction + - ScriptActivity + - ScriptType override-operation-name: ActivityRuns_QueryByPipelineRun: GetActivityRun @@ -257,7 +298,6 @@ directive: - from: datafactory.json where: $.definitions transform: > - $.DataFlowDebugSessionInfo.properties.lastActivityTime['format'] = 'date-time'; $.UpdateIntegrationRuntimeRequest.properties.updateDelayOffset['format'] = 'duration'; $.LinkedServiceReference.properties.type['x-ms-enum']['name'] = 'LinkedServiceReferenceType'; # - from: Pipeline.json diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Samples/Readme.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Samples/Readme.cs index 3832e2ef2bda..bd0023675768 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Samples/Readme.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Samples/Readme.cs @@ -20,7 +20,7 @@ internal class Readme public void DataFactoryElementFromLiteralInt() { #region Snippet:Readme_DataFactoryElementInt - var policy = new ActivityPolicy + var policy = new PipelineActivityPolicy { Retry = DataFactoryElement.FromLiteral(1), }; @@ -63,7 +63,7 @@ public void DataFactoryElementFromLiteralDictionary() }; var activity = new AzureMLExecutePipelineActivity("name") { - MlPipelineParameters = DataFactoryElement?>.FromLiteral(DictionaryValue), + MLPipelineParameters = DataFactoryElement?>.FromLiteral(DictionaryValue), }; #endregion Snippet:Readme_DataFactoryElementDictionary } diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Scenario/DataFactoryDatasetResourceTests.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Scenario/DataFactoryDatasetResourceTests.cs index 57d160adc3e6..ecdf04af0635 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Scenario/DataFactoryDatasetResourceTests.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Scenario/DataFactoryDatasetResourceTests.cs @@ -84,7 +84,7 @@ public async Task GlobalTearDown() private async Task CreateDefaultDataset(string datasetName) { DataFactoryLinkedServiceReference linkedServiceReference = new DataFactoryLinkedServiceReference(DataFactoryLinkedServiceReferenceType.LinkedServiceReference, _linkedServiceName); - DataFactoryDatasetDefinition properties = new DataFactoryDatasetDefinition(linkedServiceReference); + DataFactoryDatasetProperties properties = new DataFactoryDatasetProperties(linkedServiceReference); DataFactoryDatasetData data = new DataFactoryDatasetData(properties); var dataset = await _dataFactory.GetDataFactoryDatasets().CreateOrUpdateAsync(WaitUntil.Completed, datasetName, data); return dataset.Value; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Scenario/DataFactoryGlobalParameterTests.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Scenario/DataFactoryGlobalParameterTests.cs index 669e8c3c7307..6c9209115ec0 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Scenario/DataFactoryGlobalParameterTests.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Scenario/DataFactoryGlobalParameterTests.cs @@ -41,8 +41,8 @@ public async Task TestSetUp() private async Task CreateOrUpdateGlobalParameter(DataFactoryResource dataFactory) { - var parameters = new Dictionary(); - parameters.Add("test", new DataFactoryGlobalParameterSpecification(DataFactoryGlobalParameterType.Int, new BinaryData("5"))); + var parameters = new Dictionary(); + parameters.Add("test", new DataFactoryGlobalParameterProperties(DataFactoryGlobalParameterType.Int, new BinaryData("5"))); DataFactoryGlobalParameterData data = new DataFactoryGlobalParameterData(parameters); var globalParameters = await dataFactory.GetDataFactoryGlobalParameters().CreateOrUpdateAsync(WaitUntil.Completed, _globalParameterName, data); return globalParameters.Value; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Scenario/DataFactoryTriggerTests.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Scenario/DataFactoryTriggerTests.cs index c88504fe1444..d7e166f90613 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Scenario/DataFactoryTriggerTests.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Scenario/DataFactoryTriggerTests.cs @@ -37,7 +37,7 @@ public async Task TestSetUp() private async Task CreateDefaultTrigger(DataFactoryResource dataFactory, string triggerName) { - DataFactoryTriggerDefinition dataFactoryTriggerProperties = new DataFactoryTriggerDefinition() + DataFactoryTriggerProperties dataFactoryTriggerProperties = new DataFactoryTriggerProperties() { TriggerType = "ScheduleTrigger", }; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Scenario/IntegrationRuntimeResourceTests.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Scenario/IntegrationRuntimeResourceTests.cs index 2508dcf2e6e4..6bf4f8915a85 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Scenario/IntegrationRuntimeResourceTests.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Scenario/IntegrationRuntimeResourceTests.cs @@ -41,7 +41,7 @@ public async Task TestSetUp() private async Task CreateDefaultIntegrationRuntime(string integrationRuntimeName) { - DataFactoryIntegrationRuntimeDefinition properties = new DataFactoryIntegrationRuntimeDefinition() + DataFactoryIntegrationRuntimeProperties properties = new DataFactoryIntegrationRuntimeProperties() { IntegrationRuntimeType = "SelfHosted" }; diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Scenario/ManagedVirtualNetworkTests.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Scenario/ManagedVirtualNetworkTests.cs index 37a9907a4093..cc4416de1c20 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Scenario/ManagedVirtualNetworkTests.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/tests/Scenario/ManagedVirtualNetworkTests.cs @@ -39,7 +39,7 @@ public async Task TestSetUp() private async Task CreateDefaultManagedVirtualNetworkResource(string managedVirtualNetworkName) { - ManagedVirtualNetwork properties = new ManagedVirtualNetwork(); + DataFactoryManagedVirtualNetworkProperties properties = new DataFactoryManagedVirtualNetworkProperties(); DataFactoryManagedVirtualNetworkData data = new DataFactoryManagedVirtualNetworkData(properties); var managedVirtualNetwork = await _dataFactory.GetDataFactoryManagedVirtualNetworks().CreateOrUpdateAsync(WaitUntil.Completed, managedVirtualNetworkName, data); return managedVirtualNetwork.Value; From e2018b09bd902d4bdd21329f4c825146bea1c011 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 2 Aug 2023 05:48:29 -0700 Subject: [PATCH 22/54] Increment package version after release of Azure.ResourceManager.DataFactory (#37981) --- .../Azure.ResourceManager.DataFactory/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.DataFactory.csproj | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/CHANGELOG.md b/sdk/datafactory/Azure.ResourceManager.DataFactory/CHANGELOG.md index 71b164a4db34..4995847c0057 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/CHANGELOG.md +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.0.0-beta.4 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.0-beta.3 (2023-08-02) ### Features Added diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Azure.ResourceManager.DataFactory.csproj b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Azure.ResourceManager.DataFactory.csproj index eba3c8aa8edb..19b613e484c1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Azure.ResourceManager.DataFactory.csproj +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Azure.ResourceManager.DataFactory.csproj @@ -1,6 +1,6 @@ - + - 1.0.0-beta.3 + 1.0.0-beta.4 Azure.ResourceManager.DataFactory Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.DataFactory. azure;management;arm;resource manager;datafactory From 38092cb004e2583717a9a93d57e7ba12a16fade7 Mon Sep 17 00:00:00 2001 From: calvinkwtang Date: Wed, 2 Aug 2023 08:55:31 -0700 Subject: [PATCH 23/54] Enable IdenticalDialogsTest and add Recordings (#37976) --- .../CallDialogAutomatedLiveTests.cs | 6 - .../IdenticalDialogsTest.json | 169 ++++++++ .../IdenticalDialogsTestAsync.json | 169 ++++++++ .../IdenticalDialogsTest.json | 369 ++++++++++++++++++ .../IdenticalDialogsTestAsync.json | 369 ++++++++++++++++++ 5 files changed, 1076 insertions(+), 6 deletions(-) create mode 100644 sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecordedEvents/CallDialogAutomatedLiveTests/IdenticalDialogsTest.json create mode 100644 sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecordedEvents/CallDialogAutomatedLiveTests/IdenticalDialogsTestAsync.json create mode 100644 sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecords/CallDialogAutomatedLiveTests/IdenticalDialogsTest.json create mode 100644 sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecords/CallDialogAutomatedLiveTests/IdenticalDialogsTestAsync.json diff --git a/sdk/communication/Azure.Communication.CallAutomation/tests/CallDialogs/CallDialogAutomatedLiveTests.cs b/sdk/communication/Azure.Communication.CallAutomation/tests/CallDialogs/CallDialogAutomatedLiveTests.cs index d32d629613b2..5d7bbfdef41d 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/tests/CallDialogs/CallDialogAutomatedLiveTests.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/tests/CallDialogs/CallDialogAutomatedLiveTests.cs @@ -250,7 +250,6 @@ public async Task DifferingConcurrentDialogsTest() } } - [Ignore(reason:"Running a StartDialog with a request twice is currently bugged to come up as an update")] [RecordedTest] public async Task IdenticalDialogsTest() { @@ -343,11 +342,6 @@ public async Task IdenticalDialogsTest() dialogResponse = await callDialog.StartDialogAsync(dialogOptions).ConfigureAwait(false); Assert.AreEqual(StatusCodes.Status201Created, dialogResponse.GetRawResponse().Status); - // wait for DialogStarted event - dialogStartedReceived = await WaitForEvent(targetCallConnectionId, TimeSpan.FromSeconds(20)); - Assert.NotNull(dialogStartedReceived); - Assert.IsTrue(dialogStartedReceived is DialogStarted); - // stop the dialog var stopDialogResponse = await callDialog.StopDialogAsync(dialogId).ConfigureAwait(false); Assert.AreEqual(StatusCodes.Status204NoContent, stopDialogResponse.GetRawResponse().Status); diff --git a/sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecordedEvents/CallDialogAutomatedLiveTests/IdenticalDialogsTest.json b/sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecordedEvents/CallDialogAutomatedLiveTests/IdenticalDialogsTest.json new file mode 100644 index 000000000000..67ce7c662fa6 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecordedEvents/CallDialogAutomatedLiveTests/IdenticalDialogsTest.json @@ -0,0 +1,169 @@ +{ + "entries": [ + { + "body": "[{\u0022id\u0022:\u0022Sanitized\u0022,\u0022source\u0022:\u0022calling/callConnections/401fbf00-8778-4c09-b3ef-6aece8736aab\u0022,\u0022type\u0022:\u0022Microsoft.Communication.CallDisconnected\u0022,\u0022data\u0022:{\u0022callConnectionId\u0022:\u0022401fbf00-8778-4c09-b3ef-6aece8736aab\u0022,\u0022serverCallId\u0022:\u0022aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC94LWNvbnYtdXN3ZS0wMS5jb252LnNreXBlLmNvbS9jb252L0VqeURlYjlfaTBpaTZnQUpLSlYxRWc/aT0wJmU9NjM4MjU0OTE0MzM4NTgwOTY1\u0022,\u0022correlationId\u0022:\u00229b8fb1b3-8972-4d0f-9e00-a32e09fa1f1b\u0022},\u0022time\u0022:\u00222023-08-02T08:40:21.2066752\\u002B00:00\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022calling/callConnections/401fbf00-8778-4c09-b3ef-6aece8736aab\u0022}]", + "messageId": "dd3b7dde360447fcb897301325054804", + "partitionKey": null, + "sessionId": null, + "replyToSessionId": null, + "correlationId": null, + "subject": null, + "contentType": null, + "replyTo": null, + "applicationProperties": { + "Diagnostic-Id": "00-9c2f9d4949c419529da2cd8853d86a73-e3580c9c780c46e9-00" + }, + "enqueuedTime": "0001-01-01T00:00:00+00:00" + }, + { + "body": "[{\u0022id\u0022:\u0022Sanitized\u0022,\u0022source\u0022:\u0022calling/callConnections/401fbf00-7699-4bc6-ab8c-28310011dba5\u0022,\u0022type\u0022:\u0022Microsoft.Communication.CallDisconnected\u0022,\u0022data\u0022:{\u0022callConnectionId\u0022:\u0022401fbf00-7699-4bc6-ab8c-28310011dba5\u0022,\u0022serverCallId\u0022:\u0022aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzZWEyLTAyLXByb2QtYWtzLmNvbnYuc2t5cGUuY29tL2NvbnYvNEZNeFJpQ0gyazJBREl3aENla3hOUT9pPTEwLTYwLTEwLTExNyZlPTYzODI2MDg1NDk0NjIzNzkwMQ==\u0022,\u0022correlationId\u0022:\u002202a1a8ec-4771-4268-afb7-3610996e6630\u0022},\u0022time\u0022:\u00222023-08-02T08:40:21.9254312\\u002B00:00\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022calling/callConnections/401fbf00-7699-4bc6-ab8c-28310011dba5\u0022}]", + "messageId": "4aae46ea74834c89bc278608e32b2ee3", + "partitionKey": null, + "sessionId": null, + "replyToSessionId": null, + "correlationId": null, + "subject": null, + "contentType": null, + "replyTo": null, + "applicationProperties": { + "Diagnostic-Id": "00-531ad4daa29a0ce4c7ae7500f5e685ec-1d185014d979b8b3-00" + }, + "enqueuedTime": "0001-01-01T00:00:00+00:00" + }, + { + "body": "{\u0022to\u0022:{\u0022kind\u0022:\u0022phoneNumber\u0022,\u0022rawId\u0022:\u0022Sanitized\u0022,\u0022phoneNumber\u0022:{\u0022value\u0022:\u0022\\u002B18662315126\u0022}},\u0022from\u0022:{\u0022kind\u0022:\u0022phoneNumber\u0022,\u0022rawId\u0022:\u0022Sanitized\u0022,\u0022phoneNumber\u0022:{\u0022value\u0022:\u0022\\u002B18447649276\u0022}},\u0022serverCallId\u0022:\u0022aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx\u0022,\u0022callerDisplayName\u0022:\u0022\u0022,\u0022incomingCallContext\u0022:\u0022eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJjYyI6Ikg0c0lBQUFBQUFBQUNzMVhhMi9iT0JiOUs0SVgyQTh6cFUxU2J3TEd3SGFTSnUzRVRmTW9PclBlTmZpU3pFYVdCRXArVGFmL2ZTLzlTSjF4MGNrdWRvR1JBVmtrTDg4OXZMd2tEejkzSkMrS2NkV2F6RWplbXFyc3NNK2R6Rlp6OTI5VWgzVUM5aU5KZ2lDT2dwVEdVZWRWUjVtbUx2aG16T2U2dzhwRlVienE2RkxWbFNuYks5Y2hpUlhHdnVDSVJ6UkVBY1lKRW1HUUlqL0FoSWM0Rmh3TGdDbDRtUzk0cmwyZkhVck5iV3VrcWZrZWlBY0p4aVFTaUdhWlFJSE1LRXFFTDVEZ1F1SlVaMUVtQ1FETmpGSWFlR2U4YURTZzJLcld0dDBNZWI0RC92S3EwMVpQdzBrWWx3MGpRbkZPUllwU0lJU0NNS0JJaUNoQVBCYVVTb3g1b29JcDNqL29HNi9EODRKNHZCRG16K09ScGNUUEl1NmpVSWtNQlVGR1VNS3BSaXBVTktKK0twSkluOGJENnFaYVdMbkY3YnhrM0oxdng3QXc1V1Bqd3NqYmxzc1pnTTNhdG01WXI4ZHIwODBLazg5YTZMZmVkSnZIVGEyN3NwcTdsdDZTOW1UZGt4SXRtcFZHT081S2VXUWhaVzlKZWxsbEg3WHFxVXdSUCtFQ1pUclVLQ0FoUmlLakdFbVZZQlhvV09CQTltamNNNlRuQjJsdlIrUW4wdzlENER6WHl2QkJDVTRzY0pNU2lNMzViaXc1eEtENUN4QStVRGxRdHZxVGx1MWZnTmlPeUlIV1F0WDNscGROWFZsSERvcEFMYVJkUW1nM2lib2tUSmtmeEVtdjgyVWY5VkZWdHJvRTI4OGR1ZnU4QjFadUJkZDFzZDlYZW8ycVVabExoTHZPaHlncUFRYkxQcDdZU1ZuMWtlZFRIOGUraDcycnNYZDFFM2lFeGwwTVArSU1tbjREY1FNWVY1RDl2UW5GWFlxQlZ4SjJZK3BhUkg5MHo4aCtUYm1LdG8rOTdjZTh6eGZLVkY2UXdqYmszZDdmOUFZZmJqeUNBeStGdCs4UlFqeVNnUGZFUzJPb2daS3JUTDd2ai9kdEsydGtHL09iUGlwbmd2M2dyZEVjS01PQzlpQUtYZ05iQWxQTnpMTmFMdDNIem55TkdwT1hITlpXL3IxZVQ4YmJsWXlhMW1vK040cVJyMDZaRzltK2JNQm1rVm1lc3dqUDlkZTZlcVhZNnBjaSt6aTZISm0zWWhQV1d0K2E4K0IxSGY5NlJIKytXTzlLa3BmS0tONXFCdUh3SHM1dVBFcGdrbkFVK09SNU1QWnhiVGZBMldiRjJyTmNLUXR4ZEJPWUVFaWR5TE11bjNhR3AvRDBDRDVNWVNaTzRjbEw0Y2tmNFNtd2R3UGpzZ1VYRkJJa3d2R3BDeExTbDdrQXcxTVg5UC9qb3VCQ0Yyek9UWW0yR2J5clBacjhOUklyell1OHNxYWR6Wm1GL0duTm5MZVY5Y1JLZWpXWGo3cXR1YkhlU2d1WTN6MXp1Nm5iQ2dJL09MK2JqcTZuaENiVHkrdkJhSHAzT1NEVEJIdW1oS1RVYkcySzZ3dTgrYVJ2WDgrV09IejhxTTlNTmREMzFZOFA2K1Y4ZlhZWHJOdjFNRGUvMDMvNTVIZHlJTFdIcDM4Ry80YVhvMS95OWNPN0l2NlUxYjgxY1lyNUcvTDZxaWsramYxZ0tDL0w0TmZhZklpMjhJY1VyZWU4aGxVZWVIZFhQNy90a1dpLzFwK2FVdTkxVEdrditXTzlXK2ZiTHFjdHNQcnZybTdQeDhkbzJiemR0UWpUV3Bqai9xa255Rk53bFI0Qjdqb2xIaTlMdlJiOXNucG1qNzJiMGZYRHFmL0UxUTlPNjJFcnVqMC8rOVpJSUtGMW9ldFpWV3FrbDdEam5uQUFFNHhJOUx5Zjc0M0czeHArNHVxUHhsZERDa0ZTSHdCaGU5SzJ0cUJvV0RQamlJYVJOMHhZbkxCQnhNNUhiSER1dnFNek5nd1k5Vm1TTXB5dzh3dDI0Yk9Jc291WW5hVXNHTEJoeU02R0xCa3hNbUQwaklXVW5RMVk2TE0wWldISW9oRWJZa1lBS21aa3RIT3MxKzJXbitjT1NEYUJaN1ZhZFhkNTNLMXNQcG5vTlFnVjRGcTJ6V1FDdzBFelphSFhaTUpGZzl6MmlkeElucUg1WDlHZVRzL3ZBR1c4YWFjQ0Z2cktxSFkyemJSV0F0YlUzNVlhdHYycW5QclB3TVBuVkkxdXN4MVJveVlUWlhuV29sbFZ6TFZGZGc0SEkyb1BCeTBDZUkzZ2NBY2dYVHJrQnVHbkpkNDBWaUl3eldHdmROclJ2VnpiUWZmOHJQT2RSTXhFcExDZklwbktCQVYraGxFaWZUajNaZXluT0ZOQmhOM3BxeHVRL2R0aitaMlVDd3NUbXovcHhWS3YzbVdaRTFIN0N0aFljbE82RFFVY3pPV1FDbmZ3Z3lwNHF6ZnV5Titmek50U0ozZ1k2ZHN4WFl3ai80T3FIL1g2Z1g2c0J2MCtPQVV0Q3pzUjJMeVBDdkdXWHp4VVl4cGR2Qi9RbWJwYmI5NkREY0RPVEFPT05sZGxCcEw5SDU5QklyWGM1dm9nS0l4NnFOMStlMUhaTzlEYjk5dTJ6aFBIWWwreHY3VkVvSXBKU0tpN3RXVFBtdi8zdDRBbkJtNUNJWHd1V2x2bC9FK244NVNCYzkvRisyYW5ySTNlU21uVDNPNmJCa1ZSclRSTVlXc1grZ3NFQW9TVXk3RHRKRjJWUzlNKzNjNk9XNXp5c2xWUmJEWHZmNlFpQVdTdkkwTUVaZ3J4eHdac3l1V3hwSVJpcnpGMXFmWDdTNEg1Q05USHRPVHJOM2dGV3BGZ0ZHRUV5VVZvK0hmZGoveUVSaUZKTVE1Q1A0TEgzYzFNYzcwb1duTUROeG5Jam4xQ21XWm9LNjRrTEt4OUhZeFhhYkhJajRVazNFdTNLUzBsbUJJUm9GaHp1RTZxR09aSEM0Mm85R09sWkJ4UTdsTDZ2N29zZ2QvY1ZvdDY2M2NOZnJjejltOEFheFZFRlE4QUFBPT0iLCJzaHJUb2tlbiI6ImV5SmhiR2NpT2lKU1V6STFOaUlzSW5SNWNDSTZJbkJ2Y0NKOS5leUpoZENJNkltVjVTakJsV0VGcFQybEtTMVl4VVdsTVEwcG9Za2RqYVU5cFNsTlZla2t4VG1sSmMwbHVaekZrUTBrMlNXa3hURk5VVGxKUFZ6VlBWV3BrYVZWdE9XMWxSekZzVjIwNVdXTlhTa2xYYTJSc1pIbEpjMGx0ZEhCYVEwazJTV2t4VEZOVVRsSlBWelZQVldwa2FWVnRPVzFsUnpGc1YyMDVXV05YU2tsWGEyUnNaSGxLT1M1bGVVcG9aRmRSYVU5cFNtbE9SRlpzVFVScmQxbFRNV3RaVjBwdFRGUlJlRTVFVlhSWlZFRXlUME13ZDA5SFJUUk5hbXhwVFhwQ2JFOUhVV2xNUTBwd1l6Tk5hVTlwU205a1NGSjNZM3B2ZGt3elRqQmplVFV6WVZjMWEySXpaSHBNYlRWc1pFTTVhbHBIVFRGWlYxWnNXVk13ZUU1WFRURk1WRkpyV1dwWmRGbHFRVE5QVXpGdFdUSkdhMXBFU1RGTlJGWnJXWHBKZGtscGQybGhWMFl3U1dwdmVFNXFhM2RQVkZsNlQxUmpkMHhEU25WWmJWbHBUMnBGTWs5VVFUVk9hazAxVG5wQmMwbHRWalJqUTBrMlRWUlpOVTFVUVRGTlJGa3pUVU4zYVZsWGJIWkphbTlwVWxSS1Ixb3hiRkJoUmtaTVZHdFdTbFo2WkRCbGFrSnFZbFpSZDFsNWMzSlVSVXBZVmpCS1VsRlVNR2xNUTBwb1kwaENjRnBEU1RaSmJVVjZXVlJOZWxsNlNtaE1WRWsxVDBkVmRFNUVSbXROVXpBMVRWUk5NMHhYUlRGT1JGbDVUVzFWTWs5RVJtcFplVWx6U1cxR2QyTkhiR3RaVjA1NVNXcHZhVTFwU1hOSmJVNTFXbWxKTm1WNVNuRmtNbk5wVDI1emFXRXpValZKYW05cFZXeE9Ra2xwZDJsaWFVazJTVzVXVTA1dWNHWmlSamxhVG0xMGQxVllUbE5TVms1WVUxVTVlbFZ1VGxKVlZtdzJWMVpDZEZNeFdUUldhbVI0V2pKMFNGSnNWbTlUTTJST1dWUktjVll6UmxwTk1tUlZWVEJGTUZSWWJHbFhXR3d6V0hrd2QyRnJXbWhrVm14SlkwZHNlRlV3Umtkak1scElVbXRXU0ZOWFRrUmlWVlpKVjFVMWVscHVRbWhSYTNoRFZtdEthRlZxVVhkYU1HaDJVMFJhVGxVd1VtaFhXRko1V2xob1dWVldVak5UYTBwM1QxaGFOR1ZYVGpCYVJYZzFVekExUTFWRVFtdE1WVm8wWTJ3NWMyTnROVkZWTWpReVYxaEdjMUZ1VVhkT1Z6bHJUVzFhYm1SNlpEWk5TR1J6VlVkYWVsWkVRWGxhUlRWelQwUm9WbHBIWkZsaWJFazBXbnBTWVZWNmFGWlpWVVoxWWxkb1MwMTZVbk5pZWxKSVpFZEtORTVXY0U1Tk1sSk1aRE5HVlZwc1dqVlpWM2h2VWtjMVMxUlVhRWxqYkhCWlZsVmtkRk14WkRWWU1XeFZWMnh2ZEdSV2FGRmxSamgwWVZkU2VtUkhUbk5WTWpGUFkwVm9WVmxxVW0xUk1YQjVaVVpHTVZaWVpFNVdhMXBTVWpOU2ExRnVUbXROUmxwR1ZrUkplVkl4U201VVJHeFVZVlpPYVU1dFVtNWFNV3hZWTBWc1NGWkZUbkJTYkRsTVkwVndVMVF5WjNwbFZFWTBXbE14YkZwRk1WVlVhekF5VmxaVmVHTkVaRFZUVjFwMFZWTkpjMGx0VldsUGFVcENWVlZHUTBscGQybFpWM2h1U1dwdmFWVnNUWGxPVkZscFRFTktjbUZYVVdsUGFVcFNZVmhPTlZOSFNrcFZhM0ExVmxSb1JsbDZRbFJXU0d0NlVUQldSMDF0T0hsUmJVNUlWMFpPVVdWSVVtOVZSMDE1V1cxd2JVeFZaelJKYmpFNVRFTktjRnBJUVdsUGFVcHZaRWhTZDJONmIzWk1NMDR3WTNrMU0yRlhOV3RpTTJSNlRHMDFiR1JET1dwYVIwMHhXVmRXYkZsVE1IaE9WMDB4VEZSU2ExbHFXWFJaYWtFelQxTXhiVmt5Um10YVJFa3hUVVJXYTFsNlNYWkphWGRwWWpKc2EwbHFiMmxOYlUwelQxZE9hVTU2WjNSTk1rNXFXVk13TUUweVZtbE1WMHBzV1dwSmRGbHFRVFZPYlZacFQxUkpNRTV0UlRSSmFYZHBZMjFuYVU5cFNYZE1hMFpUVTFWRk1tTlVaRWRsYlU1V1ZtNVNjazF1Wkd4YWJtd3dUVWQ0UTFwSVpHNWlNSEJaWTJ4T1prMXRkRmRSYlRsSVdqQnNlRkV5TVRaU1J6aDNWVEJHUWxGVE5HbE1RMHA2WkZkSmFVOXBTWGxaZW1NMVdUSkpNMDlETUhwWk1rNW9URlJSZWxwWFNYUlpiVlpwVFdreGFVMUVhekphVjBrMVRXcFJNbGxVWjJsTVEwb3dZVmRSYVU5cFNtcGFSMDB4V1ZkV2JGbFRNSGhPVjAweFRGUlNhMWxxV1hSWmFrRXpUMU14YlZreVJtdGFSRWt4VFVSV2ExbDZTV2xNUTBveFpFZHJhVTlwU1RCWk1rMTRVMFJPYlZOSFJYZGFWbFp6V1dreGJWZERNVXBZTUVaQ1NXbDNhV1J0Vm5sSmFtOXBUVk0wZDBsdU1DNWpiV3hEWDFCaGRXOTJiMWxyVUhGZlJFbENhV2RtWmpWT1pIZE9kR0psVTJWQ01qUTVXbEpmWkdwSFV6Um9NMHhOVDNGWVRVUlNka00xZVVNNFVFWmtiRlowWkZKdGNrMUVOM3BsVG5GbldqSm5UMjFLWmxJNWNHUXRaMmg2V25kbWNHVkpkRzVQUWxKSmRHdHdWbTF6Y1doMGNXbFZVVEJGT0hFd2RHZ3hVVE14Ykd0c2NuaENXVlJMWDJrNFFscFVSV0pPU0cxaWFqWnNXV3N3WWs5dk5scHNZa1ZEUVVwUFJ6RlVkak50ZG1VMWRFTmtTMmRLWW05Q0xXWldWWEJNVjNwV1J6TmxORkoxV1hOUlJYRjFOMVpVZDBGNFkxaHBNRTlDTkRsbE5YRnROR3BmVXpCb1pHNTBlSEJTTjFsb2EwZDRVR014YTAxQlNuSjVaM1pSZGtodVJuTkxOM3BOTVU5d05XVnJXak5DVFVVMllWUjJhVzlFVVZWRWExWjNXV1pDV0dNeWN6TkhWMDVMY1ZoUlFTMVhkRk5vUmtoWFVubGpVRnBXZEhOSWIwUjJhVXgyY0MwMWJUUmxObWhsVTJWemFIY2lMQ0owY3lJNk1UWTVNRGsyTlRnNU1Dd2lZaUk2SWxKSFEwb3RlVzVyYkVSVFNUUlZOamh0T1dabVNVZFdTWGxHZVdabU1ubHpjRkJMWDNKNGNHcDBTM01pTENKdWIyNWpaU0k2SWpWbU1UZzNabUkxTVRRM056UTBNbU5oWkRrMVltRXdNVE5sWXpNMllqSTNJaXdpWTI1bUlqcDdJbXAzYXlJNmV5SnJhV1FpT2lKVGMxaEpWWGxzVlZwUmNGQXhkRmxEVmtGMFowaFVNREZzUmpWU1lqYzFSMU5uWW1wNFdraGhOMFJ2SWl3aVpTSTZJa0ZSUVVJaUxDSnJkSGtpT2lKU1UwRWlMQ0p1SWpvaWRWSTJlbDlzWDFrMmEzQlJjMUpGVTFkSlQzTlNjMUZSV1hwWlVHMUxWamhXTjNGbmEwZEdWV2hMZDAxaE1tcFhjVmt6WjFSVFFUUk5lV0paZVhkZkxUQnFSbUYxV1Vod2FYRlRRVVp6WmtkR1JVZEpZME50UlVoWlRuTm1jR0ZDVEVKV1FtRlNOREJuU0c5SU5rMVRSR0ZaZEhKbGVGaFJWSGRLUW5BNWRuaDVZM1JrVEhsTFRrSlFNR1F0Um5oeVgyeHlibEJUYmpaWmNXeENkREExYjJReVptZDNOM293ZDJ4UVpuTlVNREprVG13NE9GVmtaMWh1VWpobk5GcFRPRlZoUVc1dGFFb3pOR3h2TkVkMFluZzFXazB6WkV0M2NWUm1WbmxoYkdoRWJrcE5PRWh5V2xoVlIyMUxWM2xmV1ZSYVdpMTFXRkI0WHkxcFpITjBZMnhUYlU1d1NGUmlOR1pEV25KNFVYVlZkMDFXUmxGSGRHUkNjMlF3VmtWVU1qSkhVbWRNT1ZOcFUySTJaR2RuV1Zkd1NVZFVRMmxHWDB0d1NsSlBhRE41TVhobExXVmtUVlJPVFRaVlZURndOM2xKWm0xUkluMTlmUS5FdGtTU21xN0dRTjlvVHBFZ1B6aWd1am1BWW5HdDUtbzBpVFphVktjbFU1M1doZ1d6RExqbXZiZjlPZVlXaXNlWVhiU2czZmRtN2NscFBxdk4wcnpDYTFEMGNVSXJNcGI2SkVXMTFLNjN2WktqRGVBUW9xWnEweGtUM2lGd3lkWTE0STBNdDItQlJ3VGJsaVpJX19rZGQ3TFpwWXNkcUlLMDc4RkhNUTVKQ0VGQTIyV3U2MHdKelZDenhWR3ZZMzVTcFg3dXBRcjlDSVNkaFdnMm83WnhSVURjaFlUQnBJWXlsREZUcE1UbGlPcE5pUzlQZ1REc1ltWWk3R0JWUW9HODl2UmlDM1hjRThuaHdKS0VRVW9BVUdfZHFuNmtUWFVLXzJvTGJ3bGZjenJFT245aHVETkVJUExkVGVTZE5KbmtfV2tucVBDeEZ2TTg5dGNFZlQwSEEifQ.\u0022,\u0022correlationId\u0022:\u0022ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5\u0022}", + "messageId": "dad4642c30dd4b7482cf1116bf774d47", + "partitionKey": null, + "sessionId": null, + "replyToSessionId": null, + "correlationId": null, + "subject": null, + "contentType": null, + "replyTo": null, + "applicationProperties": { + "Diagnostic-Id": "00-208fd00d43da77539574ba7b82888955-ddec0b4b77442903-00" + }, + "enqueuedTime": "0001-01-01T00:00:00+00:00" + }, + { + "body": "[{\u0022id\u0022:\u0022Sanitized\u0022,\u0022source\u0022:\u0022calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\u0022,\u0022type\u0022:\u0022Microsoft.Communication.CallConnected\u0022,\u0022data\u0022:{\u0022callConnectionId\u0022:\u0022491f1300-0c70-4f8c-97b4-94474f2a371b\u0022,\u0022serverCallId\u0022:\u0022aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx\u0022,\u0022correlationId\u0022:\u0022ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5\u0022},\u0022time\u0022:\u00222023-08-02T08:44:54.2795442\\u002B00:00\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\u0022}]", + "messageId": "8722ce9e48264e0eb99fbc74786f5ad6", + "partitionKey": null, + "sessionId": null, + "replyToSessionId": null, + "correlationId": null, + "subject": null, + "contentType": null, + "replyTo": null, + "applicationProperties": { + "Diagnostic-Id": "00-93dd9f9ee5dbcb80a9b6f8a9663ba67a-5f3cdcc7035f33be-00" + }, + "enqueuedTime": "0001-01-01T00:00:00+00:00" + }, + { + "body": "[{\u0022id\u0022:\u0022Sanitized\u0022,\u0022source\u0022:\u0022calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\u0022,\u0022type\u0022:\u0022Microsoft.Communication.ParticipantsUpdated\u0022,\u0022data\u0022:{\u0022participants\u0022:[{\u0022identifier\u0022:{\u0022rawId\u0022:\u0022Sanitized\u0022,\u0022kind\u0022:\u0022communicationUser\u0022,\u0022communicationUser\u0022:{\u0022id\u0022:\u0022Sanitized\u0022}},\u0022isMuted\u0022:false},{\u0022identifier\u0022:{\u0022rawId\u0022:\u0022Sanitized\u0022,\u0022kind\u0022:\u0022phoneNumber\u0022,\u0022phoneNumber\u0022:{\u0022value\u0022:\u0022\\u002B18447649276\u0022}},\u0022isMuted\u0022:false}],\u0022sequenceNumber\u0022:1,\u0022callConnectionId\u0022:\u0022491f1300-0c70-4f8c-97b4-94474f2a371b\u0022,\u0022serverCallId\u0022:\u0022aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx\u0022,\u0022correlationId\u0022:\u0022ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5\u0022},\u0022time\u0022:\u00222023-08-02T08:44:54.2795442\\u002B00:00\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\u0022}]", + "messageId": "c5d428e21c2746b1807285abf82b9849", + "partitionKey": null, + "sessionId": null, + "replyToSessionId": null, + "correlationId": null, + "subject": null, + "contentType": null, + "replyTo": null, + "applicationProperties": { + "Diagnostic-Id": "00-3b9713f3fcb4d73c8a8f05ff28d4e063-1bb81ca46a1c3ff9-00" + }, + "enqueuedTime": "0001-01-01T00:00:00+00:00" + }, + { + "body": "[{\u0022id\u0022:\u0022Sanitized\u0022,\u0022source\u0022:\u0022calling/callConnections/491f1300-5240-4537-ad0e-354053fe0e33\u0022,\u0022type\u0022:\u0022Microsoft.Communication.CallConnected\u0022,\u0022data\u0022:{\u0022callConnectionId\u0022:\u0022491f1300-5240-4537-ad0e-354053fe0e33\u0022,\u0022serverCallId\u0022:\u0022aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC94LWNvbnYtdXN3ZS0wMS5jb252LnNreXBlLmNvbS9jb252L0VuaDlSQk9nVkVtdjVDSnZQQWwwdXc/aT0yJmU9NjM4MjU0OTI0MDMwNzYzNDAw\u0022,\u0022correlationId\u0022:\u0022810427e6-3bf4-484b-9ac1-e62de9db40cd\u0022},\u0022time\u0022:\u00222023-08-02T08:44:56.3576488\\u002B00:00\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022calling/callConnections/491f1300-5240-4537-ad0e-354053fe0e33\u0022}]", + "messageId": "9b6852ec4df14cc0ba4ce2a26fbdcd35", + "partitionKey": null, + "sessionId": null, + "replyToSessionId": null, + "correlationId": null, + "subject": null, + "contentType": null, + "replyTo": null, + "applicationProperties": { + "Diagnostic-Id": "00-02e8a264be6b2dc4ba5c0839b89f46d5-6a8e4bc945345756-00" + }, + "enqueuedTime": "0001-01-01T00:00:00+00:00" + }, + { + "body": "[{\u0022id\u0022:\u0022Sanitized\u0022,\u0022source\u0022:\u0022calling/callConnections/491f1300-5240-4537-ad0e-354053fe0e33\u0022,\u0022type\u0022:\u0022Microsoft.Communication.ParticipantsUpdated\u0022,\u0022data\u0022:{\u0022participants\u0022:[{\u0022identifier\u0022:{\u0022rawId\u0022:\u0022Sanitized\u0022,\u0022kind\u0022:\u0022communicationUser\u0022,\u0022communicationUser\u0022:{\u0022id\u0022:\u0022Sanitized\u0022}},\u0022isMuted\u0022:false},{\u0022identifier\u0022:{\u0022rawId\u0022:\u0022Sanitized\u0022,\u0022kind\u0022:\u0022phoneNumber\u0022,\u0022phoneNumber\u0022:{\u0022value\u0022:\u0022\\u002B18662315126\u0022}},\u0022isMuted\u0022:false}],\u0022sequenceNumber\u0022:1,\u0022callConnectionId\u0022:\u0022491f1300-5240-4537-ad0e-354053fe0e33\u0022,\u0022serverCallId\u0022:\u0022aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC94LWNvbnYtdXN3ZS0wMS5jb252LnNreXBlLmNvbS9jb252L0VuaDlSQk9nVkVtdjVDSnZQQWwwdXc/aT0yJmU9NjM4MjU0OTI0MDMwNzYzNDAw\u0022,\u0022correlationId\u0022:\u0022810427e6-3bf4-484b-9ac1-e62de9db40cd\u0022},\u0022time\u0022:\u00222023-08-02T08:44:56.3888679\\u002B00:00\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022calling/callConnections/491f1300-5240-4537-ad0e-354053fe0e33\u0022}]", + "messageId": "c74ba5e4d6ac451ca8d51f5f7bff0674", + "partitionKey": null, + "sessionId": null, + "replyToSessionId": null, + "correlationId": null, + "subject": null, + "contentType": null, + "replyTo": null, + "applicationProperties": { + "Diagnostic-Id": "00-709d3446aeb93ce75962ad7182818699-79421b17e1d74804-00" + }, + "enqueuedTime": "0001-01-01T00:00:00+00:00" + }, + { + "body": "[{\u0022id\u0022:\u0022Sanitized\u0022,\u0022source\u0022:\u0022calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\u0022,\u0022type\u0022:\u0022Microsoft.Communication.DialogStarted\u0022,\u0022data\u0022:{\u0022operationContext\u0022:\u0022context\u0022,\u0022resultInformation\u0022:{\u0022code\u0022:200,\u0022subCode\u0022:0,\u0022message\u0022:\u0022Success Result\u0022},\u0022dialogInputType\u0022:\u0022powerVirtualAgents\u0022,\u0022dialogId\u0022:\u002292e08834-b6ee-4ede-8956-9fefa27a691c\u0022,\u0022callConnectionId\u0022:\u0022491f1300-0c70-4f8c-97b4-94474f2a371b\u0022,\u0022serverCallId\u0022:\u0022aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx\u0022,\u0022correlationId\u0022:\u0022ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5\u0022},\u0022time\u0022:\u00222023-08-02T08:44:58.6076455\\u002B00:00\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\u0022}]", + "messageId": "202435ae6d934ba2a7b20819966e13e4", + "partitionKey": null, + "sessionId": null, + "replyToSessionId": null, + "correlationId": null, + "subject": null, + "contentType": null, + "replyTo": null, + "applicationProperties": { + "Diagnostic-Id": "00-1434b412e7d2e0e1b62d3ef8db7f9ed4-1c69452e156333de-00" + }, + "enqueuedTime": "0001-01-01T00:00:00+00:00" + }, + { + "body": "[{\u0022id\u0022:\u0022Sanitized\u0022,\u0022source\u0022:\u0022calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\u0022,\u0022type\u0022:\u0022Microsoft.Communication.DialogLanguageChange\u0022,\u0022data\u0022:{\u0022selectedLanguage\u0022:\u0022eng-USA\u0022,\u0022operationContext\u0022:\u0022context\u0022,\u0022resultInformation\u0022:{\u0022code\u0022:200,\u0022subCode\u0022:0,\u0022message\u0022:\u0022Success Result\u0022},\u0022dialogInputType\u0022:\u0022powerVirtualAgents\u0022,\u0022dialogId\u0022:\u002292e08834-b6ee-4ede-8956-9fefa27a691c\u0022,\u0022ivrContext\u0022:\u0022Sanitized\u0022,\u0022callConnectionId\u0022:\u0022491f1300-0c70-4f8c-97b4-94474f2a371b\u0022,\u0022serverCallId\u0022:\u0022aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx\u0022,\u0022correlationId\u0022:\u0022ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5\u0022},\u0022time\u0022:\u00222023-08-02T08:44:58.9826643\\u002B00:00\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\u0022}]", + "messageId": "5fb94ea3e9794f40a5142b94a420163c", + "partitionKey": null, + "sessionId": null, + "replyToSessionId": null, + "correlationId": null, + "subject": null, + "contentType": null, + "replyTo": null, + "applicationProperties": { + "Diagnostic-Id": "00-14476c6218dfaeb790743088dc90b30c-8782d7f195c9018e-00" + }, + "enqueuedTime": "0001-01-01T00:00:00+00:00" + }, + { + "body": "[{\u0022id\u0022:\u0022Sanitized\u0022,\u0022source\u0022:\u0022calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\u0022,\u0022type\u0022:\u0022Microsoft.Communication.DialogSensitivityUpdate\u0022,\u0022data\u0022:{\u0022sensitiveMask\u0022:false,\u0022operationContext\u0022:\u0022context\u0022,\u0022resultInformation\u0022:{\u0022code\u0022:200,\u0022subCode\u0022:0,\u0022message\u0022:\u0022Success Result\u0022},\u0022dialogInputType\u0022:\u0022powerVirtualAgents\u0022,\u0022dialogId\u0022:\u002292e08834-b6ee-4ede-8956-9fefa27a691c\u0022,\u0022callConnectionId\u0022:\u0022491f1300-0c70-4f8c-97b4-94474f2a371b\u0022,\u0022serverCallId\u0022:\u0022aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx\u0022,\u0022correlationId\u0022:\u0022ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5\u0022},\u0022time\u0022:\u00222023-08-02T08:44:58.9826643\\u002B00:00\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\u0022}]", + "messageId": "c022a642429248ba861f59aa3d4ffced", + "partitionKey": null, + "sessionId": null, + "replyToSessionId": null, + "correlationId": null, + "subject": null, + "contentType": null, + "replyTo": null, + "applicationProperties": { + "Diagnostic-Id": "00-17f75c2e5d1ca5f7998fb20577fbec73-4d0d98a4b664f27f-00" + }, + "enqueuedTime": "0001-01-01T00:00:00+00:00" + }, + { + "body": "[{\u0022id\u0022:\u0022Sanitized\u0022,\u0022source\u0022:\u0022calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\u0022,\u0022type\u0022:\u0022Microsoft.Communication.DialogCompleted\u0022,\u0022data\u0022:{\u0022operationContext\u0022:\u0022context\u0022,\u0022resultInformation\u0022:{\u0022code\u0022:200,\u0022subCode\u0022:0,\u0022message\u0022:\u0022Success Result\u0022},\u0022dialogInputType\u0022:\u0022powerVirtualAgents\u0022,\u0022dialogId\u0022:\u002292e08834-b6ee-4ede-8956-9fefa27a691c\u0022,\u0022callConnectionId\u0022:\u0022491f1300-0c70-4f8c-97b4-94474f2a371b\u0022,\u0022serverCallId\u0022:\u0022aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx\u0022,\u0022correlationId\u0022:\u0022ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5\u0022},\u0022time\u0022:\u00222023-08-02T08:45:00.2795169\\u002B00:00\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\u0022}]", + "messageId": "b7ba90f5cae54dc1ad5ed99a56e076eb", + "partitionKey": null, + "sessionId": null, + "replyToSessionId": null, + "correlationId": null, + "subject": null, + "contentType": null, + "replyTo": null, + "applicationProperties": { + "Diagnostic-Id": "00-fffab077730f0ab9ba91378644ca7356-b8f4329c616d7cfe-00" + }, + "enqueuedTime": "0001-01-01T00:00:00+00:00" + } + ] +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecordedEvents/CallDialogAutomatedLiveTests/IdenticalDialogsTestAsync.json b/sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecordedEvents/CallDialogAutomatedLiveTests/IdenticalDialogsTestAsync.json new file mode 100644 index 000000000000..39224b819575 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecordedEvents/CallDialogAutomatedLiveTests/IdenticalDialogsTestAsync.json @@ -0,0 +1,169 @@ +{ + "entries": [ + { + "body": "[{\u0022id\u0022:\u0022Sanitized\u0022,\u0022source\u0022:\u0022calling/callConnections/491f1300-5240-4537-ad0e-354053fe0e33\u0022,\u0022type\u0022:\u0022Microsoft.Communication.CallDisconnected\u0022,\u0022data\u0022:{\u0022callConnectionId\u0022:\u0022491f1300-5240-4537-ad0e-354053fe0e33\u0022,\u0022serverCallId\u0022:\u0022aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC94LWNvbnYtdXN3ZS0wMS5jb252LnNreXBlLmNvbS9jb252L0VuaDlSQk9nVkVtdjVDSnZQQWwwdXc/aT0yJmU9NjM4MjU0OTI0MDMwNzYzNDAw\u0022,\u0022correlationId\u0022:\u0022810427e6-3bf4-484b-9ac1-e62de9db40cd\u0022},\u0022time\u0022:\u00222023-08-02T08:45:01.7952025\\u002B00:00\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022calling/callConnections/491f1300-5240-4537-ad0e-354053fe0e33\u0022}]", + "messageId": "bb9b42a9bfc04205be6df02c21adc474", + "partitionKey": null, + "sessionId": null, + "replyToSessionId": null, + "correlationId": null, + "subject": null, + "contentType": null, + "replyTo": null, + "applicationProperties": { + "Diagnostic-Id": "00-0b1514911af1104e36c69161b8496857-2a601ba310b70378-00" + }, + "enqueuedTime": "0001-01-01T00:00:00+00:00" + }, + { + "body": "[{\u0022id\u0022:\u0022Sanitized\u0022,\u0022source\u0022:\u0022calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\u0022,\u0022type\u0022:\u0022Microsoft.Communication.CallDisconnected\u0022,\u0022data\u0022:{\u0022callConnectionId\u0022:\u0022491f1300-0c70-4f8c-97b4-94474f2a371b\u0022,\u0022serverCallId\u0022:\u0022aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx\u0022,\u0022correlationId\u0022:\u0022ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5\u0022},\u0022time\u0022:\u00222023-08-02T08:45:02.0920612\\u002B00:00\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b\u0022}]", + "messageId": "536b9d77ba9448d5a5562c95ac2665c2", + "partitionKey": null, + "sessionId": null, + "replyToSessionId": null, + "correlationId": null, + "subject": null, + "contentType": null, + "replyTo": null, + "applicationProperties": { + "Diagnostic-Id": "00-196e29037cd2810471ca776da0229c9a-1e21a6ffa2fa6dbf-00" + }, + "enqueuedTime": "0001-01-01T00:00:00+00:00" + }, + { + "body": "{\u0022to\u0022:{\u0022kind\u0022:\u0022phoneNumber\u0022,\u0022rawId\u0022:\u0022Sanitized\u0022,\u0022phoneNumber\u0022:{\u0022value\u0022:\u0022\\u002B18662315126\u0022}},\u0022from\u0022:{\u0022kind\u0022:\u0022phoneNumber\u0022,\u0022rawId\u0022:\u0022Sanitized\u0022,\u0022phoneNumber\u0022:{\u0022value\u0022:\u0022\\u002B18447649276\u0022}},\u0022serverCallId\u0022:\u0022aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzc2MtMDcuY29udi5za3lwZS5jb20vY29udi9pbVVaSzFXWjkwYWt4Z0J3UGViZzF3P2k9NjcmZT02MzgyNjE3MjQ2MDgwMTgwNzU=\u0022,\u0022callerDisplayName\u0022:\u0022\u0022,\u0022incomingCallContext\u0022:\u0022eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJjYyI6Ikg0c0lBQUFBQUFBQUNzMVhhMjhiTnhiOUt3TVY2SWM2bElhY053R2hrUFZJSE5ldVlqdkoxcXZXSURtY0VlTjVoVU05bkRUL2ZTLzFjT1RZYUx5TExkQVJNQnFTbCtjZVhsNlNoNTg3Z2hYRmVXMVVwZ1F6cXE0NjlITW4wM1ZwLzFYYW9SMmZIdUhZOTZQUVQwZ1VkbDUwVXRVMkJiczdaNlhzMEdwUkZDODZza3FiV2xYbXhIWWdtUmNKajJFa3VSOGdQOGt3NGtrY0k5Y1BneXdqM0dOcEJEQUZxL0lGeTZYdHMwVnBtRFpLcUlidGdDVDNNcGt4SHdWeGtpR2ZCUkhpc1IramdJYzRDRndXeWhBRDBGeWxxUVRlR1N0YUNTaTZicVEyZDhjczN3Si9lZEV4OWYxd1lzcEVTekZQR1NNOFFVbmdSc2dQZklJNEQzM0VJazZJY0YwV3AvNk51M3ZRRTYvOTg0eDRQQlBtKy9Id2hDU0pGeVdJWjhSRlBwY0N4UXh6SkZnaU1YZWp5UFg0NDNobzJkWUxMVGE0bmVlTXUvTjBEQXRWM2JZMmpNd1lKdVlBTmplbWFXbXZ4eHJWelFxVnp3MzBXOTkxMjl1N1JuWkZYZHFXM3BMMFJOTVRBaTNhVmlBMzdBcHhZQ0ZFYjRsN1dhMXZaZG9UQ1JNK0R5V0tSQklpM3dzRGxLUWtRSEVZaWd6Yk9QR2tSNktld2ozUFQzcGJJaityUHJGcFVNcFVzVUhWcnFRR2JrSUFzWkp0eDVKREROcC9BT0U5bFQxbExUOUlZZjRCeExaRTlyUVdhWE9sV2RVMnRiYmtvQWpVQXRMRm1IUmpILzZvNTBkeHIvTmxGL1JoWFJsWmdlbm5qdGgrWGdFcDZNbWFwdGh0SzcwMmJWQ1ZBKzF1QUM1NFVYTXdXUGJkbVo1VmRSODVub3NEejNHZGszUG5aT283bUVSZEYzN1l0cmY5RnFJR0tMWWcranNUNG5hSmExbDVscGx0NHYzaEZkMk1EaDViWWZxdXMva28rMnlScXRvSlhOOXpuWXVyYVcvd2J1cGcxM2NTZUhzT3h0akJNYmlQblNTQ0dpalp5dmc3RGxsZkc5RWczYXBQOHFDY2NmcVRzMFlsa0lZRjdVQVluQmEyQkpxMmMwZExzYlFmVy9NMWFsVmVNVmhiK1YvMXVqZmVyR1RVR2kxWnFWS0t2enFsZG1pN3NnS2JSYVpaVHRPTGorZGY2NXBWU3M5VkdmaXJvNC95dERtNUxmTTNMNXZVSzV2UjlRSDljckhlbGdTclVwVXlJeW5FdzNrN21qb0VlMjdraHVEcG0yanNJbXZ1Z0xUT2lyV2pXWnBxaUNUTW9aOTBDY3l0dHZtMHRYc01UdzdnZ3dTbTRnbDQvRXg0L0MwOEFmWjJZRXdZY0VFZ1EwSTNldVRDVDNCQW51RmlZL2ZZQmZsN1hCU015NEtXVEZWb2s4TGIyb1BKWHlPK2txeklhNjNNdktRYThzZW9rcGxhTzN3bG5JYUpXMmthcHJTemtoem1kOGRjM3pXbWhzQVB4cGMzdzdNYlRPS2JWMmVENGMzbHF3RytpVjFIVlpDVU1DNi9uc2Z0bTlYZDBmc2krKzNUWkhJazV1T3FUVDVjOGVYUlpQcjZ4TVRoUEUyeVA4a2ZIdjRUNzBudDRNbjM0Qy94OWFjRk9jdXl3YXRoSE1YSHYxMFRkYVNYN3l0MVBsUVgxZXJkdTdvOUU4UExEZncrUlp1U05iRE1mZWZ5NUpmVEhnNTNpLzIrS1hGZVJvVDA0bS9yN1VMZmRIbmNBc3YvOHVSaWZINklscFZtMjhLVjBUREgvY2VlSUUvQlZYSUF1TzBVTzZ5cTVKcjNxL3FCdmV0TWgyZHZIL3VQYmYzZ2NUM3NSUmZqMFZNamdZU1doV3ptZFNXUlhNS1crNGdEbUxnSWh3LzdlYzd3L0tuaHg3YitZSHdOcEJCTS9oNFF0aWVwR3cyS2hyWnpoa2dRT3VNeHhRbU5KelQyNlhCQVhZOE94blFVMFVsQW8yTTZDT2l4U3ljVEdvN3BjVUNURWZWRDZydDBNS0hESWZYQVlFUUpvY25RZGhuSE5FaW9EMmdqT3NKME1LVGh6ckZjbXcwL3h4NlFkQWJQYXJYcWJ2TzRXK3Q4TnBOckVDckF0VEx0YkFiRFFmTlVRNi9aalBFVzJlMFQyWkU4UVBPK290MmZubjhCbExIVzNIQlk2Q3VWbXZsTkptWEtZVTM5c0pTdzdkZlZqZmNBUEhoSVZVbVRiWW1xZERaTE5jc01tdGRGS1RYU0paeU15T3dQV2dUd0VzSGhEa0N5c3NndGN1K1hlTnRxZ2NBMGg3M1Nha2Y3c20xNzNmT0x6TGRhTTNiaG5IY0Y0cUFGUWQ4UmpwSXNDNUFYaXl6MXNpaU5zTlhlc2dYWnZ6bVhmeFZpb1dGaTgzdTlXTW5WcjFsbVJkU3VBamFXWEZWMlF3RUhwVGdtM0o3OG9BcE81WjA5ODNkbjg2YlUrYUJYcDJmSnFQazBhZ3J5eGpYWmNQTCs0NkRmQjZlZ1pXRW5BcHRwakt1enEvamp2N0FTdytiMTY2TVA1K09YYjhBR1lPZXFCVWQzSjFVR2t2M2ZuMEVpR2FaenVWY1VLbjNiMlAxMlV1dEwwTnRYbTdiT1BjZGlWN0c3dFlRaDhYQ0FpYjIxWkErYS8vKzNnSHNHZGtJaGZEWmFHK1g4dTlWNXFZSnozOFo3dWxYV1NtNmt0R292ZGsyRG9xaFhFcWJRNklYOEFvRUFKV1V6YkROSko5VlNtZnZiMldHTGxWNjZMb3FONXYydlZDU0E3SFJrQkUzVjhsQkpRckdueXJmWHAvajlkZUt5MjNWK3ZKcEtudU1WU01RdytsSDJReThtSVk2SUgwTEc0ZGlOcktoVDdkbWlNR29LMXhaSWhWMzJxUFpZMXl3VnNJcDJkVEM0VlBKRmZpZ2I0Uks2eVYvSVVwOTVNQ091bTNqSWoyQkp4QjZCeXg4UGs4RGpoUEhVS3RULzZXWUVmbk5kTDVxTjN6WDQzVXpQZndESHhPRndBZzhBQUE9PSIsInNoclRva2VuIjoiZXlKaGJHY2lPaUpTVXpJMU5pSXNJblI1Y0NJNkluQnZjQ0o5LmV5SmhkQ0k2SW1WNVNqQmxXRUZwVDJsS1MxWXhVV2xNUTBwb1lrZGphVTlwU2xOVmVra3hUbWxKYzBsdVp6RmtRMGsyU1dreFRGTlVUbEpQVnpWUFZXcGthVlZ0T1cxbFJ6RnNWMjA1V1dOWFNrbFhhMlJzWkhsSmMwbHRkSEJhUTBrMlNXa3hURk5VVGxKUFZ6VlBWV3BrYVZWdE9XMWxSekZzVjIwNVdXTlhTa2xYYTJSc1pIbEtPUzVsZVVwb1pGZFJhVTlwU21sT1JGWnNUVVJyZDFsVE1XdFpWMHB0VEZSUmVFNUVWWFJaVkVFeVQwTXdkMDlIUlRSTmFteHBUWHBDYkU5SFVXbE1RMHB3WXpOTmFVOXBTbTlrU0ZKM1kzcHZka3d6VGpCamVUVXpZVmMxYTJJelpIcE1iVFZzWkVNNWFscEhUVEZaVjFac1dWTXdlRTVYVFRGTVZGSnJXV3BaZEZscVFUTlBVekZ0V1RKR2ExcEVTVEZOUkZacldYcEpka2xwZDJsaFYwWXdTV3B2ZUU1cWEzZFBWRlUwVFZSUk1FeERTblZaYlZscFQycEZNazlVUVRWT1ZHZDRUa1JSYzBsdFZqUmpRMGsyVFZSWk5VMVVRVEJPUkdjd1RrTjNhVmxYYkhaSmFtOXBVbFJLUjFveGJFcGhSRmswWkdrNE5FMXRkRzFTTUdNeFV6RkJNMDB6VG5abFIzQnRVMnRHVWxGVU1HbE1RMHBvWTBoQ2NGcERTVFpKYlVWNldWUk5lbGw2U21oTVZFazFUMGRWZEU1RVJtdE5VekExVFZSTk0weFhSVEZPUkZsNVRXMVZNazlFUm1wWmVVbHpTVzFHZDJOSGJHdFpWMDU1U1dwdmFVMXBTWE5KYlU1MVdtbEpObVY1U25Ga01uTnBUMjV6YVdFelVqVkphbTlwVld4T1FrbHBkMmxpYVVrMlNXNXNRMk5XYXpOWlZtdDBVbGhvTm1FeVZuUk5lbWg2VWxWU1YyTkZiR3BPTW14d1kwZHdkVk50ZEVOVVYwNVFXbnBzVVdNd09VVmxiVGx1VEZoYVZtTldVa05SYXpGNldWWlNhMkZXYkZGaWEzQnJZMjVPUmxReFJtbFJNR3N6VEZSVmQyRnJSa3hWTVdSdllWVkdXRlJGY0hGWFZUVmFVMVpzWVZKRk5VSlVNbVJxV1dwb1ZXTkVWazFqZVRGSVdESnNORkV5T1V0Wk1WSjFWa1JDY0ZacmJITmtWbFpIVmtaS2JtTllTbkJQUnpGUlkxVm9RbUo2VWs1aWJrcHZWVmhhTUU5Vk5EVldSVlpYVmpOT1dHTnJlRE5oUms1TFZua3hkbFJFV25WVWF6bERWa2hDU1ZkV09ESlBWelZtWWtSR1ZHSXdUbEJXTTFKNVUxVldVbE13Vms5VlZtUlpWRE5hWmxSWWFGUlNia1o2VWxoYVExcEdPVkJTUkd4Q1ZFY3hTRlV3ZUVoa1J6QXlUMFpaZVZSWWF6SllNMjgwVVcweFZsWkhTbUZNVkZKdVQxVmFXV0V4Y0RKTlJsb3pXa1phV1ZFeFRuWlpXRmw0VW5wb1dWaDZXbmRTV0VsNVdrUkdlR1ZXV1hoaVJsSXpXbXhDZUZwRVdtbGFNbG93WTBkS2NWWkhWakZhYkd4RFVsaG9VMHhWUm5ObFNGWkxZMjVrYkZSNmFFOU1WRll4VW1zNE1sZHJlRzlhUkZJd1UyNW9URlZXUW5aT01qbE5WVlpDYjJOVVNuWldSVTVLVlZOSmMwbHRWV2xQYVVwQ1ZWVkdRMGxwZDJsWlYzaHVTV3B2YVZWc1RYbE9WRmxwVEVOS2NtRlhVV2xQYVVwWFVsUlNVVlF6YkRCUFJYaHRWRE5TTmxOcVJsQk5WM2gxWVRJd2RGWnNXa3RhYm5CV1VqQjBXV0V6YXpKaGJGcFhZbFpuTkdGdFdtNUpiakU1VEVOS2NGcElRV2xQYVVwdlpFaFNkMk42YjNaTU0wNHdZM2sxTTJGWE5XdGlNMlI2VEcwMWJHUkRPV3BhUjAweFdWZFdiRmxUTUhoT1YwMHhURlJTYTFscVdYUlpha0V6VDFNeGJWa3lSbXRhUkVreFRVUldhMWw2U1haSmFYZHBZakpzYTBscWIybE5iVTB6VDFkT2FVNTZaM1JOTWs1cVdWTXdNRTB5Vm1sTVYwcHNXV3BKZEZscVFUVk9iVlpwVDFSSk1FNXRSVFJKYVhkcFkyMW5hVTlwU1hkTWEwWlRVMVZGTW1OVVpFZGxiVTVXVm01U2NrMXVaR3hhYm13d1RVZDRRMXBJWkc1aU1IQlpZMnhPWmsxdGRGZFJiVGxJV2pCc2VGRXlNVFpTUnpoM1ZUQkdRbEZUTkdsTVEwcDZaRmRKYVU5cFNYbFplbU0xV1RKSk0wOURNSHBaTWs1b1RGUlJlbHBYU1hSWmJWWnBUV2t4YVUxRWF6SmFWMGsxVFdwUk1sbFVaMmxNUTBvd1lWZFJhVTlwU21wYVIwMHhXVmRXYkZsVE1IaE9WMDB4VEZSU2ExbHFXWFJaYWtFelQxTXhiVmt5Um10YVJFa3hUVVJXYTFsNlNXbE1RMG94WkVkcmFVOXBTbFZaTTBacVltNXdWVmxZV1hkV2VrWkdWMWh2ZEZaVmF6RlBSVVpDU1dsM2FXUnRWbmxKYW05cFRWTTBkMGx1TUM1b1QyWkVZamhyYTJGZlMwaEdSM0pWZUZCMVowOHdTV2hNZWtOSVluSTBTVkZqZVdkSmVVNUxiVFYwTmtkUlEwbFRWVFpKVkZCcmFXdHpMVmxXVFVOd1VGY3haRk5rT1UxbFpWbExkMWRtWkdkc1NYcERhRWhIZVZCM2NtRndUVWxNYURFeE5rNVlWMnhmTm01cFMxbzFUMVpwVFZkWlZFOUdSRTl6YkZkNFZGZFRjbVIxYlRjek5VVlpaelYzUkRSYWFUaEpUbUpCTVZKVllraEtkazl4VEdKeWVsVkZiMHREVjFkVlUwb3hXRVpvTlRadWQzVlFRM0JEYm1ReVdUUm9jbUZLY1dJM1gzQlVZMjlzTTBWb1NrdG9NV3hCYVV4TU9UWjBVelJhVEZwdmMxbGFkMEpMTVROMFIwdFNRbU5wY1V4c2Ntb3hhVlJNUjJ0Q1VpMTNOako1V0VkcmNrdzBXRGR6U0RBeVEwNTFVbWhYTFd0T1dqRjFkemhpZEhoVFNtZGFSRTVDTUZab1NIaEpkSEZJUTNsRGFETjRSRkY1ZEZsRFNXdHdYelptTXpGa09WSkZSVjl3ZW1KUmFGZG9NalIxTFdjaUxDSjBjeUk2TVRZNU1EazJOVGt3T0N3aVlpSTZJbmxWTm04MldHMURWMGRZUjJsbVZreHFUakZtYmpWeVgwSnJhamxFUVdwVFRFVlBURWRKY2psNlJtOGlMQ0p1YjI1alpTSTZJbVJrTmpOa05qVXhabUl5TmpSbE16STVNelEwWldaaE1EUXpOamc0TkRJMElpd2lZMjVtSWpwN0ltcDNheUk2ZXlKcmFXUWlPaUp6Vm5sRlNGZ3pVakF6VGpsSlVVcE5WM05xTFhaU05IbExXalp3TkVkaFRYQnpPSGQzTTJwVFVtMUJJaXdpWlNJNklrRlJRVUlpTENKcmRIa2lPaUpTVTBFaUxDSnVJam9pZVVKeFdUZGhXUzFGZUhwclpXMHpPSE5GUkZad1NXTTNhV2x3YW01S2EwSk5ZMDluT1ZCelQwUjZiMmN0ZGxWeFZFSkNUWE5oVkdScFdWQnVTbVJ5YzBWUFVXSkRTVGN0TlRCcVFVdFRWMmhwUVZkTVNtcFpUbGxKV1ZwRVRrRlBaMk5pT0ZSd05VeHpMVWRmYVhoRGIwcGpWRzVVTUdsV1NXeDFWVVpVVW1keGNtazRiVkJ4U0VGdk5FMXVjbWhSZG5RNVRqbFVSVlpYYzFkeVRIZG9VMHBYTFc5TU5tNU9UMEpVY0VoWlh6WTVibDlzTVZOdlEwOVhkSEpKUlZGTFJVNVJWMWhQZGw5TmVGTkdjWE5GZGtKa1gwOUVPVUZNYlVkVFRFZDBiVFk0VmpKTmVUWmZlamhDYlZWVVlsb3ROR2M1UmxoclduWXdWbmRrVmxoRFUyOWhkakZIT0ZoZk5uQkZjakprTVhGNVZqRnNWSGRtVUhGa05tSm5ablJ3WW1wVVpYVm1XVUpGZUZJdFFXeDRkVXB5ZDJWUE9FNHROWFZHVHpaYVRHaGtOSFJLZUV0UlVHODNiMHhSVUdoeE1tOVVRMGxSSW4xOWZRLmlRa0dLakgzcnNSblRmenJMRFJJNGY4cHhFczctVFVYQm9BYlRZWkd6SDhmZ3Yxd3I0RmxrbzV1a3dtMHFwajJnMVRUY1ctSWpmdS0xdnFCSlllS2NZclZ0eS1BRFYxMjNvejVEQ1k2RjFYM2ZYU2NTT3IzRHNYOTlsTEVqcV9CUWdRSkNOVG52Wk5zeUtiUHNiWVFoWG81dWlscklibEJBMlExYTRHTGlmM2tQSmVMbl9DNEcwcTBtbDczeURhMXdXaEoxTkxtdS1yYW4yLVJQTnZ3SWZTUUdHbEI0ZjMwNmtsRVh6dEMwYk5ZQXdMVk5YVGxMWGd3cnBSc29jZU5xYWlGRTVGOHA0N2Q0TFRzQi10LVNoVlpSbWN1MUNocXBPcXBFMTdGZGxfa19GMkxCMEtvNjZDdV9vMVhwZGo3MlJTb0ZNT3c3d28wb0JQVVhwbWpaUSJ9.\u0022,\u0022correlationId\u0022:\u0022cfd4a3b9-0093-47de-832f-4b6953b2abd1\u0022}", + "messageId": "1e314209644445fe8727c8c3fdb7373e", + "partitionKey": null, + "sessionId": null, + "replyToSessionId": null, + "correlationId": null, + "subject": null, + "contentType": null, + "replyTo": null, + "applicationProperties": { + "Diagnostic-Id": "00-288c50e11c47c53129a8224bd51094a8-27843d151a1c3abf-00" + }, + "enqueuedTime": "0001-01-01T00:00:00+00:00" + }, + { + "body": "[{\u0022id\u0022:\u0022Sanitized\u0022,\u0022source\u0022:\u0022calling/callConnections/491f1300-d5bc-4de3-b660-ffcd6063911d\u0022,\u0022type\u0022:\u0022Microsoft.Communication.CallConnected\u0022,\u0022data\u0022:{\u0022callConnectionId\u0022:\u0022491f1300-d5bc-4de3-b660-ffcd6063911d\u0022,\u0022serverCallId\u0022:\u0022aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzc2MtMDcuY29udi5za3lwZS5jb20vY29udi9pbVVaSzFXWjkwYWt4Z0J3UGViZzF3P2k9NjcmZT02MzgyNjE3MjQ2MDgwMTgwNzU=\u0022,\u0022correlationId\u0022:\u0022cfd4a3b9-0093-47de-832f-4b6953b2abd1\u0022},\u0022time\u0022:\u00222023-08-02T08:45:10.4983827\\u002B00:00\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022calling/callConnections/491f1300-d5bc-4de3-b660-ffcd6063911d\u0022}]", + "messageId": "dc1acc51e2c445e2949a5576f4da9122", + "partitionKey": null, + "sessionId": null, + "replyToSessionId": null, + "correlationId": null, + "subject": null, + "contentType": null, + "replyTo": null, + "applicationProperties": { + "Diagnostic-Id": "00-8f39f1106fada1650b5a50eb4ff2214c-5d2cdc934e0fbbd3-00" + }, + "enqueuedTime": "0001-01-01T00:00:00+00:00" + }, + { + "body": "[{\u0022id\u0022:\u0022Sanitized\u0022,\u0022source\u0022:\u0022calling/callConnections/491f1300-d5bc-4de3-b660-ffcd6063911d\u0022,\u0022type\u0022:\u0022Microsoft.Communication.ParticipantsUpdated\u0022,\u0022data\u0022:{\u0022participants\u0022:[{\u0022identifier\u0022:{\u0022rawId\u0022:\u0022Sanitized\u0022,\u0022kind\u0022:\u0022communicationUser\u0022,\u0022communicationUser\u0022:{\u0022id\u0022:\u0022Sanitized\u0022}},\u0022isMuted\u0022:false},{\u0022identifier\u0022:{\u0022rawId\u0022:\u0022Sanitized\u0022,\u0022kind\u0022:\u0022phoneNumber\u0022,\u0022phoneNumber\u0022:{\u0022value\u0022:\u0022\\u002B18447649276\u0022}},\u0022isMuted\u0022:false}],\u0022sequenceNumber\u0022:1,\u0022callConnectionId\u0022:\u0022491f1300-d5bc-4de3-b660-ffcd6063911d\u0022,\u0022serverCallId\u0022:\u0022aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzc2MtMDcuY29udi5za3lwZS5jb20vY29udi9pbVVaSzFXWjkwYWt4Z0J3UGViZzF3P2k9NjcmZT02MzgyNjE3MjQ2MDgwMTgwNzU=\u0022,\u0022correlationId\u0022:\u0022cfd4a3b9-0093-47de-832f-4b6953b2abd1\u0022},\u0022time\u0022:\u00222023-08-02T08:45:10.6545985\\u002B00:00\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022calling/callConnections/491f1300-d5bc-4de3-b660-ffcd6063911d\u0022}]", + "messageId": "df16b2ac5b2d4413bd7670bca1d71d96", + "partitionKey": null, + "sessionId": null, + "replyToSessionId": null, + "correlationId": null, + "subject": null, + "contentType": null, + "replyTo": null, + "applicationProperties": { + "Diagnostic-Id": "00-47407ed44df00f9160e5e372e0e31c7d-54e03d2ab09a4afa-00" + }, + "enqueuedTime": "0001-01-01T00:00:00+00:00" + }, + { + "body": "[{\u0022id\u0022:\u0022Sanitized\u0022,\u0022source\u0022:\u0022calling/callConnections/491f1300-4018-43a8-9e6b-b6aa0ebe7fab\u0022,\u0022type\u0022:\u0022Microsoft.Communication.CallConnected\u0022,\u0022data\u0022:{\u0022callConnectionId\u0022:\u0022491f1300-4018-43a8-9e6b-b6aa0ebe7fab\u0022,\u0022serverCallId\u0022:\u0022aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC94LWNvbnYtdXN3ZS0wMS5jb252LnNreXBlLmNvbS9jb252L01ndGlMdzlxVDBTVDFDSTFlVHQwNkE/aT0wJmU9NjM4MjU0OTE0MzM4NTgwOTY1\u0022,\u0022correlationId\u0022:\u0022111acd78-ae5f-4264-93b9-592184b2870e\u0022},\u0022time\u0022:\u00222023-08-02T08:45:12.0771779\\u002B00:00\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022calling/callConnections/491f1300-4018-43a8-9e6b-b6aa0ebe7fab\u0022}]", + "messageId": "a35c4c4b75574b709772c33cb21f3121", + "partitionKey": null, + "sessionId": null, + "replyToSessionId": null, + "correlationId": null, + "subject": null, + "contentType": null, + "replyTo": null, + "applicationProperties": { + "Diagnostic-Id": "00-2f0bfb1305c01510ae78b6a15871df9b-5675a8239553b21a-00" + }, + "enqueuedTime": "0001-01-01T00:00:00+00:00" + }, + { + "body": "[{\u0022id\u0022:\u0022Sanitized\u0022,\u0022source\u0022:\u0022calling/callConnections/491f1300-4018-43a8-9e6b-b6aa0ebe7fab\u0022,\u0022type\u0022:\u0022Microsoft.Communication.ParticipantsUpdated\u0022,\u0022data\u0022:{\u0022participants\u0022:[{\u0022identifier\u0022:{\u0022rawId\u0022:\u0022Sanitized\u0022,\u0022kind\u0022:\u0022phoneNumber\u0022,\u0022phoneNumber\u0022:{\u0022value\u0022:\u0022\\u002B18662315126\u0022}},\u0022isMuted\u0022:false},{\u0022identifier\u0022:{\u0022rawId\u0022:\u0022Sanitized\u0022,\u0022kind\u0022:\u0022communicationUser\u0022,\u0022communicationUser\u0022:{\u0022id\u0022:\u0022Sanitized\u0022}},\u0022isMuted\u0022:false}],\u0022sequenceNumber\u0022:1,\u0022callConnectionId\u0022:\u0022491f1300-4018-43a8-9e6b-b6aa0ebe7fab\u0022,\u0022serverCallId\u0022:\u0022aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC94LWNvbnYtdXN3ZS0wMS5jb252LnNreXBlLmNvbS9jb252L01ndGlMdzlxVDBTVDFDSTFlVHQwNkE/aT0wJmU9NjM4MjU0OTE0MzM4NTgwOTY1\u0022,\u0022correlationId\u0022:\u0022111acd78-ae5f-4264-93b9-592184b2870e\u0022},\u0022time\u0022:\u00222023-08-02T08:45:12.0771779\\u002B00:00\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022calling/callConnections/491f1300-4018-43a8-9e6b-b6aa0ebe7fab\u0022}]", + "messageId": "bcc6be2dc3bc4727ac59a711cbc22731", + "partitionKey": null, + "sessionId": null, + "replyToSessionId": null, + "correlationId": null, + "subject": null, + "contentType": null, + "replyTo": null, + "applicationProperties": { + "Diagnostic-Id": "00-79aeddb62cdf8ef213b87bf5850bd17c-b1334736d62395c5-00" + }, + "enqueuedTime": "0001-01-01T00:00:00+00:00" + }, + { + "body": "[{\u0022id\u0022:\u0022Sanitized\u0022,\u0022source\u0022:\u0022calling/callConnections/491f1300-d5bc-4de3-b660-ffcd6063911d\u0022,\u0022type\u0022:\u0022Microsoft.Communication.DialogStarted\u0022,\u0022data\u0022:{\u0022operationContext\u0022:\u0022context\u0022,\u0022resultInformation\u0022:{\u0022code\u0022:200,\u0022subCode\u0022:0,\u0022message\u0022:\u0022Success Result\u0022},\u0022dialogInputType\u0022:\u0022powerVirtualAgents\u0022,\u0022dialogId\u0022:\u002292e08834-b6ee-4ede-8956-9fefa27a691c\u0022,\u0022callConnectionId\u0022:\u0022491f1300-d5bc-4de3-b660-ffcd6063911d\u0022,\u0022serverCallId\u0022:\u0022aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzc2MtMDcuY29udi5za3lwZS5jb20vY29udi9pbVVaSzFXWjkwYWt4Z0J3UGViZzF3P2k9NjcmZT02MzgyNjE3MjQ2MDgwMTgwNzU=\u0022,\u0022correlationId\u0022:\u0022cfd4a3b9-0093-47de-832f-4b6953b2abd1\u0022},\u0022time\u0022:\u00222023-08-02T08:45:13.8428683\\u002B00:00\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022calling/callConnections/491f1300-d5bc-4de3-b660-ffcd6063911d\u0022}]", + "messageId": "ce3ef5c9aee84145a2fc19b2a878b1ef", + "partitionKey": null, + "sessionId": null, + "replyToSessionId": null, + "correlationId": null, + "subject": null, + "contentType": null, + "replyTo": null, + "applicationProperties": { + "Diagnostic-Id": "00-50b2f68dd3cab9ac2ccc247eba116a04-d75079081fcc5d04-00" + }, + "enqueuedTime": "0001-01-01T00:00:00+00:00" + }, + { + "body": "[{\u0022id\u0022:\u0022Sanitized\u0022,\u0022source\u0022:\u0022calling/callConnections/491f1300-d5bc-4de3-b660-ffcd6063911d\u0022,\u0022type\u0022:\u0022Microsoft.Communication.DialogSensitivityUpdate\u0022,\u0022data\u0022:{\u0022sensitiveMask\u0022:false,\u0022operationContext\u0022:\u0022context\u0022,\u0022resultInformation\u0022:{\u0022code\u0022:200,\u0022subCode\u0022:0,\u0022message\u0022:\u0022Success Result\u0022},\u0022dialogInputType\u0022:\u0022powerVirtualAgents\u0022,\u0022dialogId\u0022:\u002292e08834-b6ee-4ede-8956-9fefa27a691c\u0022,\u0022callConnectionId\u0022:\u0022491f1300-d5bc-4de3-b660-ffcd6063911d\u0022,\u0022serverCallId\u0022:\u0022aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzc2MtMDcuY29udi5za3lwZS5jb20vY29udi9pbVVaSzFXWjkwYWt4Z0J3UGViZzF3P2k9NjcmZT02MzgyNjE3MjQ2MDgwMTgwNzU=\u0022,\u0022correlationId\u0022:\u0022cfd4a3b9-0093-47de-832f-4b6953b2abd1\u0022},\u0022time\u0022:\u00222023-08-02T08:45:14.1084827\\u002B00:00\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022calling/callConnections/491f1300-d5bc-4de3-b660-ffcd6063911d\u0022}]", + "messageId": "1445e38a1e2f448581613bbb447e56b6", + "partitionKey": null, + "sessionId": null, + "replyToSessionId": null, + "correlationId": null, + "subject": null, + "contentType": null, + "replyTo": null, + "applicationProperties": { + "Diagnostic-Id": "00-77eb1fcf1a35e98ce5255ef1eb7e96d2-2ecd98ed3de63158-00" + }, + "enqueuedTime": "0001-01-01T00:00:00+00:00" + }, + { + "body": "[{\u0022id\u0022:\u0022Sanitized\u0022,\u0022source\u0022:\u0022calling/callConnections/491f1300-d5bc-4de3-b660-ffcd6063911d\u0022,\u0022type\u0022:\u0022Microsoft.Communication.DialogLanguageChange\u0022,\u0022data\u0022:{\u0022selectedLanguage\u0022:\u0022eng-USA\u0022,\u0022operationContext\u0022:\u0022context\u0022,\u0022resultInformation\u0022:{\u0022code\u0022:200,\u0022subCode\u0022:0,\u0022message\u0022:\u0022Success Result\u0022},\u0022dialogInputType\u0022:\u0022powerVirtualAgents\u0022,\u0022dialogId\u0022:\u002292e08834-b6ee-4ede-8956-9fefa27a691c\u0022,\u0022ivrContext\u0022:\u0022Sanitized\u0022,\u0022callConnectionId\u0022:\u0022491f1300-d5bc-4de3-b660-ffcd6063911d\u0022,\u0022serverCallId\u0022:\u0022aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzc2MtMDcuY29udi5za3lwZS5jb20vY29udi9pbVVaSzFXWjkwYWt4Z0J3UGViZzF3P2k9NjcmZT02MzgyNjE3MjQ2MDgwMTgwNzU=\u0022,\u0022correlationId\u0022:\u0022cfd4a3b9-0093-47de-832f-4b6953b2abd1\u0022},\u0022time\u0022:\u00222023-08-02T08:45:14.1084827\\u002B00:00\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022calling/callConnections/491f1300-d5bc-4de3-b660-ffcd6063911d\u0022}]", + "messageId": "6dabdabe31194a1081d9b9e2ab3e9378", + "partitionKey": null, + "sessionId": null, + "replyToSessionId": null, + "correlationId": null, + "subject": null, + "contentType": null, + "replyTo": null, + "applicationProperties": { + "Diagnostic-Id": "00-6cb0e4f07892243747b7f3dddd5532a9-84ce14096783c6b1-00" + }, + "enqueuedTime": "0001-01-01T00:00:00+00:00" + }, + { + "body": "[{\u0022id\u0022:\u0022Sanitized\u0022,\u0022source\u0022:\u0022calling/callConnections/491f1300-d5bc-4de3-b660-ffcd6063911d\u0022,\u0022type\u0022:\u0022Microsoft.Communication.DialogCompleted\u0022,\u0022data\u0022:{\u0022operationContext\u0022:\u0022context\u0022,\u0022resultInformation\u0022:{\u0022code\u0022:200,\u0022subCode\u0022:0,\u0022message\u0022:\u0022Success Result\u0022},\u0022dialogInputType\u0022:\u0022powerVirtualAgents\u0022,\u0022dialogId\u0022:\u002292e08834-b6ee-4ede-8956-9fefa27a691c\u0022,\u0022callConnectionId\u0022:\u0022491f1300-d5bc-4de3-b660-ffcd6063911d\u0022,\u0022serverCallId\u0022:\u0022aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzc2MtMDcuY29udi5za3lwZS5jb20vY29udi9pbVVaSzFXWjkwYWt4Z0J3UGViZzF3P2k9NjcmZT02MzgyNjE3MjQ2MDgwMTgwNzU=\u0022,\u0022correlationId\u0022:\u0022cfd4a3b9-0093-47de-832f-4b6953b2abd1\u0022},\u0022time\u0022:\u00222023-08-02T08:45:14.7647256\\u002B00:00\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022calling/callConnections/491f1300-d5bc-4de3-b660-ffcd6063911d\u0022}]", + "messageId": "b9b83cdc748a4434abc8021fd3c8c1f3", + "partitionKey": null, + "sessionId": null, + "replyToSessionId": null, + "correlationId": null, + "subject": null, + "contentType": null, + "replyTo": null, + "applicationProperties": { + "Diagnostic-Id": "00-48c3e097e21a77b2f0a1184c74e58ea0-376f7d10afa849dc-00" + }, + "enqueuedTime": "0001-01-01T00:00:00+00:00" + } + ] +} \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecords/CallDialogAutomatedLiveTests/IdenticalDialogsTest.json b/sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecords/CallDialogAutomatedLiveTests/IdenticalDialogsTest.json new file mode 100644 index 000000000000..18a0d9188297 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecords/CallDialogAutomatedLiveTests/IdenticalDialogsTest.json @@ -0,0 +1,369 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.skype.com/identities?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "traceparent": "00-d7ac121982b1abdb4c4cd8ed210f4208-9d70e42f43420824-00", + "User-Agent": "azsdk-net-Communication.Identity/1.3.0-alpha.20230802.1 (.NET 6.0.20; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "7b7da775a322df725d9fe0e37aead5df", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 02 Aug 2023 08:44:41 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": {}, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01, 2023-08-01", + "Content-Length": "31", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 02 Aug 2023 08:44:42 GMT", + "MS-CV": "Vujf7DjNbkSwo6ewLSrvcQ.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ehfKZAAAAABwymvBXKGxSqaXrEOKX95/WVZSMzExMDAwMTE1MDIxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "7b7da775a322df725d9fe0e37aead5df", + "X-Processing-Time": "80ms" + }, + "ResponseBody": { + "identity": { + "id": "Sanitized" + } + } + }, + { + "RequestUri": "https://sanitized.skype.com/api/servicebuscallback/subscribe?q=Sanitized", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "0", + "User-Agent": "azsdk-net-Communication.CallAutomation/1.1.0-alpha.20230802.1 (.NET 6.0.20; Microsoft Windows 10.0.22621)", + "X-FORWARDED-HOST": "Sanitized", + "x-ms-client-request-id": "d40168f7f492438c72398dc90ed7bab7", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 02 Aug 2023 08:44:44 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 02 Aug 2023 08:44:45 GMT", + "Server": "Kestrel" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://sanitized.skype.com/calling/callConnections?api-version=2023-01-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "281", + "Content-Type": "application/json", + "Repeatability-First-Sent": "Sanitized", + "Repeatability-Request-ID": "Sanitized", + "traceparent": "00-b08ae121b8e35906c384054df778405f-67c09a07681d6dd7-00", + "User-Agent": "azsdk-net-Communication.CallAutomation/1.1.0-alpha.20230802.1 (.NET 6.0.20; Microsoft Windows 10.0.22621)", + "X-FORWARDED-HOST": "Sanitized", + "x-ms-client-request-id": "a5691b573369324f9e4e1af897f6fff6", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 02 Aug 2023 08:44:45 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "targets": [ + { + "rawId": "Sanitized", + "phoneNumber": { + "value": "Sanitized" + } + } + ], + "sourceCallerIdNumber": { + "value": "Sanitized" + }, + "sourceIdentity": { + "id": "Sanitized" + }, + "callbackUri": "https://sanitized.skype.com/api/servicebuscallback/events?q=SanitizedSanitized", + "customContext": { + "sipHeaders": {} + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "569", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 02 Aug 2023 08:44:46 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "X-Microsoft-Skype-Chain-ID": "810427e6-3bf4-484b-9ac1-e62de9db40cd", + "x-ms-client-request-id": "a5691b573369324f9e4e1af897f6fff6" + }, + "ResponseBody": { + "callConnectionId": "491f1300-5240-4537-ad0e-354053fe0e33", + "targets": [ + { + "rawId": "Sanitized", + "kind": "phoneNumber", + "phoneNumber": { + "value": "Sanitized" + } + } + ], + "callConnectionState": "connecting", + "callbackUri": "https://sanitized.skype.com/api/servicebuscallback/events?q=SanitizedSanitized", + "mediaSubscriptionId": "febc9e26-78e0-4683-8503-48e766ef976e", + "sourceCallerIdNumber": { + "value": "Sanitized" + }, + "sourceDisplayName": "", + "sourceIdentity": { + "rawId": "Sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "Sanitized" + } + }, + "correlationId": "810427e6-3bf4-484b-9ac1-e62de9db40cd" + } + }, + { + "RequestUri": "https://sanitized.skype.com/calling/callConnections:answer?api-version=2023-01-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "8154", + "Content-Type": "application/json", + "Repeatability-First-Sent": "Sanitized", + "Repeatability-Request-ID": "Sanitized", + "traceparent": "00-20fa7eb92ce38561b4a54576fb728bbb-6f55b9ae2d9f3001-00", + "User-Agent": "azsdk-net-Communication.CallAutomation/1.1.0-alpha.20230802.1 (.NET 6.0.20; Microsoft Windows 10.0.22621)", + "X-FORWARDED-HOST": "Sanitized", + "x-ms-client-request-id": "abae092ac7b6802d1b3908e915a8d185", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 02 Aug 2023 08:44:50 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "incomingCallContext": "eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJjYyI6Ikg0c0lBQUFBQUFBQUNzMVhhMi9iT0JiOUs0SVgyQTh6cFUxU2J3TEd3SGFTSnUzRVRmTW9PclBlTmZpU3pFYVdCRXArVGFmL2ZTLzlTSjF4MGNrdWRvR1JBVmtrTDg4OXZMd2tEejkzSkMrS2NkV2F6RWplbXFyc3NNK2R6Rlp6OTI5VWgzVUM5aU5KZ2lDT2dwVEdVZWRWUjVtbUx2aG16T2U2dzhwRlVienE2RkxWbFNuYks5Y2hpUlhHdnVDSVJ6UkVBY1lKRW1HUUlqL0FoSWM0Rmh3TGdDbDRtUzk0cmwyZkhVck5iV3VrcWZrZWlBY0p4aVFTaUdhWlFJSE1LRXFFTDVEZ1F1SlVaMUVtQ1FETmpGSWFlR2U4YURTZzJLcld0dDBNZWI0RC92S3EwMVpQdzBrWWx3MGpRbkZPUllwU0lJU0NNS0JJaUNoQVBCYVVTb3g1b29JcDNqL29HNi9EODRKNHZCRG16K09ScGNUUEl1NmpVSWtNQlVGR1VNS3BSaXBVTktKK0twSkluOGJENnFaYVdMbkY3YnhrM0oxdng3QXc1V1Bqd3NqYmxzc1pnTTNhdG01WXI4ZHIwODBLazg5YTZMZmVkSnZIVGEyN3NwcTdsdDZTOW1UZGt4SXRtcFZHT081S2VXUWhaVzlKZWxsbEg3WHFxVXdSUCtFQ1pUclVLQ0FoUmlLakdFbVZZQlhvV09CQTltamNNNlRuQjJsdlIrUW4wdzlENER6WHl2QkJDVTRzY0pNU2lNMzViaXc1eEtENUN4QStVRGxRdHZxVGx1MWZnTmlPeUlIV1F0WDNscGROWFZsSERvcEFMYVJkUW1nM2lib2tUSmtmeEVtdjgyVWY5VkZWdHJvRTI4OGR1ZnU4QjFadUJkZDFzZDlYZW8ycVVabExoTHZPaHlncUFRYkxQcDdZU1ZuMWtlZFRIOGUraDcycnNYZDFFM2lFeGwwTVArSU1tbjREY1FNWVY1RDl2UW5GWFlxQlZ4SjJZK3BhUkg5MHo4aCtUYm1LdG8rOTdjZTh6eGZLVkY2UXdqYmszZDdmOUFZZmJqeUNBeStGdCs4UlFqeVNnUGZFUzJPb2daS3JUTDd2ai9kdEsydGtHL09iUGlwbmd2M2dyZEVjS01PQzlpQUtYZ05iQWxQTnpMTmFMdDNIem55TkdwT1hITlpXL3IxZVQ4YmJsWXlhMW1vK040cVJyMDZaRzltK2JNQm1rVm1lc3dqUDlkZTZlcVhZNnBjaSt6aTZISm0zWWhQV1d0K2E4K0IxSGY5NlJIKytXTzlLa3BmS0tONXFCdUh3SHM1dVBFcGdrbkFVK09SNU1QWnhiVGZBMldiRjJyTmNLUXR4ZEJPWUVFaWR5TE11bjNhR3AvRDBDRDVNWVNaTzRjbEw0Y2tmNFNtd2R3UGpzZ1VYRkJJa3d2R3BDeExTbDdrQXcxTVg5UC9qb3VCQ0Yyek9UWW0yR2J5clBacjhOUklyell1OHNxYWR6Wm1GL0duTm5MZVY5Y1JLZWpXWGo3cXR1YkhlU2d1WTN6MXp1Nm5iQ2dJL09MK2JqcTZuaENiVHkrdkJhSHAzT1NEVEJIdW1oS1RVYkcySzZ3dTgrYVJ2WDgrV09IejhxTTlNTmREMzFZOFA2K1Y4ZlhZWHJOdjFNRGUvMDMvNTVIZHlJTFdIcDM4Ry80YVhvMS95OWNPN0l2NlUxYjgxY1lyNUcvTDZxaWsramYxZ0tDL0w0TmZhZklpMjhJY1VyZWU4aGxVZWVIZFhQNy90a1dpLzFwK2FVdTkxVEdrditXTzlXK2ZiTHFjdHNQcnZybTdQeDhkbzJiemR0UWpUV3Bqai9xa255Rk53bFI0Qjdqb2xIaTlMdlJiOXNucG1qNzJiMGZYRHFmL0UxUTlPNjJFcnVqMC8rOVpJSUtGMW9ldFpWV3FrbDdEam5uQUFFNHhJOUx5Zjc0M0czeHArNHVxUHhsZERDa0ZTSHdCaGU5SzJ0cUJvV0RQamlJYVJOMHhZbkxCQnhNNUhiSER1dnFNek5nd1k5Vm1TTXB5dzh3dDI0Yk9Jc291WW5hVXNHTEJoeU02R0xCa3hNbUQwaklXVW5RMVk2TE0wWldISW9oRWJZa1lBS21aa3RIT3MxKzJXbitjT1NEYUJaN1ZhZFhkNTNLMXNQcG5vTlFnVjRGcTJ6V1FDdzBFelphSFhaTUpGZzl6MmlkeElucUg1WDlHZVRzL3ZBR1c4YWFjQ0Z2cktxSFkyemJSV0F0YlUzNVlhdHYycW5QclB3TVBuVkkxdXN4MVJveVlUWlhuV29sbFZ6TFZGZGc0SEkyb1BCeTBDZUkzZ2NBY2dYVHJrQnVHbkpkNDBWaUl3eldHdmROclJ2VnpiUWZmOHJQT2RSTXhFcExDZklwbktCQVYraGxFaWZUajNaZXluT0ZOQmhOM3BxeHVRL2R0aitaMlVDd3NUbXovcHhWS3YzbVdaRTFIN0N0aFljbE82RFFVY3pPV1FDbmZ3Z3lwNHF6ZnV5Titmek50U0ozZ1k2ZHN4WFl3ai80T3FIL1g2Z1g2c0J2MCtPQVV0Q3pzUjJMeVBDdkdXWHp4VVl4cGR2Qi9RbWJwYmI5NkREY0RPVEFPT05sZGxCcEw5SDU5QklyWGM1dm9nS0l4NnFOMStlMUhaTzlEYjk5dTJ6aFBIWWwreHY3VkVvSXBKU0tpN3RXVFBtdi8zdDRBbkJtNUNJWHd1V2x2bC9FK244NVNCYzkvRisyYW5ySTNlU21uVDNPNmJCa1ZSclRSTVlXc1grZ3NFQW9TVXk3RHRKRjJWUzlNKzNjNk9XNXp5c2xWUmJEWHZmNlFpQVdTdkkwTUVaZ3J4eHdac3l1V3hwSVJpcnpGMXFmWDdTNEg1Q05USHRPVHJOM2dGV3BGZ0ZHRUV5VVZvK0hmZGoveUVSaUZKTVE1Q1A0TEgzYzFNYzcwb1duTUROeG5Jam4xQ21XWm9LNjRrTEt4OUhZeFhhYkhJajRVazNFdTNLUzBsbUJJUm9GaHp1RTZxR09aSEM0Mm85R09sWkJ4UTdsTDZ2N29zZ2QvY1ZvdDY2M2NOZnJjejltOEFheFZFRlE4QUFBPT0iLCJzaHJUb2tlbiI6ImV5SmhiR2NpT2lKU1V6STFOaUlzSW5SNWNDSTZJbkJ2Y0NKOS5leUpoZENJNkltVjVTakJsV0VGcFQybEtTMVl4VVdsTVEwcG9Za2RqYVU5cFNsTlZla2t4VG1sSmMwbHVaekZrUTBrMlNXa3hURk5VVGxKUFZ6VlBWV3BrYVZWdE9XMWxSekZzVjIwNVdXTlhTa2xYYTJSc1pIbEpjMGx0ZEhCYVEwazJTV2t4VEZOVVRsSlBWelZQVldwa2FWVnRPVzFsUnpGc1YyMDVXV05YU2tsWGEyUnNaSGxLT1M1bGVVcG9aRmRSYVU5cFNtbE9SRlpzVFVScmQxbFRNV3RaVjBwdFRGUlJlRTVFVlhSWlZFRXlUME13ZDA5SFJUUk5hbXhwVFhwQ2JFOUhVV2xNUTBwd1l6Tk5hVTlwU205a1NGSjNZM3B2ZGt3elRqQmplVFV6WVZjMWEySXpaSHBNYlRWc1pFTTVhbHBIVFRGWlYxWnNXVk13ZUU1WFRURk1WRkpyV1dwWmRGbHFRVE5QVXpGdFdUSkdhMXBFU1RGTlJGWnJXWHBKZGtscGQybGhWMFl3U1dwdmVFNXFhM2RQVkZsNlQxUmpkMHhEU25WWmJWbHBUMnBGTWs5VVFUVk9hazAxVG5wQmMwbHRWalJqUTBrMlRWUlpOVTFVUVRGTlJGa3pUVU4zYVZsWGJIWkphbTlwVWxSS1Ixb3hiRkJoUmtaTVZHdFdTbFo2WkRCbGFrSnFZbFpSZDFsNWMzSlVSVXBZVmpCS1VsRlVNR2xNUTBwb1kwaENjRnBEU1RaSmJVVjZXVlJOZWxsNlNtaE1WRWsxVDBkVmRFNUVSbXROVXpBMVRWUk5NMHhYUlRGT1JGbDVUVzFWTWs5RVJtcFplVWx6U1cxR2QyTkhiR3RaVjA1NVNXcHZhVTFwU1hOSmJVNTFXbWxKTm1WNVNuRmtNbk5wVDI1emFXRXpValZKYW05cFZXeE9Ra2xwZDJsaWFVazJTVzVXVTA1dWNHWmlSamxhVG0xMGQxVllUbE5TVms1WVUxVTVlbFZ1VGxKVlZtdzJWMVpDZEZNeFdUUldhbVI0V2pKMFNGSnNWbTlUTTJST1dWUktjVll6UmxwTk1tUlZWVEJGTUZSWWJHbFhXR3d6V0hrd2QyRnJXbWhrVm14SlkwZHNlRlV3Umtkak1scElVbXRXU0ZOWFRrUmlWVlpKVjFVMWVscHVRbWhSYTNoRFZtdEthRlZxVVhkYU1HaDJVMFJhVGxVd1VtaFhXRko1V2xob1dWVldVak5UYTBwM1QxaGFOR1ZYVGpCYVJYZzFVekExUTFWRVFtdE1WVm8wWTJ3NWMyTnROVkZWTWpReVYxaEdjMUZ1VVhkT1Z6bHJUVzFhYm1SNlpEWk5TR1J6VlVkYWVsWkVRWGxhUlRWelQwUm9WbHBIWkZsaWJFazBXbnBTWVZWNmFGWlpWVVoxWWxkb1MwMTZVbk5pZWxKSVpFZEtORTVXY0U1Tk1sSk1aRE5HVlZwc1dqVlpWM2h2VWtjMVMxUlVhRWxqYkhCWlZsVmtkRk14WkRWWU1XeFZWMnh2ZEdSV2FGRmxSamgwWVZkU2VtUkhUbk5WTWpGUFkwVm9WVmxxVW0xUk1YQjVaVVpHTVZaWVpFNVdhMXBTVWpOU2ExRnVUbXROUmxwR1ZrUkplVkl4U201VVJHeFVZVlpPYVU1dFVtNWFNV3hZWTBWc1NGWkZUbkJTYkRsTVkwVndVMVF5WjNwbFZFWTBXbE14YkZwRk1WVlVhekF5VmxaVmVHTkVaRFZUVjFwMFZWTkpjMGx0VldsUGFVcENWVlZHUTBscGQybFpWM2h1U1dwdmFWVnNUWGxPVkZscFRFTktjbUZYVVdsUGFVcFNZVmhPTlZOSFNrcFZhM0ExVmxSb1JsbDZRbFJXU0d0NlVUQldSMDF0T0hsUmJVNUlWMFpPVVdWSVVtOVZSMDE1V1cxd2JVeFZaelJKYmpFNVRFTktjRnBJUVdsUGFVcHZaRWhTZDJONmIzWk1NMDR3WTNrMU0yRlhOV3RpTTJSNlRHMDFiR1JET1dwYVIwMHhXVmRXYkZsVE1IaE9WMDB4VEZSU2ExbHFXWFJaYWtFelQxTXhiVmt5Um10YVJFa3hUVVJXYTFsNlNYWkphWGRwWWpKc2EwbHFiMmxOYlUwelQxZE9hVTU2WjNSTk1rNXFXVk13TUUweVZtbE1WMHBzV1dwSmRGbHFRVFZPYlZacFQxUkpNRTV0UlRSSmFYZHBZMjFuYVU5cFNYZE1hMFpUVTFWRk1tTlVaRWRsYlU1V1ZtNVNjazF1Wkd4YWJtd3dUVWQ0UTFwSVpHNWlNSEJaWTJ4T1prMXRkRmRSYlRsSVdqQnNlRkV5TVRaU1J6aDNWVEJHUWxGVE5HbE1RMHA2WkZkSmFVOXBTWGxaZW1NMVdUSkpNMDlETUhwWk1rNW9URlJSZWxwWFNYUlpiVlpwVFdreGFVMUVhekphVjBrMVRXcFJNbGxVWjJsTVEwb3dZVmRSYVU5cFNtcGFSMDB4V1ZkV2JGbFRNSGhPVjAweFRGUlNhMWxxV1hSWmFrRXpUMU14YlZreVJtdGFSRWt4VFVSV2ExbDZTV2xNUTBveFpFZHJhVTlwU1RCWk1rMTRVMFJPYlZOSFJYZGFWbFp6V1dreGJWZERNVXBZTUVaQ1NXbDNhV1J0Vm5sSmFtOXBUVk0wZDBsdU1DNWpiV3hEWDFCaGRXOTJiMWxyVUhGZlJFbENhV2RtWmpWT1pIZE9kR0psVTJWQ01qUTVXbEpmWkdwSFV6Um9NMHhOVDNGWVRVUlNka00xZVVNNFVFWmtiRlowWkZKdGNrMUVOM3BsVG5GbldqSm5UMjFLWmxJNWNHUXRaMmg2V25kbWNHVkpkRzVQUWxKSmRHdHdWbTF6Y1doMGNXbFZVVEJGT0hFd2RHZ3hVVE14Ykd0c2NuaENXVlJMWDJrNFFscFVSV0pPU0cxaWFqWnNXV3N3WWs5dk5scHNZa1ZEUVVwUFJ6RlVkak50ZG1VMWRFTmtTMmRLWW05Q0xXWldWWEJNVjNwV1J6TmxORkoxV1hOUlJYRjFOMVpVZDBGNFkxaHBNRTlDTkRsbE5YRnROR3BmVXpCb1pHNTBlSEJTTjFsb2EwZDRVR014YTAxQlNuSjVaM1pSZGtodVJuTkxOM3BOTVU5d05XVnJXak5DVFVVMllWUjJhVzlFVVZWRWExWjNXV1pDV0dNeWN6TkhWMDVMY1ZoUlFTMVhkRk5vUmtoWFVubGpVRnBXZEhOSWIwUjJhVXgyY0MwMWJUUmxObWhsVTJWemFIY2lMQ0owY3lJNk1UWTVNRGsyTlRnNU1Dd2lZaUk2SWxKSFEwb3RlVzVyYkVSVFNUUlZOamh0T1dabVNVZFdTWGxHZVdabU1ubHpjRkJMWDNKNGNHcDBTM01pTENKdWIyNWpaU0k2SWpWbU1UZzNabUkxTVRRM056UTBNbU5oWkRrMVltRXdNVE5sWXpNMllqSTNJaXdpWTI1bUlqcDdJbXAzYXlJNmV5SnJhV1FpT2lKVGMxaEpWWGxzVlZwUmNGQXhkRmxEVmtGMFowaFVNREZzUmpWU1lqYzFSMU5uWW1wNFdraGhOMFJ2SWl3aVpTSTZJa0ZSUVVJaUxDSnJkSGtpT2lKU1UwRWlMQ0p1SWpvaWRWSTJlbDlzWDFrMmEzQlJjMUpGVTFkSlQzTlNjMUZSV1hwWlVHMUxWamhXTjNGbmEwZEdWV2hMZDAxaE1tcFhjVmt6WjFSVFFUUk5lV0paZVhkZkxUQnFSbUYxV1Vod2FYRlRRVVp6WmtkR1JVZEpZME50UlVoWlRuTm1jR0ZDVEVKV1FtRlNOREJuU0c5SU5rMVRSR0ZaZEhKbGVGaFJWSGRLUW5BNWRuaDVZM1JrVEhsTFRrSlFNR1F0Um5oeVgyeHlibEJUYmpaWmNXeENkREExYjJReVptZDNOM293ZDJ4UVpuTlVNREprVG13NE9GVmtaMWh1VWpobk5GcFRPRlZoUVc1dGFFb3pOR3h2TkVkMFluZzFXazB6WkV0M2NWUm1WbmxoYkdoRWJrcE5PRWh5V2xoVlIyMUxWM2xmV1ZSYVdpMTFXRkI0WHkxcFpITjBZMnhUYlU1d1NGUmlOR1pEV25KNFVYVlZkMDFXUmxGSGRHUkNjMlF3VmtWVU1qSkhVbWRNT1ZOcFUySTJaR2RuV1Zkd1NVZFVRMmxHWDB0d1NsSlBhRE41TVhobExXVmtUVlJPVFRaVlZURndOM2xKWm0xUkluMTlmUS5FdGtTU21xN0dRTjlvVHBFZ1B6aWd1am1BWW5HdDUtbzBpVFphVktjbFU1M1doZ1d6RExqbXZiZjlPZVlXaXNlWVhiU2czZmRtN2NscFBxdk4wcnpDYTFEMGNVSXJNcGI2SkVXMTFLNjN2WktqRGVBUW9xWnEweGtUM2lGd3lkWTE0STBNdDItQlJ3VGJsaVpJX19rZGQ3TFpwWXNkcUlLMDc4RkhNUTVKQ0VGQTIyV3U2MHdKelZDenhWR3ZZMzVTcFg3dXBRcjlDSVNkaFdnMm83WnhSVURjaFlUQnBJWXlsREZUcE1UbGlPcE5pUzlQZ1REc1ltWWk3R0JWUW9HODl2UmlDM1hjRThuaHdKS0VRVW9BVUdfZHFuNmtUWFVLXzJvTGJ3bGZjenJFT245aHVETkVJUExkVGVTZE5KbmtfV2tucVBDeEZ2TTg5dGNFZlQwSEEifQ.", + "callbackUri": "https://sanitized.skype.com/api/servicebuscallback/events?q=SanitizedSanitized", + "answeredByIdentifier": { + "id": "Sanitized" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "785", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 02 Aug 2023 08:44:51 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "X-Microsoft-Skype-Chain-ID": "ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5", + "x-ms-client-request-id": "abae092ac7b6802d1b3908e915a8d185" + }, + "ResponseBody": { + "callConnectionId": "491f1300-0c70-4f8c-97b4-94474f2a371b", + "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zaXBuZWVRSGIwYUN1cmNfbmF4SjB3P2k9MTAtNjAtMzAtMTI1JmU9NjM4MjY1MTkwMDQ1MzY2NjYx", + "targets": [ + { + "rawId": "Sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "Sanitized" + } + } + ], + "callConnectionState": "unknown", + "callbackUri": "https://sanitized.skype.com/api/servicebuscallback/events?q=SanitizedSanitized", + "mediaSubscriptionId": "f9478fee-f3fc-4682-b309-6cbb3c54bd26", + "sourceDisplayName": "\u002B18447649276", + "sourceIdentity": { + "rawId": "Sanitized", + "kind": "phoneNumber", + "phoneNumber": { + "value": "Sanitized" + } + }, + "correlationId": "ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5", + "answeredByIdentifier": { + "id": "Sanitized" + } + } + }, + { + "RequestUri": "https://sanitized.skype.com/calling/callConnections/491f1300-5240-4537-ad0e-354053fe0e33?api-version=2023-01-15-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-Communication.CallAutomation/1.1.0-alpha.20230802.1 (.NET 6.0.20; Microsoft Windows 10.0.22621)", + "X-FORWARDED-HOST": "Sanitized", + "x-ms-client-request-id": "5f8b29e52f81c47618ce3544d993ac7b", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 02 Aug 2023 08:44:57 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "754", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 02 Aug 2023 08:44:57 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "X-Microsoft-Skype-Chain-ID": "810427e6-3bf4-484b-9ac1-e62de9db40cd", + "x-ms-client-request-id": "5f8b29e52f81c47618ce3544d993ac7b" + }, + "ResponseBody": { + "callConnectionId": "491f1300-5240-4537-ad0e-354053fe0e33", + "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC94LWNvbnYtdXN3ZS0wMS5jb252LnNreXBlLmNvbS9jb252L0VuaDlSQk9nVkVtdjVDSnZQQWwwdXc/aT0yJmU9NjM4MjU0OTI0MDMwNzYzNDAw", + "targets": [ + { + "rawId": "Sanitized", + "kind": "phoneNumber", + "phoneNumber": { + "value": "Sanitized" + } + } + ], + "callConnectionState": "connected", + "callbackUri": "https://sanitized.skype.com/api/servicebuscallback/events?q=SanitizedSanitized", + "mediaSubscriptionId": "febc9e26-78e0-4683-8503-48e766ef976e", + "sourceCallerIdNumber": { + "value": "Sanitized" + }, + "sourceDisplayName": "", + "sourceIdentity": { + "rawId": "Sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "Sanitized" + } + }, + "correlationId": "810427e6-3bf4-484b-9ac1-e62de9db40cd" + } + }, + { + "RequestUri": "https://sanitized.skype.com/calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b/dialogs/92e08834-b6ee-4ede-8956-9fefa27a691c?api-version=2023-01-15-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "129", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Communication.CallAutomation/1.1.0-alpha.20230802.1 (.NET 6.0.20; Microsoft Windows 10.0.22621)", + "X-FORWARDED-HOST": "Sanitized", + "x-ms-client-request-id": "049f963a0e299001ede8892f2b651cf6", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 02 Aug 2023 08:44:57 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "dialogOptions": { + "botAppId": "Sanitized", + "dialogContext": {} + }, + "dialogInputType": "powerVirtualAgents", + "operationContext": "context" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "179", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 02 Aug 2023 08:44:57 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "X-Microsoft-Skype-Chain-ID": "ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5", + "x-ms-client-request-id": "049f963a0e299001ede8892f2b651cf6" + }, + "ResponseBody": { + "dialogId": "92e08834-b6ee-4ede-8956-9fefa27a691c", + "dialogOptions": { + "botAppId": "Sanitized", + "dialogContext": {} + }, + "dialogInputType": "powerVirtualAgents", + "operationContext": "context" + } + }, + { + "RequestUri": "https://sanitized.skype.com/calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b/dialogs/92e08834-b6ee-4ede-8956-9fefa27a691c?api-version=2023-01-15-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "129", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Communication.CallAutomation/1.1.0-alpha.20230802.1 (.NET 6.0.20; Microsoft Windows 10.0.22621)", + "X-FORWARDED-HOST": "Sanitized", + "x-ms-client-request-id": "6e13957d9f6afa7593ea93e791e9a788", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 02 Aug 2023 08:44:59 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "dialogOptions": { + "botAppId": "Sanitized", + "dialogContext": {} + }, + "dialogInputType": "powerVirtualAgents", + "operationContext": "context" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "179", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 02 Aug 2023 08:45:00 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "X-Microsoft-Skype-Chain-ID": "ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5", + "x-ms-client-request-id": "6e13957d9f6afa7593ea93e791e9a788" + }, + "ResponseBody": { + "dialogId": "92e08834-b6ee-4ede-8956-9fefa27a691c", + "dialogOptions": { + "botAppId": "Sanitized", + "dialogContext": {} + }, + "dialogInputType": "powerVirtualAgents", + "operationContext": "context" + } + }, + { + "RequestUri": "https://sanitized.skype.com/calling/callConnections/491f1300-0c70-4f8c-97b4-94474f2a371b/dialogs/92e08834-b6ee-4ede-8956-9fefa27a691c?api-version=2023-01-15-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-Communication.CallAutomation/1.1.0-alpha.20230802.1 (.NET 6.0.20; Microsoft Windows 10.0.22621)", + "X-FORWARDED-HOST": "Sanitized", + "x-ms-client-request-id": "7eaf8c8dcc08d65c27fb7198a64698b2", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 02 Aug 2023 08:44:59 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 02 Aug 2023 08:45:00 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "X-Microsoft-Skype-Chain-ID": "ccadc1b4-7ea5-4d74-aebe-2c37ddc742a5", + "x-ms-client-request-id": "7eaf8c8dcc08d65c27fb7198a64698b2" + }, + "ResponseBody": null + } + ], + "Variables": { + "BOT_APP_ID": "Sanitized", + "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://acs-callautomationtestsupporter.communication.azure.com/;accesskey=Kg==", + "DISPATCHER_ENDPOINT": "https://sanitized.skype.com", + "PMA_Endpoint": "https://sanitized.com", + "RandomSeed": "963092289", + "SERVICEBUS_STRING": "Endpoint=sb://acs-callautomationtestservicebus.servicebus.windows.net/;SharedAccessKeyName=Sanitized;SharedAccessKey=Kg==" + } +} diff --git a/sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecords/CallDialogAutomatedLiveTests/IdenticalDialogsTestAsync.json b/sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecords/CallDialogAutomatedLiveTests/IdenticalDialogsTestAsync.json new file mode 100644 index 000000000000..cad735875d56 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallAutomation/tests/SessionRecords/CallDialogAutomatedLiveTests/IdenticalDialogsTestAsync.json @@ -0,0 +1,369 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.skype.com/identities?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "traceparent": "00-46b861cb59d29b7a5eb16ae95615b95f-cf177e6c334d4ced-00", + "User-Agent": "azsdk-net-Communication.Identity/1.3.0-alpha.20230802.1 (.NET 6.0.20; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "ac2b0bff57b95493c0b3c897059467c9", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 02 Aug 2023 08:45:01 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": {}, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01, 2023-08-01", + "Content-Length": "31", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 02 Aug 2023 08:45:01 GMT", + "MS-CV": "r73kyuIQEE\u002BYUbf7s27m6A.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0jRfKZAAAAAC68HiXnm\u002BxRrVl5B/KC1gSWVZSMzExMDAwMTE1MDIxADlmYzdiNTE5LWE4Y2MtNGY4OS05MzVlLWM5MTQ4YWUwOWU4MQ==", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "ac2b0bff57b95493c0b3c897059467c9", + "X-Processing-Time": "83ms" + }, + "ResponseBody": { + "identity": { + "id": "Sanitized" + } + } + }, + { + "RequestUri": "https://sanitized.skype.com/api/servicebuscallback/subscribe?q=Sanitized", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "0", + "User-Agent": "azsdk-net-Communication.CallAutomation/1.1.0-alpha.20230802.1 (.NET 6.0.20; Microsoft Windows 10.0.22621)", + "X-FORWARDED-HOST": "Sanitized", + "x-ms-client-request-id": "7cb83b60590cf54996c7335aac7ddbf4", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 02 Aug 2023 08:45:03 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 02 Aug 2023 08:45:03 GMT", + "Server": "Kestrel" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://sanitized.skype.com/calling/callConnections?api-version=2023-01-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "281", + "Content-Type": "application/json", + "Repeatability-First-Sent": "Sanitized", + "Repeatability-Request-ID": "Sanitized", + "traceparent": "00-5c2c05cb5d1c4c85d0f9077da00baed6-6224991e0260333d-00", + "User-Agent": "azsdk-net-Communication.CallAutomation/1.1.0-alpha.20230802.1 (.NET 6.0.20; Microsoft Windows 10.0.22621)", + "X-FORWARDED-HOST": "Sanitized", + "x-ms-client-request-id": "f8d1205fa0f182c9ac8de8d013eab379", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 02 Aug 2023 08:45:03 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "targets": [ + { + "rawId": "Sanitized", + "phoneNumber": { + "value": "Sanitized" + } + } + ], + "sourceCallerIdNumber": { + "value": "Sanitized" + }, + "sourceIdentity": { + "id": "Sanitized" + }, + "callbackUri": "https://sanitized.skype.com/api/servicebuscallback/events?q=SanitizedSanitized", + "customContext": { + "sipHeaders": {} + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "569", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 02 Aug 2023 08:45:04 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "X-Microsoft-Skype-Chain-ID": "111acd78-ae5f-4264-93b9-592184b2870e", + "x-ms-client-request-id": "f8d1205fa0f182c9ac8de8d013eab379" + }, + "ResponseBody": { + "callConnectionId": "491f1300-4018-43a8-9e6b-b6aa0ebe7fab", + "targets": [ + { + "rawId": "Sanitized", + "kind": "phoneNumber", + "phoneNumber": { + "value": "Sanitized" + } + } + ], + "callConnectionState": "connecting", + "callbackUri": "https://sanitized.skype.com/api/servicebuscallback/events?q=SanitizedSanitized", + "mediaSubscriptionId": "e5cf6c6d-b182-4fd9-9656-81ba6d8e2f35", + "sourceCallerIdNumber": { + "value": "Sanitized" + }, + "sourceDisplayName": "", + "sourceIdentity": { + "rawId": "Sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "Sanitized" + } + }, + "correlationId": "111acd78-ae5f-4264-93b9-592184b2870e" + } + }, + { + "RequestUri": "https://sanitized.skype.com/calling/callConnections:answer?api-version=2023-01-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "8148", + "Content-Type": "application/json", + "Repeatability-First-Sent": "Sanitized", + "Repeatability-Request-ID": "Sanitized", + "traceparent": "00-fbcf78416105833566e15e46465753e7-8132c085628a3051-00", + "User-Agent": "azsdk-net-Communication.CallAutomation/1.1.0-alpha.20230802.1 (.NET 6.0.20; Microsoft Windows 10.0.22621)", + "X-FORWARDED-HOST": "Sanitized", + "x-ms-client-request-id": "423f619d45dda691c23516f22339a843", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 02 Aug 2023 08:45:08 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "incomingCallContext": "eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJjYyI6Ikg0c0lBQUFBQUFBQUNzMVhhMjhiTnhiOUt3TVY2SWM2bElhY053R2hrUFZJSE5ldVlqdkoxcXZXSURtY0VlTjVoVU05bkRUL2ZTLzFjT1RZYUx5TExkQVJNQnFTbCtjZVhsNlNoNTg3Z2hYRmVXMVVwZ1F6cXE0NjlITW4wM1ZwLzFYYW9SMmZIdUhZOTZQUVQwZ1VkbDUwVXRVMkJiczdaNlhzMEdwUkZDODZza3FiV2xYbXhIWWdtUmNKajJFa3VSOGdQOGt3NGtrY0k5Y1BneXdqM0dOcEJEQUZxL0lGeTZYdHMwVnBtRFpLcUlidGdDVDNNcGt4SHdWeGtpR2ZCUkhpc1IramdJYzRDRndXeWhBRDBGeWxxUVRlR1N0YUNTaTZicVEyZDhjczN3Si9lZEV4OWYxd1lzcEVTekZQR1NNOFFVbmdSc2dQZklJNEQzM0VJazZJY0YwV3AvNk51M3ZRRTYvOTg0eDRQQlBtKy9Id2hDU0pGeVdJWjhSRlBwY0N4UXh6SkZnaU1YZWp5UFg0NDNobzJkWUxMVGE0bmVlTXUvTjBEQXRWM2JZMmpNd1lKdVlBTmplbWFXbXZ4eHJWelFxVnp3MzBXOTkxMjl1N1JuWkZYZHFXM3BMMFJOTVRBaTNhVmlBMzdBcHhZQ0ZFYjRsN1dhMXZaZG9UQ1JNK0R5V0tSQklpM3dzRGxLUWtRSEVZaWd6Yk9QR2tSNktld2ozUFQzcGJJaityUHJGcFVNcFVzVUhWcnFRR2JrSUFzWkp0eDVKREROcC9BT0U5bFQxbExUOUlZZjRCeExaRTlyUVdhWE9sV2RVMnRiYmtvQWpVQXRMRm1IUmpILzZvNTBkeHIvTmxGL1JoWFJsWmdlbm5qdGgrWGdFcDZNbWFwdGh0SzcwMmJWQ1ZBKzF1QUM1NFVYTXdXUGJkbVo1VmRSODVub3NEejNHZGszUG5aT283bUVSZEYzN1l0cmY5RnFJR0tMWWcranNUNG5hSmExbDVscGx0NHYzaEZkMk1EaDViWWZxdXMva28rMnlScXRvSlhOOXpuWXVyYVcvd2J1cGcxM2NTZUhzT3h0akJNYmlQblNTQ0dpalp5dmc3RGxsZkc5RWczYXBQOHFDY2NmcVRzMFlsa0lZRjdVQVluQmEyQkpxMmMwZExzYlFmVy9NMWFsVmVNVmhiK1YvMXVqZmVyR1RVR2kxWnFWS0t2enFsZG1pN3NnS2JSYVpaVHRPTGorZGY2NXBWU3M5VkdmaXJvNC95dERtNUxmTTNMNXZVSzV2UjlRSDljckhlbGdTclVwVXlJeW5FdzNrN21qb0VlMjdraHVEcG0yanNJbXZ1Z0xUT2lyV2pXWnBxaUNUTW9aOTBDY3l0dHZtMHRYc01UdzdnZ3dTbTRnbDQvRXg0L0MwOEFmWjJZRXdZY0VFZ1EwSTNldVRDVDNCQW51RmlZL2ZZQmZsN1hCU015NEtXVEZWb2s4TGIyb1BKWHlPK2txeklhNjNNdktRYThzZW9rcGxhTzN3bG5JYUpXMmthcHJTemtoem1kOGRjM3pXbWhzQVB4cGMzdzdNYlRPS2JWMmVENGMzbHF3RytpVjFIVlpDVU1DNi9uc2Z0bTlYZDBmc2krKzNUWkhJazV1T3FUVDVjOGVYUlpQcjZ4TVRoUEUyeVA4a2ZIdjRUNzBudDRNbjM0Qy94OWFjRk9jdXl3YXRoSE1YSHYxMFRkYVNYN3l0MVBsUVgxZXJkdTdvOUU4UExEZncrUlp1U05iRE1mZWZ5NUpmVEhnNTNpLzIrS1hGZVJvVDA0bS9yN1VMZmRIbmNBc3YvOHVSaWZINklscFZtMjhLVjBUREgvY2VlSUUvQlZYSUF1TzBVTzZ5cTVKcjNxL3FCdmV0TWgyZHZIL3VQYmYzZ2NUM3NSUmZqMFZNamdZU1doV3ptZFNXUlhNS1crNGdEbUxnSWh3LzdlYzd3L0tuaHg3YitZSHdOcEJCTS9oNFF0aWVwR3cyS2hyWnpoa2dRT3VNeHhRbU5KelQyNlhCQVhZOE94blFVMFVsQW8yTTZDT2l4U3ljVEdvN3BjVUNURWZWRDZydDBNS0hESWZYQVlFUUpvY25RZGhuSE5FaW9EMmdqT3NKME1LVGh6ckZjbXcwL3h4NlFkQWJQYXJYcWJ2TzRXK3Q4TnBOckVDckF0VEx0YkFiRFFmTlVRNi9aalBFVzJlMFQyWkU4UVBPK290MmZubjhCbExIVzNIQlk2Q3VWbXZsTkptWEtZVTM5c0pTdzdkZlZqZmNBUEhoSVZVbVRiWW1xZERaTE5jc01tdGRGS1RYU0paeU15T3dQV2dUd0VzSGhEa0N5c3NndGN1K1hlTnRxZ2NBMGg3M1Nha2Y3c20xNzNmT0x6TGRhTTNiaG5IY0Y0cUFGUWQ4UmpwSXNDNUFYaXl6MXNpaU5zTlhlc2dYWnZ6bVhmeFZpb1dGaTgzdTlXTW5WcjFsbVJkU3VBamFXWEZWMlF3RUhwVGdtM0o3OG9BcE81WjA5ODNkbjg2YlUrYUJYcDJmSnFQazBhZ3J5eGpYWmNQTCs0NkRmQjZlZ1pXRW5BcHRwakt1enEvamp2N0FTdytiMTY2TVA1K09YYjhBR1lPZXFCVWQzSjFVR2t2M2ZuMEVpR2FaenVWY1VLbjNiMlAxMlV1dEwwTnRYbTdiT1BjZGlWN0c3dFlRaDhYQ0FpYjIxWkErYS8vKzNnSHNHZGtJaGZEWmFHK1g4dTlWNXFZSnozOFo3dWxYV1NtNmt0R292ZGsyRG9xaFhFcWJRNklYOEFvRUFKV1V6YkROSko5VlNtZnZiMldHTGxWNjZMb3FONXYydlZDU0E3SFJrQkUzVjhsQkpRckdueXJmWHAvajlkZUt5MjNWK3ZKcEtudU1WU01RdytsSDJReThtSVk2SUgwTEc0ZGlOcktoVDdkbWlNR29LMXhaSWhWMzJxUFpZMXl3VnNJcDJkVEM0VlBKRmZpZ2I0Uks2eVYvSVVwOTVNQ091bTNqSWoyQkp4QjZCeXg4UGs4RGpoUEhVS3RULzZXWUVmbk5kTDVxTjN6WDQzVXpQZndESHhPRndBZzhBQUE9PSIsInNoclRva2VuIjoiZXlKaGJHY2lPaUpTVXpJMU5pSXNJblI1Y0NJNkluQnZjQ0o5LmV5SmhkQ0k2SW1WNVNqQmxXRUZwVDJsS1MxWXhVV2xNUTBwb1lrZGphVTlwU2xOVmVra3hUbWxKYzBsdVp6RmtRMGsyU1dreFRGTlVUbEpQVnpWUFZXcGthVlZ0T1cxbFJ6RnNWMjA1V1dOWFNrbFhhMlJzWkhsSmMwbHRkSEJhUTBrMlNXa3hURk5VVGxKUFZ6VlBWV3BrYVZWdE9XMWxSekZzVjIwNVdXTlhTa2xYYTJSc1pIbEtPUzVsZVVwb1pGZFJhVTlwU21sT1JGWnNUVVJyZDFsVE1XdFpWMHB0VEZSUmVFNUVWWFJaVkVFeVQwTXdkMDlIUlRSTmFteHBUWHBDYkU5SFVXbE1RMHB3WXpOTmFVOXBTbTlrU0ZKM1kzcHZka3d6VGpCamVUVXpZVmMxYTJJelpIcE1iVFZzWkVNNWFscEhUVEZaVjFac1dWTXdlRTVYVFRGTVZGSnJXV3BaZEZscVFUTlBVekZ0V1RKR2ExcEVTVEZOUkZacldYcEpka2xwZDJsaFYwWXdTV3B2ZUU1cWEzZFBWRlUwVFZSUk1FeERTblZaYlZscFQycEZNazlVUVRWT1ZHZDRUa1JSYzBsdFZqUmpRMGsyVFZSWk5VMVVRVEJPUkdjd1RrTjNhVmxYYkhaSmFtOXBVbFJLUjFveGJFcGhSRmswWkdrNE5FMXRkRzFTTUdNeFV6RkJNMDB6VG5abFIzQnRVMnRHVWxGVU1HbE1RMHBvWTBoQ2NGcERTVFpKYlVWNldWUk5lbGw2U21oTVZFazFUMGRWZEU1RVJtdE5VekExVFZSTk0weFhSVEZPUkZsNVRXMVZNazlFUm1wWmVVbHpTVzFHZDJOSGJHdFpWMDU1U1dwdmFVMXBTWE5KYlU1MVdtbEpObVY1U25Ga01uTnBUMjV6YVdFelVqVkphbTlwVld4T1FrbHBkMmxpYVVrMlNXNXNRMk5XYXpOWlZtdDBVbGhvTm1FeVZuUk5lbWg2VWxWU1YyTkZiR3BPTW14d1kwZHdkVk50ZEVOVVYwNVFXbnBzVVdNd09VVmxiVGx1VEZoYVZtTldVa05SYXpGNldWWlNhMkZXYkZGaWEzQnJZMjVPUmxReFJtbFJNR3N6VEZSVmQyRnJSa3hWTVdSdllWVkdXRlJGY0hGWFZUVmFVMVpzWVZKRk5VSlVNbVJxV1dwb1ZXTkVWazFqZVRGSVdESnNORkV5T1V0Wk1WSjFWa1JDY0ZacmJITmtWbFpIVmtaS2JtTllTbkJQUnpGUlkxVm9RbUo2VWs1aWJrcHZWVmhhTUU5Vk5EVldSVlpYVmpOT1dHTnJlRE5oUms1TFZua3hkbFJFV25WVWF6bERWa2hDU1ZkV09ESlBWelZtWWtSR1ZHSXdUbEJXTTFKNVUxVldVbE13Vms5VlZtUlpWRE5hWmxSWWFGUlNia1o2VWxoYVExcEdPVkJTUkd4Q1ZFY3hTRlV3ZUVoa1J6QXlUMFpaZVZSWWF6SllNMjgwVVcweFZsWkhTbUZNVkZKdVQxVmFXV0V4Y0RKTlJsb3pXa1phV1ZFeFRuWlpXRmw0VW5wb1dWaDZXbmRTV0VsNVdrUkdlR1ZXV1hoaVJsSXpXbXhDZUZwRVdtbGFNbG93WTBkS2NWWkhWakZhYkd4RFVsaG9VMHhWUm5ObFNGWkxZMjVrYkZSNmFFOU1WRll4VW1zNE1sZHJlRzlhUkZJd1UyNW9URlZXUW5aT01qbE5WVlpDYjJOVVNuWldSVTVLVlZOSmMwbHRWV2xQYVVwQ1ZWVkdRMGxwZDJsWlYzaHVTV3B2YVZWc1RYbE9WRmxwVEVOS2NtRlhVV2xQYVVwWFVsUlNVVlF6YkRCUFJYaHRWRE5TTmxOcVJsQk5WM2gxWVRJd2RGWnNXa3RhYm5CV1VqQjBXV0V6YXpKaGJGcFhZbFpuTkdGdFdtNUpiakU1VEVOS2NGcElRV2xQYVVwdlpFaFNkMk42YjNaTU0wNHdZM2sxTTJGWE5XdGlNMlI2VEcwMWJHUkRPV3BhUjAweFdWZFdiRmxUTUhoT1YwMHhURlJTYTFscVdYUlpha0V6VDFNeGJWa3lSbXRhUkVreFRVUldhMWw2U1haSmFYZHBZakpzYTBscWIybE5iVTB6VDFkT2FVNTZaM1JOTWs1cVdWTXdNRTB5Vm1sTVYwcHNXV3BKZEZscVFUVk9iVlpwVDFSSk1FNXRSVFJKYVhkcFkyMW5hVTlwU1hkTWEwWlRVMVZGTW1OVVpFZGxiVTVXVm01U2NrMXVaR3hhYm13d1RVZDRRMXBJWkc1aU1IQlpZMnhPWmsxdGRGZFJiVGxJV2pCc2VGRXlNVFpTUnpoM1ZUQkdRbEZUTkdsTVEwcDZaRmRKYVU5cFNYbFplbU0xV1RKSk0wOURNSHBaTWs1b1RGUlJlbHBYU1hSWmJWWnBUV2t4YVUxRWF6SmFWMGsxVFdwUk1sbFVaMmxNUTBvd1lWZFJhVTlwU21wYVIwMHhXVmRXYkZsVE1IaE9WMDB4VEZSU2ExbHFXWFJaYWtFelQxTXhiVmt5Um10YVJFa3hUVVJXYTFsNlNXbE1RMG94WkVkcmFVOXBTbFZaTTBacVltNXdWVmxZV1hkV2VrWkdWMWh2ZEZaVmF6RlBSVVpDU1dsM2FXUnRWbmxKYW05cFRWTTBkMGx1TUM1b1QyWkVZamhyYTJGZlMwaEdSM0pWZUZCMVowOHdTV2hNZWtOSVluSTBTVkZqZVdkSmVVNUxiVFYwTmtkUlEwbFRWVFpKVkZCcmFXdHpMVmxXVFVOd1VGY3haRk5rT1UxbFpWbExkMWRtWkdkc1NYcERhRWhIZVZCM2NtRndUVWxNYURFeE5rNVlWMnhmTm01cFMxbzFUMVpwVFZkWlZFOUdSRTl6YkZkNFZGZFRjbVIxYlRjek5VVlpaelYzUkRSYWFUaEpUbUpCTVZKVllraEtkazl4VEdKeWVsVkZiMHREVjFkVlUwb3hXRVpvTlRadWQzVlFRM0JEYm1ReVdUUm9jbUZLY1dJM1gzQlVZMjlzTTBWb1NrdG9NV3hCYVV4TU9UWjBVelJhVEZwdmMxbGFkMEpMTVROMFIwdFNRbU5wY1V4c2Ntb3hhVlJNUjJ0Q1VpMTNOako1V0VkcmNrdzBXRGR6U0RBeVEwNTFVbWhYTFd0T1dqRjFkemhpZEhoVFNtZGFSRTVDTUZab1NIaEpkSEZJUTNsRGFETjRSRkY1ZEZsRFNXdHdYelptTXpGa09WSkZSVjl3ZW1KUmFGZG9NalIxTFdjaUxDSjBjeUk2TVRZNU1EazJOVGt3T0N3aVlpSTZJbmxWTm04MldHMURWMGRZUjJsbVZreHFUakZtYmpWeVgwSnJhamxFUVdwVFRFVlBURWRKY2psNlJtOGlMQ0p1YjI1alpTSTZJbVJrTmpOa05qVXhabUl5TmpSbE16STVNelEwWldaaE1EUXpOamc0TkRJMElpd2lZMjVtSWpwN0ltcDNheUk2ZXlKcmFXUWlPaUp6Vm5sRlNGZ3pVakF6VGpsSlVVcE5WM05xTFhaU05IbExXalp3TkVkaFRYQnpPSGQzTTJwVFVtMUJJaXdpWlNJNklrRlJRVUlpTENKcmRIa2lPaUpTVTBFaUxDSnVJam9pZVVKeFdUZGhXUzFGZUhwclpXMHpPSE5GUkZad1NXTTNhV2x3YW01S2EwSk5ZMDluT1ZCelQwUjZiMmN0ZGxWeFZFSkNUWE5oVkdScFdWQnVTbVJ5YzBWUFVXSkRTVGN0TlRCcVFVdFRWMmhwUVZkTVNtcFpUbGxKV1ZwRVRrRlBaMk5pT0ZSd05VeHpMVWRmYVhoRGIwcGpWRzVVTUdsV1NXeDFWVVpVVW1keGNtazRiVkJ4U0VGdk5FMXVjbWhSZG5RNVRqbFVSVlpYYzFkeVRIZG9VMHBYTFc5TU5tNU9UMEpVY0VoWlh6WTVibDlzTVZOdlEwOVhkSEpKUlZGTFJVNVJWMWhQZGw5TmVGTkdjWE5GZGtKa1gwOUVPVUZNYlVkVFRFZDBiVFk0VmpKTmVUWmZlamhDYlZWVVlsb3ROR2M1UmxoclduWXdWbmRrVmxoRFUyOWhkakZIT0ZoZk5uQkZjakprTVhGNVZqRnNWSGRtVUhGa05tSm5ablJ3WW1wVVpYVm1XVUpGZUZJdFFXeDRkVXB5ZDJWUE9FNHROWFZHVHpaYVRHaGtOSFJLZUV0UlVHODNiMHhSVUdoeE1tOVVRMGxSSW4xOWZRLmlRa0dLakgzcnNSblRmenJMRFJJNGY4cHhFczctVFVYQm9BYlRZWkd6SDhmZ3Yxd3I0RmxrbzV1a3dtMHFwajJnMVRUY1ctSWpmdS0xdnFCSlllS2NZclZ0eS1BRFYxMjNvejVEQ1k2RjFYM2ZYU2NTT3IzRHNYOTlsTEVqcV9CUWdRSkNOVG52Wk5zeUtiUHNiWVFoWG81dWlscklibEJBMlExYTRHTGlmM2tQSmVMbl9DNEcwcTBtbDczeURhMXdXaEoxTkxtdS1yYW4yLVJQTnZ3SWZTUUdHbEI0ZjMwNmtsRVh6dEMwYk5ZQXdMVk5YVGxMWGd3cnBSc29jZU5xYWlGRTVGOHA0N2Q0TFRzQi10LVNoVlpSbWN1MUNocXBPcXBFMTdGZGxfa19GMkxCMEtvNjZDdV9vMVhwZGo3MlJTb0ZNT3c3d28wb0JQVVhwbWpaUSJ9.", + "callbackUri": "https://sanitized.skype.com/api/servicebuscallback/events?q=SanitizedSanitized", + "answeredByIdentifier": { + "id": "Sanitized" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "761", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 02 Aug 2023 08:45:09 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "X-Microsoft-Skype-Chain-ID": "cfd4a3b9-0093-47de-832f-4b6953b2abd1", + "x-ms-client-request-id": "423f619d45dda691c23516f22339a843" + }, + "ResponseBody": { + "callConnectionId": "491f1300-d5bc-4de3-b660-ffcd6063911d", + "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzc2MtMDcuY29udi5za3lwZS5jb20vY29udi9pbVVaSzFXWjkwYWt4Z0J3UGViZzF3P2k9NjcmZT02MzgyNjE3MjQ2MDgwMTgwNzU=", + "targets": [ + { + "rawId": "Sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "Sanitized" + } + } + ], + "callConnectionState": "unknown", + "callbackUri": "https://sanitized.skype.com/api/servicebuscallback/events?q=SanitizedSanitized", + "mediaSubscriptionId": "78868641-382b-4adc-b811-687336d2102b", + "sourceDisplayName": "\u002B18447649276", + "sourceIdentity": { + "rawId": "Sanitized", + "kind": "phoneNumber", + "phoneNumber": { + "value": "Sanitized" + } + }, + "correlationId": "cfd4a3b9-0093-47de-832f-4b6953b2abd1", + "answeredByIdentifier": { + "id": "Sanitized" + } + } + }, + { + "RequestUri": "https://sanitized.skype.com/calling/callConnections/491f1300-4018-43a8-9e6b-b6aa0ebe7fab?api-version=2023-01-15-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-Communication.CallAutomation/1.1.0-alpha.20230802.1 (.NET 6.0.20; Microsoft Windows 10.0.22621)", + "X-FORWARDED-HOST": "Sanitized", + "x-ms-client-request-id": "e437d3d76fc2bfd77236cf7f7078e2ac", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 02 Aug 2023 08:45:13 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "754", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 02 Aug 2023 08:45:13 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "X-Microsoft-Skype-Chain-ID": "111acd78-ae5f-4264-93b9-592184b2870e", + "x-ms-client-request-id": "e437d3d76fc2bfd77236cf7f7078e2ac" + }, + "ResponseBody": { + "callConnectionId": "491f1300-4018-43a8-9e6b-b6aa0ebe7fab", + "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC94LWNvbnYtdXN3ZS0wMS5jb252LnNreXBlLmNvbS9jb252L01ndGlMdzlxVDBTVDFDSTFlVHQwNkE/aT0wJmU9NjM4MjU0OTE0MzM4NTgwOTY1", + "targets": [ + { + "rawId": "Sanitized", + "kind": "phoneNumber", + "phoneNumber": { + "value": "Sanitized" + } + } + ], + "callConnectionState": "connected", + "callbackUri": "https://sanitized.skype.com/api/servicebuscallback/events?q=SanitizedSanitized", + "mediaSubscriptionId": "e5cf6c6d-b182-4fd9-9656-81ba6d8e2f35", + "sourceCallerIdNumber": { + "value": "Sanitized" + }, + "sourceDisplayName": "", + "sourceIdentity": { + "rawId": "Sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "Sanitized" + } + }, + "correlationId": "111acd78-ae5f-4264-93b9-592184b2870e" + } + }, + { + "RequestUri": "https://sanitized.skype.com/calling/callConnections/491f1300-d5bc-4de3-b660-ffcd6063911d/dialogs/92e08834-b6ee-4ede-8956-9fefa27a691c?api-version=2023-01-15-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "129", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Communication.CallAutomation/1.1.0-alpha.20230802.1 (.NET 6.0.20; Microsoft Windows 10.0.22621)", + "X-FORWARDED-HOST": "Sanitized", + "x-ms-client-request-id": "4abcba14993d19168f2b35bb8ad75e73", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 02 Aug 2023 08:45:13 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "dialogOptions": { + "botAppId": "Sanitized", + "dialogContext": {} + }, + "dialogInputType": "powerVirtualAgents", + "operationContext": "context" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "179", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 02 Aug 2023 08:45:13 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "X-Microsoft-Skype-Chain-ID": "cfd4a3b9-0093-47de-832f-4b6953b2abd1", + "x-ms-client-request-id": "4abcba14993d19168f2b35bb8ad75e73" + }, + "ResponseBody": { + "dialogId": "92e08834-b6ee-4ede-8956-9fefa27a691c", + "dialogOptions": { + "botAppId": "Sanitized", + "dialogContext": {} + }, + "dialogInputType": "powerVirtualAgents", + "operationContext": "context" + } + }, + { + "RequestUri": "https://sanitized.skype.com/calling/callConnections/491f1300-d5bc-4de3-b660-ffcd6063911d/dialogs/92e08834-b6ee-4ede-8956-9fefa27a691c?api-version=2023-01-15-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "129", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Communication.CallAutomation/1.1.0-alpha.20230802.1 (.NET 6.0.20; Microsoft Windows 10.0.22621)", + "X-FORWARDED-HOST": "Sanitized", + "x-ms-client-request-id": "3ff9a5e4ceb22db78a7fd0a775123649", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 02 Aug 2023 08:45:14 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "dialogOptions": { + "botAppId": "Sanitized", + "dialogContext": {} + }, + "dialogInputType": "powerVirtualAgents", + "operationContext": "context" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "179", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 02 Aug 2023 08:45:14 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "X-Microsoft-Skype-Chain-ID": "cfd4a3b9-0093-47de-832f-4b6953b2abd1", + "x-ms-client-request-id": "3ff9a5e4ceb22db78a7fd0a775123649" + }, + "ResponseBody": { + "dialogId": "92e08834-b6ee-4ede-8956-9fefa27a691c", + "dialogOptions": { + "botAppId": "Sanitized", + "dialogContext": {} + }, + "dialogInputType": "powerVirtualAgents", + "operationContext": "context" + } + }, + { + "RequestUri": "https://sanitized.skype.com/calling/callConnections/491f1300-d5bc-4de3-b660-ffcd6063911d/dialogs/92e08834-b6ee-4ede-8956-9fefa27a691c?api-version=2023-01-15-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": "azsdk-net-Communication.CallAutomation/1.1.0-alpha.20230802.1 (.NET 6.0.20; Microsoft Windows 10.0.22621)", + "X-FORWARDED-HOST": "Sanitized", + "x-ms-client-request-id": "69dd69535d7c3e06bd1e5597391b359a", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 02 Aug 2023 08:45:14 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 02 Aug 2023 08:45:14 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "X-Microsoft-Skype-Chain-ID": "cfd4a3b9-0093-47de-832f-4b6953b2abd1", + "x-ms-client-request-id": "69dd69535d7c3e06bd1e5597391b359a" + }, + "ResponseBody": null + } + ], + "Variables": { + "BOT_APP_ID": "Sanitized", + "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://acs-callautomationtestsupporter.communication.azure.com/;accesskey=Kg==", + "DISPATCHER_ENDPOINT": "https://sanitized.skype.com", + "PMA_Endpoint": "https://sanitized.com", + "RandomSeed": "1534420941", + "SERVICEBUS_STRING": "Endpoint=sb://acs-callautomationtestservicebus.servicebus.windows.net/;SharedAccessKeyName=Sanitized;SharedAccessKey=Kg==" + } +} From 9d1c01a9bdf01840a313a18b4ec9a9010aa2cd96 Mon Sep 17 00:00:00 2001 From: Marcin Elantkowski Date: Wed, 2 Aug 2023 20:35:00 +0200 Subject: [PATCH 24/54] Use TrySetCanceled and TrySetResult to avoid finalizing the task twice (#37984) --- sdk/openai/Azure.AI.OpenAI/src/Helpers/AsyncAutoResetEvent.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/openai/Azure.AI.OpenAI/src/Helpers/AsyncAutoResetEvent.cs b/sdk/openai/Azure.AI.OpenAI/src/Helpers/AsyncAutoResetEvent.cs index 7cf4b6681fda..5c360eb554ac 100644 --- a/sdk/openai/Azure.AI.OpenAI/src/Helpers/AsyncAutoResetEvent.cs +++ b/sdk/openai/Azure.AI.OpenAI/src/Helpers/AsyncAutoResetEvent.cs @@ -25,7 +25,7 @@ public Task WaitAsync(CancellationToken cancellationToken = default) else { var tcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); - cancellationToken.Register(() => tcs?.SetCanceled()); + cancellationToken.Register(() => tcs?.TrySetCanceled()); _waits.Enqueue(tcs); return tcs.Task; } @@ -42,7 +42,7 @@ public void Set() else if (!_signaled) _signaled = true; } - toRelease?.SetResult(true); + toRelease?.TrySetResult(true); } } } From 53da893dff5587d93742cf6665a4feff9bd185c0 Mon Sep 17 00:00:00 2001 From: sofiar-msft Date: Wed, 2 Aug 2023 13:18:29 -0600 Subject: [PATCH 25/54] Mark package as In Release (#37990) --- .../Azure.Communication.PhoneNumbers/CHANGELOG.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/CHANGELOG.md b/sdk/communication/Azure.Communication.PhoneNumbers/CHANGELOG.md index 506158d3a052..6cfadeb5b90b 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/CHANGELOG.md +++ b/sdk/communication/Azure.Communication.PhoneNumbers/CHANGELOG.md @@ -1,16 +1,10 @@ # Release History -## 1.2.0-beta.1 (Unreleased) +## 1.2.0-beta.1 (2023-08-08) ### Features Added - Added custom page sizes to PurchasedPhoneNumbers, Countries, Localities, AreaCodes and Offerings. -### Breaking Changes - -### Bugs Fixed - -### Other Changes - ## 1.1.0 (2023-03-28) ### Features Added From 8420a505cc546e3eb0373b560067ce4310e64448 Mon Sep 17 00:00:00 2001 From: Scott Addie <10702007+scottaddie@users.noreply.github.com> Date: Wed, 2 Aug 2023 14:41:35 -0500 Subject: [PATCH 26/54] Update azd credential order in DAC (#37986) --- sdk/identity/Azure.Identity/README.md | 2 +- .../Azure.Identity/src/Credentials/DefaultAzureCredential.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/identity/Azure.Identity/README.md b/sdk/identity/Azure.Identity/README.md index 9aa29fe00f9e..3b9983f6a10f 100644 --- a/sdk/identity/Azure.Identity/README.md +++ b/sdk/identity/Azure.Identity/README.md @@ -88,11 +88,11 @@ The `DefaultAzureCredential` attempts to authenticate via the following mechanis 1. **Environment** - The `DefaultAzureCredential` will read account information specified via [environment variables](#environment-variables) and use it to authenticate. 1. **Workload Identity** - If the application is deployed to an Azure host with Workload Identity enabled, the `DefaultAzureCredential` will authenticate with that account. 1. **Managed Identity** - If the application is deployed to an Azure host with Managed Identity enabled, the `DefaultAzureCredential` will authenticate with that account. -1. **Azure Developer CLI** - If the developer has authenticated via the Azure Developer CLI `azd auth login` command, the `DefaultAzureCredential` will authenticate with that account. 1. **Visual Studio** - If the developer has authenticated via Visual Studio, the `DefaultAzureCredential` will authenticate with that account. 1. **Visual Studio Code** - Currently excluded by default as SDK authentication via Visual Studio Code is broken due to issue [#27263](https://github.com/Azure/azure-sdk-for-net/issues/27263). The `VisualStudioCodeCredential` will be re-enabled in the `DefaultAzureCredential` flow once a fix is in place. Issue [#30525](https://github.com/Azure/azure-sdk-for-net/issues/30525) tracks this. In the meantime Visual Studio Code users can authenticate their development environment using the [Azure CLI](https://learn.microsoft.com/cli/azure/). 1. **Azure CLI** - If the developer has authenticated an account via the Azure CLI `az login` command, the `DefaultAzureCredential` will authenticate with that account. 1. **Azure PowerShell** - If the developer has authenticated an account via the Azure PowerShell `Connect-AzAccount` command, the `DefaultAzureCredential` will authenticate with that account. +1. **Azure Developer CLI** - If the developer has authenticated via the Azure Developer CLI `azd auth login` command, the `DefaultAzureCredential` will authenticate with that account. 1. **Interactive browser** - If enabled, the `DefaultAzureCredential` will interactively authenticate the developer via the current system's default browser. By default, this credential type is disabled. ## Examples diff --git a/sdk/identity/Azure.Identity/src/Credentials/DefaultAzureCredential.cs b/sdk/identity/Azure.Identity/src/Credentials/DefaultAzureCredential.cs index fb56c08eb309..6f269c3c94cf 100644 --- a/sdk/identity/Azure.Identity/src/Credentials/DefaultAzureCredential.cs +++ b/sdk/identity/Azure.Identity/src/Credentials/DefaultAzureCredential.cs @@ -18,12 +18,12 @@ namespace Azure.Identity /// /// /// - /// /// /// /// /// /// + /// /// /// /// Consult the documentation of these credential types for more information on how they attempt authentication. From 7b97ef78fedcb31a524ee85627536148793ea81e Mon Sep 17 00:00:00 2001 From: Timothy Mothra Date: Wed, 2 Aug 2023 15:21:08 -0700 Subject: [PATCH 27/54] extra logging for PartialSuccess (#37915) --- .../AzureMonitorExporterEventSource.cs | 28 +++++++++++++++++++ .../src/Internals/HttpPipelineHelper.cs | 22 +++++++++++---- .../Internals/TransmitFromStorageHandler.cs | 7 +++-- 3 files changed, 50 insertions(+), 7 deletions(-) diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/Diagnostics/AzureMonitorExporterEventSource.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/Diagnostics/AzureMonitorExporterEventSource.cs index cabcc6c7772c..4473b1783b4e 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/Diagnostics/AzureMonitorExporterEventSource.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/Diagnostics/AzureMonitorExporterEventSource.cs @@ -5,6 +5,7 @@ using System.Diagnostics.Tracing; using System.Runtime.CompilerServices; using Azure.Monitor.OpenTelemetry.Exporter.Internals.ConnectionString; +using Azure.Monitor.OpenTelemetry.Exporter.Models; namespace Azure.Monitor.OpenTelemetry.Exporter.Internals.Diagnostics { @@ -355,5 +356,32 @@ public void FailedToDeserializeIngestionResponse(Exception ex) [Event(36, Message = "Version string exceeds expected length. This is only for internal telemetry and can safely be ignored. Type Name: {0}. Version: {1}", Level = EventLevel.Verbose)] public void VersionStringUnexpectedLength(string typeName, string value) => WriteEvent(36, typeName, value); + + [Event(37, Message = "Failed to delete telemetry from storage. This may result in duplicate telemetry if the file is processed again. Not user actionable.", Level = EventLevel.Warning)] + public void DeletedFailed() => WriteEvent(37); + + [NonEvent] + public void PartialContentResponseInvalid(int totalTelemetryItems, TelemetryErrorDetails error) + { + if (IsEnabled(EventLevel.Warning)) + { + PartialContentResponseInvalid(totalTelemetryItems, error.Index?.ToString() ?? "N/A", error.StatusCode?.ToString() ?? "N/A", error.Message); + } + } + + [Event(38, Message = "Received a partial success from ingestion that does not match telemetry that was sent. Total telemetry items sent: {0}. Error Index: {1}. Error StatusCode: {2}. Error Message: {3}", Level = EventLevel.Warning)] + public void PartialContentResponseInvalid(int totalTelemetryItems, string errorIndex, string errorStatusCode, string errorMessage) => WriteEvent(38, totalTelemetryItems, errorIndex, errorStatusCode, errorMessage); + + [NonEvent] + public void PartialContentResponseUnhandled(TelemetryErrorDetails error) + { + if (IsEnabled(EventLevel.Warning)) + { + PartialContentResponseUnhandled(error.StatusCode?.ToString() ?? "N/A", error.Message); + } + } + + [Event(39, Message = "Received a partial success from ingestion. This status code is not handled and telemetry will be lost. Error StatusCode: {0}. Error Message: {1}", Level = EventLevel.Warning)] + public void PartialContentResponseUnhandled(string errorStatusCode, string errorMessage) => WriteEvent(39, errorStatusCode, errorMessage); } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/HttpPipelineHelper.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/HttpPipelineHelper.cs index 5ed9b3a1e559..c9d2a9d4c7bc 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/HttpPipelineHelper.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/HttpPipelineHelper.cs @@ -113,6 +113,12 @@ internal static bool TryGetRequestContent(RequestContent? content, [NotNullWhen( return true; } + /// + /// Parse a PartialSuccess response from ingestion. + /// + /// is the parsed response from ingestion. + /// that was sent to ingestion. + /// Telemetry that will be tried. internal static byte[]? GetPartialContentForRetry(TrackResponse trackResponse, RequestContent? content) { if (content == null) @@ -123,14 +129,16 @@ internal static bool TryGetRequestContent(RequestContent? content, [NotNullWhen( string? partialContent = null; if (TryGetRequestContent(content, out var requestContent)) { - var fullContent = Encoding.UTF8.GetString(requestContent).Split('\n'); + var telemetryItems = Encoding.UTF8.GetString(requestContent).Split('\n'); foreach (var error in trackResponse.Errors) { if (error != null && error.Index != null) { - if (error.Index >= fullContent.Length || error.Index < 0) + int errorIndex = (int)error.Index; + + if (errorIndex >= telemetryItems.Length || errorIndex < 0) { - // TODO: log + AzureMonitorExporterEventSource.Log.PartialContentResponseInvalid(telemetryItems.Length, error); continue; } @@ -142,13 +150,17 @@ internal static bool TryGetRequestContent(RequestContent? content, [NotNullWhen( { if (string.IsNullOrEmpty(partialContent)) { - partialContent = fullContent[(int)error.Index]; + partialContent = telemetryItems[errorIndex]; } else { - partialContent += '\n' + fullContent[(int)error.Index]; + partialContent += '\n' + telemetryItems[errorIndex]; } } + else + { + AzureMonitorExporterEventSource.Log.PartialContentResponseUnhandled(error); + } } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TransmitFromStorageHandler.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TransmitFromStorageHandler.cs index fee2453bcecc..43587e481f73 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TransmitFromStorageHandler.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/TransmitFromStorageHandler.cs @@ -61,8 +61,11 @@ internal void TransmitFromStorage(object? sender, ElapsedEventArgs? e) // In case if the delete fails, there is a possibility // that the current batch will be transmitted more than once resulting in duplicates. - // TODO: TryDelete returns a boolean, should we log when this occurs? - blob.TryDelete(); + var deleteSucceeded = blob.TryDelete(); + if (!deleteSucceeded) + { + AzureMonitorExporterEventSource.Log.DeletedFailed(); + } } else { From 7e36accd3a2595e6458163bd66998d4b38189c1e Mon Sep 17 00:00:00 2001 From: Timothy Mothra Date: Wed, 2 Aug 2023 16:02:29 -0700 Subject: [PATCH 28/54] [AzureMonitorExporter] api feedback (#37996) * merge Extensions classes * update Options class * changelog * update public api * remove nullables from public api * changelog * changelog * export public api * reset enum integer --- .../src/AzureMonitorOptions.cs | 4 +- .../CHANGELOG.md | 5 + ...r.OpenTelemetry.Exporter.netstandard2.0.cs | 23 +-- .../src/AzureMonitorExporterExtensions.cs | 184 ++++++++++++++++++ .../AzureMonitorExporterLoggingExtensions.cs | 47 ----- .../AzureMonitorExporterMetricExtensions.cs | 75 ------- .../src/AzureMonitorExporterOptions.cs | 19 +- .../AzureMonitorExporterTraceExtensions.cs | 88 --------- 8 files changed, 207 insertions(+), 238 deletions(-) create mode 100644 sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterExtensions.cs delete mode 100644 sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterLoggingExtensions.cs delete mode 100644 sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterMetricExtensions.cs delete mode 100644 sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterTraceExtensions.cs diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/AzureMonitorOptions.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/AzureMonitorOptions.cs index 89938a80a322..00793c3d7b69 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/AzureMonitorOptions.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/AzureMonitorOptions.cs @@ -17,7 +17,7 @@ public class AzureMonitorOptions : ClientOptions /// The Connection String provides users with a single configuration setting to identify the Azure Monitor resource and endpoint. /// /// - /// (https://docs.microsoft.com/azure/azure-monitor/app/sdk-connection-string). + /// . /// public string ConnectionString { get; set; } @@ -27,7 +27,7 @@ public class AzureMonitorOptions : ClientOptions /// and Instrumentation Key from the Connection String will be used. /// /// - /// https://learn.microsoft.com/en-us/azure/azure-monitor/app/sdk-connection-string?tabs=net#is-the-connection-string-a-secret + /// . /// public TokenCredential Credential { get; set; } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/CHANGELOG.md b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/CHANGELOG.md index 672144f93022..a1aa58dce493 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/CHANGELOG.md +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/CHANGELOG.md @@ -9,6 +9,11 @@ * Location ip on server spans will now be set using `client.address` tag key on activity instead of `http.client_ip`. ([#37707](https://github.com/Azure/azure-sdk-for-net/pull/37707)) +* Removing `ServiceVersion.V2020_09_15_Preview`. This is no longer in use and + the exporter has already defaulted to the latest `ServiceVersion.v2_1`. + ([#37996](https://github.com/Azure/azure-sdk-for-net/pull/37996)) +* Remove Nullable Annotations from the Exporter's public API. + ([#37996](https://github.com/Azure/azure-sdk-for-net/pull/37996)) ### Bugs Fixed diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/api/Azure.Monitor.OpenTelemetry.Exporter.netstandard2.0.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/api/Azure.Monitor.OpenTelemetry.Exporter.netstandard2.0.cs index 1881608d99df..df4fa7a16050 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/api/Azure.Monitor.OpenTelemetry.Exporter.netstandard2.0.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/api/Azure.Monitor.OpenTelemetry.Exporter.netstandard2.0.cs @@ -1,31 +1,24 @@ namespace Azure.Monitor.OpenTelemetry.Exporter { - public static partial class AzureMonitorExporterLoggingExtensions + public static partial class AzureMonitorExporterExtensions { - public static OpenTelemetry.Logs.OpenTelemetryLoggerOptions AddAzureMonitorLogExporter(this OpenTelemetry.Logs.OpenTelemetryLoggerOptions loggerOptions, System.Action? configure = null, Azure.Core.TokenCredential? credential = null) { throw null; } - } - public static partial class AzureMonitorExporterMetricExtensions - { - public static OpenTelemetry.Metrics.MeterProviderBuilder AddAzureMonitorMetricExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Action? configure = null, Azure.Core.TokenCredential? credential = null, string? name = null) { throw null; } + public static OpenTelemetry.Logs.OpenTelemetryLoggerOptions AddAzureMonitorLogExporter(this OpenTelemetry.Logs.OpenTelemetryLoggerOptions loggerOptions, System.Action configure = null, Azure.Core.TokenCredential credential = null) { throw null; } + public static OpenTelemetry.Metrics.MeterProviderBuilder AddAzureMonitorMetricExporter(this OpenTelemetry.Metrics.MeterProviderBuilder builder, System.Action configure = null, Azure.Core.TokenCredential credential = null, string name = null) { throw null; } + public static OpenTelemetry.Trace.TracerProviderBuilder AddAzureMonitorTraceExporter(this OpenTelemetry.Trace.TracerProviderBuilder builder, System.Action configure = null, Azure.Core.TokenCredential credential = null, string name = null) { throw null; } } public partial class AzureMonitorExporterOptions : Azure.Core.ClientOptions { public AzureMonitorExporterOptions() { } public AzureMonitorExporterOptions(Azure.Monitor.OpenTelemetry.Exporter.AzureMonitorExporterOptions.ServiceVersion version = Azure.Monitor.OpenTelemetry.Exporter.AzureMonitorExporterOptions.ServiceVersion.v2_1) { } - public string? ConnectionString { get { throw null; } set { } } - public Azure.Core.TokenCredential? Credential { get { throw null; } set { } } + public string ConnectionString { get { throw null; } set { } } + public Azure.Core.TokenCredential Credential { get { throw null; } set { } } public bool DisableOfflineStorage { get { throw null; } set { } } public float SamplingRatio { get { throw null; } set { } } - public string? StorageDirectory { get { throw null; } set { } } + public string StorageDirectory { get { throw null; } set { } } public Azure.Monitor.OpenTelemetry.Exporter.AzureMonitorExporterOptions.ServiceVersion Version { get { throw null; } set { } } public enum ServiceVersion { - V2020_09_15_Preview = 1, - v2_1 = 2, + v2_1 = 1, } } - public static partial class AzureMonitorExporterTraceExtensions - { - public static OpenTelemetry.Trace.TracerProviderBuilder AddAzureMonitorTraceExporter(this OpenTelemetry.Trace.TracerProviderBuilder builder, System.Action? configure = null, Azure.Core.TokenCredential? credential = null, string? name = null) { throw null; } - } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterExtensions.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterExtensions.cs new file mode 100644 index 000000000000..11b9c2bc3936 --- /dev/null +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterExtensions.cs @@ -0,0 +1,184 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.Diagnostics; +using Azure.Core; +using Azure.Monitor.OpenTelemetry.Exporter.Internals; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Options; +using OpenTelemetry; +using OpenTelemetry.Logs; +using OpenTelemetry.Metrics; +using OpenTelemetry.Trace; + +namespace Azure.Monitor.OpenTelemetry.Exporter +{ + /// + /// Extension methods to simplify registering of Azure Monitor Exporter for all signals. + /// + public static class AzureMonitorExporterExtensions + { + /// + /// Adds Azure Monitor Trace exporter to the TracerProvider. + /// + /// builder to use. + /// Callback action for configuring . + /// + /// An Azure capable of providing an OAuth token. + /// Note: if a credential is provided to both and this parameter, + /// the Options will take precedence. + /// + /// Name which is used when retrieving options. + /// The instance of to chain the calls. + public static TracerProviderBuilder AddAzureMonitorTraceExporter( + this TracerProviderBuilder builder, + Action configure = null, + TokenCredential credential = null, + string name = null) + { + if (builder == null) + { + throw new ArgumentNullException(nameof(builder)); + } + + var finalOptionsName = name ?? Options.DefaultName; + + if (name != null && configure != null) + { + // If we are using named options we register the + // configuration delegate into options pipeline. + builder.ConfigureServices(services => services.Configure(finalOptionsName, configure)); + } + + var deferredBuilder = builder as IDeferredTracerProviderBuilder; + if (deferredBuilder == null) + { + throw new InvalidOperationException("The provided TracerProviderBuilder does not implement IDeferredTracerProviderBuilder."); + } + + return deferredBuilder.Configure((sp, builder) => + { + var exporterOptions = sp.GetRequiredService>().Get(finalOptionsName); + if (name == null && configure != null) + { + // If we are NOT using named options, we execute the + // configuration delegate inline. The reason for this is + // AzureMonitorExporterOptions is shared by all signals. Without a + // name, delegates for all signals will mix together. See: + // https://github.com/open-telemetry/opentelemetry-dotnet/issues/4043 + configure(exporterOptions); + } + + builder.SetSampler(new ApplicationInsightsSampler(exporterOptions.SamplingRatio)); + + if (credential != null) + { + // Credential can be set by either AzureMonitorExporterOptions or Extension Method Parameter. + // Options should take precedence. + exporterOptions.Credential ??= credential; + } + + builder.AddProcessor(new CompositeProcessor(new BaseProcessor[] + { + new StandardMetricsExtractionProcessor(new AzureMonitorMetricExporter(exporterOptions)), + new BatchActivityExportProcessor(new AzureMonitorTraceExporter(exporterOptions)) + })); + }); + } + + /// + /// Adds Azure Monitor Metric exporter. + /// + /// builder to use. + /// Exporter configuration options. + /// + /// An Azure capable of providing an OAuth token. + /// Note: if a credential is provided to both and this parameter, + /// the Options will take precedence. + /// + /// Name which is used when retrieving options. + /// The instance of to chain the calls. + public static MeterProviderBuilder AddAzureMonitorMetricExporter( + this MeterProviderBuilder builder, + Action configure = null, + TokenCredential credential = null, + string name = null) + { + if (builder == null) + { + throw new ArgumentNullException(nameof(builder)); + } + + var finalOptionsName = name ?? Options.DefaultName; + + if (name != null && configure != null) + { + // If we are using named options we register the + // configuration delegate into options pipeline. + builder.ConfigureServices(services => services.Configure(finalOptionsName, configure)); + } + + return builder.AddReader(sp => + { + var exporterOptions = sp.GetRequiredService>().Get(finalOptionsName); + + if (name == null && configure != null) + { + // If we are NOT using named options, we execute the + // configuration delegate inline. The reason for this is + // AzureMonitorExporterOptions is shared by all signals. Without a + // name, delegates for all signals will mix together. See: + // https://github.com/open-telemetry/opentelemetry-dotnet/issues/4043 + configure(exporterOptions); + } + + if (credential != null) + { + // Credential can be set by either AzureMonitorExporterOptions or Extension Method Parameter. + // Options should take precedence. + exporterOptions.Credential ??= credential; + } + + return new PeriodicExportingMetricReader(new AzureMonitorMetricExporter(exporterOptions)) + { TemporalityPreference = MetricReaderTemporalityPreference.Delta }; + }); + } + + /// + /// Adds Azure Monitor Log Exporter with OpenTelemetryLoggerOptions. + /// + /// options to use. + /// Exporter configuration options. + /// + /// An Azure capable of providing an OAuth token. + /// Note: if a credential is provided to both and this parameter, + /// the Options will take precedence. + /// + /// The instance of to chain the calls. + public static OpenTelemetryLoggerOptions AddAzureMonitorLogExporter( + this OpenTelemetryLoggerOptions loggerOptions, + Action configure = null, + TokenCredential credential = null) + { + if (loggerOptions == null) + { + throw new ArgumentNullException(nameof(loggerOptions)); + } + + var options = new AzureMonitorExporterOptions(); + configure?.Invoke(options); + + if (credential != null) + { + // Credential can be set by either AzureMonitorExporterOptions or Extension Method Parameter. + // Options should take precedence. + options.Credential ??= credential; + } + + return loggerOptions.AddProcessor(new BatchLogRecordExportProcessor(new AzureMonitorLogExporter(options))); + } + } +} diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterLoggingExtensions.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterLoggingExtensions.cs deleted file mode 100644 index 7767c9e04d82..000000000000 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterLoggingExtensions.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System; -using Azure.Core; -using OpenTelemetry; -using OpenTelemetry.Logs; - -namespace Azure.Monitor.OpenTelemetry.Exporter -{ - /// - /// Extension methods to simplify registering of Azure Monitor Log Exporter. - /// - public static class AzureMonitorExporterLoggingExtensions - { - /// - /// Adds Azure Monitor Log Exporter with OpenTelemetryLoggerOptions. - /// - /// options to use. - /// Exporter configuration options. - /// - /// An Azure capable of providing an OAuth token. - /// Note: if a credential is provided to both and this parameter, - /// the Options will take precedence. - /// - /// The instance of to chain the calls. - public static OpenTelemetryLoggerOptions AddAzureMonitorLogExporter(this OpenTelemetryLoggerOptions loggerOptions, Action? configure = null, TokenCredential? credential = null) - { - if (loggerOptions == null) - { - throw new ArgumentNullException(nameof(loggerOptions)); - } - - var options = new AzureMonitorExporterOptions(); - configure?.Invoke(options); - - if (credential != null) - { - // Credential can be set by either AzureMonitorExporterOptions or Extension Method Parameter. - // Options should take precedence. - options.Credential ??= credential; - } - - return loggerOptions.AddProcessor(new BatchLogRecordExportProcessor(new AzureMonitorLogExporter(options))); - } - } -} diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterMetricExtensions.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterMetricExtensions.cs deleted file mode 100644 index 91596b02d83b..000000000000 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterMetricExtensions.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System; -using Azure.Core; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Options; -using OpenTelemetry.Metrics; - -namespace Azure.Monitor.OpenTelemetry.Exporter -{ - /// - /// Extension methods to simplify registering of Azure Monitor Metrics Exporter. - /// - public static class AzureMonitorExporterMetricExtensions - { - /// - /// Adds Azure Monitor Metric exporter. - /// - /// builder to use. - /// Exporter configuration options. - /// - /// An Azure capable of providing an OAuth token. - /// Note: if a credential is provided to both and this parameter, - /// the Options will take precedence. - /// - /// Name which is used when retrieving options. - /// The instance of to chain the calls. - public static MeterProviderBuilder AddAzureMonitorMetricExporter( - this MeterProviderBuilder builder, - Action? configure = null, - TokenCredential? credential = null, - string? name = null) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - var finalOptionsName = name ?? Options.DefaultName; - - if (name != null && configure != null) - { - // If we are using named options we register the - // configuration delegate into options pipeline. - builder.ConfigureServices(services => services.Configure(finalOptionsName, configure)); - } - - return builder.AddReader(sp => - { - var exporterOptions = sp.GetRequiredService>().Get(finalOptionsName); - - if (name == null && configure != null) - { - // If we are NOT using named options, we execute the - // configuration delegate inline. The reason for this is - // AzureMonitorExporterOptions is shared by all signals. Without a - // name, delegates for all signals will mix together. See: - // https://github.com/open-telemetry/opentelemetry-dotnet/issues/4043 - configure(exporterOptions); - } - - if (credential != null) - { - // Credential can be set by either AzureMonitorExporterOptions or Extension Method Parameter. - // Options should take precedence. - exporterOptions.Credential ??= credential; - } - - return new PeriodicExportingMetricReader(new AzureMonitorMetricExporter(exporterOptions)) - { TemporalityPreference = MetricReaderTemporalityPreference.Delta }; - }); - } - } -} diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterOptions.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterOptions.cs index 267c82d4fbff..10a17be3aeaf 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterOptions.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterOptions.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +#nullable disable + using System.Diagnostics.CodeAnalysis; using Azure.Core; @@ -21,14 +23,14 @@ public class AzureMonitorExporterOptions : ClientOptions /// The Connection String provides users with a single configuration setting to identify the Azure Monitor resource and endpoint. /// /// - /// (https://docs.microsoft.com/azure/azure-monitor/app/sdk-connection-string). + /// . /// - public string? ConnectionString { get; set; } + public string ConnectionString { get; set; } /// /// Get or sets the value of . /// - public TokenCredential? Credential { get; set; } + public TokenCredential Credential { get; set; } /// /// Gets or sets the ratio of telemetry items to be sampled. The value must be between 0.0F and 1.0F, inclusive. @@ -65,20 +67,15 @@ public AzureMonitorExporterOptions(ServiceVersion version = LatestVersion) public enum ServiceVersion { /// - /// (https://github.com/Azure/azure-rest-api-specs/blob/master/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json). - /// - V2020_09_15_Preview = 1, - - /// - /// (https://github.com/Azure/azure-rest-api-specs/blob/master/specification/applicationinsights/data-plane/Monitor.Exporters/preview/v2.1/swagger.json). + /// . /// - v2_1 = 2, + v2_1 = 1, } /// /// Override the default directory for offline storage. /// - public string? StorageDirectory { get; set; } + public string StorageDirectory { get; set; } /// /// Disable offline storage. diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterTraceExtensions.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterTraceExtensions.cs deleted file mode 100644 index 3e7a531d842f..000000000000 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/AzureMonitorExporterTraceExtensions.cs +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System; -using System.Diagnostics; -using Azure.Core; -using Azure.Monitor.OpenTelemetry.Exporter.Internals; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Options; -using OpenTelemetry; -using OpenTelemetry.Trace; - -namespace Azure.Monitor.OpenTelemetry.Exporter -{ - /// - /// Extension methods to simplify registering of Azure Monitor Trace Exporter. - /// - public static class AzureMonitorExporterTraceExtensions - { - /// - /// Adds Azure Monitor Trace exporter to the TracerProvider. - /// - /// builder to use. - /// Callback action for configuring . - /// - /// An Azure capable of providing an OAuth token. - /// Note: if a credential is provided to both and this parameter, - /// the Options will take precedence. - /// - /// Name which is used when retrieving options. - /// The instance of to chain the calls. - public static TracerProviderBuilder AddAzureMonitorTraceExporter( - this TracerProviderBuilder builder, - Action? configure = null, - TokenCredential? credential = null, - string? name = null) - { - if (builder == null) - { - throw new ArgumentNullException(nameof(builder)); - } - - var finalOptionsName = name ?? Options.DefaultName; - - if (name != null && configure != null) - { - // If we are using named options we register the - // configuration delegate into options pipeline. - builder.ConfigureServices(services => services.Configure(finalOptionsName, configure)); - } - - var deferredBuilder = builder as IDeferredTracerProviderBuilder; - if (deferredBuilder == null) - { - throw new InvalidOperationException("The provided TracerProviderBuilder does not implement IDeferredTracerProviderBuilder."); - } - - return deferredBuilder.Configure((sp, builder) => - { - var exporterOptions = sp.GetRequiredService>().Get(finalOptionsName); - if (name == null && configure != null) - { - // If we are NOT using named options, we execute the - // configuration delegate inline. The reason for this is - // AzureMonitorExporterOptions is shared by all signals. Without a - // name, delegates for all signals will mix together. See: - // https://github.com/open-telemetry/opentelemetry-dotnet/issues/4043 - configure(exporterOptions); - } - - builder.SetSampler(new ApplicationInsightsSampler(exporterOptions.SamplingRatio)); - - if (credential != null) - { - // Credential can be set by either AzureMonitorExporterOptions or Extension Method Parameter. - // Options should take precedence. - exporterOptions.Credential ??= credential; - } - - builder.AddProcessor(new CompositeProcessor(new BaseProcessor[] - { - new StandardMetricsExtractionProcessor(new AzureMonitorMetricExporter(exporterOptions)), - new BatchActivityExportProcessor(new AzureMonitorTraceExporter(exporterOptions)) - })); - }); - } - } -} From 8e542db4e9648c14b948dc673084c0b0dfc0fa95 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 2 Aug 2023 20:25:04 -0700 Subject: [PATCH 29/54] Update AutoRest C# version to 3.0.0-beta.20230801.2 (#37974) * Update Generator Version 3.0.0-beta.20230801.2 * Update SDK codes * Update SDK samples m*,n*,o*,p*,q*,r* * Rename and update --------- Co-authored-by: Wei Hu --- eng/Packages.Data.props | 2 +- eng/emitter-package.json | 2 +- ...urceManager.NetworkCloud.netstandard2.0.cs | 90 +++++++------ ...le_NetworkCloudBareMetalMachineResource.cs | 50 +++++--- .../Sample_NetworkCloudClusterResource.cs | 15 ++- ...e_NetworkCloudKubernetesClusterResource.cs | 5 +- ...le_NetworkCloudStorageApplianceResource.cs | 10 +- ...mple_NetworkCloudVirtualMachineResource.cs | 20 +-- .../Generated/ArmNetworkCloudModelFactory.cs | 19 +++ ...oudOperationStatusResultOperationSource.cs | 31 +++++ ...loudOperationStatusResult.Serialization.cs | 117 +++++++++++++++++ .../NetworkCloudOperationStatusResult.cs | 71 +++++++++++ .../NetworkCloudBareMetalMachineResource.cs | 120 +++++++++--------- .../Generated/NetworkCloudClusterResource.cs | 24 ++-- .../NetworkCloudKubernetesClusterResource.cs | 12 +- .../NetworkCloudStorageApplianceResource.cs | 24 ++-- .../NetworkCloudVirtualMachineResource.cs | 48 +++---- .../BareMetalMachinesRestOperations.cs | 20 +++ .../RestOperations/ClustersRestOperations.cs | 4 + .../KubernetesClustersRestOperations.cs | 2 + .../StorageAppliancesRestOperations.cs | 4 + .../VirtualMachinesRestOperations.cs | 8 ++ .../src/autorest.md | 3 +- 23 files changed, 506 insertions(+), 195 deletions(-) create mode 100644 sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/LongRunningOperation/NetworkCloudOperationStatusResultOperationSource.cs create mode 100644 sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudOperationStatusResult.Serialization.cs create mode 100644 sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudOperationStatusResult.cs diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 0e4363cb40d8..10f398f94172 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -174,7 +174,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/eng/emitter-package.json b/eng/emitter-package.json index ef225a75ffe2..704845a6ab22 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,6 +1,6 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20230801.1" + "@azure-tools/typespec-csharp": "0.2.0-beta.20230801.2" } } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/api/Azure.ResourceManager.NetworkCloud.netstandard2.0.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/api/Azure.ResourceManager.NetworkCloud.netstandard2.0.cs index 9a564b5c7baf..c36a68311d7d 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/api/Azure.ResourceManager.NetworkCloud.netstandard2.0.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/api/Azure.ResourceManager.NetworkCloud.netstandard2.0.cs @@ -159,33 +159,33 @@ protected NetworkCloudBareMetalMachineResource() { } public virtual bool HasData { get { throw null; } } public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Cordon(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachineCordonContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task CordonAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachineCordonContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Cordon(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachineCordonContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CordonAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachineCordonContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string bareMetalMachineName) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation PowerOff(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachinePowerOffContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task PowerOffAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachinePowerOffContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Reimage(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task ReimageAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation PowerOff(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachinePowerOffContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> PowerOffAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachinePowerOffContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Reimage(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ReimageAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Replace(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachineReplaceContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task ReplaceAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachineReplaceContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Restart(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task RestartAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation RunCommand(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachineRunCommandContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task RunCommandAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachineRunCommandContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation RunDataExtracts(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachineRunDataExtractsContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task RunDataExtractsAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachineRunDataExtractsContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation RunReadCommands(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachineRunReadCommandsContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task RunReadCommandsAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachineRunReadCommandsContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Replace(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachineReplaceContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ReplaceAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachineReplaceContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Restart(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RestartAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation RunCommand(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachineRunCommandContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RunCommandAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachineRunCommandContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation RunDataExtracts(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachineRunDataExtractsContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RunDataExtractsAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachineRunDataExtractsContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation RunReadCommands(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachineRunReadCommandsContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RunReadCommandsAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.BareMetalMachineRunReadCommandsContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Start(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task StartAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Uncordon(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task UncordonAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Start(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> StartAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Uncordon(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UncordonAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.NetworkCloudBareMetalMachinePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.NetworkCloudBareMetalMachinePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } @@ -438,8 +438,8 @@ protected NetworkCloudClusterResource() { } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Deploy(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.ClusterDeployContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeployAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.ClusterDeployContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Deploy(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.ClusterDeployContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DeployAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.ClusterDeployContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetNetworkCloudBareMetalMachineKeySet(string bareMetalMachineKeySetName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -457,8 +457,8 @@ protected NetworkCloudClusterResource() { } public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.NetworkCloudClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.NetworkCloudClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation UpdateVersion(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.ClusterUpdateVersionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task UpdateVersionAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.ClusterUpdateVersionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation UpdateVersion(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.ClusterUpdateVersionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateVersionAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.ClusterUpdateVersionContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public static partial class NetworkCloudExtensions { @@ -599,8 +599,8 @@ protected NetworkCloudKubernetesClusterResource() { } public virtual Azure.ResourceManager.NetworkCloud.NetworkCloudAgentPoolCollection GetNetworkCloudAgentPools() { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation RestartNode(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.KubernetesClusterRestartNodeContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task RestartNodeAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.KubernetesClusterRestartNodeContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation RestartNode(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.KubernetesClusterRestartNodeContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RestartNodeAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.KubernetesClusterRestartNodeContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.NetworkCloudKubernetesClusterPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -831,10 +831,10 @@ protected NetworkCloudStorageApplianceResource() { } public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string storageApplianceName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation DisableRemoteVendorManagement(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DisableRemoteVendorManagementAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation EnableRemoteVendorManagement(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.StorageApplianceEnableRemoteVendorManagementContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task EnableRemoteVendorManagementAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.StorageApplianceEnableRemoteVendorManagementContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation DisableRemoteVendorManagement(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DisableRemoteVendorManagementAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation EnableRemoteVendorManagement(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.StorageApplianceEnableRemoteVendorManagementContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> EnableRemoteVendorManagementAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.StorageApplianceEnableRemoteVendorManagementContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -1003,18 +1003,18 @@ protected NetworkCloudVirtualMachineResource() { } public virtual Azure.Response GetNetworkCloudVirtualMachineConsole(string consoleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetNetworkCloudVirtualMachineConsoleAsync(string consoleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.NetworkCloud.NetworkCloudVirtualMachineConsoleCollection GetNetworkCloudVirtualMachineConsoles() { throw null; } - public virtual Azure.ResourceManager.ArmOperation PowerOff(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.VirtualMachinePowerOffContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task PowerOffAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.VirtualMachinePowerOffContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Reimage(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task ReimageAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation PowerOff(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.VirtualMachinePowerOffContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> PowerOffAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.VirtualMachinePowerOffContent content = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Reimage(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ReimageAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Restart(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task RestartAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Restart(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RestartAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Start(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task StartAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Start(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> StartAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.NetworkCloudVirtualMachinePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NetworkCloud.Models.NetworkCloudVirtualMachinePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } @@ -1169,6 +1169,7 @@ public static partial class ArmNetworkCloudModelFactory public static Azure.ResourceManager.NetworkCloud.NetworkCloudL3NetworkData NetworkCloudL3NetworkData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.NetworkCloud.Models.ExtendedLocation extendedLocation = null, System.Collections.Generic.IEnumerable associatedResourceIds = null, Azure.Core.ResourceIdentifier clusterId = null, Azure.ResourceManager.NetworkCloud.Models.L3NetworkDetailedStatus? detailedStatus = default(Azure.ResourceManager.NetworkCloud.Models.L3NetworkDetailedStatus?), string detailedStatusMessage = null, System.Collections.Generic.IEnumerable hybridAksClustersAssociatedIds = null, Azure.ResourceManager.NetworkCloud.Models.HybridAksIpamEnabled? hybridAksIpamEnabled = default(Azure.ResourceManager.NetworkCloud.Models.HybridAksIpamEnabled?), Azure.ResourceManager.NetworkCloud.Models.HybridAksPluginType? hybridAksPluginType = default(Azure.ResourceManager.NetworkCloud.Models.HybridAksPluginType?), string interfaceName = null, Azure.ResourceManager.NetworkCloud.Models.IPAllocationType? ipAllocationType = default(Azure.ResourceManager.NetworkCloud.Models.IPAllocationType?), string ipv4ConnectedPrefix = null, string ipv6ConnectedPrefix = null, Azure.Core.ResourceIdentifier l3IsolationDomainId = null, Azure.ResourceManager.NetworkCloud.Models.L3NetworkProvisioningState? provisioningState = default(Azure.ResourceManager.NetworkCloud.Models.L3NetworkProvisioningState?), System.Collections.Generic.IEnumerable virtualMachinesAssociatedIds = null, long vlan = (long)0) { throw null; } public static Azure.ResourceManager.NetworkCloud.Models.NetworkCloudNetworkInterface NetworkCloudNetworkInterface(string address = null, Azure.ResourceManager.NetworkCloud.Models.DeviceConnectionType? deviceConnectionType = default(Azure.ResourceManager.NetworkCloud.Models.DeviceConnectionType?), string model = null, long? physicalSlot = default(long?), long? portCount = default(long?), long? portSpeed = default(long?), string vendor = null) { throw null; } public static Azure.ResourceManager.NetworkCloud.Models.NetworkCloudNic NetworkCloudNic(Azure.ResourceManager.NetworkCloud.Models.LldpNeighbor lldpNeighbor = null, string macAddress = null, string name = null) { throw null; } + public static Azure.ResourceManager.NetworkCloud.Models.NetworkCloudOperationStatusResult NetworkCloudOperationStatusResult(Azure.Core.ResourceIdentifier id = null, Azure.Core.ResourceIdentifier resourceId = null, string name = null, string status = null, float? percentComplete = default(float?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable operations = null, Azure.ResponseError error = null) { throw null; } public static Azure.ResourceManager.NetworkCloud.NetworkCloudRackData NetworkCloudRackData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.NetworkCloud.Models.ExtendedLocation extendedLocation = null, string availabilityZone = null, Azure.Core.ResourceIdentifier clusterId = null, Azure.ResourceManager.NetworkCloud.Models.RackDetailedStatus? detailedStatus = default(Azure.ResourceManager.NetworkCloud.Models.RackDetailedStatus?), string detailedStatusMessage = null, Azure.ResourceManager.NetworkCloud.Models.RackProvisioningState? provisioningState = default(Azure.ResourceManager.NetworkCloud.Models.RackProvisioningState?), string rackLocation = null, string rackSerialNumber = null, Azure.Core.ResourceIdentifier rackSkuId = null) { throw null; } public static Azure.ResourceManager.NetworkCloud.NetworkCloudRackSkuData NetworkCloudRackSkuData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IEnumerable computeMachines = null, System.Collections.Generic.IEnumerable controllerMachines = null, string description = null, long? maxClusterSlots = default(long?), Azure.ResourceManager.NetworkCloud.Models.RackSkuProvisioningState? provisioningState = default(Azure.ResourceManager.NetworkCloud.Models.RackSkuProvisioningState?), Azure.ResourceManager.NetworkCloud.Models.RackSkuType? rackType = default(Azure.ResourceManager.NetworkCloud.Models.RackSkuType?), System.Collections.Generic.IEnumerable storageAppliances = null, System.Collections.Generic.IEnumerable supportedRackSkuIds = null) { throw null; } public static Azure.ResourceManager.NetworkCloud.NetworkCloudStorageApplianceData NetworkCloudStorageApplianceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.NetworkCloud.Models.ExtendedLocation extendedLocation = null, Azure.ResourceManager.NetworkCloud.Models.AdministrativeCredentials administratorCredentials = null, long? capacity = default(long?), long? capacityUsed = default(long?), Azure.Core.ResourceIdentifier clusterId = null, Azure.ResourceManager.NetworkCloud.Models.StorageApplianceDetailedStatus? detailedStatus = default(Azure.ResourceManager.NetworkCloud.Models.StorageApplianceDetailedStatus?), string detailedStatusMessage = null, System.Net.IPAddress managementIPv4Address = null, Azure.ResourceManager.NetworkCloud.Models.StorageApplianceProvisioningState? provisioningState = default(Azure.ResourceManager.NetworkCloud.Models.StorageApplianceProvisioningState?), Azure.Core.ResourceIdentifier rackId = null, long rackSlot = (long)0, Azure.ResourceManager.NetworkCloud.Models.RemoteVendorManagementFeature? remoteVendorManagementFeature = default(Azure.ResourceManager.NetworkCloud.Models.RemoteVendorManagementFeature?), Azure.ResourceManager.NetworkCloud.Models.RemoteVendorManagementStatus? remoteVendorManagementStatus = default(Azure.ResourceManager.NetworkCloud.Models.RemoteVendorManagementStatus?), string serialNumber = null, string storageApplianceSkuId = null) { throw null; } @@ -2705,6 +2706,19 @@ internal NetworkCloudNic() { } public string MacAddress { get { throw null; } } public string Name { get { throw null; } } } + public partial class NetworkCloudOperationStatusResult + { + internal NetworkCloudOperationStatusResult() { } + public System.DateTimeOffset? EndOn { get { throw null; } } + public Azure.ResponseError Error { get { throw null; } } + public Azure.Core.ResourceIdentifier Id { get { throw null; } } + public string Name { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Operations { get { throw null; } } + public float? PercentComplete { get { throw null; } } + public Azure.Core.ResourceIdentifier ResourceId { get { throw null; } } + public System.DateTimeOffset? StartOn { get { throw null; } } + public string Status { get { throw null; } } + } public partial class NetworkCloudOSDisk { public NetworkCloudOSDisk(long diskSizeInGB) { } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudBareMetalMachineResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudBareMetalMachineResource.cs index 329a5ba66c87..e57c96e76bb8 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudBareMetalMachineResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudBareMetalMachineResource.cs @@ -149,9 +149,10 @@ public async Task Cordon_CordonBareMetalMachine() { Evacuate = BareMetalMachineEvacuate.True, }; - await networkCloudBareMetalMachine.CordonAsync(WaitUntil.Completed, content: content); + ArmOperation lro = await networkCloudBareMetalMachine.CordonAsync(WaitUntil.Completed, content: content); + NetworkCloudOperationStatusResult result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } // Power off bare metal machine @@ -180,9 +181,10 @@ public async Task PowerOff_PowerOffBareMetalMachine() { SkipShutdown = BareMetalMachineSkipShutdown.True, }; - await networkCloudBareMetalMachine.PowerOffAsync(WaitUntil.Completed, content: content); + ArmOperation lro = await networkCloudBareMetalMachine.PowerOffAsync(WaitUntil.Completed, content: content); + NetworkCloudOperationStatusResult result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } // Reimage bare metal machine @@ -207,9 +209,10 @@ public async Task Reimage_ReimageBareMetalMachine() NetworkCloudBareMetalMachineResource networkCloudBareMetalMachine = client.GetNetworkCloudBareMetalMachineResource(networkCloudBareMetalMachineResourceId); // invoke the operation - await networkCloudBareMetalMachine.ReimageAsync(WaitUntil.Completed); + ArmOperation lro = await networkCloudBareMetalMachine.ReimageAsync(WaitUntil.Completed); + NetworkCloudOperationStatusResult result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } // Replace bare metal machine @@ -245,9 +248,10 @@ public async Task Replace_ReplaceBareMetalMachine() MachineName = "name", SerialNumber = "BM1219XXX", }; - await networkCloudBareMetalMachine.ReplaceAsync(WaitUntil.Completed, content: content); + ArmOperation lro = await networkCloudBareMetalMachine.ReplaceAsync(WaitUntil.Completed, content: content); + NetworkCloudOperationStatusResult result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } // Restart bare metal machine @@ -272,9 +276,10 @@ public async Task Restart_RestartBareMetalMachine() NetworkCloudBareMetalMachineResource networkCloudBareMetalMachine = client.GetNetworkCloudBareMetalMachineResource(networkCloudBareMetalMachineResourceId); // invoke the operation - await networkCloudBareMetalMachine.RestartAsync(WaitUntil.Completed); + ArmOperation lro = await networkCloudBareMetalMachine.RestartAsync(WaitUntil.Completed); + NetworkCloudOperationStatusResult result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } // Run command on bare metal machine @@ -306,9 +311,10 @@ public async Task RunCommand_RunCommandOnBareMetalMachine() "--argument1","argument2" }, }; - await networkCloudBareMetalMachine.RunCommandAsync(WaitUntil.Completed, content); + ArmOperation lro = await networkCloudBareMetalMachine.RunCommandAsync(WaitUntil.Completed, content); + NetworkCloudOperationStatusResult result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } // Run data extraction on bare metal machine @@ -343,9 +349,10 @@ public async Task RunDataExtracts_RunDataExtractionOnBareMetalMachine() }, } }, 60); - await networkCloudBareMetalMachine.RunDataExtractsAsync(WaitUntil.Completed, content); + ArmOperation lro = await networkCloudBareMetalMachine.RunDataExtractsAsync(WaitUntil.Completed, content); + NetworkCloudOperationStatusResult result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } // Run and retrieve output from read only commands on bare metal machine. @@ -386,9 +393,10 @@ public async Task RunReadCommands_RunAndRetrieveOutputFromReadOnlyCommandsOnBare }, } }, 60); - await networkCloudBareMetalMachine.RunReadCommandsAsync(WaitUntil.Completed, content); + ArmOperation lro = await networkCloudBareMetalMachine.RunReadCommandsAsync(WaitUntil.Completed, content); + NetworkCloudOperationStatusResult result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } // Start bare metal machine @@ -413,9 +421,10 @@ public async Task Start_StartBareMetalMachine() NetworkCloudBareMetalMachineResource networkCloudBareMetalMachine = client.GetNetworkCloudBareMetalMachineResource(networkCloudBareMetalMachineResourceId); // invoke the operation - await networkCloudBareMetalMachine.StartAsync(WaitUntil.Completed); + ArmOperation lro = await networkCloudBareMetalMachine.StartAsync(WaitUntil.Completed); + NetworkCloudOperationStatusResult result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } // Uncordon bare metal machine @@ -440,9 +449,10 @@ public async Task Uncordon_UncordonBareMetalMachine() NetworkCloudBareMetalMachineResource networkCloudBareMetalMachine = client.GetNetworkCloudBareMetalMachineResource(networkCloudBareMetalMachineResourceId); // invoke the operation - await networkCloudBareMetalMachine.UncordonAsync(WaitUntil.Completed); + ArmOperation lro = await networkCloudBareMetalMachine.UncordonAsync(WaitUntil.Completed); + NetworkCloudOperationStatusResult result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } } } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudClusterResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudClusterResource.cs index 2182084fc7cc..96047885fff0 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudClusterResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudClusterResource.cs @@ -246,9 +246,10 @@ public async Task Deploy_DeployCluster() // invoke the operation ClusterDeployContent content = new ClusterDeployContent(); - await networkCloudCluster.DeployAsync(WaitUntil.Completed, content: content); + ArmOperation lro = await networkCloudCluster.DeployAsync(WaitUntil.Completed, content: content); + NetworkCloudOperationStatusResult result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } // Deploy cluster skipping validation @@ -280,9 +281,10 @@ public async Task Deploy_DeployClusterSkippingValidation() "bmmName1" }, }; - await networkCloudCluster.DeployAsync(WaitUntil.Completed, content: content); + ArmOperation lro = await networkCloudCluster.DeployAsync(WaitUntil.Completed, content: content); + NetworkCloudOperationStatusResult result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } // Update cluster version @@ -308,9 +310,10 @@ public async Task UpdateVersion_UpdateClusterVersion() // invoke the operation ClusterUpdateVersionContent content = new ClusterUpdateVersionContent("2.0"); - await networkCloudCluster.UpdateVersionAsync(WaitUntil.Completed, content); + ArmOperation lro = await networkCloudCluster.UpdateVersionAsync(WaitUntil.Completed, content); + NetworkCloudOperationStatusResult result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } } } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudKubernetesClusterResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudKubernetesClusterResource.cs index 66ed10483994..4b94c11a78ed 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudKubernetesClusterResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudKubernetesClusterResource.cs @@ -174,9 +174,10 @@ public async Task RestartNode_RestartAKubernetesClusterNode() // invoke the operation KubernetesClusterRestartNodeContent content = new KubernetesClusterRestartNodeContent("nodeName"); - await networkCloudKubernetesCluster.RestartNodeAsync(WaitUntil.Completed, content); + ArmOperation lro = await networkCloudKubernetesCluster.RestartNodeAsync(WaitUntil.Completed, content); + NetworkCloudOperationStatusResult result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } } } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudStorageApplianceResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudStorageApplianceResource.cs index 0a051eac34b0..db7cdf4478db 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudStorageApplianceResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudStorageApplianceResource.cs @@ -145,9 +145,10 @@ public async Task DisableRemoteVendorManagement_TurnOffRemoteVendorManagementFor NetworkCloudStorageApplianceResource networkCloudStorageAppliance = client.GetNetworkCloudStorageApplianceResource(networkCloudStorageApplianceResourceId); // invoke the operation - await networkCloudStorageAppliance.DisableRemoteVendorManagementAsync(WaitUntil.Completed); + ArmOperation lro = await networkCloudStorageAppliance.DisableRemoteVendorManagementAsync(WaitUntil.Completed); + NetworkCloudOperationStatusResult result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } // Turn on remote vendor management for storage appliance @@ -179,9 +180,10 @@ public async Task EnableRemoteVendorManagement_TurnOnRemoteVendorManagementForSt "10.0.0.0/24" }, }; - await networkCloudStorageAppliance.EnableRemoteVendorManagementAsync(WaitUntil.Completed, content: content); + ArmOperation lro = await networkCloudStorageAppliance.EnableRemoteVendorManagementAsync(WaitUntil.Completed, content: content); + NetworkCloudOperationStatusResult result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } } } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudVirtualMachineResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudVirtualMachineResource.cs index 0f3de344e766..fe0cb4c628ab 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudVirtualMachineResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudVirtualMachineResource.cs @@ -179,9 +179,10 @@ public async Task PowerOff_PowerOffVirtualMachine() { SkipShutdown = SkipShutdown.True, }; - await networkCloudVirtualMachine.PowerOffAsync(WaitUntil.Completed, content: content); + ArmOperation lro = await networkCloudVirtualMachine.PowerOffAsync(WaitUntil.Completed, content: content); + NetworkCloudOperationStatusResult result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } // Reimage virtual machine @@ -206,9 +207,10 @@ public async Task Reimage_ReimageVirtualMachine() NetworkCloudVirtualMachineResource networkCloudVirtualMachine = client.GetNetworkCloudVirtualMachineResource(networkCloudVirtualMachineResourceId); // invoke the operation - await networkCloudVirtualMachine.ReimageAsync(WaitUntil.Completed); + ArmOperation lro = await networkCloudVirtualMachine.ReimageAsync(WaitUntil.Completed); + NetworkCloudOperationStatusResult result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } // Restart virtual machine @@ -233,9 +235,10 @@ public async Task Restart_RestartVirtualMachine() NetworkCloudVirtualMachineResource networkCloudVirtualMachine = client.GetNetworkCloudVirtualMachineResource(networkCloudVirtualMachineResourceId); // invoke the operation - await networkCloudVirtualMachine.RestartAsync(WaitUntil.Completed); + ArmOperation lro = await networkCloudVirtualMachine.RestartAsync(WaitUntil.Completed); + NetworkCloudOperationStatusResult result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } // Start virtual machine @@ -260,9 +263,10 @@ public async Task Start_StartVirtualMachine() NetworkCloudVirtualMachineResource networkCloudVirtualMachine = client.GetNetworkCloudVirtualMachineResource(networkCloudVirtualMachineResourceId); // invoke the operation - await networkCloudVirtualMachine.StartAsync(WaitUntil.Completed); + ArmOperation lro = await networkCloudVirtualMachine.StartAsync(WaitUntil.Completed); + NetworkCloudOperationStatusResult result = lro.Value; - Console.WriteLine($"Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } } } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/ArmNetworkCloudModelFactory.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/ArmNetworkCloudModelFactory.cs index 83c85e2a6085..fcb41774c39a 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/ArmNetworkCloudModelFactory.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/ArmNetworkCloudModelFactory.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using System.Net; +using Azure; using Azure.Core; using Azure.ResourceManager.Models; using Azure.ResourceManager.NetworkCloud; @@ -715,6 +716,24 @@ public static NetworkCloudVolumeData NetworkCloudVolumeData(ResourceIdentifier i return new NetworkCloudVolumeData(id, name, resourceType, systemData, tags, location, extendedLocation, attachedTo?.ToList(), detailedStatus, detailedStatusMessage, provisioningState, serialNumber, sizeInMiB); } + /// Initializes a new instance of NetworkCloudOperationStatusResult. + /// Fully qualified ID for the async operation. + /// Fully qualified ID of the resource against which the original async operation was started. + /// Name of the async operation. + /// Operation status. + /// Percent of the operation that is complete. + /// The start time of the operation. + /// The end time of the operation. + /// The operations list. + /// If present, details of the operation error. + /// A new instance for mocking. + public static NetworkCloudOperationStatusResult NetworkCloudOperationStatusResult(ResourceIdentifier id = null, ResourceIdentifier resourceId = null, string name = null, string status = null, float? percentComplete = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, IEnumerable operations = null, ResponseError error = null) + { + operations ??= new List(); + + return new NetworkCloudOperationStatusResult(id, resourceId, name, status, percentComplete, startOn, endOn, operations?.ToList(), error); + } + /// Initializes a new instance of NetworkCloudBareMetalMachineKeySetData. /// The id. /// The name. diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/LongRunningOperation/NetworkCloudOperationStatusResultOperationSource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/LongRunningOperation/NetworkCloudOperationStatusResultOperationSource.cs new file mode 100644 index 000000000000..ceaf413a1b80 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/LongRunningOperation/NetworkCloudOperationStatusResultOperationSource.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager.NetworkCloud.Models; + +namespace Azure.ResourceManager.NetworkCloud +{ + internal class NetworkCloudOperationStatusResultOperationSource : IOperationSource + { + NetworkCloudOperationStatusResult IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + return NetworkCloudOperationStatusResult.DeserializeNetworkCloudOperationStatusResult(document.RootElement); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + return NetworkCloudOperationStatusResult.DeserializeNetworkCloudOperationStatusResult(document.RootElement); + } + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudOperationStatusResult.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudOperationStatusResult.Serialization.cs new file mode 100644 index 000000000000..7323972297ba --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudOperationStatusResult.Serialization.cs @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure; +using Azure.Core; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + public partial class NetworkCloudOperationStatusResult + { + internal static NetworkCloudOperationStatusResult DeserializeNetworkCloudOperationStatusResult(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional id = default; + Optional resourceId = default; + Optional name = default; + string status = default; + Optional percentComplete = default; + Optional startTime = default; + Optional endTime = default; + Optional> operations = default; + Optional error = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("resourceId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resourceId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("status"u8)) + { + status = property.Value.GetString(); + continue; + } + if (property.NameEquals("percentComplete"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + percentComplete = property.Value.GetSingle(); + continue; + } + if (property.NameEquals("startTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + startTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("endTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + endTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("operations"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(DeserializeNetworkCloudOperationStatusResult(item)); + } + operations = array; + continue; + } + if (property.NameEquals("error"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + error = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + } + return new NetworkCloudOperationStatusResult(id.Value, resourceId.Value, name.Value, status, Optional.ToNullable(percentComplete), Optional.ToNullable(startTime), Optional.ToNullable(endTime), Optional.ToList(operations), error.Value); + } + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudOperationStatusResult.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudOperationStatusResult.cs new file mode 100644 index 000000000000..cc4f67f61f03 --- /dev/null +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudOperationStatusResult.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure; +using Azure.Core; + +namespace Azure.ResourceManager.NetworkCloud.Models +{ + /// The current status of an async operation. + public partial class NetworkCloudOperationStatusResult + { + /// Initializes a new instance of NetworkCloudOperationStatusResult. + /// Operation status. + /// is null. + internal NetworkCloudOperationStatusResult(string status) + { + Argument.AssertNotNull(status, nameof(status)); + + Status = status; + Operations = new ChangeTrackingList(); + } + + /// Initializes a new instance of NetworkCloudOperationStatusResult. + /// Fully qualified ID for the async operation. + /// Fully qualified ID of the resource against which the original async operation was started. + /// Name of the async operation. + /// Operation status. + /// Percent of the operation that is complete. + /// The start time of the operation. + /// The end time of the operation. + /// The operations list. + /// If present, details of the operation error. + internal NetworkCloudOperationStatusResult(ResourceIdentifier id, ResourceIdentifier resourceId, string name, string status, float? percentComplete, DateTimeOffset? startOn, DateTimeOffset? endOn, IReadOnlyList operations, ResponseError error) + { + Id = id; + ResourceId = resourceId; + Name = name; + Status = status; + PercentComplete = percentComplete; + StartOn = startOn; + EndOn = endOn; + Operations = operations; + Error = error; + } + + /// Fully qualified ID for the async operation. + public ResourceIdentifier Id { get; } + /// Fully qualified ID of the resource against which the original async operation was started. + public ResourceIdentifier ResourceId { get; } + /// Name of the async operation. + public string Name { get; } + /// Operation status. + public string Status { get; } + /// Percent of the operation that is complete. + public float? PercentComplete { get; } + /// The start time of the operation. + public DateTimeOffset? StartOn { get; } + /// The end time of the operation. + public DateTimeOffset? EndOn { get; } + /// The operations list. + public IReadOnlyList Operations { get; } + /// If present, details of the operation error. + public ResponseError Error { get; } + } +} diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineResource.cs index 26677fdcc92a..d326e9564987 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudBareMetalMachineResource.cs @@ -245,16 +245,16 @@ public virtual ArmOperation Update(WaitUnt /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The request body. /// The cancellation token to use. - public virtual async Task CordonAsync(WaitUntil waitUntil, BareMetalMachineCordonContent content = null, CancellationToken cancellationToken = default) + public virtual async Task> CordonAsync(WaitUntil waitUntil, BareMetalMachineCordonContent content = null, CancellationToken cancellationToken = default) { using var scope = _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics.CreateScope("NetworkCloudBareMetalMachineResource.Cordon"); scope.Start(); try { var response = await _networkCloudBareMetalMachineBareMetalMachinesRestClient.CordonAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetworkCloudArmOperation(_networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateCordonRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateCordonRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -280,16 +280,16 @@ public virtual async Task CordonAsync(WaitUntil waitUntil, BareMet /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The request body. /// The cancellation token to use. - public virtual ArmOperation Cordon(WaitUntil waitUntil, BareMetalMachineCordonContent content = null, CancellationToken cancellationToken = default) + public virtual ArmOperation Cordon(WaitUntil waitUntil, BareMetalMachineCordonContent content = null, CancellationToken cancellationToken = default) { using var scope = _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics.CreateScope("NetworkCloudBareMetalMachineResource.Cordon"); scope.Start(); try { var response = _networkCloudBareMetalMachineBareMetalMachinesRestClient.Cordon(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - var operation = new NetworkCloudArmOperation(_networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateCordonRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateCordonRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) @@ -315,16 +315,16 @@ public virtual ArmOperation Cordon(WaitUntil waitUntil, BareMetalMachineCordonCo /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The request body. /// The cancellation token to use. - public virtual async Task PowerOffAsync(WaitUntil waitUntil, BareMetalMachinePowerOffContent content = null, CancellationToken cancellationToken = default) + public virtual async Task> PowerOffAsync(WaitUntil waitUntil, BareMetalMachinePowerOffContent content = null, CancellationToken cancellationToken = default) { using var scope = _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics.CreateScope("NetworkCloudBareMetalMachineResource.PowerOff"); scope.Start(); try { var response = await _networkCloudBareMetalMachineBareMetalMachinesRestClient.PowerOffAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetworkCloudArmOperation(_networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreatePowerOffRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreatePowerOffRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -350,16 +350,16 @@ public virtual async Task PowerOffAsync(WaitUntil waitUntil, BareM /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The request body. /// The cancellation token to use. - public virtual ArmOperation PowerOff(WaitUntil waitUntil, BareMetalMachinePowerOffContent content = null, CancellationToken cancellationToken = default) + public virtual ArmOperation PowerOff(WaitUntil waitUntil, BareMetalMachinePowerOffContent content = null, CancellationToken cancellationToken = default) { using var scope = _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics.CreateScope("NetworkCloudBareMetalMachineResource.PowerOff"); scope.Start(); try { var response = _networkCloudBareMetalMachineBareMetalMachinesRestClient.PowerOff(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - var operation = new NetworkCloudArmOperation(_networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreatePowerOffRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreatePowerOffRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) @@ -384,16 +384,16 @@ public virtual ArmOperation PowerOff(WaitUntil waitUntil, BareMetalMachinePowerO /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task ReimageAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task> ReimageAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { using var scope = _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics.CreateScope("NetworkCloudBareMetalMachineResource.Reimage"); scope.Start(); try { var response = await _networkCloudBareMetalMachineBareMetalMachinesRestClient.ReimageAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetworkCloudArmOperation(_networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateReimageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateReimageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -418,16 +418,16 @@ public virtual async Task ReimageAsync(WaitUntil waitUntil, Cancel /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual ArmOperation Reimage(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation Reimage(WaitUntil waitUntil, CancellationToken cancellationToken = default) { using var scope = _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics.CreateScope("NetworkCloudBareMetalMachineResource.Reimage"); scope.Start(); try { var response = _networkCloudBareMetalMachineBareMetalMachinesRestClient.Reimage(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new NetworkCloudArmOperation(_networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateReimageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateReimageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) @@ -453,16 +453,16 @@ public virtual ArmOperation Reimage(WaitUntil waitUntil, CancellationToken cance /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The request body. /// The cancellation token to use. - public virtual async Task ReplaceAsync(WaitUntil waitUntil, BareMetalMachineReplaceContent content = null, CancellationToken cancellationToken = default) + public virtual async Task> ReplaceAsync(WaitUntil waitUntil, BareMetalMachineReplaceContent content = null, CancellationToken cancellationToken = default) { using var scope = _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics.CreateScope("NetworkCloudBareMetalMachineResource.Replace"); scope.Start(); try { var response = await _networkCloudBareMetalMachineBareMetalMachinesRestClient.ReplaceAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetworkCloudArmOperation(_networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateReplaceRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateReplaceRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -488,16 +488,16 @@ public virtual async Task ReplaceAsync(WaitUntil waitUntil, BareMe /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The request body. /// The cancellation token to use. - public virtual ArmOperation Replace(WaitUntil waitUntil, BareMetalMachineReplaceContent content = null, CancellationToken cancellationToken = default) + public virtual ArmOperation Replace(WaitUntil waitUntil, BareMetalMachineReplaceContent content = null, CancellationToken cancellationToken = default) { using var scope = _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics.CreateScope("NetworkCloudBareMetalMachineResource.Replace"); scope.Start(); try { var response = _networkCloudBareMetalMachineBareMetalMachinesRestClient.Replace(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - var operation = new NetworkCloudArmOperation(_networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateReplaceRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateReplaceRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) @@ -522,16 +522,16 @@ public virtual ArmOperation Replace(WaitUntil waitUntil, BareMetalMachineReplace /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task RestartAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task> RestartAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { using var scope = _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics.CreateScope("NetworkCloudBareMetalMachineResource.Restart"); scope.Start(); try { var response = await _networkCloudBareMetalMachineBareMetalMachinesRestClient.RestartAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetworkCloudArmOperation(_networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateRestartRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateRestartRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -556,16 +556,16 @@ public virtual async Task RestartAsync(WaitUntil waitUntil, Cancel /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual ArmOperation Restart(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation Restart(WaitUntil waitUntil, CancellationToken cancellationToken = default) { using var scope = _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics.CreateScope("NetworkCloudBareMetalMachineResource.Restart"); scope.Start(); try { var response = _networkCloudBareMetalMachineBareMetalMachinesRestClient.Restart(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new NetworkCloudArmOperation(_networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateRestartRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateRestartRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) @@ -592,7 +592,7 @@ public virtual ArmOperation Restart(WaitUntil waitUntil, CancellationToken cance /// The request body. /// The cancellation token to use. /// is null. - public virtual async Task RunCommandAsync(WaitUntil waitUntil, BareMetalMachineRunCommandContent content, CancellationToken cancellationToken = default) + public virtual async Task> RunCommandAsync(WaitUntil waitUntil, BareMetalMachineRunCommandContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); @@ -601,9 +601,9 @@ public virtual async Task RunCommandAsync(WaitUntil waitUntil, Bar try { var response = await _networkCloudBareMetalMachineBareMetalMachinesRestClient.RunCommandAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetworkCloudArmOperation(_networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateRunCommandRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateRunCommandRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -630,7 +630,7 @@ public virtual async Task RunCommandAsync(WaitUntil waitUntil, Bar /// The request body. /// The cancellation token to use. /// is null. - public virtual ArmOperation RunCommand(WaitUntil waitUntil, BareMetalMachineRunCommandContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation RunCommand(WaitUntil waitUntil, BareMetalMachineRunCommandContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); @@ -639,9 +639,9 @@ public virtual ArmOperation RunCommand(WaitUntil waitUntil, BareMetalMachineRunC try { var response = _networkCloudBareMetalMachineBareMetalMachinesRestClient.RunCommand(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - var operation = new NetworkCloudArmOperation(_networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateRunCommandRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateRunCommandRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) @@ -668,7 +668,7 @@ public virtual ArmOperation RunCommand(WaitUntil waitUntil, BareMetalMachineRunC /// The request body. /// The cancellation token to use. /// is null. - public virtual async Task RunDataExtractsAsync(WaitUntil waitUntil, BareMetalMachineRunDataExtractsContent content, CancellationToken cancellationToken = default) + public virtual async Task> RunDataExtractsAsync(WaitUntil waitUntil, BareMetalMachineRunDataExtractsContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); @@ -677,9 +677,9 @@ public virtual async Task RunDataExtractsAsync(WaitUntil waitUntil try { var response = await _networkCloudBareMetalMachineBareMetalMachinesRestClient.RunDataExtractsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetworkCloudArmOperation(_networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateRunDataExtractsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateRunDataExtractsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -706,7 +706,7 @@ public virtual async Task RunDataExtractsAsync(WaitUntil waitUntil /// The request body. /// The cancellation token to use. /// is null. - public virtual ArmOperation RunDataExtracts(WaitUntil waitUntil, BareMetalMachineRunDataExtractsContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation RunDataExtracts(WaitUntil waitUntil, BareMetalMachineRunDataExtractsContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); @@ -715,9 +715,9 @@ public virtual ArmOperation RunDataExtracts(WaitUntil waitUntil, BareMetalMachin try { var response = _networkCloudBareMetalMachineBareMetalMachinesRestClient.RunDataExtracts(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - var operation = new NetworkCloudArmOperation(_networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateRunDataExtractsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateRunDataExtractsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) @@ -744,7 +744,7 @@ public virtual ArmOperation RunDataExtracts(WaitUntil waitUntil, BareMetalMachin /// The request body. /// The cancellation token to use. /// is null. - public virtual async Task RunReadCommandsAsync(WaitUntil waitUntil, BareMetalMachineRunReadCommandsContent content, CancellationToken cancellationToken = default) + public virtual async Task> RunReadCommandsAsync(WaitUntil waitUntil, BareMetalMachineRunReadCommandsContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); @@ -753,9 +753,9 @@ public virtual async Task RunReadCommandsAsync(WaitUntil waitUntil try { var response = await _networkCloudBareMetalMachineBareMetalMachinesRestClient.RunReadCommandsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetworkCloudArmOperation(_networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateRunReadCommandsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateRunReadCommandsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -782,7 +782,7 @@ public virtual async Task RunReadCommandsAsync(WaitUntil waitUntil /// The request body. /// The cancellation token to use. /// is null. - public virtual ArmOperation RunReadCommands(WaitUntil waitUntil, BareMetalMachineRunReadCommandsContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation RunReadCommands(WaitUntil waitUntil, BareMetalMachineRunReadCommandsContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); @@ -791,9 +791,9 @@ public virtual ArmOperation RunReadCommands(WaitUntil waitUntil, BareMetalMachin try { var response = _networkCloudBareMetalMachineBareMetalMachinesRestClient.RunReadCommands(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - var operation = new NetworkCloudArmOperation(_networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateRunReadCommandsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateRunReadCommandsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) @@ -818,16 +818,16 @@ public virtual ArmOperation RunReadCommands(WaitUntil waitUntil, BareMetalMachin /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task StartAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task> StartAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { using var scope = _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics.CreateScope("NetworkCloudBareMetalMachineResource.Start"); scope.Start(); try { var response = await _networkCloudBareMetalMachineBareMetalMachinesRestClient.StartAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetworkCloudArmOperation(_networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateStartRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateStartRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -852,16 +852,16 @@ public virtual async Task StartAsync(WaitUntil waitUntil, Cancella /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual ArmOperation Start(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation Start(WaitUntil waitUntil, CancellationToken cancellationToken = default) { using var scope = _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics.CreateScope("NetworkCloudBareMetalMachineResource.Start"); scope.Start(); try { var response = _networkCloudBareMetalMachineBareMetalMachinesRestClient.Start(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new NetworkCloudArmOperation(_networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateStartRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateStartRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) @@ -886,16 +886,16 @@ public virtual ArmOperation Start(WaitUntil waitUntil, CancellationToken cancell /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task UncordonAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task> UncordonAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { using var scope = _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics.CreateScope("NetworkCloudBareMetalMachineResource.Uncordon"); scope.Start(); try { var response = await _networkCloudBareMetalMachineBareMetalMachinesRestClient.UncordonAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetworkCloudArmOperation(_networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateUncordonRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateUncordonRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -920,16 +920,16 @@ public virtual async Task UncordonAsync(WaitUntil waitUntil, Cance /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual ArmOperation Uncordon(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation Uncordon(WaitUntil waitUntil, CancellationToken cancellationToken = default) { using var scope = _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics.CreateScope("NetworkCloudBareMetalMachineResource.Uncordon"); scope.Start(); try { var response = _networkCloudBareMetalMachineBareMetalMachinesRestClient.Uncordon(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new NetworkCloudArmOperation(_networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateUncordonRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudBareMetalMachineBareMetalMachinesClientDiagnostics, Pipeline, _networkCloudBareMetalMachineBareMetalMachinesRestClient.CreateUncordonRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterResource.cs index dcdc5ed420ab..e1669745e9e5 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudClusterResource.cs @@ -472,16 +472,16 @@ public virtual ArmOperation Update(WaitUntil waitUn /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The request body. /// The cancellation token to use. - public virtual async Task DeployAsync(WaitUntil waitUntil, ClusterDeployContent content = null, CancellationToken cancellationToken = default) + public virtual async Task> DeployAsync(WaitUntil waitUntil, ClusterDeployContent content = null, CancellationToken cancellationToken = default) { using var scope = _networkCloudClusterClustersClientDiagnostics.CreateScope("NetworkCloudClusterResource.Deploy"); scope.Start(); try { var response = await _networkCloudClusterClustersRestClient.DeployAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetworkCloudArmOperation(_networkCloudClusterClustersClientDiagnostics, Pipeline, _networkCloudClusterClustersRestClient.CreateDeployRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudClusterClustersClientDiagnostics, Pipeline, _networkCloudClusterClustersRestClient.CreateDeployRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -507,16 +507,16 @@ public virtual async Task DeployAsync(WaitUntil waitUntil, Cluster /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The request body. /// The cancellation token to use. - public virtual ArmOperation Deploy(WaitUntil waitUntil, ClusterDeployContent content = null, CancellationToken cancellationToken = default) + public virtual ArmOperation Deploy(WaitUntil waitUntil, ClusterDeployContent content = null, CancellationToken cancellationToken = default) { using var scope = _networkCloudClusterClustersClientDiagnostics.CreateScope("NetworkCloudClusterResource.Deploy"); scope.Start(); try { var response = _networkCloudClusterClustersRestClient.Deploy(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - var operation = new NetworkCloudArmOperation(_networkCloudClusterClustersClientDiagnostics, Pipeline, _networkCloudClusterClustersRestClient.CreateDeployRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudClusterClustersClientDiagnostics, Pipeline, _networkCloudClusterClustersRestClient.CreateDeployRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) @@ -543,7 +543,7 @@ public virtual ArmOperation Deploy(WaitUntil waitUntil, ClusterDeployContent con /// The request body. /// The cancellation token to use. /// is null. - public virtual async Task UpdateVersionAsync(WaitUntil waitUntil, ClusterUpdateVersionContent content, CancellationToken cancellationToken = default) + public virtual async Task> UpdateVersionAsync(WaitUntil waitUntil, ClusterUpdateVersionContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); @@ -552,9 +552,9 @@ public virtual async Task UpdateVersionAsync(WaitUntil waitUntil, try { var response = await _networkCloudClusterClustersRestClient.UpdateVersionAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetworkCloudArmOperation(_networkCloudClusterClustersClientDiagnostics, Pipeline, _networkCloudClusterClustersRestClient.CreateUpdateVersionRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudClusterClustersClientDiagnostics, Pipeline, _networkCloudClusterClustersRestClient.CreateUpdateVersionRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -581,7 +581,7 @@ public virtual async Task UpdateVersionAsync(WaitUntil waitUntil, /// The request body. /// The cancellation token to use. /// is null. - public virtual ArmOperation UpdateVersion(WaitUntil waitUntil, ClusterUpdateVersionContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation UpdateVersion(WaitUntil waitUntil, ClusterUpdateVersionContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); @@ -590,9 +590,9 @@ public virtual ArmOperation UpdateVersion(WaitUntil waitUntil, ClusterUpdateVers try { var response = _networkCloudClusterClustersRestClient.UpdateVersion(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - var operation = new NetworkCloudArmOperation(_networkCloudClusterClustersClientDiagnostics, Pipeline, _networkCloudClusterClustersRestClient.CreateUpdateVersionRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudClusterClustersClientDiagnostics, Pipeline, _networkCloudClusterClustersRestClient.CreateUpdateVersionRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudKubernetesClusterResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudKubernetesClusterResource.cs index 5c195e54e802..e4e93223528b 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudKubernetesClusterResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudKubernetesClusterResource.cs @@ -367,7 +367,7 @@ public virtual ArmOperation Update(WaitUn /// The request body. /// The cancellation token to use. /// is null. - public virtual async Task RestartNodeAsync(WaitUntil waitUntil, KubernetesClusterRestartNodeContent content, CancellationToken cancellationToken = default) + public virtual async Task> RestartNodeAsync(WaitUntil waitUntil, KubernetesClusterRestartNodeContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); @@ -376,9 +376,9 @@ public virtual async Task RestartNodeAsync(WaitUntil waitUntil, Ku try { var response = await _networkCloudKubernetesClusterKubernetesClustersRestClient.RestartNodeAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetworkCloudArmOperation(_networkCloudKubernetesClusterKubernetesClustersClientDiagnostics, Pipeline, _networkCloudKubernetesClusterKubernetesClustersRestClient.CreateRestartNodeRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudKubernetesClusterKubernetesClustersClientDiagnostics, Pipeline, _networkCloudKubernetesClusterKubernetesClustersRestClient.CreateRestartNodeRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -405,7 +405,7 @@ public virtual async Task RestartNodeAsync(WaitUntil waitUntil, Ku /// The request body. /// The cancellation token to use. /// is null. - public virtual ArmOperation RestartNode(WaitUntil waitUntil, KubernetesClusterRestartNodeContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation RestartNode(WaitUntil waitUntil, KubernetesClusterRestartNodeContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); @@ -414,9 +414,9 @@ public virtual ArmOperation RestartNode(WaitUntil waitUntil, KubernetesClusterRe try { var response = _networkCloudKubernetesClusterKubernetesClustersRestClient.RestartNode(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - var operation = new NetworkCloudArmOperation(_networkCloudKubernetesClusterKubernetesClustersClientDiagnostics, Pipeline, _networkCloudKubernetesClusterKubernetesClustersRestClient.CreateRestartNodeRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudKubernetesClusterKubernetesClustersClientDiagnostics, Pipeline, _networkCloudKubernetesClusterKubernetesClustersRestClient.CreateRestartNodeRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudStorageApplianceResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudStorageApplianceResource.cs index 2768334487d2..f046532f69cd 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudStorageApplianceResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudStorageApplianceResource.cs @@ -244,16 +244,16 @@ public virtual ArmOperation Update(WaitUnt /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task DisableRemoteVendorManagementAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task> DisableRemoteVendorManagementAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { using var scope = _networkCloudStorageApplianceStorageAppliancesClientDiagnostics.CreateScope("NetworkCloudStorageApplianceResource.DisableRemoteVendorManagement"); scope.Start(); try { var response = await _networkCloudStorageApplianceStorageAppliancesRestClient.DisableRemoteVendorManagementAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetworkCloudArmOperation(_networkCloudStorageApplianceStorageAppliancesClientDiagnostics, Pipeline, _networkCloudStorageApplianceStorageAppliancesRestClient.CreateDisableRemoteVendorManagementRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudStorageApplianceStorageAppliancesClientDiagnostics, Pipeline, _networkCloudStorageApplianceStorageAppliancesRestClient.CreateDisableRemoteVendorManagementRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -278,16 +278,16 @@ public virtual async Task DisableRemoteVendorManagementAsync(WaitU /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual ArmOperation DisableRemoteVendorManagement(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation DisableRemoteVendorManagement(WaitUntil waitUntil, CancellationToken cancellationToken = default) { using var scope = _networkCloudStorageApplianceStorageAppliancesClientDiagnostics.CreateScope("NetworkCloudStorageApplianceResource.DisableRemoteVendorManagement"); scope.Start(); try { var response = _networkCloudStorageApplianceStorageAppliancesRestClient.DisableRemoteVendorManagement(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new NetworkCloudArmOperation(_networkCloudStorageApplianceStorageAppliancesClientDiagnostics, Pipeline, _networkCloudStorageApplianceStorageAppliancesRestClient.CreateDisableRemoteVendorManagementRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudStorageApplianceStorageAppliancesClientDiagnostics, Pipeline, _networkCloudStorageApplianceStorageAppliancesRestClient.CreateDisableRemoteVendorManagementRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) @@ -313,16 +313,16 @@ public virtual ArmOperation DisableRemoteVendorManagement(WaitUntil waitUntil, C /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The request body. /// The cancellation token to use. - public virtual async Task EnableRemoteVendorManagementAsync(WaitUntil waitUntil, StorageApplianceEnableRemoteVendorManagementContent content = null, CancellationToken cancellationToken = default) + public virtual async Task> EnableRemoteVendorManagementAsync(WaitUntil waitUntil, StorageApplianceEnableRemoteVendorManagementContent content = null, CancellationToken cancellationToken = default) { using var scope = _networkCloudStorageApplianceStorageAppliancesClientDiagnostics.CreateScope("NetworkCloudStorageApplianceResource.EnableRemoteVendorManagement"); scope.Start(); try { var response = await _networkCloudStorageApplianceStorageAppliancesRestClient.EnableRemoteVendorManagementAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetworkCloudArmOperation(_networkCloudStorageApplianceStorageAppliancesClientDiagnostics, Pipeline, _networkCloudStorageApplianceStorageAppliancesRestClient.CreateEnableRemoteVendorManagementRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudStorageApplianceStorageAppliancesClientDiagnostics, Pipeline, _networkCloudStorageApplianceStorageAppliancesRestClient.CreateEnableRemoteVendorManagementRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -348,16 +348,16 @@ public virtual async Task EnableRemoteVendorManagementAsync(WaitUn /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The request body. /// The cancellation token to use. - public virtual ArmOperation EnableRemoteVendorManagement(WaitUntil waitUntil, StorageApplianceEnableRemoteVendorManagementContent content = null, CancellationToken cancellationToken = default) + public virtual ArmOperation EnableRemoteVendorManagement(WaitUntil waitUntil, StorageApplianceEnableRemoteVendorManagementContent content = null, CancellationToken cancellationToken = default) { using var scope = _networkCloudStorageApplianceStorageAppliancesClientDiagnostics.CreateScope("NetworkCloudStorageApplianceResource.EnableRemoteVendorManagement"); scope.Start(); try { var response = _networkCloudStorageApplianceStorageAppliancesRestClient.EnableRemoteVendorManagement(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - var operation = new NetworkCloudArmOperation(_networkCloudStorageApplianceStorageAppliancesClientDiagnostics, Pipeline, _networkCloudStorageApplianceStorageAppliancesRestClient.CreateEnableRemoteVendorManagementRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudStorageApplianceStorageAppliancesClientDiagnostics, Pipeline, _networkCloudStorageApplianceStorageAppliancesRestClient.CreateEnableRemoteVendorManagementRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineResource.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineResource.cs index 28b2baf6f351..fee8d99c22c6 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineResource.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/NetworkCloudVirtualMachineResource.cs @@ -366,16 +366,16 @@ public virtual ArmOperation Update(WaitUntil /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The request body. /// The cancellation token to use. - public virtual async Task PowerOffAsync(WaitUntil waitUntil, VirtualMachinePowerOffContent content = null, CancellationToken cancellationToken = default) + public virtual async Task> PowerOffAsync(WaitUntil waitUntil, VirtualMachinePowerOffContent content = null, CancellationToken cancellationToken = default) { using var scope = _networkCloudVirtualMachineVirtualMachinesClientDiagnostics.CreateScope("NetworkCloudVirtualMachineResource.PowerOff"); scope.Start(); try { var response = await _networkCloudVirtualMachineVirtualMachinesRestClient.PowerOffAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NetworkCloudArmOperation(_networkCloudVirtualMachineVirtualMachinesClientDiagnostics, Pipeline, _networkCloudVirtualMachineVirtualMachinesRestClient.CreatePowerOffRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudVirtualMachineVirtualMachinesClientDiagnostics, Pipeline, _networkCloudVirtualMachineVirtualMachinesRestClient.CreatePowerOffRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -401,16 +401,16 @@ public virtual async Task PowerOffAsync(WaitUntil waitUntil, Virtu /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The request body. /// The cancellation token to use. - public virtual ArmOperation PowerOff(WaitUntil waitUntil, VirtualMachinePowerOffContent content = null, CancellationToken cancellationToken = default) + public virtual ArmOperation PowerOff(WaitUntil waitUntil, VirtualMachinePowerOffContent content = null, CancellationToken cancellationToken = default) { using var scope = _networkCloudVirtualMachineVirtualMachinesClientDiagnostics.CreateScope("NetworkCloudVirtualMachineResource.PowerOff"); scope.Start(); try { var response = _networkCloudVirtualMachineVirtualMachinesRestClient.PowerOff(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - var operation = new NetworkCloudArmOperation(_networkCloudVirtualMachineVirtualMachinesClientDiagnostics, Pipeline, _networkCloudVirtualMachineVirtualMachinesRestClient.CreatePowerOffRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudVirtualMachineVirtualMachinesClientDiagnostics, Pipeline, _networkCloudVirtualMachineVirtualMachinesRestClient.CreatePowerOffRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) @@ -435,16 +435,16 @@ public virtual ArmOperation PowerOff(WaitUntil waitUntil, VirtualMachinePowerOff /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task ReimageAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task> ReimageAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { using var scope = _networkCloudVirtualMachineVirtualMachinesClientDiagnostics.CreateScope("NetworkCloudVirtualMachineResource.Reimage"); scope.Start(); try { var response = await _networkCloudVirtualMachineVirtualMachinesRestClient.ReimageAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetworkCloudArmOperation(_networkCloudVirtualMachineVirtualMachinesClientDiagnostics, Pipeline, _networkCloudVirtualMachineVirtualMachinesRestClient.CreateReimageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudVirtualMachineVirtualMachinesClientDiagnostics, Pipeline, _networkCloudVirtualMachineVirtualMachinesRestClient.CreateReimageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -469,16 +469,16 @@ public virtual async Task ReimageAsync(WaitUntil waitUntil, Cancel /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual ArmOperation Reimage(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation Reimage(WaitUntil waitUntil, CancellationToken cancellationToken = default) { using var scope = _networkCloudVirtualMachineVirtualMachinesClientDiagnostics.CreateScope("NetworkCloudVirtualMachineResource.Reimage"); scope.Start(); try { var response = _networkCloudVirtualMachineVirtualMachinesRestClient.Reimage(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new NetworkCloudArmOperation(_networkCloudVirtualMachineVirtualMachinesClientDiagnostics, Pipeline, _networkCloudVirtualMachineVirtualMachinesRestClient.CreateReimageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudVirtualMachineVirtualMachinesClientDiagnostics, Pipeline, _networkCloudVirtualMachineVirtualMachinesRestClient.CreateReimageRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) @@ -503,16 +503,16 @@ public virtual ArmOperation Reimage(WaitUntil waitUntil, CancellationToken cance /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task RestartAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task> RestartAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { using var scope = _networkCloudVirtualMachineVirtualMachinesClientDiagnostics.CreateScope("NetworkCloudVirtualMachineResource.Restart"); scope.Start(); try { var response = await _networkCloudVirtualMachineVirtualMachinesRestClient.RestartAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetworkCloudArmOperation(_networkCloudVirtualMachineVirtualMachinesClientDiagnostics, Pipeline, _networkCloudVirtualMachineVirtualMachinesRestClient.CreateRestartRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudVirtualMachineVirtualMachinesClientDiagnostics, Pipeline, _networkCloudVirtualMachineVirtualMachinesRestClient.CreateRestartRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -537,16 +537,16 @@ public virtual async Task RestartAsync(WaitUntil waitUntil, Cancel /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual ArmOperation Restart(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation Restart(WaitUntil waitUntil, CancellationToken cancellationToken = default) { using var scope = _networkCloudVirtualMachineVirtualMachinesClientDiagnostics.CreateScope("NetworkCloudVirtualMachineResource.Restart"); scope.Start(); try { var response = _networkCloudVirtualMachineVirtualMachinesRestClient.Restart(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new NetworkCloudArmOperation(_networkCloudVirtualMachineVirtualMachinesClientDiagnostics, Pipeline, _networkCloudVirtualMachineVirtualMachinesRestClient.CreateRestartRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudVirtualMachineVirtualMachinesClientDiagnostics, Pipeline, _networkCloudVirtualMachineVirtualMachinesRestClient.CreateRestartRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) @@ -571,16 +571,16 @@ public virtual ArmOperation Restart(WaitUntil waitUntil, CancellationToken cance /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual async Task StartAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual async Task> StartAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { using var scope = _networkCloudVirtualMachineVirtualMachinesClientDiagnostics.CreateScope("NetworkCloudVirtualMachineResource.Start"); scope.Start(); try { var response = await _networkCloudVirtualMachineVirtualMachinesRestClient.StartAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new NetworkCloudArmOperation(_networkCloudVirtualMachineVirtualMachinesClientDiagnostics, Pipeline, _networkCloudVirtualMachineVirtualMachinesRestClient.CreateStartRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudVirtualMachineVirtualMachinesClientDiagnostics, Pipeline, _networkCloudVirtualMachineVirtualMachinesRestClient.CreateStartRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; } catch (Exception e) @@ -605,16 +605,16 @@ public virtual async Task StartAsync(WaitUntil waitUntil, Cancella /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The cancellation token to use. - public virtual ArmOperation Start(WaitUntil waitUntil, CancellationToken cancellationToken = default) + public virtual ArmOperation Start(WaitUntil waitUntil, CancellationToken cancellationToken = default) { using var scope = _networkCloudVirtualMachineVirtualMachinesClientDiagnostics.CreateScope("NetworkCloudVirtualMachineResource.Start"); scope.Start(); try { var response = _networkCloudVirtualMachineVirtualMachinesRestClient.Start(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - var operation = new NetworkCloudArmOperation(_networkCloudVirtualMachineVirtualMachinesClientDiagnostics, Pipeline, _networkCloudVirtualMachineVirtualMachinesRestClient.CreateStartRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + var operation = new NetworkCloudArmOperation(new NetworkCloudOperationStatusResultOperationSource(), _networkCloudVirtualMachineVirtualMachinesClientDiagnostics, Pipeline, _networkCloudVirtualMachineVirtualMachinesRestClient.CreateStartRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); + operation.WaitForCompletion(cancellationToken); return operation; } catch (Exception e) diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BareMetalMachinesRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BareMetalMachinesRestOperations.cs index c25f3684b291..9f3ff52538c8 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BareMetalMachinesRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/BareMetalMachinesRestOperations.cs @@ -383,6 +383,7 @@ public async Task CordonAsync(string subscriptionId, string resourceGr await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -409,6 +410,7 @@ public Response Cordon(string subscriptionId, string resourceGroupName, string b _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -463,6 +465,7 @@ public async Task PowerOffAsync(string subscriptionId, string resource await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -489,6 +492,7 @@ public Response PowerOff(string subscriptionId, string resourceGroupName, string _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -535,6 +539,7 @@ public async Task ReimageAsync(string subscriptionId, string resourceG await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -560,6 +565,7 @@ public Response Reimage(string subscriptionId, string resourceGroupName, string _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -614,6 +620,7 @@ public async Task ReplaceAsync(string subscriptionId, string resourceG await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -640,6 +647,7 @@ public Response Replace(string subscriptionId, string resourceGroupName, string _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -686,6 +694,7 @@ public async Task RestartAsync(string subscriptionId, string resourceG await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -711,6 +720,7 @@ public Response Restart(string subscriptionId, string resourceGroupName, string _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -763,6 +773,7 @@ public async Task RunCommandAsync(string subscriptionId, string resour await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -790,6 +801,7 @@ public Response RunCommand(string subscriptionId, string resourceGroupName, stri _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -842,6 +854,7 @@ public async Task RunDataExtractsAsync(string subscriptionId, string r await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -869,6 +882,7 @@ public Response RunDataExtracts(string subscriptionId, string resourceGroupName, _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -921,6 +935,7 @@ public async Task RunReadCommandsAsync(string subscriptionId, string r await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -948,6 +963,7 @@ public Response RunReadCommands(string subscriptionId, string resourceGroupName, _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -994,6 +1010,7 @@ public async Task StartAsync(string subscriptionId, string resourceGro await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -1019,6 +1036,7 @@ public Response Start(string subscriptionId, string resourceGroupName, string ba _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -1065,6 +1083,7 @@ public async Task UncordonAsync(string subscriptionId, string resource await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -1090,6 +1109,7 @@ public Response Uncordon(string subscriptionId, string resourceGroupName, string _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ClustersRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ClustersRestOperations.cs index 71e457446468..b0fc397b769e 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ClustersRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/ClustersRestOperations.cs @@ -533,6 +533,7 @@ public async Task DeployAsync(string subscriptionId, string resourceGr await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -559,6 +560,7 @@ public Response Deploy(string subscriptionId, string resourceGroupName, string c _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -611,6 +613,7 @@ public async Task UpdateVersionAsync(string subscriptionId, string res await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -638,6 +641,7 @@ public Response UpdateVersion(string subscriptionId, string resourceGroupName, s _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/KubernetesClustersRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/KubernetesClustersRestOperations.cs index 4670154cc1ae..c9221f8fc351 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/KubernetesClustersRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/KubernetesClustersRestOperations.cs @@ -531,6 +531,7 @@ public async Task RestartNodeAsync(string subscriptionId, string resou await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -558,6 +559,7 @@ public Response RestartNode(string subscriptionId, string resourceGroupName, str _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/StorageAppliancesRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/StorageAppliancesRestOperations.cs index 127745b64e36..4eab29060254 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/StorageAppliancesRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/StorageAppliancesRestOperations.cs @@ -375,6 +375,7 @@ public async Task DisableRemoteVendorManagementAsync(string subscripti await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -400,6 +401,7 @@ public Response DisableRemoteVendorManagement(string subscriptionId, string reso _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -454,6 +456,7 @@ public async Task EnableRemoteVendorManagementAsync(string subscriptio await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -480,6 +483,7 @@ public Response EnableRemoteVendorManagement(string subscriptionId, string resou _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/VirtualMachinesRestOperations.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/VirtualMachinesRestOperations.cs index 48b99590654b..a24b014901a9 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/VirtualMachinesRestOperations.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/RestOperations/VirtualMachinesRestOperations.cs @@ -533,6 +533,7 @@ public async Task PowerOffAsync(string subscriptionId, string resource await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -559,6 +560,7 @@ public Response PowerOff(string subscriptionId, string resourceGroupName, string _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -605,6 +607,7 @@ public async Task ReimageAsync(string subscriptionId, string resourceG await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -630,6 +633,7 @@ public Response Reimage(string subscriptionId, string resourceGroupName, string _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -676,6 +680,7 @@ public async Task RestartAsync(string subscriptionId, string resourceG await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -701,6 +706,7 @@ public Response Restart(string subscriptionId, string resourceGroupName, string _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -747,6 +753,7 @@ public async Task StartAsync(string subscriptionId, string resourceGro await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; @@ -772,6 +779,7 @@ public Response Start(string subscriptionId, string resourceGroupName, string vi _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { + case 200: case 202: case 204: return message.Response; diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/autorest.md b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/autorest.md index 40626a89af26..b129540c2e0b 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/autorest.md +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/autorest.md @@ -15,7 +15,7 @@ skip-csproj: true modelerfour: flatten-payloads: false -#mgmt-debug: +# mgmt-debug: # show-serialized-names: true # 'tenantId': 'uuid' cannot be used globally as it break our list clusters API where tenantId sometimes is an empty string @@ -129,6 +129,7 @@ prepend-rp-prefix: - TrunkedNetwork - VirtualMachine - Volume + - OperationStatusResult rename-rules: CPU: Cpu From 594196b21356a53f683a6d4ff4463f98a0c274a5 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 3 Aug 2023 06:43:37 -0700 Subject: [PATCH 30/54] Update AutoRest C# version to 3.0.0-beta.20230803.1 (#38003) * Update Generator Version 3.0.0-beta.20230803.1 * Update SDK codes * Update SDK codes * Update SDK codes * Update SDK codes --- eng/Packages.Data.props | 2 +- eng/emitter-package.json | 2 +- .../src/Generated/Docs/HarvestData.xml | 48 + .../src/Generated/Docs/PlantingData.xml | 24 + .../Generated/Samples/Samples_HarvestData.cs | 48 + .../Generated/Samples/Samples_PlantingData.cs | 24 + .../Docs/QuestionAnsweringAuthoringClient.xml | 14 + ...amples_QuestionAnsweringAuthoringClient.cs | 14 + .../Generated/Docs/DeviceManagementClient.xml | 14 + .../Samples/Samples_DeviceManagementClient.cs | 18 + .../Generated/Docs/ClinicalMatchingClient.xml | 2 + .../Samples/Samples_ClinicalMatchingClient.cs | 1 + .../src/Generated/Docs/OpenAIClient.xml | 10 + .../Generated/Samples/Samples_OpenAIClient.cs | 5 + .../Generated/Docs/PurviewResourceSetRule.xml | 52 + .../Samples/Samples_PurviewResourceSetRule.cs | 52 + .../Generated/Docs/PurviewResourceSetRule.xml | 52 + .../Samples/Samples_PurviewResourceSetRule.cs | 52 + .../Generated/Docs/PurviewCatalogClient.xml | 10 + .../src/Generated/Docs/PurviewCollections.xml | 148 + .../src/Generated/Docs/PurviewEntities.xml | 222 ++ .../src/Generated/Docs/PurviewGlossaries.xml | 952 +++++- .../Generated/Docs/PurviewRelationships.xml | 84 + .../src/Generated/Docs/PurviewTypes.xml | 2568 +++++++++++++++-- .../Samples/Samples_PurviewCatalogClient.cs | 12 + .../Samples/Samples_PurviewCollections.cs | 148 + .../Samples/Samples_PurviewEntities.cs | 222 ++ .../Samples/Samples_PurviewGlossaries.cs | 962 +++++- .../Samples/Samples_PurviewRelationships.cs | 96 + .../Generated/Samples/Samples_PurviewTypes.cs | 2400 +++++++++++++-- .../src/Generated/Docs/PurviewScanClient.xml | 838 +++++- .../Samples/Samples_PurviewScanClient.cs | 850 ++++++ 32 files changed, 9227 insertions(+), 719 deletions(-) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 10f398f94172..c2aa8c50a6c3 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -174,7 +174,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 704845a6ab22..469365b81783 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,6 +1,6 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20230801.2" + "@azure-tools/typespec-csharp": "0.2.0-beta.20230803.1" } } diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/HarvestData.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/HarvestData.xml index 50e798da22ca..179cab5df4b7 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/HarvestData.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/HarvestData.xml @@ -212,6 +212,30 @@ var data = new { harvestProductDetails = new[] { new { productName = "", + area = new { + unit = "", + value = 123.45d, + }, + totalYield = new { + unit = "", + value = 123.45d, + }, + avgYield = new { + unit = "", + value = 123.45d, + }, + avgMoisture = new { + unit = "", + value = 123.45d, + }, + totalWetMass = new { + unit = "", + value = 123.45d, + }, + avgWetMass = new { + unit = "", + value = 123.45d, + }, } }, area = new { @@ -328,6 +352,30 @@ var data = new { harvestProductDetails = new[] { new { productName = "", + area = new { + unit = "", + value = 123.45d, + }, + totalYield = new { + unit = "", + value = 123.45d, + }, + avgYield = new { + unit = "", + value = 123.45d, + }, + avgMoisture = new { + unit = "", + value = 123.45d, + }, + totalWetMass = new { + unit = "", + value = 123.45d, + }, + avgWetMass = new { + unit = "", + value = 123.45d, + }, } }, area = new { diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/PlantingData.xml b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/PlantingData.xml index 5a25bf217a3e..2e6392a6a889 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/PlantingData.xml +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/Docs/PlantingData.xml @@ -126,6 +126,18 @@ var data = new { plantingProductDetails = new[] { new { productName = "", + area = new { + unit = "", + value = 123.45d, + }, + totalMaterial = new { + unit = "", + value = 123.45d, + }, + avgMaterial = new { + unit = "", + value = 123.45d, + }, } }, area = new { @@ -218,6 +230,18 @@ var data = new { plantingProductDetails = new[] { new { productName = "", + area = new { + unit = "", + value = 123.45d, + }, + totalMaterial = new { + unit = "", + value = 123.45d, + }, + avgMaterial = new { + unit = "", + value = 123.45d, + }, } }, area = new { diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_HarvestData.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_HarvestData.cs index 49e0a48d7136..998f00531567 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_HarvestData.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_HarvestData.cs @@ -292,6 +292,30 @@ public void Example_CreateOrUpdate_AllParameters() harvestProductDetails = new[] { new { productName = "", + area = new { + unit = "", + value = 123.45d, + }, + totalYield = new { + unit = "", + value = 123.45d, + }, + avgYield = new { + unit = "", + value = 123.45d, + }, + avgMoisture = new { + unit = "", + value = 123.45d, + }, + totalWetMass = new { + unit = "", + value = 123.45d, + }, + avgWetMass = new { + unit = "", + value = 123.45d, + }, } }, area = new @@ -419,6 +443,30 @@ public async Task Example_CreateOrUpdate_AllParameters_Async() harvestProductDetails = new[] { new { productName = "", + area = new { + unit = "", + value = 123.45d, + }, + totalYield = new { + unit = "", + value = 123.45d, + }, + avgYield = new { + unit = "", + value = 123.45d, + }, + avgMoisture = new { + unit = "", + value = 123.45d, + }, + totalWetMass = new { + unit = "", + value = 123.45d, + }, + avgWetMass = new { + unit = "", + value = 123.45d, + }, } }, area = new diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_PlantingData.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_PlantingData.cs index da73e7a99a30..f4c339a465b7 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_PlantingData.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/tests/Generated/Samples/Samples_PlantingData.cs @@ -175,6 +175,18 @@ public void Example_CreateOrUpdate_AllParameters() plantingProductDetails = new[] { new { productName = "", + area = new { + unit = "", + value = 123.45d, + }, + totalMaterial = new { + unit = "", + value = 123.45d, + }, + avgMaterial = new { + unit = "", + value = 123.45d, + }, } }, area = new @@ -275,6 +287,18 @@ public async Task Example_CreateOrUpdate_AllParameters_Async() plantingProductDetails = new[] { new { productName = "", + area = new { + unit = "", + value = 123.45d, + }, + totalMaterial = new { + unit = "", + value = 123.45d, + }, + avgMaterial = new { + unit = "", + value = 123.45d, + }, } }, area = new diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Docs/QuestionAnsweringAuthoringClient.xml b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Docs/QuestionAnsweringAuthoringClient.xml index a66b6e41b7ea..727b8b5fc973 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Docs/QuestionAnsweringAuthoringClient.xml +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/Generated/Docs/QuestionAnsweringAuthoringClient.xml @@ -1144,6 +1144,13 @@ var data = new { activeLearningSuggestions = new[] { new { clusterHead = "", + suggestedQuestions = new[] { + new { + question = "", + userSuggestedCount = 1234, + autoSuggestedCount = 1234, + } + }, } }, } @@ -1259,6 +1266,13 @@ var data = new { activeLearningSuggestions = new[] { new { clusterHead = "", + suggestedQuestions = new[] { + new { + question = "", + userSuggestedCount = 1234, + autoSuggestedCount = 1234, + } + }, } }, } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/tests/Generated/Samples/Samples_QuestionAnsweringAuthoringClient.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/tests/Generated/Samples/Samples_QuestionAnsweringAuthoringClient.cs index de63192a864e..e1f214c3286c 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/tests/Generated/Samples/Samples_QuestionAnsweringAuthoringClient.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/tests/Generated/Samples/Samples_QuestionAnsweringAuthoringClient.cs @@ -1351,6 +1351,13 @@ public void Example_Import_AllParameters() activeLearningSuggestions = new[] { new { clusterHead = "", + suggestedQuestions = new[] { + new { + question = "", + userSuggestedCount = 1234, + autoSuggestedCount = 1234, + } + }, } }, } @@ -1466,6 +1473,13 @@ public async Task Example_Import_AllParameters_Async() activeLearningSuggestions = new[] { new { clusterHead = "", + suggestedQuestions = new[] { + new { + question = "", + userSuggestedCount = 1234, + autoSuggestedCount = 1234, + } + }, } }, } diff --git a/sdk/deviceupdate/Azure.IoT.DeviceUpdate/src/Generated/Docs/DeviceManagementClient.xml b/sdk/deviceupdate/Azure.IoT.DeviceUpdate/src/Generated/Docs/DeviceManagementClient.xml index 9db3ea297373..f50a0025334d 100644 --- a/sdk/deviceupdate/Azure.IoT.DeviceUpdate/src/Generated/Docs/DeviceManagementClient.xml +++ b/sdk/deviceupdate/Azure.IoT.DeviceUpdate/src/Generated/Docs/DeviceManagementClient.xml @@ -565,6 +565,13 @@ var data = new { isCanceled = true, isRetried = true, rollbackPolicy = new { + update = new { + updateId = new { + provider = "", + name = "", + version = "", + }, + }, failure = new { devicesFailedPercentage = 1234, devicesFailedCount = 1234, @@ -652,6 +659,13 @@ var data = new { isCanceled = true, isRetried = true, rollbackPolicy = new { + update = new { + updateId = new { + provider = "", + name = "", + version = "", + }, + }, failure = new { devicesFailedPercentage = 1234, devicesFailedCount = 1234, diff --git a/sdk/deviceupdate/Azure.IoT.DeviceUpdate/tests/Generated/Samples/Samples_DeviceManagementClient.cs b/sdk/deviceupdate/Azure.IoT.DeviceUpdate/tests/Generated/Samples/Samples_DeviceManagementClient.cs index 742a41cbd2be..bb55a61f73a4 100644 --- a/sdk/deviceupdate/Azure.IoT.DeviceUpdate/tests/Generated/Samples/Samples_DeviceManagementClient.cs +++ b/sdk/deviceupdate/Azure.IoT.DeviceUpdate/tests/Generated/Samples/Samples_DeviceManagementClient.cs @@ -895,6 +895,15 @@ public void Example_CreateOrUpdateDeployment_AllParameters() isRetried = true, rollbackPolicy = new { + update = new + { + updateId = new + { + provider = "", + name = "", + version = "", + }, + }, failure = new { devicesFailedPercentage = 1234, @@ -992,6 +1001,15 @@ public async Task Example_CreateOrUpdateDeployment_AllParameters_Async() isRetried = true, rollbackPolicy = new { + update = new + { + updateId = new + { + provider = "", + name = "", + version = "", + }, + }, failure = new { devicesFailedPercentage = 1234, diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Docs/ClinicalMatchingClient.xml b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Docs/ClinicalMatchingClient.xml index 6829ce2eb059..c2588a0df089 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Docs/ClinicalMatchingClient.xml +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/Docs/ClinicalMatchingClient.xml @@ -83,6 +83,7 @@ var trialMatcherData = new TrialMatcherData(new PatientRecord[] AcceptedAgeRange = new AcceptedAgeRange() { MinimumAge = new AcceptedAge(AgeUnit.Years, 3.14f), + MaximumAge = new AcceptedAge(AgeUnit.Years, 3.14f), }, }, } @@ -236,6 +237,7 @@ var trialMatcherData = new TrialMatcherData(new PatientRecord[] AcceptedAgeRange = new AcceptedAgeRange() { MinimumAge = new AcceptedAge(AgeUnit.Years, 3.14f), + MaximumAge = new AcceptedAge(AgeUnit.Years, 3.14f), }, }, } diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/tests/Generated/Samples/Samples_ClinicalMatchingClient.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/tests/Generated/Samples/Samples_ClinicalMatchingClient.cs index 92068c243138..69b3ff71b768 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/tests/Generated/Samples/Samples_ClinicalMatchingClient.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/tests/Generated/Samples/Samples_ClinicalMatchingClient.cs @@ -561,6 +561,7 @@ public async Task Example_MatchTrials_Convenience_Async() AcceptedAgeRange = new AcceptedAgeRange() { MinimumAge = new AcceptedAge(AgeUnit.Years, 3.14f), + MaximumAge = new AcceptedAge(AgeUnit.Years, 3.14f), }, }, } diff --git a/sdk/openai/Azure.AI.OpenAI/src/Generated/Docs/OpenAIClient.xml b/sdk/openai/Azure.AI.OpenAI/src/Generated/Docs/OpenAIClient.xml index a45c18b1a16d..cc12717b11a6 100644 --- a/sdk/openai/Azure.AI.OpenAI/src/Generated/Docs/OpenAIClient.xml +++ b/sdk/openai/Azure.AI.OpenAI/src/Generated/Docs/OpenAIClient.xml @@ -126,6 +126,11 @@ var chatCompletionsOptions = new ChatCompletionsOptions(new ChatMessage[] Parameters = BinaryData.FromString(""), } }, + FunctionCall = new FunctionDefinition("") +{ + Description = "", + Parameters = BinaryData.FromString(""), + }, MaxTokens = 1234, Temperature = 3.14f, NucleusSamplingFactor = 3.14f, @@ -165,6 +170,11 @@ var chatCompletionsOptions = new ChatCompletionsOptions(new ChatMessage[] Parameters = BinaryData.FromString(""), } }, + FunctionCall = new FunctionDefinition("") +{ + Description = "", + Parameters = BinaryData.FromString(""), + }, MaxTokens = 1234, Temperature = 3.14f, NucleusSamplingFactor = 3.14f, diff --git a/sdk/openai/Azure.AI.OpenAI/tests/Generated/Samples/Samples_OpenAIClient.cs b/sdk/openai/Azure.AI.OpenAI/tests/Generated/Samples/Samples_OpenAIClient.cs index eeb1aa2fbdae..74b21f27b07b 100644 --- a/sdk/openai/Azure.AI.OpenAI/tests/Generated/Samples/Samples_OpenAIClient.cs +++ b/sdk/openai/Azure.AI.OpenAI/tests/Generated/Samples/Samples_OpenAIClient.cs @@ -87,6 +87,11 @@ public async Task Example_GetChatCompletions_Convenience_Async() Parameters = BinaryData.FromString(""), } }, + FunctionCall = new FunctionDefinition("") + { + Description = "", + Parameters = BinaryData.FromString(""), + }, MaxTokens = 1234, Temperature = 3.14f, NucleusSamplingFactor = 3.14f, diff --git a/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/Docs/PurviewResourceSetRule.xml b/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/Docs/PurviewResourceSetRule.xml index b049c15da2d5..c41035842cca 100644 --- a/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/Docs/PurviewResourceSetRule.xml +++ b/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/Docs/PurviewResourceSetRule.xml @@ -286,9 +286,35 @@ var data = new { description = "", disabled = true, disableRecursiveReplacerApplication = true, + doNotReplaceRegex = new { + maxDigits = 1234, + maxLetters = 1234, + minDashes = 1234, + minDigits = 1234, + minDigitsOrLetters = 1234, + minDots = 1234, + minHex = 1234, + minLetters = 1234, + minUnderscores = 1234, + options = 1234, + regexStr = "", + }, lastUpdatedTimestamp = 1234L, modifiedBy = "", name = "", + regex = new { + maxDigits = 1234, + maxLetters = 1234, + minDashes = 1234, + minDigits = 1234, + minDigitsOrLetters = 1234, + minDots = 1234, + minHex = 1234, + minLetters = 1234, + minUnderscores = 1234, + options = 1234, + regexStr = "", + }, replaceWith = "", } }, @@ -499,9 +525,35 @@ var data = new { description = "", disabled = true, disableRecursiveReplacerApplication = true, + doNotReplaceRegex = new { + maxDigits = 1234, + maxLetters = 1234, + minDashes = 1234, + minDigits = 1234, + minDigitsOrLetters = 1234, + minDots = 1234, + minHex = 1234, + minLetters = 1234, + minUnderscores = 1234, + options = 1234, + regexStr = "", + }, lastUpdatedTimestamp = 1234L, modifiedBy = "", name = "", + regex = new { + maxDigits = 1234, + maxLetters = 1234, + minDashes = 1234, + minDigits = 1234, + minDigitsOrLetters = 1234, + minDots = 1234, + minHex = 1234, + minLetters = 1234, + minUnderscores = 1234, + options = 1234, + regexStr = "", + }, replaceWith = "", } }, diff --git a/sdk/purview/Azure.Analytics.Purview.Account/tests/Generated/Samples/Samples_PurviewResourceSetRule.cs b/sdk/purview/Azure.Analytics.Purview.Account/tests/Generated/Samples/Samples_PurviewResourceSetRule.cs index eb04a976e1bd..0b2e722f27d9 100644 --- a/sdk/purview/Azure.Analytics.Purview.Account/tests/Generated/Samples/Samples_PurviewResourceSetRule.cs +++ b/sdk/purview/Azure.Analytics.Purview.Account/tests/Generated/Samples/Samples_PurviewResourceSetRule.cs @@ -336,9 +336,35 @@ public void Example_CreateOrUpdateResourceSetRule_AllParameters() description = "", disabled = true, disableRecursiveReplacerApplication = true, + doNotReplaceRegex = new { + maxDigits = 1234, + maxLetters = 1234, + minDashes = 1234, + minDigits = 1234, + minDigitsOrLetters = 1234, + minDots = 1234, + minHex = 1234, + minLetters = 1234, + minUnderscores = 1234, + options = 1234, + regexStr = "", + }, lastUpdatedTimestamp = 1234L, modifiedBy = "", name = "", + regex = new { + maxDigits = 1234, + maxLetters = 1234, + minDashes = 1234, + minDigits = 1234, + minDigitsOrLetters = 1234, + minDots = 1234, + minHex = 1234, + minLetters = 1234, + minUnderscores = 1234, + options = 1234, + regexStr = "", + }, replaceWith = "", } }, @@ -554,9 +580,35 @@ public async Task Example_CreateOrUpdateResourceSetRule_AllParameters_Async() description = "", disabled = true, disableRecursiveReplacerApplication = true, + doNotReplaceRegex = new { + maxDigits = 1234, + maxLetters = 1234, + minDashes = 1234, + minDigits = 1234, + minDigitsOrLetters = 1234, + minDots = 1234, + minHex = 1234, + minLetters = 1234, + minUnderscores = 1234, + options = 1234, + regexStr = "", + }, lastUpdatedTimestamp = 1234L, modifiedBy = "", name = "", + regex = new { + maxDigits = 1234, + maxLetters = 1234, + minDashes = 1234, + minDigits = 1234, + minDigitsOrLetters = 1234, + minDots = 1234, + minHex = 1234, + minLetters = 1234, + minUnderscores = 1234, + options = 1234, + regexStr = "", + }, replaceWith = "", } }, diff --git a/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewResourceSetRule.xml b/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewResourceSetRule.xml index b049c15da2d5..c41035842cca 100644 --- a/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewResourceSetRule.xml +++ b/sdk/purview/Azure.Analytics.Purview.Administration/src/Generated/Docs/PurviewResourceSetRule.xml @@ -286,9 +286,35 @@ var data = new { description = "", disabled = true, disableRecursiveReplacerApplication = true, + doNotReplaceRegex = new { + maxDigits = 1234, + maxLetters = 1234, + minDashes = 1234, + minDigits = 1234, + minDigitsOrLetters = 1234, + minDots = 1234, + minHex = 1234, + minLetters = 1234, + minUnderscores = 1234, + options = 1234, + regexStr = "", + }, lastUpdatedTimestamp = 1234L, modifiedBy = "", name = "", + regex = new { + maxDigits = 1234, + maxLetters = 1234, + minDashes = 1234, + minDigits = 1234, + minDigitsOrLetters = 1234, + minDots = 1234, + minHex = 1234, + minLetters = 1234, + minUnderscores = 1234, + options = 1234, + regexStr = "", + }, replaceWith = "", } }, @@ -499,9 +525,35 @@ var data = new { description = "", disabled = true, disableRecursiveReplacerApplication = true, + doNotReplaceRegex = new { + maxDigits = 1234, + maxLetters = 1234, + minDashes = 1234, + minDigits = 1234, + minDigitsOrLetters = 1234, + minDots = 1234, + minHex = 1234, + minLetters = 1234, + minUnderscores = 1234, + options = 1234, + regexStr = "", + }, lastUpdatedTimestamp = 1234L, modifiedBy = "", name = "", + regex = new { + maxDigits = 1234, + maxLetters = 1234, + minDashes = 1234, + minDigits = 1234, + minDigitsOrLetters = 1234, + minDots = 1234, + minHex = 1234, + minLetters = 1234, + minUnderscores = 1234, + options = 1234, + regexStr = "", + }, replaceWith = "", } }, diff --git a/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewResourceSetRule.cs b/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewResourceSetRule.cs index 7373bdbd3f05..8a1e5720b9f7 100644 --- a/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewResourceSetRule.cs +++ b/sdk/purview/Azure.Analytics.Purview.Administration/tests/Generated/Samples/Samples_PurviewResourceSetRule.cs @@ -336,9 +336,35 @@ public void Example_CreateOrUpdateResourceSetRule_AllParameters() description = "", disabled = true, disableRecursiveReplacerApplication = true, + doNotReplaceRegex = new { + maxDigits = 1234, + maxLetters = 1234, + minDashes = 1234, + minDigits = 1234, + minDigitsOrLetters = 1234, + minDots = 1234, + minHex = 1234, + minLetters = 1234, + minUnderscores = 1234, + options = 1234, + regexStr = "", + }, lastUpdatedTimestamp = 1234L, modifiedBy = "", name = "", + regex = new { + maxDigits = 1234, + maxLetters = 1234, + minDashes = 1234, + minDigits = 1234, + minDigitsOrLetters = 1234, + minDots = 1234, + minHex = 1234, + minLetters = 1234, + minUnderscores = 1234, + options = 1234, + regexStr = "", + }, replaceWith = "", } }, @@ -554,9 +580,35 @@ public async Task Example_CreateOrUpdateResourceSetRule_AllParameters_Async() description = "", disabled = true, disableRecursiveReplacerApplication = true, + doNotReplaceRegex = new { + maxDigits = 1234, + maxLetters = 1234, + minDashes = 1234, + minDigits = 1234, + minDigitsOrLetters = 1234, + minDots = 1234, + minHex = 1234, + minLetters = 1234, + minUnderscores = 1234, + options = 1234, + regexStr = "", + }, lastUpdatedTimestamp = 1234L, modifiedBy = "", name = "", + regex = new { + maxDigits = 1234, + maxLetters = 1234, + minDashes = 1234, + minDigits = 1234, + minDigitsOrLetters = 1234, + minDots = 1234, + minHex = 1234, + minLetters = 1234, + minUnderscores = 1234, + options = 1234, + regexStr = "", + }, replaceWith = "", } }, diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewCatalogClient.xml b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewCatalogClient.xml index 3d32c0808440..5bbc01db73e9 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewCatalogClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewCatalogClient.xml @@ -38,6 +38,11 @@ var data = new { assetTypes = new[] { "" }, + facet = new { + count = 1234, + facet = "", + sort = new {}, + }, }, }; @@ -121,6 +126,11 @@ var data = new { assetTypes = new[] { "" }, + facet = new { + count = 1234, + facet = "", + sort = new {}, + }, }, }; diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewCollections.xml b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewCollections.xml index ac693bc0c4fa..5ab2d6479cef 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewCollections.xml +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewCollections.xml @@ -107,6 +107,29 @@ var data = new { businessAttributes = new { key = new {}, }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, createTime = 123.45f, createdBy = "", customAttributes = new { @@ -118,6 +141,20 @@ var data = new { labels = new[] { "" }, + meanings = new[] { + new { + confidence = 1234, + createdBy = "", + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DISCOVERED", + steward = "", + termGuid = "", + } + }, provenanceType = 123.45f, proxy = true, relationshipAttributes = new { @@ -323,6 +360,29 @@ var data = new { businessAttributes = new { key = new {}, }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, createTime = 123.45f, createdBy = "", customAttributes = new { @@ -334,6 +394,20 @@ var data = new { labels = new[] { "" }, + meanings = new[] { + new { + confidence = 1234, + createdBy = "", + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DISCOVERED", + steward = "", + termGuid = "", + } + }, provenanceType = 123.45f, proxy = true, relationshipAttributes = new { @@ -541,6 +615,29 @@ var data = new { businessAttributes = new { key = new {}, }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, createTime = 123.45f, createdBy = "", customAttributes = new { @@ -552,6 +649,20 @@ var data = new { labels = new[] { "" }, + meanings = new[] { + new { + confidence = 1234, + createdBy = "", + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DISCOVERED", + steward = "", + termGuid = "", + } + }, provenanceType = 123.45f, proxy = true, relationshipAttributes = new { @@ -759,6 +870,29 @@ var data = new { businessAttributes = new { key = new {}, }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, createTime = 123.45f, createdBy = "", customAttributes = new { @@ -770,6 +904,20 @@ var data = new { labels = new[] { "" }, + meanings = new[] { + new { + confidence = 1234, + createdBy = "", + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DISCOVERED", + steward = "", + termGuid = "", + } + }, provenanceType = 123.45f, proxy = true, relationshipAttributes = new { diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewEntities.xml b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewEntities.xml index 0053ea79c7d7..106a5804c668 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewEntities.xml +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewEntities.xml @@ -107,6 +107,29 @@ var data = new { businessAttributes = new { key = new {}, }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, createTime = 123.45f, createdBy = "", customAttributes = new { @@ -118,6 +141,20 @@ var data = new { labels = new[] { "" }, + meanings = new[] { + new { + confidence = 1234, + createdBy = "", + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DISCOVERED", + steward = "", + termGuid = "", + } + }, provenanceType = 123.45f, proxy = true, relationshipAttributes = new { @@ -323,6 +360,29 @@ var data = new { businessAttributes = new { key = new {}, }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, createTime = 123.45f, createdBy = "", customAttributes = new { @@ -334,6 +394,20 @@ var data = new { labels = new[] { "" }, + meanings = new[] { + new { + confidence = 1234, + createdBy = "", + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DISCOVERED", + steward = "", + termGuid = "", + } + }, provenanceType = 123.45f, proxy = true, relationshipAttributes = new { @@ -741,6 +815,29 @@ var data = new { businessAttributes = new { key = new {}, }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, createTime = 123.45f, createdBy = "", customAttributes = new { @@ -752,6 +849,20 @@ var data = new { labels = new[] { "" }, + meanings = new[] { + new { + confidence = 1234, + createdBy = "", + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DISCOVERED", + steward = "", + termGuid = "", + } + }, provenanceType = 123.45f, proxy = true, relationshipAttributes = new { @@ -959,6 +1070,29 @@ var data = new { businessAttributes = new { key = new {}, }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, createTime = 123.45f, createdBy = "", customAttributes = new { @@ -970,6 +1104,20 @@ var data = new { labels = new[] { "" }, + meanings = new[] { + new { + confidence = 1234, + createdBy = "", + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DISCOVERED", + steward = "", + termGuid = "", + } + }, provenanceType = 123.45f, proxy = true, relationshipAttributes = new { @@ -2407,6 +2555,29 @@ var data = new { businessAttributes = new { key = new {}, }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, createTime = 123.45f, createdBy = "", customAttributes = new { @@ -2418,6 +2589,20 @@ var data = new { labels = new[] { "" }, + meanings = new[] { + new { + confidence = 1234, + createdBy = "", + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DISCOVERED", + steward = "", + termGuid = "", + } + }, provenanceType = 123.45f, proxy = true, relationshipAttributes = new { @@ -2623,6 +2808,29 @@ var data = new { businessAttributes = new { key = new {}, }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, createTime = 123.45f, createdBy = "", customAttributes = new { @@ -2634,6 +2842,20 @@ var data = new { labels = new[] { "" }, + meanings = new[] { + new { + confidence = 1234, + createdBy = "", + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DISCOVERED", + steward = "", + termGuid = "", + } + }, provenanceType = 123.45f, proxy = true, relationshipAttributes = new { diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewGlossaries.xml b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewGlossaries.xml index f7c970aa0ad2..f76f485a0206 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewGlossaries.xml +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewGlossaries.xml @@ -187,6 +187,23 @@ var data = new { templateName = new[] { new {} }, + anchor = new { + displayText = "", + glossaryGuid = "", + relationGuid = "", + }, + antonyms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, createTime = 123.45f, createdBy = "", updateTime = 123.45f, @@ -220,6 +237,13 @@ var data = new { entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -248,10 +272,177 @@ var data = new { status = "DRAFT", } }, + classifies = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, examples = new[] { "" }, + isA = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + preferredTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + preferredToTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + replacedBy = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + replacementTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + seeAlso = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + synonyms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + translatedTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + translationTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, usage = "", + validValues = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + validValuesFor = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, longDescription = "", name = "", qualifiedName = "", @@ -288,6 +479,13 @@ var data = new { entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -439,6 +637,23 @@ var data = new { templateName = new[] { new {} }, + anchor = new { + displayText = "", + glossaryGuid = "", + relationGuid = "", + }, + antonyms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, createTime = 123.45f, createdBy = "", updateTime = 123.45f, @@ -472,6 +687,13 @@ var data = new { entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -500,58 +722,232 @@ var data = new { status = "DRAFT", } }, + classifies = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, examples = new[] { "" }, - usage = "", - longDescription = "", - name = "", - qualifiedName = "", - shortDescription = "", - lastModifiedTS = "", - guid = "", - }, - }, - categories = new[] { - new { - categoryGuid = "", - description = "", - displayText = "", - parentCategoryGuid = "", - relationGuid = "", - } - }, - language = "", - terms = new[] { - new { - description = "", - displayText = "", - expression = "", - relationGuid = "", - source = "", - status = "DRAFT", - steward = "", - termGuid = "", - } - }, - usage = "", - classifications = new[] { - new { - entityGuid = "", - entityStatus = "ACTIVE", - removePropagationsOnEntityDelete = true, - source = "", - sourceDetails = new { - key = new {}, - }, - attributes = new { - key = new {}, - }, - typeName = "", - lastModifiedTS = "", - } - }, - longDescription = "", + isA = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + preferredTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + preferredToTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + replacedBy = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + replacementTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + seeAlso = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + synonyms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + translatedTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + translationTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + usage = "", + validValues = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + validValuesFor = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, + longDescription = "", + name = "", + qualifiedName = "", + shortDescription = "", + lastModifiedTS = "", + guid = "", + }, + }, + categories = new[] { + new { + categoryGuid = "", + description = "", + displayText = "", + parentCategoryGuid = "", + relationGuid = "", + } + }, + language = "", + terms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + usage = "", + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, + longDescription = "", name = "", qualifiedName = "", shortDescription = "", @@ -1943,6 +2339,13 @@ var data = new { entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -2386,6 +2789,13 @@ var data = new { entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -3165,6 +3575,13 @@ var data = new { entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -3608,6 +4025,13 @@ var data = new { entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -4454,6 +4878,13 @@ var data = new[] { entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -4901,6 +5332,13 @@ var data = new[] { entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -5655,16 +6093,33 @@ var data = new { templateName = new[] { new {} }, - createTime = 123.45f, - createdBy = "", - updateTime = 123.45f, - updatedBy = "", - status = "Draft", - resources = new[] { - new { - displayName = "", - url = "", - } + anchor = new { + displayText = "", + glossaryGuid = "", + relationGuid = "", + }, + antonyms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + createTime = 123.45f, + createdBy = "", + updateTime = 123.45f, + updatedBy = "", + status = "Draft", + resources = new[] { + new { + displayName = "", + url = "", + } }, contacts = new { key = new[] { @@ -5688,6 +6143,13 @@ var data = new { entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -5716,10 +6178,177 @@ var data = new { status = "DRAFT", } }, + classifies = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, examples = new[] { "" }, + isA = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + preferredTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + preferredToTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + replacedBy = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + replacementTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + seeAlso = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + synonyms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + translatedTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + translationTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, usage = "", + validValues = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + validValuesFor = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, longDescription = "", name = "", qualifiedName = "", @@ -5756,6 +6385,13 @@ var data = new { entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -5907,6 +6543,23 @@ var data = new { templateName = new[] { new {} }, + anchor = new { + displayText = "", + glossaryGuid = "", + relationGuid = "", + }, + antonyms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, createTime = 123.45f, createdBy = "", updateTime = 123.45f, @@ -5940,6 +6593,13 @@ var data = new { entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -5968,10 +6628,177 @@ var data = new { status = "DRAFT", } }, + classifies = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, examples = new[] { "" }, + isA = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + preferredTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + preferredToTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + replacedBy = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + replacementTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + seeAlso = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + synonyms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + translatedTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + translationTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, usage = "", + validValues = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + validValuesFor = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, longDescription = "", name = "", qualifiedName = "", @@ -6008,6 +6835,13 @@ var data = new { entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewRelationships.xml b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewRelationships.xml index c57449bbb2bf..87eb635d0750 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewRelationships.xml +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewRelationships.xml @@ -62,6 +62,27 @@ var data = new { displayText = "", entityStatus = "ACTIVE", relationshipType = "", + relationshipAttributes = new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + }, relationshipGuid = "", relationshipStatus = "ACTIVE", guid = "", @@ -171,6 +192,27 @@ var data = new { displayText = "", entityStatus = "ACTIVE", relationshipType = "", + relationshipAttributes = new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + }, relationshipGuid = "", relationshipStatus = "ACTIVE", guid = "", @@ -280,6 +322,27 @@ var data = new { displayText = "", entityStatus = "ACTIVE", relationshipType = "", + relationshipAttributes = new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + }, relationshipGuid = "", relationshipStatus = "ACTIVE", guid = "", @@ -389,6 +452,27 @@ var data = new { displayText = "", entityStatus = "ACTIVE", relationshipType = "", + relationshipAttributes = new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + }, relationshipGuid = "", relationshipStatus = "ACTIVE", guid = "", diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewTypes.xml b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewTypes.xml index 272a37c553fe..b6068bd89646 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewTypes.xml +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/Docs/PurviewTypes.xml @@ -2498,9 +2498,66 @@ var data = new { superTypes = new[] { "" }, + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -2528,6 +2585,42 @@ var data = new { isLegacyAttribute = true, relationshipTypeName = "", cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, defaultValue = "", description = "", includeInNotification = true, @@ -2546,6 +2639,35 @@ var data = new { category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -2573,6 +2695,35 @@ var data = new { category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -2607,9 +2758,66 @@ var data = new { }, relationshipCategory = "ASSOCIATION", relationshipLabel = "", + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -2626,31 +2834,145 @@ var data = new { }, structDefs = new[] { new { - category = "PRIMITIVE", - createTime = 123.45f, - createdBy = "", - description = "", - guid = "", - name = "", - options = new { - key = "", + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } }, - serviceType = "", - typeVersion = "", - updateTime = 123.45f, - updatedBy = "", - version = 123.45f, - lastModifiedTS = "", - } - }, - termTemplateDefs = new[] { - new { category = "PRIMITIVE", createTime = 123.45f, createdBy = "", - description = "", - guid = "", - name = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, + description = "", + guid = "", + name = "", + options = new { + key = "", + }, + serviceType = "", + typeVersion = "", + updateTime = 123.45f, + updatedBy = "", + version = 123.45f, + lastModifiedTS = "", + } + }, + termTemplateDefs = new[] { + new { + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + category = "PRIMITIVE", + createTime = 123.45f, + createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, + description = "", + guid = "", + name = "", options = new { key = "", }, @@ -3112,9 +3434,66 @@ var data = new { superTypes = new[] { "" }, + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -3142,6 +3521,42 @@ var data = new { isLegacyAttribute = true, relationshipTypeName = "", cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, defaultValue = "", description = "", includeInNotification = true, @@ -3160,6 +3575,35 @@ var data = new { category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -3187,32 +3631,61 @@ var data = new { category = "PRIMITIVE", createTime = 123.45f, createdBy = "", - description = "", - guid = "", - name = "", - options = new { - key = "", - }, - serviceType = "", - typeVersion = "", - updateTime = 123.45f, - updatedBy = "", - version = 123.45f, - lastModifiedTS = "", - } - }, - relationshipDefs = new[] { - new { - endDef1 = new { - cardinality = "SINGLE", - description = "", - isContainer = true, - isLegacyAttribute = true, - name = "", - type = "", - }, - endDef2 = new { - cardinality = "SINGLE", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, + description = "", + guid = "", + name = "", + options = new { + key = "", + }, + serviceType = "", + typeVersion = "", + updateTime = 123.45f, + updatedBy = "", + version = 123.45f, + lastModifiedTS = "", + } + }, + relationshipDefs = new[] { + new { + endDef1 = new { + cardinality = "SINGLE", + description = "", + isContainer = true, + isLegacyAttribute = true, + name = "", + type = "", + }, + endDef2 = new { + cardinality = "SINGLE", description = "", isContainer = true, isLegacyAttribute = true, @@ -3221,9 +3694,66 @@ var data = new { }, relationshipCategory = "ASSOCIATION", relationshipLabel = "", + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -3240,9 +3770,66 @@ var data = new { }, structDefs = new[] { new { + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -3259,9 +3846,66 @@ var data = new { }, termTemplateDefs = new[] { new { + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -3726,39 +4370,132 @@ var data = new { superTypes = new[] { "" }, - category = "PRIMITIVE", - createTime = 123.45f, - createdBy = "", - description = "", - guid = "", - name = "", - options = new { - key = "", - }, - serviceType = "", - typeVersion = "", - updateTime = 123.45f, - updatedBy = "", - version = 123.45f, - lastModifiedTS = "", - } - }, - entityDefs = new[] { - new { - subTypes = new[] { - "" - }, - superTypes = new[] { - "" - }, - relationshipAttributeDefs = new[] { + attributeDefs = new[] { new { isLegacyAttribute = true, relationshipTypeName = "", cardinality = "SINGLE", - defaultValue = "", - description = "", - includeInNotification = true, + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + category = "PRIMITIVE", + createTime = 123.45f, + createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, + description = "", + guid = "", + name = "", + options = new { + key = "", + }, + serviceType = "", + typeVersion = "", + updateTime = 123.45f, + updatedBy = "", + version = 123.45f, + lastModifiedTS = "", + } + }, + entityDefs = new[] { + new { + subTypes = new[] { + "" + }, + superTypes = new[] { + "" + }, + relationshipAttributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, isIndexable = true, isOptional = true, isUnique = true, @@ -3774,6 +4511,35 @@ var data = new { category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -3801,6 +4567,35 @@ var data = new { category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -3835,28 +4630,66 @@ var data = new { }, relationshipCategory = "ASSOCIATION", relationshipLabel = "", - category = "PRIMITIVE", - createTime = 123.45f, - createdBy = "", - description = "", - guid = "", - name = "", - options = new { - key = "", + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } }, - serviceType = "", - typeVersion = "", - updateTime = 123.45f, - updatedBy = "", - version = 123.45f, - lastModifiedTS = "", - } - }, - structDefs = new[] { - new { category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -3871,11 +4704,144 @@ var data = new { lastModifiedTS = "", } }, - termTemplateDefs = new[] { + structDefs = new[] { new { - category = "PRIMITIVE", + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + category = "PRIMITIVE", + createTime = 123.45f, + createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, + description = "", + guid = "", + name = "", + options = new { + key = "", + }, + serviceType = "", + typeVersion = "", + updateTime = 123.45f, + updatedBy = "", + version = 123.45f, + lastModifiedTS = "", + } + }, + termTemplateDefs = new[] { + new { + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -4340,9 +5306,66 @@ var data = new { superTypes = new[] { "" }, + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -4370,6 +5393,42 @@ var data = new { isLegacyAttribute = true, relationshipTypeName = "", cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, defaultValue = "", description = "", includeInNotification = true, @@ -4388,6 +5447,35 @@ var data = new { category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -4415,6 +5503,35 @@ var data = new { category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -4449,9 +5566,66 @@ var data = new { }, relationshipCategory = "ASSOCIATION", relationshipLabel = "", + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -4468,9 +5642,66 @@ var data = new { }, structDefs = new[] { new { + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -4487,9 +5718,66 @@ var data = new { }, termTemplateDefs = new[] { new { + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -4845,9 +6133,609 @@ Console.WriteLine(result.GetProperty("termTemplateDefs")[0].GetProperty("lastMod ]]> - + + +This sample shows how to call DeleteTypeDefinitionsAsync. +"); +var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); + +var data = new {}; + +Response response = await client.DeleteTypeDefinitionsAsync(RequestContent.Create(data)); +Console.WriteLine(response.Status); +]]> +This sample shows how to call DeleteTypeDefinitionsAsync with all request content. +"); +var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); + +var data = new { + businessMetadataDefs = new[] { + new { + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + category = "PRIMITIVE", + createTime = 123.45f, + createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, + description = "", + guid = "", + name = "", + options = new { + key = "", + }, + serviceType = "", + typeVersion = "", + updateTime = 123.45f, + updatedBy = "", + version = 123.45f, + lastModifiedTS = "", + } + }, + classificationDefs = new[] { + new { + entityTypes = new[] { + "" + }, + subTypes = new[] { + "" + }, + superTypes = new[] { + "" + }, + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + category = "PRIMITIVE", + createTime = 123.45f, + createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, + description = "", + guid = "", + name = "", + options = new { + key = "", + }, + serviceType = "", + typeVersion = "", + updateTime = 123.45f, + updatedBy = "", + version = 123.45f, + lastModifiedTS = "", + } + }, + entityDefs = new[] { + new { + subTypes = new[] { + "" + }, + superTypes = new[] { + "" + }, + relationshipAttributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + category = "PRIMITIVE", + createTime = 123.45f, + createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, + description = "", + guid = "", + name = "", + options = new { + key = "", + }, + serviceType = "", + typeVersion = "", + updateTime = 123.45f, + updatedBy = "", + version = 123.45f, + lastModifiedTS = "", + } + }, + enumDefs = new[] { + new { + defaultValue = "", + elementDefs = new[] { + new { + description = "", + ordinal = 123.45f, + value = "", + } + }, + category = "PRIMITIVE", + createTime = 123.45f, + createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, + description = "", + guid = "", + name = "", + options = new { + key = "", + }, + serviceType = "", + typeVersion = "", + updateTime = 123.45f, + updatedBy = "", + version = 123.45f, + lastModifiedTS = "", + } + }, + relationshipDefs = new[] { + new { + endDef1 = new { + cardinality = "SINGLE", + description = "", + isContainer = true, + isLegacyAttribute = true, + name = "", + type = "", + }, + endDef2 = new { + cardinality = "SINGLE", + description = "", + isContainer = true, + isLegacyAttribute = true, + name = "", + type = "", + }, + relationshipCategory = "ASSOCIATION", + relationshipLabel = "", + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + category = "PRIMITIVE", + createTime = 123.45f, + createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, + description = "", + guid = "", + name = "", + options = new { + key = "", + }, + serviceType = "", + typeVersion = "", + updateTime = 123.45f, + updatedBy = "", + version = 123.45f, + lastModifiedTS = "", + } + }, + structDefs = new[] { + new { + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + category = "PRIMITIVE", + createTime = 123.45f, + createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, + description = "", + guid = "", + name = "", + options = new { + key = "", + }, + serviceType = "", + typeVersion = "", + updateTime = 123.45f, + updatedBy = "", + version = 123.45f, + lastModifiedTS = "", + } + }, + termTemplateDefs = new[] { + new { + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + category = "PRIMITIVE", + createTime = 123.45f, + createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, + description = "", + guid = "", + name = "", + options = new { + key = "", + }, + serviceType = "", + typeVersion = "", + updateTime = 123.45f, + updatedBy = "", + version = 123.45f, + lastModifiedTS = "", + } + }, +}; + +Response response = await client.DeleteTypeDefinitionsAsync(RequestContent.Create(data)); +Console.WriteLine(response.Status); +]]> + + + -This sample shows how to call DeleteTypeDefinitionsAsync. +This sample shows how to call DeleteTypeDefinitions. "); @@ -4855,10 +6743,10 @@ var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClien var data = new {}; -Response response = await client.DeleteTypeDefinitionsAsync(RequestContent.Create(data)); +Response response = client.DeleteTypeDefinitions(RequestContent.Create(data)); Console.WriteLine(response.Status); ]]> -This sample shows how to call DeleteTypeDefinitionsAsync with all request content. +This sample shows how to call DeleteTypeDefinitions with all request content. "); @@ -4952,9 +6840,66 @@ var data = new { superTypes = new[] { "" }, + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -4982,6 +6927,42 @@ var data = new { isLegacyAttribute = true, relationshipTypeName = "", cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, defaultValue = "", description = "", includeInNotification = true, @@ -5000,6 +6981,35 @@ var data = new { category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -5027,6 +7037,35 @@ var data = new { category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -5041,110 +7080,26 @@ var data = new { lastModifiedTS = "", } }, - relationshipDefs = new[] { - new { - endDef1 = new { - cardinality = "SINGLE", - description = "", - isContainer = true, - isLegacyAttribute = true, - name = "", - type = "", - }, - endDef2 = new { - cardinality = "SINGLE", - description = "", - isContainer = true, - isLegacyAttribute = true, - name = "", - type = "", - }, - relationshipCategory = "ASSOCIATION", - relationshipLabel = "", - category = "PRIMITIVE", - createTime = 123.45f, - createdBy = "", - description = "", - guid = "", - name = "", - options = new { - key = "", - }, - serviceType = "", - typeVersion = "", - updateTime = 123.45f, - updatedBy = "", - version = 123.45f, - lastModifiedTS = "", - } - }, - structDefs = new[] { - new { - category = "PRIMITIVE", - createTime = 123.45f, - createdBy = "", - description = "", - guid = "", - name = "", - options = new { - key = "", - }, - serviceType = "", - typeVersion = "", - updateTime = 123.45f, - updatedBy = "", - version = 123.45f, - lastModifiedTS = "", - } - }, - termTemplateDefs = new[] { - new { - category = "PRIMITIVE", - createTime = 123.45f, - createdBy = "", - description = "", - guid = "", - name = "", - options = new { - key = "", - }, - serviceType = "", - typeVersion = "", - updateTime = 123.45f, - updatedBy = "", - version = 123.45f, - lastModifiedTS = "", - } - }, -}; - -Response response = await client.DeleteTypeDefinitionsAsync(RequestContent.Create(data)); -Console.WriteLine(response.Status); -]]> - - - - -This sample shows how to call DeleteTypeDefinitions. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - -var data = new {}; - -Response response = client.DeleteTypeDefinitions(RequestContent.Create(data)); -Console.WriteLine(response.Status); -]]> -This sample shows how to call DeleteTypeDefinitions with all request content. -"); -var client = new PurviewCatalogClient(endpoint, credential).GetPurviewTypesClient(); - -var data = new { - businessMetadataDefs = new[] { + relationshipDefs = new[] { new { + endDef1 = new { + cardinality = "SINGLE", + description = "", + isContainer = true, + isLegacyAttribute = true, + name = "", + type = "", + }, + endDef2 = new { + cardinality = "SINGLE", + description = "", + isContainer = true, + isLegacyAttribute = true, + name = "", + type = "", + }, + relationshipCategory = "ASSOCIATION", + relationshipLabel = "", attributeDefs = new[] { new { isLegacyAttribute = true, @@ -5219,47 +7174,21 @@ var data = new { lastModifiedTS = "", } }, - classificationDefs = new[] { - new { - entityTypes = new[] { - "" - }, - subTypes = new[] { - "" - }, - superTypes = new[] { - "" - }, - category = "PRIMITIVE", - createTime = 123.45f, - createdBy = "", - description = "", - guid = "", - name = "", - options = new { - key = "", - }, - serviceType = "", - typeVersion = "", - updateTime = 123.45f, - updatedBy = "", - version = 123.45f, - lastModifiedTS = "", - } - }, - entityDefs = new[] { + structDefs = new[] { new { - subTypes = new[] { - "" - }, - superTypes = new[] { - "" - }, - relationshipAttributeDefs = new[] { + attributeDefs = new[] { new { isLegacyAttribute = true, relationshipTypeName = "", cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, defaultValue = "", description = "", includeInNotification = true, @@ -5278,6 +7207,35 @@ var data = new { category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -5292,94 +7250,68 @@ var data = new { lastModifiedTS = "", } }, - enumDefs = new[] { + termTemplateDefs = new[] { new { - defaultValue = "", - elementDefs = new[] { + attributeDefs = new[] { new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", description = "", - ordinal = 123.45f, - value = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, } }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", - description = "", - guid = "", - name = "", - options = new { - key = "", - }, - serviceType = "", - typeVersion = "", - updateTime = 123.45f, - updatedBy = "", - version = 123.45f, - lastModifiedTS = "", - } - }, - relationshipDefs = new[] { - new { - endDef1 = new { - cardinality = "SINGLE", - description = "", - isContainer = true, - isLegacyAttribute = true, - name = "", - type = "", - }, - endDef2 = new { - cardinality = "SINGLE", - description = "", - isContainer = true, - isLegacyAttribute = true, - name = "", - type = "", - }, - relationshipCategory = "ASSOCIATION", - relationshipLabel = "", - category = "PRIMITIVE", - createTime = 123.45f, - createdBy = "", - description = "", - guid = "", - name = "", - options = new { - key = "", - }, - serviceType = "", - typeVersion = "", - updateTime = 123.45f, - updatedBy = "", - version = 123.45f, - lastModifiedTS = "", - } - }, - structDefs = new[] { - new { - category = "PRIMITIVE", - createTime = 123.45f, - createdBy = "", - description = "", - guid = "", - name = "", - options = new { - key = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, }, - serviceType = "", - typeVersion = "", - updateTime = 123.45f, - updatedBy = "", - version = 123.45f, - lastModifiedTS = "", - } - }, - termTemplateDefs = new[] { - new { - category = "PRIMITIVE", - createTime = 123.45f, - createdBy = "", description = "", guid = "", name = "", diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewCatalogClient.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewCatalogClient.cs index 3c0715bb34c7..5cdcfdec318c 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewCatalogClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewCatalogClient.cs @@ -61,6 +61,12 @@ public void Example_Search_AllParameters() assetTypes = new[] { "" }, + facet = new + { + count = 1234, + facet = "", + sort = new { }, + }, }, }; @@ -148,6 +154,12 @@ public async Task Example_Search_AllParameters_Async() assetTypes = new[] { "" }, + facet = new + { + count = 1234, + facet = "", + sort = new { }, + }, }, }; diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewCollections.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewCollections.cs index a2ff6192298a..68469ca6f627 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewCollections.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewCollections.cs @@ -139,6 +139,29 @@ public void Example_CreateOrUpdateEntity_AllParameters() { key = new { }, }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, createTime = 123.45f, createdBy = "", customAttributes = new @@ -150,6 +173,20 @@ public void Example_CreateOrUpdateEntity_AllParameters() isIncomplete = true, labels = new[] { "" + }, + meanings = new[] { + new { + confidence = 1234, + createdBy = "", + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DISCOVERED", + steward = "", + termGuid = "", + } }, provenanceType = 123.45f, proxy = true, @@ -373,6 +410,29 @@ public async Task Example_CreateOrUpdateEntity_AllParameters_Async() { key = new { }, }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, createTime = 123.45f, createdBy = "", customAttributes = new @@ -384,6 +444,20 @@ public async Task Example_CreateOrUpdateEntity_AllParameters_Async() isIncomplete = true, labels = new[] { "" + }, + meanings = new[] { + new { + confidence = 1234, + createdBy = "", + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DISCOVERED", + steward = "", + termGuid = "", + } }, provenanceType = 123.45f, proxy = true, @@ -602,6 +676,29 @@ public void Example_CreateOrUpdateEntityInBulk_AllParameters() { key = new { }, }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, createTime = 123.45f, createdBy = "", customAttributes = new @@ -613,6 +710,20 @@ public void Example_CreateOrUpdateEntityInBulk_AllParameters() isIncomplete = true, labels = new[] { "" + }, + meanings = new[] { + new { + confidence = 1234, + createdBy = "", + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DISCOVERED", + steward = "", + termGuid = "", + } }, provenanceType = 123.45f, proxy = true, @@ -831,6 +942,29 @@ public async Task Example_CreateOrUpdateEntityInBulk_AllParameters_Async() { key = new { }, }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, createTime = 123.45f, createdBy = "", customAttributes = new @@ -842,6 +976,20 @@ public async Task Example_CreateOrUpdateEntityInBulk_AllParameters_Async() isIncomplete = true, labels = new[] { "" + }, + meanings = new[] { + new { + confidence = 1234, + createdBy = "", + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DISCOVERED", + steward = "", + termGuid = "", + } }, provenanceType = 123.45f, proxy = true, diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewEntities.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewEntities.cs index 85ffef3d79b4..71737b156057 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewEntities.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewEntities.cs @@ -139,6 +139,29 @@ public void Example_CreateOrUpdate_AllParameters() { key = new { }, }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, createTime = 123.45f, createdBy = "", customAttributes = new @@ -150,6 +173,20 @@ public void Example_CreateOrUpdate_AllParameters() isIncomplete = true, labels = new[] { "" + }, + meanings = new[] { + new { + confidence = 1234, + createdBy = "", + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DISCOVERED", + steward = "", + termGuid = "", + } }, provenanceType = 123.45f, proxy = true, @@ -373,6 +410,29 @@ public async Task Example_CreateOrUpdate_AllParameters_Async() { key = new { }, }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, createTime = 123.45f, createdBy = "", customAttributes = new @@ -384,6 +444,20 @@ public async Task Example_CreateOrUpdate_AllParameters_Async() isIncomplete = true, labels = new[] { "" + }, + meanings = new[] { + new { + confidence = 1234, + createdBy = "", + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DISCOVERED", + steward = "", + termGuid = "", + } }, provenanceType = 123.45f, proxy = true, @@ -828,6 +902,29 @@ public void Example_CreateOrUpdateEntities_AllParameters() { key = new { }, }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, createTime = 123.45f, createdBy = "", customAttributes = new @@ -839,6 +936,20 @@ public void Example_CreateOrUpdateEntities_AllParameters() isIncomplete = true, labels = new[] { "" + }, + meanings = new[] { + new { + confidence = 1234, + createdBy = "", + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DISCOVERED", + steward = "", + termGuid = "", + } }, provenanceType = 123.45f, proxy = true, @@ -1057,6 +1168,29 @@ public async Task Example_CreateOrUpdateEntities_AllParameters_Async() { key = new { }, }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, createTime = 123.45f, createdBy = "", customAttributes = new @@ -1068,6 +1202,20 @@ public async Task Example_CreateOrUpdateEntities_AllParameters_Async() isIncomplete = true, labels = new[] { "" + }, + meanings = new[] { + new { + confidence = 1234, + createdBy = "", + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DISCOVERED", + steward = "", + termGuid = "", + } }, provenanceType = 123.45f, proxy = true, @@ -2803,6 +2951,29 @@ public void Example_PartialUpdateEntityByUniqueAttributes_AllParameters() { key = new { }, }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, createTime = 123.45f, createdBy = "", customAttributes = new @@ -2814,6 +2985,20 @@ public void Example_PartialUpdateEntityByUniqueAttributes_AllParameters() isIncomplete = true, labels = new[] { "" + }, + meanings = new[] { + new { + confidence = 1234, + createdBy = "", + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DISCOVERED", + steward = "", + termGuid = "", + } }, provenanceType = 123.45f, proxy = true, @@ -3037,6 +3222,29 @@ public async Task Example_PartialUpdateEntityByUniqueAttributes_AllParameters_As { key = new { }, }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, createTime = 123.45f, createdBy = "", customAttributes = new @@ -3048,6 +3256,20 @@ public async Task Example_PartialUpdateEntityByUniqueAttributes_AllParameters_As isIncomplete = true, labels = new[] { "" + }, + meanings = new[] { + new { + confidence = 1234, + createdBy = "", + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DISCOVERED", + steward = "", + termGuid = "", + } }, provenanceType = 123.45f, proxy = true, diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewGlossaries.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewGlossaries.cs index e87919def70d..762a32794b0c 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewGlossaries.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewGlossaries.cs @@ -240,6 +240,24 @@ public void Example_CreateGlossary_AllParameters() abbreviation = "", templateName = new[] { new {} + }, + anchor = new + { + displayText = "", + glossaryGuid = "", + relationGuid = "", + }, + antonyms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } }, createTime = 123.45f, createdBy = "", @@ -277,6 +295,13 @@ public void Example_CreateGlossary_AllParameters() entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -304,11 +329,178 @@ public void Example_CreateGlossary_AllParameters() relationGuid = "", status = "DRAFT", } + }, + classifies = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } }, examples = new[] { "" + }, + isA = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + preferredTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + preferredToTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + replacedBy = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + replacementTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + seeAlso = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + synonyms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + translatedTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + translationTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } }, usage = "", + validValues = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + validValuesFor = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, longDescription = "", name = "", qualifiedName = "", @@ -345,6 +537,13 @@ public void Example_CreateGlossary_AllParameters() entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -504,6 +703,24 @@ public async Task Example_CreateGlossary_AllParameters_Async() abbreviation = "", templateName = new[] { new {} + }, + anchor = new + { + displayText = "", + glossaryGuid = "", + relationGuid = "", + }, + antonyms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } }, createTime = 123.45f, createdBy = "", @@ -541,6 +758,13 @@ public async Task Example_CreateGlossary_AllParameters_Async() entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -568,57 +792,231 @@ public async Task Example_CreateGlossary_AllParameters_Async() relationGuid = "", status = "DRAFT", } + }, + classifies = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } }, examples = new[] { "" }, - usage = "", - longDescription = "", - name = "", - qualifiedName = "", - shortDescription = "", - lastModifiedTS = "", - guid = "", - }, - }, - categories = new[] { - new { - categoryGuid = "", - description = "", - displayText = "", - parentCategoryGuid = "", - relationGuid = "", - } - }, - language = "", - terms = new[] { - new { - description = "", - displayText = "", - expression = "", - relationGuid = "", - source = "", - status = "DRAFT", - steward = "", - termGuid = "", - } - }, - usage = "", - classifications = new[] { - new { - entityGuid = "", - entityStatus = "ACTIVE", - removePropagationsOnEntityDelete = true, - source = "", - sourceDetails = new { - key = new {}, - }, - attributes = new { - key = new {}, - }, - typeName = "", - lastModifiedTS = "", - } + isA = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + preferredTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + preferredToTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + replacedBy = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + replacementTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + seeAlso = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + synonyms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + translatedTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + translationTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + usage = "", + validValues = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + validValuesFor = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, + longDescription = "", + name = "", + qualifiedName = "", + shortDescription = "", + lastModifiedTS = "", + guid = "", + }, + }, + categories = new[] { + new { + categoryGuid = "", + description = "", + displayText = "", + parentCategoryGuid = "", + relationGuid = "", + } + }, + language = "", + terms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + usage = "", + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } }, longDescription = "", name = "", @@ -2211,6 +2609,13 @@ public void Example_CreateGlossaryTerm_AllParameters() entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -2661,6 +3066,13 @@ public async Task Example_CreateGlossaryTerm_AllParameters_Async() entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -3473,6 +3885,13 @@ public void Example_UpdateGlossaryTerm_AllParameters() entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -3923,6 +4342,13 @@ public async Task Example_UpdateGlossaryTerm_AllParameters_Async() entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -4801,6 +5227,13 @@ public void Example_CreateGlossaryTerms_AllParameters() entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -5250,6 +5683,13 @@ public async Task Example_CreateGlossaryTerms_AllParameters_Async() entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -6181,22 +6621,40 @@ public void Example_UpdateGlossary_AllParameters() templateName = new[] { new {} }, - createTime = 123.45f, - createdBy = "", - updateTime = 123.45f, - updatedBy = "", - status = "Draft", - resources = new[] { - new { - displayName = "", - url = "", - } - }, - contacts = new + anchor = new { - key = new[] { - new { - id = "", + displayText = "", + glossaryGuid = "", + relationGuid = "", + }, + antonyms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + createTime = 123.45f, + createdBy = "", + updateTime = 123.45f, + updatedBy = "", + status = "Draft", + resources = new[] { + new { + displayName = "", + url = "", + } + }, + contacts = new + { + key = new[] { + new { + id = "", info = "", } }, @@ -6217,6 +6675,13 @@ public void Example_UpdateGlossary_AllParameters() entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -6244,11 +6709,178 @@ public void Example_UpdateGlossary_AllParameters() relationGuid = "", status = "DRAFT", } + }, + classifies = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } }, examples = new[] { "" + }, + isA = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + preferredTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + preferredToTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + replacedBy = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + replacementTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + seeAlso = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + synonyms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + translatedTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + translationTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } }, usage = "", + validValues = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + validValuesFor = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, longDescription = "", name = "", qualifiedName = "", @@ -6285,6 +6917,13 @@ public void Example_UpdateGlossary_AllParameters() entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -6444,6 +7083,24 @@ public async Task Example_UpdateGlossary_AllParameters_Async() abbreviation = "", templateName = new[] { new {} + }, + anchor = new + { + displayText = "", + glossaryGuid = "", + relationGuid = "", + }, + antonyms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } }, createTime = 123.45f, createdBy = "", @@ -6481,6 +7138,13 @@ public async Task Example_UpdateGlossary_AllParameters_Async() entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, @@ -6508,11 +7172,178 @@ public async Task Example_UpdateGlossary_AllParameters_Async() relationGuid = "", status = "DRAFT", } + }, + classifies = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } }, examples = new[] { "" + }, + isA = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + preferredTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + preferredToTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + replacedBy = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + replacementTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + seeAlso = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + synonyms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + translatedTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + translationTerms = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } }, usage = "", + validValues = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + validValuesFor = new[] { + new { + description = "", + displayText = "", + expression = "", + relationGuid = "", + source = "", + status = "DRAFT", + steward = "", + termGuid = "", + } + }, + classifications = new[] { + new { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new { + key = new {}, + }, + attributes = new { + key = new {}, + }, + typeName = "", + lastModifiedTS = "", + } + }, longDescription = "", name = "", qualifiedName = "", @@ -6549,6 +7380,13 @@ public async Task Example_UpdateGlossary_AllParameters_Async() entityGuid = "", entityStatus = "ACTIVE", removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, source = "", sourceDetails = new { key = new {}, diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewRelationships.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewRelationships.cs index 88ddf2d8bdfe..b3758165686e 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewRelationships.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewRelationships.cs @@ -90,6 +90,30 @@ public void Example_Create_AllParameters() displayText = "", entityStatus = "ACTIVE", relationshipType = "", + relationshipAttributes = new + { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new + { + key = new { }, + }, + attributes = new + { + key = new { }, + }, + typeName = "", + lastModifiedTS = "", + }, relationshipGuid = "", relationshipStatus = "ACTIVE", guid = "", @@ -210,6 +234,30 @@ public async Task Example_Create_AllParameters_Async() displayText = "", entityStatus = "ACTIVE", relationshipType = "", + relationshipAttributes = new + { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new + { + key = new { }, + }, + attributes = new + { + key = new { }, + }, + typeName = "", + lastModifiedTS = "", + }, relationshipGuid = "", relationshipStatus = "ACTIVE", guid = "", @@ -330,6 +378,30 @@ public void Example_Update_AllParameters() displayText = "", entityStatus = "ACTIVE", relationshipType = "", + relationshipAttributes = new + { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new + { + key = new { }, + }, + attributes = new + { + key = new { }, + }, + typeName = "", + lastModifiedTS = "", + }, relationshipGuid = "", relationshipStatus = "ACTIVE", guid = "", @@ -450,6 +522,30 @@ public async Task Example_Update_AllParameters_Async() displayText = "", entityStatus = "ACTIVE", relationshipType = "", + relationshipAttributes = new + { + entityGuid = "", + entityStatus = "ACTIVE", + removePropagationsOnEntityDelete = true, + validityPeriods = new[] { + new { + endTime = "", + startTime = "", + timeZone = "", + } + }, + source = "", + sourceDetails = new + { + key = new { }, + }, + attributes = new + { + key = new { }, + }, + typeName = "", + lastModifiedTS = "", + }, relationshipGuid = "", relationshipStatus = "ACTIVE", guid = "", diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewTypes.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewTypes.cs index ca4d5f1cc22a..050ca3f65204 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewTypes.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/tests/Generated/Samples/Samples_PurviewTypes.cs @@ -2932,9 +2932,66 @@ public void Example_CreateTypeDefinitions_AllParameters() superTypes = new[] { "" }, + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -2962,6 +3019,42 @@ public void Example_CreateTypeDefinitions_AllParameters() isLegacyAttribute = true, relationshipTypeName = "", cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, defaultValue = "", description = "", includeInNotification = true, @@ -2980,6 +3073,35 @@ public void Example_CreateTypeDefinitions_AllParameters() category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -3007,6 +3129,35 @@ public void Example_CreateTypeDefinitions_AllParameters() category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -3041,9 +3192,66 @@ public void Example_CreateTypeDefinitions_AllParameters() }, relationshipCategory = "ASSOCIATION", relationshipLabel = "", + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -3060,31 +3268,145 @@ public void Example_CreateTypeDefinitions_AllParameters() }, structDefs = new[] { new { - category = "PRIMITIVE", - createTime = 123.45f, - createdBy = "", - description = "", - guid = "", - name = "", - options = new { - key = "", + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } }, - serviceType = "", - typeVersion = "", - updateTime = 123.45f, - updatedBy = "", - version = 123.45f, - lastModifiedTS = "", - } - }, - termTemplateDefs = new[] { - new { category = "PRIMITIVE", createTime = 123.45f, createdBy = "", - description = "", - guid = "", - name = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, + description = "", + guid = "", + name = "", + options = new { + key = "", + }, + serviceType = "", + typeVersion = "", + updateTime = 123.45f, + updatedBy = "", + version = 123.45f, + lastModifiedTS = "", + } + }, + termTemplateDefs = new[] { + new { + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + category = "PRIMITIVE", + createTime = 123.45f, + createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, + description = "", + guid = "", + name = "", options = new { key = "", }, @@ -3549,9 +3871,66 @@ public async Task Example_CreateTypeDefinitions_AllParameters_Async() superTypes = new[] { "" }, + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -3579,6 +3958,42 @@ public async Task Example_CreateTypeDefinitions_AllParameters_Async() isLegacyAttribute = true, relationshipTypeName = "", cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, defaultValue = "", description = "", includeInNotification = true, @@ -3597,6 +4012,35 @@ public async Task Example_CreateTypeDefinitions_AllParameters_Async() category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -3624,32 +4068,61 @@ public async Task Example_CreateTypeDefinitions_AllParameters_Async() category = "PRIMITIVE", createTime = 123.45f, createdBy = "", - description = "", - guid = "", - name = "", - options = new { - key = "", - }, - serviceType = "", - typeVersion = "", - updateTime = 123.45f, - updatedBy = "", - version = 123.45f, - lastModifiedTS = "", - } - }, - relationshipDefs = new[] { - new { - endDef1 = new { - cardinality = "SINGLE", - description = "", - isContainer = true, - isLegacyAttribute = true, - name = "", - type = "", - }, - endDef2 = new { - cardinality = "SINGLE", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, + description = "", + guid = "", + name = "", + options = new { + key = "", + }, + serviceType = "", + typeVersion = "", + updateTime = 123.45f, + updatedBy = "", + version = 123.45f, + lastModifiedTS = "", + } + }, + relationshipDefs = new[] { + new { + endDef1 = new { + cardinality = "SINGLE", + description = "", + isContainer = true, + isLegacyAttribute = true, + name = "", + type = "", + }, + endDef2 = new { + cardinality = "SINGLE", description = "", isContainer = true, isLegacyAttribute = true, @@ -3658,9 +4131,66 @@ public async Task Example_CreateTypeDefinitions_AllParameters_Async() }, relationshipCategory = "ASSOCIATION", relationshipLabel = "", + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -3677,9 +4207,66 @@ public async Task Example_CreateTypeDefinitions_AllParameters_Async() }, structDefs = new[] { new { + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -3696,9 +4283,66 @@ public async Task Example_CreateTypeDefinitions_AllParameters_Async() }, termTemplateDefs = new[] { new { + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -4166,39 +4810,132 @@ public void Example_UpdateAtlasTypeDefinitions_AllParameters() superTypes = new[] { "" }, - category = "PRIMITIVE", - createTime = 123.45f, - createdBy = "", - description = "", - guid = "", - name = "", - options = new { - key = "", - }, - serviceType = "", - typeVersion = "", - updateTime = 123.45f, - updatedBy = "", - version = 123.45f, - lastModifiedTS = "", - } - }, - entityDefs = new[] { - new { - subTypes = new[] { - "" - }, - superTypes = new[] { - "" - }, - relationshipAttributeDefs = new[] { + attributeDefs = new[] { new { isLegacyAttribute = true, relationshipTypeName = "", cardinality = "SINGLE", - defaultValue = "", - description = "", - includeInNotification = true, + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + category = "PRIMITIVE", + createTime = 123.45f, + createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, + description = "", + guid = "", + name = "", + options = new { + key = "", + }, + serviceType = "", + typeVersion = "", + updateTime = 123.45f, + updatedBy = "", + version = 123.45f, + lastModifiedTS = "", + } + }, + entityDefs = new[] { + new { + subTypes = new[] { + "" + }, + superTypes = new[] { + "" + }, + relationshipAttributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, isIndexable = true, isOptional = true, isUnique = true, @@ -4214,6 +4951,35 @@ public void Example_UpdateAtlasTypeDefinitions_AllParameters() category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -4241,6 +5007,35 @@ public void Example_UpdateAtlasTypeDefinitions_AllParameters() category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -4275,28 +5070,66 @@ public void Example_UpdateAtlasTypeDefinitions_AllParameters() }, relationshipCategory = "ASSOCIATION", relationshipLabel = "", - category = "PRIMITIVE", - createTime = 123.45f, - createdBy = "", - description = "", - guid = "", - name = "", - options = new { - key = "", + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } }, - serviceType = "", - typeVersion = "", - updateTime = 123.45f, - updatedBy = "", - version = 123.45f, - lastModifiedTS = "", - } - }, - structDefs = new[] { - new { category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -4311,11 +5144,144 @@ public void Example_UpdateAtlasTypeDefinitions_AllParameters() lastModifiedTS = "", } }, - termTemplateDefs = new[] { + structDefs = new[] { new { - category = "PRIMITIVE", + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + category = "PRIMITIVE", + createTime = 123.45f, + createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, + description = "", + guid = "", + name = "", + options = new { + key = "", + }, + serviceType = "", + typeVersion = "", + updateTime = 123.45f, + updatedBy = "", + version = 123.45f, + lastModifiedTS = "", + } + }, + termTemplateDefs = new[] { + new { + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -4783,9 +5749,66 @@ public async Task Example_UpdateAtlasTypeDefinitions_AllParameters_Async() superTypes = new[] { "" }, + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -4813,6 +5836,42 @@ public async Task Example_UpdateAtlasTypeDefinitions_AllParameters_Async() isLegacyAttribute = true, relationshipTypeName = "", cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, defaultValue = "", description = "", includeInNotification = true, @@ -4831,6 +5890,35 @@ public async Task Example_UpdateAtlasTypeDefinitions_AllParameters_Async() category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -4858,6 +5946,35 @@ public async Task Example_UpdateAtlasTypeDefinitions_AllParameters_Async() category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -4892,9 +6009,66 @@ public async Task Example_UpdateAtlasTypeDefinitions_AllParameters_Async() }, relationshipCategory = "ASSOCIATION", relationshipLabel = "", + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -4911,9 +6085,66 @@ public async Task Example_UpdateAtlasTypeDefinitions_AllParameters_Async() }, structDefs = new[] { new { + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -4930,9 +6161,66 @@ public async Task Example_UpdateAtlasTypeDefinitions_AllParameters_Async() }, termTemplateDefs = new[] { new { + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -5387,47 +6675,442 @@ public void Example_DeleteTypeDefinitions_AllParameters() lastModifiedTS = "", } }, - classificationDefs = new[] { - new { - entityTypes = new[] { - "" - }, - subTypes = new[] { - "" - }, - superTypes = new[] { - "" - }, - category = "PRIMITIVE", - createTime = 123.45f, - createdBy = "", - description = "", - guid = "", - name = "", - options = new { - key = "", - }, - serviceType = "", - typeVersion = "", - updateTime = 123.45f, - updatedBy = "", - version = 123.45f, - lastModifiedTS = "", - } - }, - entityDefs = new[] { + classificationDefs = new[] { + new { + entityTypes = new[] { + "" + }, + subTypes = new[] { + "" + }, + superTypes = new[] { + "" + }, + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + category = "PRIMITIVE", + createTime = 123.45f, + createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, + description = "", + guid = "", + name = "", + options = new { + key = "", + }, + serviceType = "", + typeVersion = "", + updateTime = 123.45f, + updatedBy = "", + version = 123.45f, + lastModifiedTS = "", + } + }, + entityDefs = new[] { + new { + subTypes = new[] { + "" + }, + superTypes = new[] { + "" + }, + relationshipAttributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + category = "PRIMITIVE", + createTime = 123.45f, + createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, + description = "", + guid = "", + name = "", + options = new { + key = "", + }, + serviceType = "", + typeVersion = "", + updateTime = 123.45f, + updatedBy = "", + version = 123.45f, + lastModifiedTS = "", + } + }, + enumDefs = new[] { + new { + defaultValue = "", + elementDefs = new[] { + new { + description = "", + ordinal = 123.45f, + value = "", + } + }, + category = "PRIMITIVE", + createTime = 123.45f, + createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, + description = "", + guid = "", + name = "", + options = new { + key = "", + }, + serviceType = "", + typeVersion = "", + updateTime = 123.45f, + updatedBy = "", + version = 123.45f, + lastModifiedTS = "", + } + }, + relationshipDefs = new[] { + new { + endDef1 = new { + cardinality = "SINGLE", + description = "", + isContainer = true, + isLegacyAttribute = true, + name = "", + type = "", + }, + endDef2 = new { + cardinality = "SINGLE", + description = "", + isContainer = true, + isLegacyAttribute = true, + name = "", + type = "", + }, + relationshipCategory = "ASSOCIATION", + relationshipLabel = "", + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + category = "PRIMITIVE", + createTime = 123.45f, + createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, + description = "", + guid = "", + name = "", + options = new { + key = "", + }, + serviceType = "", + typeVersion = "", + updateTime = 123.45f, + updatedBy = "", + version = 123.45f, + lastModifiedTS = "", + } + }, + structDefs = new[] { + new { + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + category = "PRIMITIVE", + createTime = 123.45f, + createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, + description = "", + guid = "", + name = "", + options = new { + key = "", + }, + serviceType = "", + typeVersion = "", + updateTime = 123.45f, + updatedBy = "", + version = 123.45f, + lastModifiedTS = "", + } + }, + termTemplateDefs = new[] { new { - subTypes = new[] { - "" - }, - superTypes = new[] { - "" - }, - relationshipAttributeDefs = new[] { + attributeDefs = new[] { new { isLegacyAttribute = true, relationshipTypeName = "", cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, defaultValue = "", description = "", includeInNotification = true, @@ -5446,108 +7129,35 @@ public void Example_DeleteTypeDefinitions_AllParameters() category = "PRIMITIVE", createTime = 123.45f, createdBy = "", - description = "", - guid = "", - name = "", - options = new { - key = "", - }, - serviceType = "", - typeVersion = "", - updateTime = 123.45f, - updatedBy = "", - version = 123.45f, - lastModifiedTS = "", - } - }, - enumDefs = new[] { - new { - defaultValue = "", - elementDefs = new[] { - new { - description = "", - ordinal = 123.45f, - value = "", - } - }, - category = "PRIMITIVE", - createTime = 123.45f, - createdBy = "", - description = "", - guid = "", - name = "", - options = new { - key = "", - }, - serviceType = "", - typeVersion = "", - updateTime = 123.45f, - updatedBy = "", - version = 123.45f, - lastModifiedTS = "", - } - }, - relationshipDefs = new[] { - new { - endDef1 = new { - cardinality = "SINGLE", - description = "", - isContainer = true, - isLegacyAttribute = true, - name = "", - type = "", - }, - endDef2 = new { - cardinality = "SINGLE", - description = "", - isContainer = true, - isLegacyAttribute = true, - name = "", - type = "", - }, - relationshipCategory = "ASSOCIATION", - relationshipLabel = "", - category = "PRIMITIVE", - createTime = 123.45f, - createdBy = "", - description = "", - guid = "", - name = "", - options = new { - key = "", - }, - serviceType = "", - typeVersion = "", - updateTime = 123.45f, - updatedBy = "", - version = 123.45f, - lastModifiedTS = "", - } - }, - structDefs = new[] { - new { - category = "PRIMITIVE", - createTime = 123.45f, - createdBy = "", - description = "", - guid = "", - name = "", - options = new { - key = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, }, - serviceType = "", - typeVersion = "", - updateTime = 123.45f, - updatedBy = "", - version = 123.45f, - lastModifiedTS = "", - } - }, - termTemplateDefs = new[] { - new { - category = "PRIMITIVE", - createTime = 123.45f, - createdBy = "", description = "", guid = "", name = "", @@ -5679,9 +7289,66 @@ public async Task Example_DeleteTypeDefinitions_AllParameters_Async() superTypes = new[] { "" }, + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -5704,11 +7371,47 @@ public async Task Example_DeleteTypeDefinitions_AllParameters_Async() superTypes = new[] { "" }, - relationshipAttributeDefs = new[] { + relationshipAttributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, + attributeDefs = new[] { new { isLegacyAttribute = true, relationshipTypeName = "", cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, defaultValue = "", description = "", includeInNotification = true, @@ -5727,6 +7430,35 @@ public async Task Example_DeleteTypeDefinitions_AllParameters_Async() category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -5754,6 +7486,35 @@ public async Task Example_DeleteTypeDefinitions_AllParameters_Async() category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -5788,9 +7549,66 @@ public async Task Example_DeleteTypeDefinitions_AllParameters_Async() }, relationshipCategory = "ASSOCIATION", relationshipLabel = "", + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -5807,9 +7625,66 @@ public async Task Example_DeleteTypeDefinitions_AllParameters_Async() }, structDefs = new[] { new { + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", @@ -5826,9 +7701,66 @@ public async Task Example_DeleteTypeDefinitions_AllParameters_Async() }, termTemplateDefs = new[] { new { + attributeDefs = new[] { + new { + isLegacyAttribute = true, + relationshipTypeName = "", + cardinality = "SINGLE", + constraints = new[] { + new { + @params = new { + key = new {}, + }, + type = "", + } + }, + defaultValue = "", + description = "", + includeInNotification = true, + isIndexable = true, + isOptional = true, + isUnique = true, + name = "", + options = new { + key = "", + }, + typeName = "", + valuesMaxCount = 1234, + valuesMinCount = 1234, + } + }, category = "PRIMITIVE", createTime = 123.45f, createdBy = "", + dateFormatter = new { + availableLocales = new[] { + "" + }, + calendar = 123.45f, + lenient = true, + numberFormat = new { + availableLocales = new[] { + "" + }, + currency = "", + groupingUsed = true, + maximumFractionDigits = 1234, + maximumIntegerDigits = 1234, + minimumFractionDigits = 1234, + minimumIntegerDigits = 1234, + parseIntegerOnly = true, + roundingMode = "UP", + }, + timeZone = new { + dstSavings = 1234, + id = "", + availableIds = new[] { + "" + }, + displayName = "", + rawOffset = 1234, + }, + }, description = "", guid = "", name = "", diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/Docs/PurviewScanClient.xml b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/Docs/PurviewScanClient.xml index 7c2c462b2b49..c3b3bb0198fc 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/Docs/PurviewScanClient.xml +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/Docs/PurviewScanClient.xml @@ -170,102 +170,477 @@ var data = new { AzureSubscription = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureResourceGroup = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureSynapseWorkspace = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureSynapse = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AdlsGen1 = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AdlsGen2 = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AmazonAccount = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AmazonS3 = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AmazonSql = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureCosmosDb = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureDataExplorer = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureFileService = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureSqlDatabase = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AmazonPostgreSql = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AzurePostgreSql = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, SqlServerDatabase = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureSqlDatabaseManagedInstance = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureSqlDataWarehouse = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureMySql = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureStorage = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, Teradata = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, Oracle = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, SapS4Hana = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, SapEcc = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, PowerBI = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, }, credential = new { @@ -365,105 +740,480 @@ var data = new { credentialType = "AccountKey", }, }, - AzureSubscription = new { - scanRulesetName = "", - scanRulesetType = "Custom", - }, - AzureResourceGroup = new { - scanRulesetName = "", - scanRulesetType = "Custom", - }, - AzureSynapseWorkspace = new { - scanRulesetName = "", - scanRulesetType = "Custom", - }, - AzureSynapse = new { - scanRulesetName = "", - scanRulesetType = "Custom", - }, - AdlsGen1 = new { - scanRulesetName = "", - scanRulesetType = "Custom", - }, - AdlsGen2 = new { - scanRulesetName = "", - scanRulesetType = "Custom", - }, - AmazonAccount = new { - scanRulesetName = "", - scanRulesetType = "Custom", - }, - AmazonS3 = new { - scanRulesetName = "", - scanRulesetType = "Custom", - }, - AmazonSql = new { - scanRulesetName = "", - scanRulesetType = "Custom", - }, - AzureCosmosDb = new { - scanRulesetName = "", - scanRulesetType = "Custom", - }, - AzureDataExplorer = new { - scanRulesetName = "", - scanRulesetType = "Custom", - }, + AzureSubscription = new { + scanRulesetName = "", + scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, + }, + AzureResourceGroup = new { + scanRulesetName = "", + scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, + }, + AzureSynapseWorkspace = new { + scanRulesetName = "", + scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, + }, + AzureSynapse = new { + scanRulesetName = "", + scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, + }, + AdlsGen1 = new { + scanRulesetName = "", + scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, + }, + AdlsGen2 = new { + scanRulesetName = "", + scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, + }, + AmazonAccount = new { + scanRulesetName = "", + scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, + }, + AmazonS3 = new { + scanRulesetName = "", + scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, + }, + AmazonSql = new { + scanRulesetName = "", + scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, + }, + AzureCosmosDb = new { + scanRulesetName = "", + scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, + }, + AzureDataExplorer = new { + scanRulesetName = "", + scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, + }, AzureFileService = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureSqlDatabase = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AmazonPostgreSql = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AzurePostgreSql = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, SqlServerDatabase = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureSqlDatabaseManagedInstance = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureSqlDataWarehouse = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureMySql = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureStorage = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, Teradata = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, Oracle = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, SapS4Hana = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, SapEcc = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, PowerBI = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new { + referenceName = "", + credentialType = "AccountKey", + }, }, }, credential = new { diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/tests/Generated/Samples/Samples_PurviewScanClient.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/tests/Generated/Samples/Samples_PurviewScanClient.cs index e2377a489554..119c5cd84642 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/tests/Generated/Samples/Samples_PurviewScanClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/tests/Generated/Samples/Samples_PurviewScanClient.cs @@ -233,126 +233,551 @@ public void Example_CreateOrUpdate_AllParameters() { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureResourceGroup = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureSynapseWorkspace = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureSynapse = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AdlsGen1 = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AdlsGen2 = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AmazonAccount = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AmazonS3 = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AmazonSql = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureCosmosDb = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureDataExplorer = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureFileService = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureSqlDatabase = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AmazonPostgreSql = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzurePostgreSql = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, SqlServerDatabase = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureSqlDatabaseManagedInstance = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureSqlDataWarehouse = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureMySql = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureStorage = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, Teradata = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, Oracle = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, SapS4Hana = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, SapEcc = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, PowerBI = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, }, credential = new @@ -468,126 +893,551 @@ public async Task Example_CreateOrUpdate_AllParameters_Async() { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureResourceGroup = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureSynapseWorkspace = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureSynapse = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AdlsGen1 = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AdlsGen2 = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AmazonAccount = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AmazonS3 = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AmazonSql = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureCosmosDb = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureDataExplorer = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureFileService = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureSqlDatabase = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AmazonPostgreSql = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzurePostgreSql = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, SqlServerDatabase = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureSqlDatabaseManagedInstance = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureSqlDataWarehouse = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureMySql = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, AzureStorage = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, Teradata = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, Oracle = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, SapS4Hana = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, SapEcc = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, PowerBI = new { scanRulesetName = "", scanRulesetType = "Custom", + resourceNameFilter = new + { + excludePrefixes = new[] { + "" + }, + includePrefixes = new[] { + "" + }, + resources = new[] { + "" + }, + }, + credential = new + { + referenceName = "", + credentialType = "AccountKey", + }, }, }, credential = new From af5191713c687655e12b6569b1265171daac3e3b Mon Sep 17 00:00:00 2001 From: Will Sugarman Date: Thu, 3 Aug 2023 08:05:11 -0700 Subject: [PATCH 31/54] Workload Identity Support for AzureComponentFactory (#37944) * First pass * Updated changelog and added comment * Update sdk/extensions/Microsoft.Extensions.Azure/CHANGELOG.md --------- Co-authored-by: Jesse Squire --- eng/Packages.Data.props | 4 +- .../Microsoft.Extensions.Azure/CHANGELOG.md | 4 + .../src/Internal/ClientFactory.cs | 31 ++++++++ .../tests/ClientFactoryTests.cs | 76 +++++++++++++++++++ 4 files changed, 113 insertions(+), 2 deletions(-) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index c2aa8c50a6c3..ab23f4d7521a 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -94,7 +94,7 @@ - + @@ -194,7 +194,7 @@ - + diff --git a/sdk/extensions/Microsoft.Extensions.Azure/CHANGELOG.md b/sdk/extensions/Microsoft.Extensions.Azure/CHANGELOG.md index 843026057dc1..cce064942558 100644 --- a/sdk/extensions/Microsoft.Extensions.Azure/CHANGELOG.md +++ b/sdk/extensions/Microsoft.Extensions.Azure/CHANGELOG.md @@ -4,12 +4,16 @@ ### Features Added +- Added support for creating `WorkloadIdentityCredential` objects from the configuration using the `"credential": "workloadidentity"`. Users must provide values for the `tenentId`, `clientId`, and newly added `tokenFilePath` keys in the configuration, or they must set the environment variables `AZURE_TENANT_ID`, `AZURE_CLIENT_ID`, and `AZURE_FEDERATED_TOKEN_FILE`. + ### Breaking Changes ### Bugs Fixed ### Other Changes +- Updated dependency `Azure.Identity` to version `1.9.0`. + ## 1.6.3 (2023-03-10) ### Other Changes diff --git a/sdk/extensions/Microsoft.Extensions.Azure/src/Internal/ClientFactory.cs b/sdk/extensions/Microsoft.Extensions.Azure/src/Internal/ClientFactory.cs index ed694215f145..a44d61cc6a23 100644 --- a/sdk/extensions/Microsoft.Extensions.Azure/src/Internal/ClientFactory.cs +++ b/sdk/extensions/Microsoft.Extensions.Azure/src/Internal/ClientFactory.cs @@ -95,6 +95,7 @@ internal static TokenCredential CreateCredential(IConfiguration configuration) var certificateStoreName = configuration["clientCertificateStoreName"]; var certificateStoreLocation = configuration["clientCertificateStoreLocation"]; var additionallyAllowedTenants = configuration["additionallyAllowedTenants"]; + var tokenFilePath = configuration["tokenFilePath"]; IEnumerable additionallyAllowedTenantsList = null; if (!string.IsNullOrWhiteSpace(additionallyAllowedTenants)) { @@ -119,6 +120,36 @@ internal static TokenCredential CreateCredential(IConfiguration configuration) return new ManagedIdentityCredential(clientId); } + if (string.Equals(credentialType, "workloadidentity", StringComparison.OrdinalIgnoreCase)) + { + // The WorkloadIdentityCredentialOptions object initialization populates its instance members + // from the environment variables AZURE_TENANT_ID, AZURE_CLIENT_ID, and AZURE_FEDERATED_TOKEN_FILE + var workloadIdentityOptions = new WorkloadIdentityCredentialOptions(); + if (!string.IsNullOrWhiteSpace(tenantId)) + { + workloadIdentityOptions.TenantId = tenantId; + } + + if (!string.IsNullOrWhiteSpace(clientId)) + { + workloadIdentityOptions.ClientId = clientId; + } + + if (!string.IsNullOrWhiteSpace(tokenFilePath)) + { + workloadIdentityOptions.TokenFilePath = tokenFilePath; + } + + if (!string.IsNullOrWhiteSpace(workloadIdentityOptions.TenantId) && + !string.IsNullOrWhiteSpace(workloadIdentityOptions.ClientId) && + !string.IsNullOrWhiteSpace(workloadIdentityOptions.TokenFilePath)) + { + return new WorkloadIdentityCredential(workloadIdentityOptions); + } + + throw new ArgumentException("For workload identity, 'tenantId', 'clientId', and 'tokenFilePath' must be specified via environment variables or the configuration."); + } + if (!string.IsNullOrWhiteSpace(tenantId) && !string.IsNullOrWhiteSpace(clientId) && !string.IsNullOrWhiteSpace(clientSecret)) diff --git a/sdk/extensions/Microsoft.Extensions.Azure/tests/ClientFactoryTests.cs b/sdk/extensions/Microsoft.Extensions.Azure/tests/ClientFactoryTests.cs index 64e49fb19462..31e9917e4bf2 100644 --- a/sdk/extensions/Microsoft.Extensions.Azure/tests/ClientFactoryTests.cs +++ b/sdk/extensions/Microsoft.Extensions.Azure/tests/ClientFactoryTests.cs @@ -6,6 +6,7 @@ using System.Linq; using System.Reflection; using System.Security.Cryptography.X509Certificates; +using Azure.Core.TestFramework; using Azure.Identity; using Microsoft.Extensions.Azure; using Microsoft.Extensions.Configuration; @@ -413,6 +414,81 @@ public void CreatesManagedServiceIdentityCredentialsThrowsWhenResourceIdAndClien Throws.InstanceOf().With.Message.Contains("managedIdentityResourceId")); } + [Test] + public void CreatesWorkloadIdentityCredentialsWithOptions() + { + IConfiguration configuration = GetConfiguration( + new KeyValuePair("tenantId", "ConfigurationTenantId"), + new KeyValuePair("clientId", "ConfigurationClientId"), + new KeyValuePair("tokenFilePath", "ConfigurationTokenFilePath"), + new KeyValuePair("credential", "workloadidentity") + ); + + var credential = ClientFactory.CreateCredential(configuration); + + Assert.IsInstanceOf(credential); + var workloadIdentityCredential = (WorkloadIdentityCredential)credential; + + var credentialAssertion = (ClientAssertionCredential)typeof(WorkloadIdentityCredential).GetField("_clientAssertionCredential", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(workloadIdentityCredential); + + Assert.AreEqual("ConfigurationTenantId", credentialAssertion.TenantId); + Assert.AreEqual("ConfigurationClientId", credentialAssertion.ClientId); + + Type fileCacheType = typeof(WorkloadIdentityCredential).Assembly.DefinedTypes.Single(x => x.FullName == "Azure.Identity.FileContentsCache"); + var fileCache = typeof(WorkloadIdentityCredential).GetField("_tokenFileCache", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(workloadIdentityCredential); + var actualTokenFilePath = fileCacheType.GetField("_tokenFilePath", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(fileCache); + + Assert.AreEqual("ConfigurationTokenFilePath", actualTokenFilePath); + } + + [Test] + public void CreatesWorkloadIdentityCredentialsWithEnvironmentVariables() + { + IConfiguration configuration = GetConfiguration(new KeyValuePair("credential", "workloadidentity")); + using var envVariables = new TestEnvVar(new Dictionary + { + { "AZURE_TENANT_ID", "EnvTenantId" }, + { "AZURE_CLIENT_ID", "EnvClientId" }, + { "AZURE_FEDERATED_TOKEN_FILE", "EnvTokenFilePath" }, + }); + + var credential = ClientFactory.CreateCredential(configuration); + + Assert.IsInstanceOf(credential); + var workloadIdentityCredential = (WorkloadIdentityCredential)credential; + + var credentialAssertion = (ClientAssertionCredential)typeof(WorkloadIdentityCredential).GetField("_clientAssertionCredential", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(workloadIdentityCredential); + + Assert.AreEqual("EnvTenantId", credentialAssertion.TenantId); + Assert.AreEqual("EnvClientId", credentialAssertion.ClientId); + + Type fileCacheType = typeof(WorkloadIdentityCredential).Assembly.DefinedTypes.Single(x => x.FullName == "Azure.Identity.FileContentsCache"); + var fileCache = typeof(WorkloadIdentityCredential).GetField("_tokenFileCache", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(workloadIdentityCredential); + var actualTokenFilePath = fileCacheType.GetField("_tokenFilePath", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(fileCache); + + Assert.AreEqual("EnvTokenFilePath", actualTokenFilePath); + } + + [TestCase(null, null, null)] + [TestCase(null, "ConfigurationClientId", "ConfigurationTokenFilePath")] + [TestCase("ConfigurationTenantId", null, "ConfigurationTokenFilePath")] + [TestCase("ConfigurationTenantId", "ConfigurationClientId", null)] + [TestCase("ConfigurationTenantId", null, null)] + [TestCase(null, "ConfigurationClientId", null)] + [TestCase(null, null, "ConfigurationTokenFilePath")] + [TestCase(null, "ConfigurationClientId", null)] + public void CreatesWorkloadIdentityCredentialsWithoutNecessaryOptions(string tenantId, string clientId, string tokenFilePath) + { + IConfiguration configuration = GetConfiguration( + new KeyValuePair("tenantId", tenantId), + new KeyValuePair("clientId", clientId), + new KeyValuePair("tokenFilePath", tokenFilePath), + new KeyValuePair("credential", "workloadidentity") + ); + + Assert.Throws(() => ClientFactory.CreateCredential(configuration)); + } + [Test] public void IgnoresConstructorWhenCredentialsNull() { From dbec632b444ef3b43ac5d635b1731b57ba80e3c5 Mon Sep 17 00:00:00 2001 From: Amanda Nguyen <48961492+amnguye@users.noreply.github.com> Date: Thu, 3 Aug 2023 09:57:49 -0700 Subject: [PATCH 32/54] [Storage] [DataMovement] Renamed API from API Arch Board Feedback (#37935) * Renamed API from API Arch Board Feedback * Export API and Update Snippetes --- .../CHANGELOG.md | 5 + .../README.md | 26 +- ...Azure.Storage.DataMovement.Blobs.net6.0.cs | 67 +++-- ...orage.DataMovement.Blobs.netstandard2.0.cs | 67 +++-- .../samples/Sample01b_HelloWorldAsync.cs | 76 +++--- .../src/AppendBlobStorageResource.cs | 18 +- .../Azure.Storage.DataMovement.Blobs.csproj | 1 - .../src/BlobContainerClientExtensions.cs | 4 +- .../src/BlobContainerClientTransferOptions.cs | 7 +- .../src/BlobStorageResourceContainer.cs | 8 +- .../BlobStorageResourceContainerOptions.cs | 4 +- .../src/BlobStorageResourceProvider.cs | 6 +- .../src/BlockBlobStorageResource.cs | 18 +- .../src/DataMovementBlobsExtensions.cs | 14 +- .../src/PageBlobStorageResource.cs | 18 +- .../tests/MockAppendBlobStorageResource.cs | 2 +- .../tests/MockBlockBlobStorageResource.cs | 2 +- .../tests/MockPageBlobStorageResource.cs | 2 +- .../tests/RehydrateBlobResourceTests.cs | 18 +- .../Azure.Storage.DataMovement/CHANGELOG.md | 37 +++ .../api/Azure.Storage.DataMovement.net6.0.cs | 240 +++++++++--------- ...ure.Storage.DataMovement.netstandard2.0.cs | 240 +++++++++--------- .../src/CommitChunkHandler.cs | 10 +- ...rEventArgs.cs => DataTransferEventArgs.cs} | 6 +- ...nsferOptions.cs => DataTransferOptions.cs} | 38 +-- ...ferProgress.cs => DataTransferProgress.cs} | 7 +- .../src/DataTransferProperties.cs | 4 +- ...ransferStatus.cs => DataTransferStatus.cs} | 10 +- .../src/DownloadRangeEventArgs.cs | 2 +- .../src/JobPartFailureType.cs | 4 +- .../src/JobPartInternal.cs | 84 +++--- .../LocalDirectoryStorageResourceContainer.cs | 2 +- .../src/LocalFileStorageResource.cs | 14 +- .../src/LocalStorageResourceProvider.cs | 2 +- .../src/ProgressHandlerOptions.cs | 2 +- .../src/ServiceToServiceJobPart.cs | 50 ++-- .../src/ServiceToServiceTransferJob.cs | 26 +- .../src/Shared/CheckpointerExtensions.cs | 2 +- .../src/Shared/DataMovementExtensions.cs | 44 ++-- .../src/Shared/DataTransfer.cs | 10 +- ...ngBehavior.cs => DataTransferErrorMode.cs} | 4 +- .../{TransferType.cs => DataTransferOrder.cs} | 8 +- .../src/Shared/DataTransferState.cs | 40 +-- .../src/Shared/Errors.DataMovement.cs | 2 +- .../src/Shared/JobPlan/JobPartPlanHeader.cs | 12 +- .../src/Shared/LocalTransferCheckpointer.cs | 4 +- .../Shared/StorageManagerTransferStatus.cs | 56 ---- ...s => StorageResourceCreationPreference.cs} | 23 +- .../src/Shared/TransferCheckpointer.cs | 8 +- .../src/Shared/TransferManager.cs | 50 ++-- .../src/Shared/TransferStatusEventArgs.cs | 8 +- .../src/StageChunkEventArgs.cs | 2 +- .../src/StorageResourceContainer.cs | 2 +- .../src/StorageResourceCopyFromUriOptions.cs | 2 +- ...sourceSingle.cs => StorageResourceItem.cs} | 14 +- ....cs => StorageResourceReadStreamResult.cs} | 16 +- .../StorageResourceWriteToOffsetOptions.cs | 2 +- .../src/StreamToUriJobPart.cs | 58 ++--- .../src/StreamToUriTransferJob.cs | 26 +- ...s.cs => TransferCheckpointStoreOptions.cs} | 8 +- .../src/TransferEventsInternal.cs | 4 +- ...s.cs => TransferItemCompletedEventArgs.cs} | 18 +- ...Args.cs => TransferItemFailedEventArgs.cs} | 18 +- ...rgs.cs => TransferItemSkippedEventArgs.cs} | 18 +- .../src/TransferJobInternal.cs | 160 ++++++------ .../src/TransferManagerOptions.cs | 6 +- .../src/TransferProgressTracker.cs | 8 +- .../src/UriToStreamJobPart.cs | 44 ++-- .../src/UriToStreamTransferJob.cs | 26 +- .../tests/AppendBlobStorageResourceTests.cs | 14 +- .../BlobContainerClientExtensionsTests.cs | 12 +- .../BlobStorageResourceContainerTests.cs | 8 +- .../tests/BlockBlobStorageResourceTests.cs | 18 +- .../tests/CommitChunkHandlerTests.cs | 18 +- .../tests/DataTransferTests.cs | 62 ++--- .../tests/GetTransfersTests.cs | 124 ++++----- .../LocalDirectoryStorageResourceTests.cs | 4 +- .../tests/LocalFileStorageResourceTests.cs | 10 +- .../tests/LocalTransferCheckpointerFactory.cs | 10 +- .../tests/LocalTransferCheckpointerTests.cs | 10 +- .../tests/MockStorageResource.cs | 14 +- .../tests/PageBlobStorageResourceTests.cs | 14 +- .../tests/PauseResumeTransferTests.cs | 154 +++++------ .../tests/ProgressHandlerAsserts.cs | 16 +- .../tests/ProgressHandlerTests.cs | 30 +-- .../tests/RehydrateStorageResourceTests.cs | 8 +- .../tests/Shared/CheckpointerTesting.cs | 8 +- .../tests/StartTransferCheckpointerTests.cs | 50 ++-- .../StartTransferDownloadDirectoryTests.cs | 70 ++--- .../tests/StartTransferDownloadTests.cs | 210 +++++++-------- .../StartTransferSyncCopyDirectoryTests.cs | 82 +++--- .../tests/StartTransferSyncCopyTests.cs | 124 ++++----- .../StartTransferUploadDirectoryTests.cs | 104 ++++---- .../tests/StartTransferUploadTests.cs | 226 ++++++++--------- .../tests/TestEventsRaised.cs | 138 +++++----- .../tests/TestProgressHandler.cs | 6 +- 96 files changed, 1685 insertions(+), 1703 deletions(-) rename sdk/storage/Azure.Storage.DataMovement/src/{StorageTransferEventArgs.cs => DataTransferEventArgs.cs} (89%) rename sdk/storage/Azure.Storage.DataMovement/src/{TransferOptions.cs => DataTransferOptions.cs} (75%) rename sdk/storage/Azure.Storage.DataMovement/src/{StorageTransferProgress.cs => DataTransferProgress.cs} (90%) rename sdk/storage/Azure.Storage.DataMovement/src/{StorageTransferStatus.cs => DataTransferStatus.cs} (86%) rename sdk/storage/Azure.Storage.DataMovement/src/Shared/{ErrorHandlingBehavior.cs => DataTransferErrorMode.cs} (92%) rename sdk/storage/Azure.Storage.DataMovement/src/Shared/{TransferType.cs => DataTransferOrder.cs} (76%) delete mode 100644 sdk/storage/Azure.Storage.DataMovement/src/Shared/StorageManagerTransferStatus.cs rename sdk/storage/Azure.Storage.DataMovement/src/Shared/{StorageResourceCreateMode.cs => StorageResourceCreationPreference.cs} (79%) rename sdk/storage/Azure.Storage.DataMovement/src/{StorageResourceSingle.cs => StorageResourceItem.cs} (94%) rename sdk/storage/Azure.Storage.DataMovement/src/{ReadStreamStorageResourceResult.cs => StorageResourceReadStreamResult.cs} (87%) rename sdk/storage/Azure.Storage.DataMovement/src/{TransferCheckpointerOptions.cs => TransferCheckpointStoreOptions.cs} (77%) rename sdk/storage/Azure.Storage.DataMovement/src/{SingleTransferCompletedEventArgs.cs => TransferItemCompletedEventArgs.cs} (78%) rename sdk/storage/Azure.Storage.DataMovement/src/{TransferFailedEventArgs.cs => TransferItemFailedEventArgs.cs} (81%) rename sdk/storage/Azure.Storage.DataMovement/src/{TransferSkippedEventArgs.cs => TransferItemSkippedEventArgs.cs} (78%) diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/CHANGELOG.md b/sdk/storage/Azure.Storage.DataMovement.Blobs/CHANGELOG.md index 7b464913527b..78511803539c 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/CHANGELOG.md @@ -21,6 +21,11 @@ - `*BlobStorageResource.GetPropertiesAsync` - `*BlobStorageResource.ReadStreamAsync` - `*BlobStorageResource.WriteFromStreamAsync` +- [BREAKING CHANGE] Renamed `BlobStorageResourceProvider.MakeResourceAsync` to `BlobStorageResourceProvider.CreateResourceAsync` +- [BREAKING CHANGE] Renamed `BlobStorageResourceContainerOptions.DirectoryPrefix` to `BlobDirectoryPrefix` +- [BREAKING CHANGE] Renamed `BlobStorageResourceContainerOptions.ResourceOptions` to `BlobOptions` +- [BREAKING CHANGE] Moved `BlobContainerClientTransferOptions` to the `Azure.Storage.DataMovement.Blobs` namespace + ### Bugs Fixed ### Other Changes diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/README.md b/sdk/storage/Azure.Storage.DataMovement.Blobs/README.md index beee7d543ee0..dbe8941187ed 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/README.md +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/README.md @@ -97,11 +97,11 @@ BlobContainerClientTransferOptions options = new BlobContainerClientTransferOpti { BlobContainerOptions = new BlobStorageResourceContainerOptions { - DirectoryPrefix = blobDirectoryPrefix + BlobDirectoryPrefix = blobDirectoryPrefix }, - TransferOptions = new TransferOptions() + TransferOptions = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite, + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists, } }; @@ -130,11 +130,11 @@ BlobContainerClientTransferOptions options = new BlobContainerClientTransferOpti { BlobContainerOptions = new BlobStorageResourceContainerOptions { - DirectoryPrefix = blobDirectoryPrefix + BlobDirectoryPrefix = blobDirectoryPrefix }, - TransferOptions = new TransferOptions() + TransferOptions = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite, + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists, } }; @@ -159,7 +159,7 @@ Blob `StorageResource` objects can be constructed with optional "options" argume ```C# Snippet:ResourceConstruction_Blobs_WithOptions_VirtualDirectory BlobStorageResourceContainerOptions virtualDirectoryOptions = new() { - DirectoryPrefix = "blob/directory/prefix" + BlobDirectoryPrefix = "blob/directory/prefix" }; StorageResource virtualDirectoryResource = new BlobStorageResourceContainer( @@ -190,9 +190,9 @@ if (BlobStorageResources.TryGetResourceProviders( out BlobStorageResourceProvider blobSrcProvider, out BlobStorageResourceProvider blobDstProvider)) { - sourceResource ??= await blobSrcProvider?.MakeResourceAsync( + sourceResource ??= await blobSrcProvider?.CreateResourceAsync( GenerateMySasCredential(info.SourcePath)); - destinationResource ??= await blobSrcProvider?.MakeResourceAsync( + destinationResource ??= await blobSrcProvider?.CreateResourceAsync( GenerateMySasCredential(info.DestinationPath)); } ``` @@ -221,7 +221,7 @@ DataTransfer dataTransfer = await transferManager.StartTransferAsync( { // Block blobs are the default if not specified BlobType = BlobType.Block, - DirectoryPrefix = optionalDestinationPrefix, + BlobDirectoryPrefix = optionalDestinationPrefix, }), transferOptions: options); await dataTransfer.WaitForCompletionAsync(); @@ -248,7 +248,7 @@ DataTransfer dataTransfer = await transferManager.StartTransferAsync( blobContainerClient, new BlobStorageResourceContainerOptions() { - DirectoryPrefix = optionalSourcePrefix + BlobDirectoryPrefix = optionalSourcePrefix }), destinationResource: new LocalDirectoryStorageResourceContainer(downloadPath)); await dataTransfer.WaitForCompletionAsync(); @@ -275,7 +275,7 @@ DataTransfer dataTransfer = await transferManager.StartTransferAsync( sourceContainer, new BlobStorageResourceContainerOptions() { - DirectoryPrefix = sourceDirectoryName + BlobDirectoryPrefix = sourceDirectoryName }), destinationResource: new BlobStorageResourceContainer( destinationContainer, @@ -284,7 +284,7 @@ DataTransfer dataTransfer = await transferManager.StartTransferAsync( // all source blobs will be copied as a single type of destination blob // defaults to block blobs if unspecified BlobType = BlobType.Block, - DirectoryPrefix = downloadPath + BlobDirectoryPrefix = downloadPath })); ``` diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.net6.0.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.net6.0.cs index 72037cac651e..7ea896a45d81 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.net6.0.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.net6.0.cs @@ -2,24 +2,15 @@ namespace Azure.Storage.Blobs { public static partial class BlobContainerClientExtensions { - public static System.Threading.Tasks.Task StartDownloadToDirectoryAsync(this Azure.Storage.Blobs.BlobContainerClient client, string localDirectoryPath, Azure.Storage.Blobs.Models.BlobContainerClientTransferOptions options) { throw null; } + public static System.Threading.Tasks.Task StartDownloadToDirectoryAsync(this Azure.Storage.Blobs.BlobContainerClient client, string localDirectoryPath, Azure.Storage.DataMovement.Blobs.BlobContainerClientTransferOptions options) { throw null; } public static System.Threading.Tasks.Task StartDownloadToDirectoryAsync(this Azure.Storage.Blobs.BlobContainerClient client, string localDirectoryPath, string blobDirectoryPrefix = null) { throw null; } - public static System.Threading.Tasks.Task StartUploadDirectoryAsync(this Azure.Storage.Blobs.BlobContainerClient client, string localDirectoryPath, Azure.Storage.Blobs.Models.BlobContainerClientTransferOptions options) { throw null; } + public static System.Threading.Tasks.Task StartUploadDirectoryAsync(this Azure.Storage.Blobs.BlobContainerClient client, string localDirectoryPath, Azure.Storage.DataMovement.Blobs.BlobContainerClientTransferOptions options) { throw null; } public static System.Threading.Tasks.Task StartUploadDirectoryAsync(this Azure.Storage.Blobs.BlobContainerClient client, string localDirectoryPath, string blobDirectoryPrefix = null) { throw null; } } } -namespace Azure.Storage.Blobs.Models -{ - public partial class BlobContainerClientTransferOptions - { - public BlobContainerClientTransferOptions() { } - public Azure.Storage.DataMovement.Blobs.BlobStorageResourceContainerOptions BlobContainerOptions { get { throw null; } set { } } - public Azure.Storage.DataMovement.TransferOptions TransferOptions { get { throw null; } set { } } - } -} namespace Azure.Storage.DataMovement.Blobs { - public partial class AppendBlobStorageResource : Azure.Storage.DataMovement.StorageResourceSingle + public partial class AppendBlobStorageResource : Azure.Storage.DataMovement.StorageResourceItem { public AppendBlobStorageResource(Azure.Storage.Blobs.Specialized.AppendBlobClient blobClient, Azure.Storage.DataMovement.Blobs.AppendBlobStorageResourceOptions options = null) { } protected override bool CanProduceUri { get { throw null; } } @@ -27,16 +18,16 @@ public AppendBlobStorageResource(Azure.Storage.Blobs.Specialized.AppendBlobClien protected override long MaxChunkSize { get { throw null; } } public override string Path { get { throw null; } } protected override string ResourceId { get { throw null; } } - protected override Azure.Storage.DataMovement.TransferType TransferType { get { throw null; } } + protected override Azure.Storage.DataMovement.DataTransferOrder TransferType { get { throw null; } } public override System.Uri Uri { get { throw null; } } protected override System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceSingle sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceSingle sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task GetPropertiesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task WriteFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class AppendBlobStorageResourceOptions : Azure.Storage.DataMovement.Blobs.BlobStorageResourceOptions { @@ -44,21 +35,27 @@ public AppendBlobStorageResourceOptions() { } public Azure.Storage.Blobs.Models.AppendBlobRequestConditions DestinationConditions { get { throw null; } set { } } public Azure.Storage.Blobs.Models.AppendBlobRequestConditions SourceConditions { get { throw null; } set { } } } + public partial class BlobContainerClientTransferOptions + { + public BlobContainerClientTransferOptions() { } + public Azure.Storage.DataMovement.Blobs.BlobStorageResourceContainerOptions BlobContainerOptions { get { throw null; } set { } } + public Azure.Storage.DataMovement.DataTransferOptions TransferOptions { get { throw null; } set { } } + } public partial class BlobStorageResourceContainer : Azure.Storage.DataMovement.StorageResourceContainer { public BlobStorageResourceContainer(Azure.Storage.Blobs.BlobContainerClient blobContainerClient, Azure.Storage.DataMovement.Blobs.BlobStorageResourceContainerOptions options = null) { } protected override bool CanProduceUri { get { throw null; } } public override string Path { get { throw null; } } public override System.Uri Uri { get { throw null; } } - protected override Azure.Storage.DataMovement.StorageResourceSingle GetChildStorageResource(string path) { throw null; } + protected override Azure.Storage.DataMovement.StorageResourceItem GetStorageResourceReference(string path) { throw null; } protected override System.Collections.Generic.IAsyncEnumerable GetStorageResourcesAsync([System.Runtime.CompilerServices.EnumeratorCancellationAttribute] System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class BlobStorageResourceContainerOptions { public BlobStorageResourceContainerOptions() { } + public string BlobDirectoryPrefix { get { throw null; } set { } } + public Azure.Storage.DataMovement.Blobs.BlobStorageResourceOptions BlobOptions { get { throw null; } set { } } public Azure.Storage.Blobs.Models.BlobType BlobType { get { throw null; } set { } } - public string DirectoryPrefix { get { throw null; } set { } } - public Azure.Storage.DataMovement.Blobs.BlobStorageResourceOptions ResourceOptions { get { throw null; } set { } } } public partial class BlobStorageResourceOptions { @@ -75,16 +72,16 @@ public BlobStorageResourceOptions() { } public partial class BlobStorageResourceProvider { internal BlobStorageResourceProvider() { } - public System.Threading.Tasks.Task MakeResourceAsync(Azure.AzureSasCredential credential, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public System.Threading.Tasks.Task MakeResourceAsync(Azure.Core.TokenCredential credential, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public System.Threading.Tasks.Task CreateResourceAsync(Azure.AzureSasCredential credential, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public System.Threading.Tasks.Task CreateResourceAsync(Azure.Core.TokenCredential credential, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public System.Threading.Tasks.Task CreateResourceAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public System.Threading.Tasks.Task MakeResourceAsync(Azure.Storage.StorageSharedKeyCredential credential, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public System.Threading.Tasks.Task MakeResourceAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public static partial class BlobStorageResources { public static bool TryGetResourceProviders(Azure.Storage.DataMovement.DataTransferProperties info, out Azure.Storage.DataMovement.Blobs.BlobStorageResourceProvider sourceProvider, out Azure.Storage.DataMovement.Blobs.BlobStorageResourceProvider destinationProvider) { throw null; } } - public partial class BlockBlobStorageResource : Azure.Storage.DataMovement.StorageResourceSingle + public partial class BlockBlobStorageResource : Azure.Storage.DataMovement.StorageResourceItem { public BlockBlobStorageResource(Azure.Storage.Blobs.Specialized.BlockBlobClient blobClient, Azure.Storage.DataMovement.Blobs.BlockBlobStorageResourceOptions options = null) { } protected override bool CanProduceUri { get { throw null; } } @@ -92,16 +89,16 @@ public BlockBlobStorageResource(Azure.Storage.Blobs.Specialized.BlockBlobClient protected override long MaxChunkSize { get { throw null; } } public override string Path { get { throw null; } } protected override string ResourceId { get { throw null; } } - protected override Azure.Storage.DataMovement.TransferType TransferType { get { throw null; } } + protected override Azure.Storage.DataMovement.DataTransferOrder TransferType { get { throw null; } } public override System.Uri Uri { get { throw null; } } protected override System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceSingle sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceSingle sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task GetPropertiesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task WriteFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class BlockBlobStorageResourceOptions : Azure.Storage.DataMovement.Blobs.BlobStorageResourceOptions { @@ -109,7 +106,7 @@ public BlockBlobStorageResourceOptions() { } public Azure.Storage.Blobs.Models.BlobRequestConditions DestinationConditions { get { throw null; } set { } } public Azure.Storage.Blobs.Models.BlobRequestConditions SourceConditions { get { throw null; } set { } } } - public partial class PageBlobStorageResource : Azure.Storage.DataMovement.StorageResourceSingle + public partial class PageBlobStorageResource : Azure.Storage.DataMovement.StorageResourceItem { public PageBlobStorageResource(Azure.Storage.Blobs.Specialized.PageBlobClient blobClient, Azure.Storage.DataMovement.Blobs.PageBlobStorageResourceOptions options = null) { } protected override bool CanProduceUri { get { throw null; } } @@ -117,16 +114,16 @@ public PageBlobStorageResource(Azure.Storage.Blobs.Specialized.PageBlobClient bl protected override long MaxChunkSize { get { throw null; } } public override string Path { get { throw null; } } protected override string ResourceId { get { throw null; } } - protected override Azure.Storage.DataMovement.TransferType TransferType { get { throw null; } } + protected override Azure.Storage.DataMovement.DataTransferOrder TransferType { get { throw null; } } public override System.Uri Uri { get { throw null; } } protected override System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceSingle sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceSingle sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task GetPropertiesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task WriteFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class PageBlobStorageResourceOptions : Azure.Storage.DataMovement.Blobs.BlobStorageResourceOptions { diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.netstandard2.0.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.netstandard2.0.cs index 72037cac651e..7ea896a45d81 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.netstandard2.0.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.netstandard2.0.cs @@ -2,24 +2,15 @@ namespace Azure.Storage.Blobs { public static partial class BlobContainerClientExtensions { - public static System.Threading.Tasks.Task StartDownloadToDirectoryAsync(this Azure.Storage.Blobs.BlobContainerClient client, string localDirectoryPath, Azure.Storage.Blobs.Models.BlobContainerClientTransferOptions options) { throw null; } + public static System.Threading.Tasks.Task StartDownloadToDirectoryAsync(this Azure.Storage.Blobs.BlobContainerClient client, string localDirectoryPath, Azure.Storage.DataMovement.Blobs.BlobContainerClientTransferOptions options) { throw null; } public static System.Threading.Tasks.Task StartDownloadToDirectoryAsync(this Azure.Storage.Blobs.BlobContainerClient client, string localDirectoryPath, string blobDirectoryPrefix = null) { throw null; } - public static System.Threading.Tasks.Task StartUploadDirectoryAsync(this Azure.Storage.Blobs.BlobContainerClient client, string localDirectoryPath, Azure.Storage.Blobs.Models.BlobContainerClientTransferOptions options) { throw null; } + public static System.Threading.Tasks.Task StartUploadDirectoryAsync(this Azure.Storage.Blobs.BlobContainerClient client, string localDirectoryPath, Azure.Storage.DataMovement.Blobs.BlobContainerClientTransferOptions options) { throw null; } public static System.Threading.Tasks.Task StartUploadDirectoryAsync(this Azure.Storage.Blobs.BlobContainerClient client, string localDirectoryPath, string blobDirectoryPrefix = null) { throw null; } } } -namespace Azure.Storage.Blobs.Models -{ - public partial class BlobContainerClientTransferOptions - { - public BlobContainerClientTransferOptions() { } - public Azure.Storage.DataMovement.Blobs.BlobStorageResourceContainerOptions BlobContainerOptions { get { throw null; } set { } } - public Azure.Storage.DataMovement.TransferOptions TransferOptions { get { throw null; } set { } } - } -} namespace Azure.Storage.DataMovement.Blobs { - public partial class AppendBlobStorageResource : Azure.Storage.DataMovement.StorageResourceSingle + public partial class AppendBlobStorageResource : Azure.Storage.DataMovement.StorageResourceItem { public AppendBlobStorageResource(Azure.Storage.Blobs.Specialized.AppendBlobClient blobClient, Azure.Storage.DataMovement.Blobs.AppendBlobStorageResourceOptions options = null) { } protected override bool CanProduceUri { get { throw null; } } @@ -27,16 +18,16 @@ public AppendBlobStorageResource(Azure.Storage.Blobs.Specialized.AppendBlobClien protected override long MaxChunkSize { get { throw null; } } public override string Path { get { throw null; } } protected override string ResourceId { get { throw null; } } - protected override Azure.Storage.DataMovement.TransferType TransferType { get { throw null; } } + protected override Azure.Storage.DataMovement.DataTransferOrder TransferType { get { throw null; } } public override System.Uri Uri { get { throw null; } } protected override System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceSingle sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceSingle sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task GetPropertiesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task WriteFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class AppendBlobStorageResourceOptions : Azure.Storage.DataMovement.Blobs.BlobStorageResourceOptions { @@ -44,21 +35,27 @@ public AppendBlobStorageResourceOptions() { } public Azure.Storage.Blobs.Models.AppendBlobRequestConditions DestinationConditions { get { throw null; } set { } } public Azure.Storage.Blobs.Models.AppendBlobRequestConditions SourceConditions { get { throw null; } set { } } } + public partial class BlobContainerClientTransferOptions + { + public BlobContainerClientTransferOptions() { } + public Azure.Storage.DataMovement.Blobs.BlobStorageResourceContainerOptions BlobContainerOptions { get { throw null; } set { } } + public Azure.Storage.DataMovement.DataTransferOptions TransferOptions { get { throw null; } set { } } + } public partial class BlobStorageResourceContainer : Azure.Storage.DataMovement.StorageResourceContainer { public BlobStorageResourceContainer(Azure.Storage.Blobs.BlobContainerClient blobContainerClient, Azure.Storage.DataMovement.Blobs.BlobStorageResourceContainerOptions options = null) { } protected override bool CanProduceUri { get { throw null; } } public override string Path { get { throw null; } } public override System.Uri Uri { get { throw null; } } - protected override Azure.Storage.DataMovement.StorageResourceSingle GetChildStorageResource(string path) { throw null; } + protected override Azure.Storage.DataMovement.StorageResourceItem GetStorageResourceReference(string path) { throw null; } protected override System.Collections.Generic.IAsyncEnumerable GetStorageResourcesAsync([System.Runtime.CompilerServices.EnumeratorCancellationAttribute] System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class BlobStorageResourceContainerOptions { public BlobStorageResourceContainerOptions() { } + public string BlobDirectoryPrefix { get { throw null; } set { } } + public Azure.Storage.DataMovement.Blobs.BlobStorageResourceOptions BlobOptions { get { throw null; } set { } } public Azure.Storage.Blobs.Models.BlobType BlobType { get { throw null; } set { } } - public string DirectoryPrefix { get { throw null; } set { } } - public Azure.Storage.DataMovement.Blobs.BlobStorageResourceOptions ResourceOptions { get { throw null; } set { } } } public partial class BlobStorageResourceOptions { @@ -75,16 +72,16 @@ public BlobStorageResourceOptions() { } public partial class BlobStorageResourceProvider { internal BlobStorageResourceProvider() { } - public System.Threading.Tasks.Task MakeResourceAsync(Azure.AzureSasCredential credential, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public System.Threading.Tasks.Task MakeResourceAsync(Azure.Core.TokenCredential credential, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public System.Threading.Tasks.Task CreateResourceAsync(Azure.AzureSasCredential credential, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public System.Threading.Tasks.Task CreateResourceAsync(Azure.Core.TokenCredential credential, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public System.Threading.Tasks.Task CreateResourceAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public System.Threading.Tasks.Task MakeResourceAsync(Azure.Storage.StorageSharedKeyCredential credential, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public System.Threading.Tasks.Task MakeResourceAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public static partial class BlobStorageResources { public static bool TryGetResourceProviders(Azure.Storage.DataMovement.DataTransferProperties info, out Azure.Storage.DataMovement.Blobs.BlobStorageResourceProvider sourceProvider, out Azure.Storage.DataMovement.Blobs.BlobStorageResourceProvider destinationProvider) { throw null; } } - public partial class BlockBlobStorageResource : Azure.Storage.DataMovement.StorageResourceSingle + public partial class BlockBlobStorageResource : Azure.Storage.DataMovement.StorageResourceItem { public BlockBlobStorageResource(Azure.Storage.Blobs.Specialized.BlockBlobClient blobClient, Azure.Storage.DataMovement.Blobs.BlockBlobStorageResourceOptions options = null) { } protected override bool CanProduceUri { get { throw null; } } @@ -92,16 +89,16 @@ public BlockBlobStorageResource(Azure.Storage.Blobs.Specialized.BlockBlobClient protected override long MaxChunkSize { get { throw null; } } public override string Path { get { throw null; } } protected override string ResourceId { get { throw null; } } - protected override Azure.Storage.DataMovement.TransferType TransferType { get { throw null; } } + protected override Azure.Storage.DataMovement.DataTransferOrder TransferType { get { throw null; } } public override System.Uri Uri { get { throw null; } } protected override System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceSingle sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceSingle sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task GetPropertiesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task WriteFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class BlockBlobStorageResourceOptions : Azure.Storage.DataMovement.Blobs.BlobStorageResourceOptions { @@ -109,7 +106,7 @@ public BlockBlobStorageResourceOptions() { } public Azure.Storage.Blobs.Models.BlobRequestConditions DestinationConditions { get { throw null; } set { } } public Azure.Storage.Blobs.Models.BlobRequestConditions SourceConditions { get { throw null; } set { } } } - public partial class PageBlobStorageResource : Azure.Storage.DataMovement.StorageResourceSingle + public partial class PageBlobStorageResource : Azure.Storage.DataMovement.StorageResourceItem { public PageBlobStorageResource(Azure.Storage.Blobs.Specialized.PageBlobClient blobClient, Azure.Storage.DataMovement.Blobs.PageBlobStorageResourceOptions options = null) { } protected override bool CanProduceUri { get { throw null; } } @@ -117,16 +114,16 @@ public PageBlobStorageResource(Azure.Storage.Blobs.Specialized.PageBlobClient bl protected override long MaxChunkSize { get { throw null; } } public override string Path { get { throw null; } } protected override string ResourceId { get { throw null; } } - protected override Azure.Storage.DataMovement.TransferType TransferType { get { throw null; } } + protected override Azure.Storage.DataMovement.DataTransferOrder TransferType { get { throw null; } } public override System.Uri Uri { get { throw null; } } protected override System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceSingle sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceSingle sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task GetPropertiesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task WriteFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class PageBlobStorageResourceOptions : Azure.Storage.DataMovement.Blobs.BlobStorageResourceOptions { diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/samples/Sample01b_HelloWorldAsync.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/samples/Sample01b_HelloWorldAsync.cs index 9ff24986ad81..b9cb32ed9e0a 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/samples/Sample01b_HelloWorldAsync.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/samples/Sample01b_HelloWorldAsync.cs @@ -65,7 +65,7 @@ public async Task ResourceConstructionDemonstration() #region Snippet:ResourceConstruction_Blobs_WithOptions_VirtualDirectory BlobStorageResourceContainerOptions virtualDirectoryOptions = new() { - DirectoryPrefix = "blob/directory/prefix" + BlobDirectoryPrefix = "blob/directory/prefix" }; StorageResource virtualDirectoryResource = new BlobStorageResourceContainer( @@ -161,7 +161,7 @@ public async Task RehydrateBlobResource_SasAsync() DataTransfer dataTransfer = await transferManager.StartTransferAsync( sourceResource: source, destinationResource: destination); - await dataTransfer.PauseIfRunningAsync(); + await dataTransfer.PauseAsync(); DataTransferProperties info = await transferManager.GetResumableTransfersAsync().FirstAsync(); @@ -181,9 +181,9 @@ AzureSasCredential GenerateMySasCredential(string blobUri) out BlobStorageResourceProvider blobSrcProvider, out BlobStorageResourceProvider blobDstProvider)) { - sourceResource ??= await blobSrcProvider?.MakeResourceAsync( + sourceResource ??= await blobSrcProvider?.CreateResourceAsync( GenerateMySasCredential(info.SourcePath)); - destinationResource ??= await blobSrcProvider?.MakeResourceAsync( + destinationResource ??= await blobSrcProvider?.CreateResourceAsync( GenerateMySasCredential(info.DestinationPath)); } #endregion @@ -249,7 +249,7 @@ public async Task DownloadSingle_SharedKeyAuthAsync() // Create Blob Data Controller to skip through all failures TransferManagerOptions options = new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure + ErrorHandling = DataTransferErrorMode.ContinueOnFailure }; TransferManager transferManager = new TransferManager(options); @@ -340,14 +340,14 @@ public async Task UploadDirectory_SasAsync() // Get a storage resource to a destination blob directory StorageResourceContainer directoryDestination = new BlobStorageResourceContainer( blobContainerClient, - new BlobStorageResourceContainerOptions() { DirectoryPrefix = "sample-directory" }); + new BlobStorageResourceContainerOptions() { BlobDirectoryPrefix = "sample-directory" }); // Create BlobTransferManager with event handler in Options bag TransferManagerOptions transferManagerOptions = new TransferManagerOptions(); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { MaximumTransferChunkSize = 4 * Constants.MB, - CreateMode = StorageResourceCreateMode.Overwrite, + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists, }; TransferManager transferManager = new TransferManager(transferManagerOptions); @@ -362,7 +362,7 @@ public async Task UploadDirectory_SasAsync() { // Block blobs are the default if not specified BlobType = BlobType.Block, - DirectoryPrefix = optionalDestinationPrefix, + BlobDirectoryPrefix = optionalDestinationPrefix, }), transferOptions: options); await dataTransfer.WaitForCompletionAsync(); @@ -437,8 +437,8 @@ public async Task UploadDirectory_CompletedEventHandler() { // Create BlobTransferManager with event handler in Options bag TransferManagerOptions options = new TransferManagerOptions(); - TransferOptions transferOptions = new TransferOptions(); - transferOptions.SingleTransferCompleted += (SingleTransferCompletedEventArgs args) => + DataTransferOptions transferOptions = new DataTransferOptions(); + transferOptions.ItemTransferCompleted += (TransferItemCompletedEventArgs args) => { using (StreamWriter logStream = File.AppendText(logFile)) { @@ -453,7 +453,7 @@ public async Task UploadDirectory_CompletedEventHandler() new LocalDirectoryStorageResourceContainer(sourcePath), new BlobStorageResourceContainer( container, - new BlobStorageResourceContainerOptions() { DirectoryPrefix = "sample-blob-directory" })); + new BlobStorageResourceContainerOptions() { BlobDirectoryPrefix = "sample-blob-directory" })); } finally { @@ -524,10 +524,10 @@ public async Task UploadDirectory_EventHandler_SasAsync() { // Create BlobTransferManager with event handler in Options bag TransferManagerOptions options = new TransferManagerOptions(); - TransferOptions transferOptions = new TransferOptions(); - transferOptions.TransferStatus += (TransferStatusEventArgs args) => + DataTransferOptions transferOptions = new DataTransferOptions(); + transferOptions.TransferStatusChanged += (TransferStatusEventArgs args) => { - if (args.StorageTransferStatus == StorageTransferStatus.Completed) + if (args.StorageTransferStatus == DataTransferStatus.Completed) { using (StreamWriter logStream = File.AppendText(logFile)) { @@ -536,7 +536,7 @@ public async Task UploadDirectory_EventHandler_SasAsync() } return Task.CompletedTask; }; - transferOptions.TransferFailed += (TransferFailedEventArgs args) => + transferOptions.ItemTransferFailed += (TransferItemFailedEventArgs args) => { using (StreamWriter logStream = File.AppendText(logFile)) { @@ -556,7 +556,7 @@ public async Task UploadDirectory_EventHandler_SasAsync() new LocalDirectoryStorageResourceContainer(sourcePath), new BlobStorageResourceContainer( container, - new BlobStorageResourceContainerOptions() { DirectoryPrefix = "sample-blob-directory" })); + new BlobStorageResourceContainerOptions() { BlobDirectoryPrefix = "sample-blob-directory" })); } finally { @@ -609,9 +609,9 @@ public async Task DownloadDirectory_EventHandler_ActiveDirectoryAuthAsync() { // Get a reference to a source blobs and upload sample content to download StorageResourceContainer sourceDirectory = new BlobStorageResourceContainer(blobContainerClient, - new BlobStorageResourceContainerOptions() { DirectoryPrefix = "sample-blob-directory" }); + new BlobStorageResourceContainerOptions() { BlobDirectoryPrefix = "sample-blob-directory" }); StorageResourceContainer sourceDirectory2 = new BlobStorageResourceContainer(blobContainerClient, - new BlobStorageResourceContainerOptions() { DirectoryPrefix = "sample-blob-directory2" }); + new BlobStorageResourceContainerOptions() { BlobDirectoryPrefix = "sample-blob-directory2" }); StorageResourceContainer destinationDirectory = new LocalDirectoryStorageResourceContainer(downloadPath); StorageResourceContainer destinationDirectory2 = new LocalDirectoryStorageResourceContainer(downloadPath2); @@ -624,8 +624,8 @@ public async Task DownloadDirectory_EventHandler_ActiveDirectoryAuthAsync() // Create BlobTransferManager with event handler in Options bag TransferManagerOptions options = new TransferManagerOptions(); - TransferOptions downloadOptions = new TransferOptions(); - downloadOptions.TransferFailed += async (TransferFailedEventArgs args) => + DataTransferOptions downloadOptions = new DataTransferOptions(); + downloadOptions.ItemTransferFailed += async (TransferItemFailedEventArgs args) => { // Log Exception Message Console.WriteLine(args.Exception.Message); @@ -646,7 +646,7 @@ await transferManager.StartTransferAsync( blobContainerClient, new BlobStorageResourceContainerOptions() { - DirectoryPrefix = optionalSourcePrefix + BlobDirectoryPrefix = optionalSourcePrefix }), destinationResource: new LocalDirectoryStorageResourceContainer(downloadPath)); await dataTransfer.WaitForCompletionAsync(); @@ -713,7 +713,7 @@ public async Task CopySingle_ConnectionStringAsync() #endregion Assert.IsTrue(await destinationAppendBlobClient.ExistsAsync()); - Assert.AreEqual(dataTransfer.TransferStatus, StorageTransferStatus.Completed); + Assert.AreEqual(dataTransfer.TransferStatus, DataTransferStatus.Completed); } finally { @@ -767,9 +767,9 @@ public async Task CopyDirectory() // Get a reference to a source blobs and upload sample content to download StorageResourceContainer sourceDirectory1 = new BlobStorageResourceContainer(container, - new BlobStorageResourceContainerOptions() { DirectoryPrefix = sourceDirectoryName }); + new BlobStorageResourceContainerOptions() { BlobDirectoryPrefix = sourceDirectoryName }); StorageResourceContainer sourceDirectory2 = new BlobStorageResourceContainer(container, - new BlobStorageResourceContainerOptions() { DirectoryPrefix = sourceDirectoryName2 }); + new BlobStorageResourceContainerOptions() { BlobDirectoryPrefix = sourceDirectoryName2 }); // Create destination paths StorageResourceContainer destinationDirectory1 = new LocalDirectoryStorageResourceContainer(downloadPath); @@ -786,8 +786,8 @@ public async Task CopyDirectory() // Create Blob Transfer Manager TransferManager transferManager = new TransferManager(default); #pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously - TransferOptions options = new TransferOptions(); - options.TransferFailed += async (TransferFailedEventArgs args) => + DataTransferOptions options = new DataTransferOptions(); + options.ItemTransferFailed += async (TransferItemFailedEventArgs args) => { //await LogFailedFileAsync(args.SourceFileUri, args.DestinationFileClient.Uri, args.Exception.Message); }; @@ -802,7 +802,7 @@ public async Task CopyDirectory() sourceContainer, new BlobStorageResourceContainerOptions() { - DirectoryPrefix = sourceDirectoryName + BlobDirectoryPrefix = sourceDirectoryName }), destinationResource: new BlobStorageResourceContainer( destinationContainer, @@ -811,7 +811,7 @@ public async Task CopyDirectory() // all source blobs will be copied as a single type of destination blob // defaults to block blobs if unspecified BlobType = BlobType.Block, - DirectoryPrefix = downloadPath + BlobDirectoryPrefix = downloadPath })); #endregion } @@ -878,8 +878,8 @@ StorageSharedKeyCredential GetMyCredential(string uri) out LocalStorageResourceProvider localSrcProvider, out LocalStorageResourceProvider localDstProvider)) { - sourceResource ??= localSrcProvider.MakeResource(); - destinationResource ??= localDstProvider.MakeResource(); + sourceResource ??= localSrcProvider.CreateResource(); + destinationResource ??= localDstProvider.CreateResource(); } return (sourceResource, destinationResource); } @@ -942,7 +942,7 @@ public async Task PauseAndResumeAsync_DataTransferPause() destinationResource: destinationResource); // Pause from the DataTransfer object - await dataTransfer.PauseIfRunningAsync(); + await dataTransfer.PauseAsync(); DataTransfer resumedTransfer = await transferManager.ResumeTransferAsync( transferId: dataTransfer.Id, @@ -1007,11 +1007,11 @@ public async Task UploadDirectory() { BlobContainerOptions = new BlobStorageResourceContainerOptions { - DirectoryPrefix = blobDirectoryPrefix + BlobDirectoryPrefix = blobDirectoryPrefix }, - TransferOptions = new TransferOptions() + TransferOptions = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite, + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists, } }; @@ -1077,11 +1077,11 @@ public async Task DownloadDirectory() { BlobContainerOptions = new BlobStorageResourceContainerOptions { - DirectoryPrefix = blobDirectoryPrefix + BlobDirectoryPrefix = blobDirectoryPrefix }, - TransferOptions = new TransferOptions() + TransferOptions = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite, + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists, } }; diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/AppendBlobStorageResource.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/AppendBlobStorageResource.cs index 57ee2f8c5992..c1d8c26d278a 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/AppendBlobStorageResource.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/AppendBlobStorageResource.cs @@ -15,7 +15,7 @@ namespace Azure.Storage.DataMovement.Blobs /// /// The AppendBlobStorageResource class. /// - public class AppendBlobStorageResource : StorageResourceSingle + public class AppendBlobStorageResource : StorageResourceItem { internal AppendBlobClient BlobClient { get; set; } internal AppendBlobStorageResourceOptions _options; @@ -45,7 +45,7 @@ public class AppendBlobStorageResource : StorageResourceSingle /// /// Defines the recommended Transfer Type for the storage resource. /// - protected override TransferType TransferType => TransferType.Sequential; + protected override DataTransferOrder TransferType => DataTransferOrder.Sequential; /// /// Defines the maximum chunk size for the storage resource. @@ -103,8 +103,8 @@ internal AppendBlobStorageResource( /// Optional to propagate /// notifications that the operation should be cancelled. /// - /// The resulting from the upload operation. - protected override async Task ReadStreamAsync( + /// The resulting from the upload operation. + protected override async Task ReadStreamAsync( long position = 0, long? length = default, CancellationToken cancellationToken = default) @@ -135,7 +135,7 @@ protected override async Task ReadStreamAsync( /// notifications that the operation should be cancelled. /// /// - protected override async Task WriteFromStreamAsync( + protected override async Task CopyFromStreamAsync( Stream stream, long streamLength, bool overwrite, @@ -162,7 +162,7 @@ await BlobClient.AppendBlockAsync( /// /// Uploads/copy the blob from a URL. /// - /// An instance of + /// An instance of /// that contains the data to be uploaded. /// /// If set to true, will overwrite the blob if it currently exists. @@ -177,7 +177,7 @@ await BlobClient.AppendBlockAsync( /// /// protected override async Task CopyFromUriAsync( - StorageResourceSingle sourceResource, + StorageResourceItem sourceResource, bool overwrite, long completeLength, StorageResourceCopyFromUriOptions options = default, @@ -203,7 +203,7 @@ await BlobClient.AppendBlockFromUriAsync( /// /// Uploads/copy the blob from a URL. Supports ranged operations. /// - /// An instance of + /// An instance of /// that contains the data to be uploaded. /// /// If set to true, will overwrite the blob if it already exists. @@ -219,7 +219,7 @@ await BlobClient.AppendBlockFromUriAsync( /// /// protected override async Task CopyBlockFromUriAsync( - StorageResourceSingle sourceResource, + StorageResourceItem sourceResource, HttpRange range, bool overwrite, long completeLength = 0, diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/Azure.Storage.DataMovement.Blobs.csproj b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/Azure.Storage.DataMovement.Blobs.csproj index 2021ed804969..bd3b0634b701 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/Azure.Storage.DataMovement.Blobs.csproj +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/Azure.Storage.DataMovement.Blobs.csproj @@ -101,7 +101,6 @@ - diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobContainerClientExtensions.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobContainerClientExtensions.cs index c0743924b478..1e2a14bb3a44 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobContainerClientExtensions.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobContainerClientExtensions.cs @@ -34,7 +34,7 @@ public static Task StartUploadDirectoryAsync( { BlobContainerOptions = new() { - DirectoryPrefix = blobDirectoryPrefix, + BlobDirectoryPrefix = blobDirectoryPrefix, } }); @@ -71,7 +71,7 @@ public static Task StartDownloadToDirectoryAsync( { BlobContainerOptions = new() { - DirectoryPrefix = blobDirectoryPrefix + BlobDirectoryPrefix = blobDirectoryPrefix }, }); diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobContainerClientTransferOptions.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobContainerClientTransferOptions.cs index 41b749cbc0ce..5bba76575758 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobContainerClientTransferOptions.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobContainerClientTransferOptions.cs @@ -1,10 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using Azure.Storage.DataMovement; -using Azure.Storage.DataMovement.Blobs; +using Azure.Storage.Blobs; -namespace Azure.Storage.Blobs.Models +namespace Azure.Storage.DataMovement.Blobs { /// /// Options applying to data transfer uploads and downloads using the extension methods @@ -21,6 +20,6 @@ public class BlobContainerClientTransferOptions /// /// Options pertaining to the data tranfer. /// - public TransferOptions TransferOptions { get; set; } + public DataTransferOptions TransferOptions { get; set; } } } diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobStorageResourceContainer.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobStorageResourceContainer.cs index 458e197073f1..436a4f58ea36 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobStorageResourceContainer.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobStorageResourceContainer.cs @@ -36,7 +36,7 @@ public BlobStorageResourceContainer(BlobContainerClient blobContainerClient, Blo { _blobContainerClient = blobContainerClient; _options = options; - _directoryPrefix = _options?.DirectoryPrefix; + _directoryPrefix = _options?.BlobDirectoryPrefix; Uri = _directoryPrefix != null ? new BlobUriBuilder(_blobContainerClient.Uri) @@ -66,7 +66,7 @@ public BlobStorageResourceContainer(BlobContainerClient blobContainerClient, Blo /// Retrieves a single blob resource based on this respective resource. /// /// The path to the storage resource, relative to the directory prefix if any. - protected override StorageResourceSingle GetChildStorageResource(string path) + protected override StorageResourceItem GetStorageResourceReference(string path) => GetBlobAsStorageResource(ApplyOptionalPrefix(path), type: _options?.BlobType ?? BlobType.Block); /// @@ -77,10 +77,10 @@ protected override StorageResourceSingle GetChildStorageResource(string path) /// The type of that the storage resource is. /// Etag for the resource to lock on. /// - /// which represents the child blob client of + /// which represents the child blob client of /// this respective blob virtual directory resource. /// - private StorageResourceSingle GetBlobAsStorageResource( + private StorageResourceItem GetBlobAsStorageResource( string blobName, long? length = default, BlobType type = BlobType.Block, diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobStorageResourceContainerOptions.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobStorageResourceContainerOptions.cs index 6fe55f181c1e..a311ab7c086e 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobStorageResourceContainerOptions.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobStorageResourceContainerOptions.cs @@ -20,11 +20,11 @@ public class BlobStorageResourceContainerOptions /// /// Optional. The directory prefix within the Blob Storage Container to use in the transfer. /// - public string DirectoryPrefix { get; set; } + public string BlobDirectoryPrefix { get; set; } /// /// Optional. Additional options applied to each resource in the container. /// - public BlobStorageResourceOptions ResourceOptions { get; set; } + public BlobStorageResourceOptions BlobOptions { get; set; } } } diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobStorageResourceProvider.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobStorageResourceProvider.cs index 38b5ca77d047..6c506c9f008c 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobStorageResourceProvider.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlobStorageResourceProvider.cs @@ -61,7 +61,7 @@ public async Task MakeResourceAsync(StorageSharedKeyCredential /// Creates the configured instance using the given . /// /// - public async Task MakeResourceAsync(AzureSasCredential credential, CancellationToken cancellationToken = default) + public async Task CreateResourceAsync(AzureSasCredential credential, CancellationToken cancellationToken = default) { return ResourceType switch { @@ -85,7 +85,7 @@ public async Task MakeResourceAsync(AzureSasCredential credenti /// Creates the configured instance using the given . /// /// - public async Task MakeResourceAsync(TokenCredential credential, CancellationToken cancellationToken = default) + public async Task CreateResourceAsync(TokenCredential credential, CancellationToken cancellationToken = default) { return ResourceType switch { @@ -109,7 +109,7 @@ public async Task MakeResourceAsync(TokenCredential credential, /// Creates the configured instance using no credential. /// /// - public async Task MakeResourceAsync(CancellationToken cancellationToken = default) + public async Task CreateResourceAsync(CancellationToken cancellationToken = default) { return ResourceType switch { diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlockBlobStorageResource.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlockBlobStorageResource.cs index 830f1be57afd..6a26817faf98 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlockBlobStorageResource.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlockBlobStorageResource.cs @@ -18,7 +18,7 @@ namespace Azure.Storage.DataMovement.Blobs /// /// The BlockBlobStorageResource class. /// - public class BlockBlobStorageResource : StorageResourceSingle + public class BlockBlobStorageResource : StorageResourceItem { internal BlockBlobClient BlobClient { get; set; } internal BlockBlobStorageResourceOptions _options; @@ -54,7 +54,7 @@ public class BlockBlobStorageResource : StorageResourceSingle /// /// Defines the recommended Transfer Type of the storage resource. /// - protected override TransferType TransferType => TransferType.Concurrent; + protected override DataTransferOrder TransferType => DataTransferOrder.Unordered; /// /// Store Max Initial Size that a Put Blob can get to. @@ -119,8 +119,8 @@ internal BlockBlobStorageResource( /// /// Optional to propagate /// notifications that the operation should be cancelled. - /// The resulting from the upload operation. - protected override async Task ReadStreamAsync( + /// The resulting from the upload operation. + protected override async Task ReadStreamAsync( long position = 0, long? length = default, CancellationToken cancellationToken = default) @@ -153,7 +153,7 @@ await BlobClient.DownloadStreamingAsync( /// notifications that the operation should be cancelled. /// /// - protected override async Task WriteFromStreamAsync( + protected override async Task CopyFromStreamAsync( Stream stream, long streamLength, bool overwrite, @@ -189,7 +189,7 @@ await BlobClient.StageBlockAsync( /// /// Uploads/copy the blob from a URL. /// - /// An instance of + /// An instance of /// that contains the data to be uploaded. /// /// If set to true, will overwrite the blob if exists. @@ -204,7 +204,7 @@ await BlobClient.StageBlockAsync( /// /// protected override async Task CopyFromUriAsync( - StorageResourceSingle sourceResource, + StorageResourceItem sourceResource, bool overwrite, long completeLength, StorageResourceCopyFromUriOptions options = default, @@ -223,7 +223,7 @@ await BlobClient.SyncUploadFromUriAsync( /// /// Uploads/copy the blob from a URL. Supports ranged operations. /// - /// An instance of + /// An instance of /// that contains the data to be uploaded. /// The range of the blob to upload/copy. /// @@ -239,7 +239,7 @@ await BlobClient.SyncUploadFromUriAsync( /// /// protected override async Task CopyBlockFromUriAsync( - StorageResourceSingle sourceResource, + StorageResourceItem sourceResource, HttpRange range, bool overwrite, long completeLength = 0, diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/DataMovementBlobsExtensions.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/DataMovementBlobsExtensions.cs index 1dba104e1ef4..25e981c11c55 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/DataMovementBlobsExtensions.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/DataMovementBlobsExtensions.cs @@ -62,9 +62,9 @@ internal static StorageResourceProperties ToStorageResourceProperties(this BlobD lastAccessed: blobProperties.LastAccessed); } - internal static ReadStreamStorageResourceResult ToReadStreamStorageResourceInfo(this BlobDownloadStreamingResult result) + internal static StorageResourceReadStreamResult ToReadStreamStorageResourceInfo(this BlobDownloadStreamingResult result) { - return new ReadStreamStorageResourceResult( + return new StorageResourceReadStreamResult( content: result.Content, contentRange: result.Details.ContentRange, acceptRanges: result.Details.AcceptRanges, @@ -131,7 +131,7 @@ internal static PageBlobRequestConditions CreateRequestConditions(PageBlobReques internal static AppendBlobStorageResourceOptions ToAppendBlobStorageResourceOptions( this BlobStorageResourceContainerOptions options) { - return new AppendBlobStorageResourceOptions(options?.ResourceOptions); + return new AppendBlobStorageResourceOptions(options?.BlobOptions); } internal static BlobDownloadOptions ToBlobDownloadOptions( @@ -211,7 +211,7 @@ internal static AppendBlobAppendBlockFromUriOptions ToAppendBlockFromUriOptions( internal static BlockBlobStorageResourceOptions ToBlockBlobStorageResourceOptions( this BlobStorageResourceContainerOptions options) { - return new BlockBlobStorageResourceOptions(options?.ResourceOptions); + return new BlockBlobStorageResourceOptions(options?.BlobOptions); } internal static BlobDownloadOptions ToBlobDownloadOptions( @@ -334,7 +334,7 @@ internal static CommitBlockListOptions ToCommitBlockOptions(this BlockBlobStorag internal static PageBlobStorageResourceOptions ToPageBlobStorageResourceOptions( this BlobStorageResourceContainerOptions options) { - return new PageBlobStorageResourceOptions(options?.ResourceOptions); + return new PageBlobStorageResourceOptions(options?.BlobOptions); } internal static BlobDownloadOptions ToBlobDownloadOptions( @@ -506,8 +506,8 @@ internal static async Task GetBlobContainer cancellationToken).ConfigureAwait(false); BlobStorageResourceContainerOptions options = new() { - DirectoryPrefix = directoryPrefix, - ResourceOptions = baseOptions, + BlobDirectoryPrefix = directoryPrefix, + BlobOptions = baseOptions, }; return options; diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/PageBlobStorageResource.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/PageBlobStorageResource.cs index 97b954a334cd..05c0f49aba99 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/PageBlobStorageResource.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/PageBlobStorageResource.cs @@ -15,7 +15,7 @@ namespace Azure.Storage.DataMovement.Blobs /// /// The PageBlobStorageResource class. /// - public class PageBlobStorageResource : StorageResourceSingle + public class PageBlobStorageResource : StorageResourceItem { internal PageBlobClient BlobClient { get; set; } internal PageBlobStorageResourceOptions _options; @@ -45,7 +45,7 @@ public class PageBlobStorageResource : StorageResourceSingle /// /// Defines the recommended Transfer Type for the storage resource. /// - protected override TransferType TransferType => TransferType.Concurrent; + protected override DataTransferOrder TransferType => DataTransferOrder.Unordered; /// /// Defines the maximum chunk size for the storage resource. @@ -102,8 +102,8 @@ internal PageBlobStorageResource( /// Optional to propagate /// notifications that the operation should be cancelled. /// - /// The resulting from the upload operation. - protected override async Task ReadStreamAsync( + /// The resulting from the upload operation. + protected override async Task ReadStreamAsync( long position = 0, long? length = default, CancellationToken cancellationToken = default) @@ -136,7 +136,7 @@ protected override async Task ReadStreamAsync( /// notifications that the operation should be cancelled. /// /// - protected override async Task WriteFromStreamAsync( + protected override async Task CopyFromStreamAsync( Stream stream, long streamLength, bool overwrite, @@ -166,7 +166,7 @@ await BlobClient.UploadPagesAsync( /// /// Uploads/copy the blob from a URL. /// - /// An instance of + /// An instance of /// that contains the data to be uploaded. /// /// If set to true, will overwrite the blob if it currently exists. @@ -181,7 +181,7 @@ await BlobClient.UploadPagesAsync( /// /// protected override async Task CopyFromUriAsync( - StorageResourceSingle sourceResource, + StorageResourceItem sourceResource, bool overwrite, long completeLength, StorageResourceCopyFromUriOptions options = default, @@ -209,7 +209,7 @@ await BlobClient.UploadPagesFromUriAsync( /// /// Uploads/copy the blob from a url /// - /// An instance of + /// An instance of /// that contains the data to be uploaded. /// /// If set to true, will overwrite the blob if it already exists. @@ -225,7 +225,7 @@ await BlobClient.UploadPagesFromUriAsync( /// /// protected override async Task CopyBlockFromUriAsync( - StorageResourceSingle sourceResource, + StorageResourceItem sourceResource, HttpRange range, bool overwrite, long completeLength = 0, diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/tests/MockAppendBlobStorageResource.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/tests/MockAppendBlobStorageResource.cs index ce6a42efc063..f0a6b034711a 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/tests/MockAppendBlobStorageResource.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/tests/MockAppendBlobStorageResource.cs @@ -37,7 +37,7 @@ internal MockAppendBlobStorageResource( public async Task MockGetPropertiesAsync(CancellationToken cancellationToken = default) => await base.GetPropertiesAsync(cancellationToken); - public async Task MockReadStreamAsync( + public async Task MockReadStreamAsync( long position = 0, long? length = default, CancellationToken cancellationToken = default) diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/tests/MockBlockBlobStorageResource.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/tests/MockBlockBlobStorageResource.cs index b37623f603e6..aa4d34a9acd2 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/tests/MockBlockBlobStorageResource.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/tests/MockBlockBlobStorageResource.cs @@ -37,7 +37,7 @@ internal MockBlockBlobStorageResource( public async Task MockGetPropertiesAsync(CancellationToken cancellationToken = default) => await base.GetPropertiesAsync(cancellationToken); - public async Task MockReadStreamAsync( + public async Task MockReadStreamAsync( long position = 0, long? length = default, CancellationToken cancellationToken = default) diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/tests/MockPageBlobStorageResource.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/tests/MockPageBlobStorageResource.cs index 573454598323..1823909a92d3 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/tests/MockPageBlobStorageResource.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/tests/MockPageBlobStorageResource.cs @@ -37,7 +37,7 @@ internal MockPageBlobStorageResource( public async Task MockGetPropertiesAsync(CancellationToken cancellationToken = default) => await base.GetPropertiesAsync(cancellationToken); - public async Task MockReadStreamAsync( + public async Task MockReadStreamAsync( long position = 0, long? length = default, CancellationToken cancellationToken = default) diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/tests/RehydrateBlobResourceTests.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/tests/RehydrateBlobResourceTests.cs index 92477c0e7d1b..56d3e6aa0574 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/tests/RehydrateBlobResourceTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/tests/RehydrateBlobResourceTests.cs @@ -71,7 +71,7 @@ private static Mock GetProperties( { var mock = new Mock(MockBehavior.Strict); mock.Setup(p => p.TransferId).Returns(transferId); - mock.Setup(p => p.Checkpointer).Returns(new TransferCheckpointerOptions(checkpointerPath)); + mock.Setup(p => p.Checkpointer).Returns(new TransferCheckpointStoreOptions(checkpointerPath)); mock.Setup(p => p.SourcePath).Returns(sourcePath); mock.Setup(p => p.DestinationPath).Returns(destinationPath); mock.Setup(p => p.SourceTypeId).Returns(sourceResourceId); @@ -164,7 +164,7 @@ private async Task AzureBlobStorageResourcesInlineTryGet(DataTr { return null; } - return getSource ? await sourceProvider.MakeResourceAsync() : await destinationProvider.MakeResourceAsync(); + return getSource ? await sourceProvider.CreateResourceAsync() : await destinationProvider.CreateResourceAsync(); } [Test] @@ -204,7 +204,7 @@ await AddJobPartToCheckpointer( { RehydrateApi.ResourceStaticApi => await BlockBlobStorageResource.RehydrateResourceAsync(transferProperties, isSource), RehydrateApi.ProviderInstance => (BlockBlobStorageResource)await new BlobStorageResourceProvider( - transferProperties, isSource, BlobStorageResources.ResourceType.BlockBlob).MakeResourceAsync(), + transferProperties, isSource, BlobStorageResources.ResourceType.BlockBlob).CreateResourceAsync(), RehydrateApi.PublicStaticApi => (BlockBlobStorageResource)await AzureBlobStorageResourcesInlineTryGet( transferProperties, isSource), _ => throw new ArgumentException("Unrecognized test parameter"), @@ -262,7 +262,7 @@ await AddJobPartToCheckpointer( { RehydrateApi.ResourceStaticApi => await BlockBlobStorageResource.RehydrateResourceAsync(transferProperties, false), RehydrateApi.ProviderInstance => (BlockBlobStorageResource)await new BlobStorageResourceProvider( - transferProperties, false, BlobStorageResources.ResourceType.BlockBlob).MakeResourceAsync(), + transferProperties, false, BlobStorageResources.ResourceType.BlockBlob).CreateResourceAsync(), RehydrateApi.PublicStaticApi => (BlockBlobStorageResource)await AzureBlobStorageResourcesInlineTryGet( transferProperties, false), _ => throw new ArgumentException("Unrecognized test parameter"), @@ -311,7 +311,7 @@ await AddJobPartToCheckpointer( { RehydrateApi.ResourceStaticApi => await PageBlobStorageResource.RehydrateResourceAsync(transferProperties, isSource), RehydrateApi.ProviderInstance => (PageBlobStorageResource)await new BlobStorageResourceProvider( - transferProperties, isSource, BlobStorageResources.ResourceType.PageBlob).MakeResourceAsync(), + transferProperties, isSource, BlobStorageResources.ResourceType.PageBlob).CreateResourceAsync(), RehydrateApi.PublicStaticApi => (PageBlobStorageResource)await AzureBlobStorageResourcesInlineTryGet( transferProperties, isSource), _ => throw new ArgumentException("Unrecognized test parameter"), @@ -369,7 +369,7 @@ await AddJobPartToCheckpointer( { RehydrateApi.ResourceStaticApi => await PageBlobStorageResource.RehydrateResourceAsync(transferProperties, false), RehydrateApi.ProviderInstance => (PageBlobStorageResource)await new BlobStorageResourceProvider( - transferProperties, false, BlobStorageResources.ResourceType.PageBlob).MakeResourceAsync(), + transferProperties, false, BlobStorageResources.ResourceType.PageBlob).CreateResourceAsync(), RehydrateApi.PublicStaticApi => (PageBlobStorageResource)await AzureBlobStorageResourcesInlineTryGet( transferProperties, false), _ => throw new ArgumentException("Unrecognized test parameter"), @@ -418,7 +418,7 @@ await AddJobPartToCheckpointer( { RehydrateApi.ResourceStaticApi => await AppendBlobStorageResource.RehydrateResourceAsync(transferProperties, isSource), RehydrateApi.ProviderInstance => (AppendBlobStorageResource)await new BlobStorageResourceProvider( - transferProperties, isSource, BlobStorageResources.ResourceType.AppendBlob).MakeResourceAsync(), + transferProperties, isSource, BlobStorageResources.ResourceType.AppendBlob).CreateResourceAsync(), RehydrateApi.PublicStaticApi => (AppendBlobStorageResource)await AzureBlobStorageResourcesInlineTryGet( transferProperties, isSource), _ => throw new ArgumentException("Unrecognized test parameter"), @@ -475,7 +475,7 @@ await AddJobPartToCheckpointer( { RehydrateApi.ResourceStaticApi => await AppendBlobStorageResource.RehydrateResourceAsync(transferProperties, false), RehydrateApi.ProviderInstance => (AppendBlobStorageResource)await new BlobStorageResourceProvider( - transferProperties, false, BlobStorageResources.ResourceType.AppendBlob).MakeResourceAsync(), + transferProperties, false, BlobStorageResources.ResourceType.AppendBlob).CreateResourceAsync(), RehydrateApi.PublicStaticApi => (AppendBlobStorageResource)await AzureBlobStorageResourcesInlineTryGet( transferProperties, false), _ => throw new ArgumentException("Unrecognized test parameter"), @@ -534,7 +534,7 @@ await AddJobPartToCheckpointer( { RehydrateApi.ResourceStaticApi => await BlobStorageResourceContainer.RehydrateResourceAsync(transferProperties, isSource), RehydrateApi.ProviderInstance => (BlobStorageResourceContainer)await new BlobStorageResourceProvider( - transferProperties, isSource, BlobStorageResources.ResourceType.BlobContainer).MakeResourceAsync(), + transferProperties, isSource, BlobStorageResources.ResourceType.BlobContainer).CreateResourceAsync(), RehydrateApi.PublicStaticApi => (BlobStorageResourceContainer)await AzureBlobStorageResourcesInlineTryGet( transferProperties, isSource), _ => throw new ArgumentException("Unrecognized test parameter"), diff --git a/sdk/storage/Azure.Storage.DataMovement/CHANGELOG.md b/sdk/storage/Azure.Storage.DataMovement/CHANGELOG.md index 98eadc5deada..909a1e040a7f 100644 --- a/sdk/storage/Azure.Storage.DataMovement/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.DataMovement/CHANGELOG.md @@ -21,6 +21,43 @@ - `StorageResourceSingle.GetPropertiesAsync` - `StorageResourceSingle.ReadStreamAsync` - `StorageResourceSingle.WriteFromStreamAsync` +- [BREAKING CHANGE] Renamed `DataTransfer.AwaitCompletion` to `DataTransfer.WaitForCompletionAsync` +- [BREAKING CHANGE] Renamed `DataTransfer.EnsureCompleted` to `DataTransfer.WaitForCompletion` +- [BREAKING CHANGE] Renamed `DataTransfer.PauseIfRunningAsync` to `DataTransfer.PauseAsync` +- [BREAKING CHANGE] Removed `Azure.Storage.DataMovement.Models` and moved all classes to the `Azure.Storage.DataMovement` namespace +- [BREAKING CHANGE] Moved all classes in the Azure.Storage.DataMovement/src/Models folder up into the Azure.Storage.DataMovement/src parent folder +- [BREAKING CHANGE] Removed `Azure.Storage.DataMovement.Models.JobPlan` and replaced with `Azure.Storage.DataMovement.JobPlan` (has no public effect since it's internal) +- [BREAKING CHANGE] Removed `DataTransfer.PauseTransferIfRunningAsync(DataTransfer)` +- [BREAKING CHANGE] Renamed `DataTransferProperties.SourceScheme` to `DataTransferProperties.SourceTypeId` +- [BREAKING CHANGE] Renamed `DataTransferProperties.DestinationScheme` to `DataTransferProperties.DestinationTypeId` +- [BREAKING CHANGE] Removed `StorageResourceType` including removing `StorageResourceProperties.ResourceType` +- [BREAKING CHANGE] Removed `ServiceCopyStatus` including removing `StorageResourceProperties.CopyStatus` +- [BREAKING CHANGE] Renamed `TransferOptions` to `DataTransferOptions` +- [BREAKING CHANGE] Renamed `TransferCheckpointerOptions` to `TransferCheckpointStoreOptions` +- [BREAKING CHANGE] Renamed `TransferOptions.TransferFailed` to `DataTransferOptions.ItemTransferFailed` +- [BREAKING CHANGE] Renamed `TransferOptions.SingleTransferCompleted` to `DataTransferOptions.ItemTransferCompleted` +- [BREAKING CHANGE] Renamed `TransferOptions.TransferSkipped` to `DataTransferOptions.ItemTransferSkipped` +- [BREAKING CHANGE] Renamed `TransferOptions.TransferStatus` to `TransferOptions.TransferStatusChanged` +- [BREAKING CHANGE] Renamed `SingleTransferCompletedEventArgs` to `TransferItemCompletedEventArgs` +- [BREAKING CHANGE] Renamed `TransferItemFailedEventArgs` to `TransferItemFailedEventArgs` +- [BREAKING CHANGE] Renamed `TransferItemSkippedEventArgs` to `TransferItemSkippedEventArgs` +- [BREAKING CHANGE] Renamed `StorageResourceSingle` to `StorageResourceItem` +- [BREAKING CHANGE] Renamed `StorageResourceItem.WriteFromStreamAsync` to `CopyFromStreamAsync` +- [BREAKING CHANGE] Renamed `StorageResourceContainer.GetChildStorageResource` to `StorageResourceContainer.GetStorageResourceReference` +- [BREAKING CHANGE] Renamed `ReadStreamStorageResourceResult` to `StorageResourceReadStreamResult` +- [BREAKING CHANGE] Changed constructor `StorageResourceReadStreamResult(Stream)` from public to internal +- [BREAKING CHANGE] Renamed `LocalStorageResourceProvider.MakeResource` to `LocalStorageResourceProvider.CreateResource` +- [BREAKING CHANGE] Renamed `ErrorHandlingBehavior` to `DataTransferErrorMode` +- [BREAKING CHANGE] Renamed `DataTransferErrorMode.StopOnAnyFailures` to `StopOnAnyFailure` +- [BREAKING CHANGE] Renamed `TransferType` to `DataTransferOrder` +- [BREAKING CHANGE] Renamed `DataTransferOrder.Unordered` to `Unordered` +- [BREAKING CHANGE] Renamed `StorageTransferStatus` to `DataTransferStatus` +- [BREAKING CHANGE] Renamed `StorageResourceCreateMode` to `StorageResourceCreationPreference`. +- [BREAKING CHANGE] Renamed `StorageResourceCreationPreference` values from `Fail` to `FailIfExists`, `Overwrite` to `OverwriteIfExists` and `Skip` to `SkipIfExists`. `None` was removed, use `FailIfExists` instead. +- [BREAKING CHANGE] Renamed `DataTransferOptions.CreateMode` to `CreationPreference`. +- [BREAKING CHANGE] Changed `StorageTransferProgress` constructor from `public` to `protected internal`. +- [BREAKING CHANGE] Renamed `StorageTransferProgress` to `DataTransferProgress`. +- [BREAKING CHANGE] Renamed `StorageTransferEventArgs` to `DataTransferEventArgs`. ### Bugs Fixed diff --git a/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.net6.0.cs b/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.net6.0.cs index ae5572b7f4a7..41323160e7bb 100644 --- a/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.net6.0.cs +++ b/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.net6.0.cs @@ -6,15 +6,64 @@ internal DataTransfer() { } public bool HasCompleted { get { throw null; } } public string Id { get { throw null; } } public Azure.Storage.DataMovement.TransferManager TransferManager { get { throw null; } } - public Azure.Storage.DataMovement.StorageTransferStatus TransferStatus { get { throw null; } } - public void EnsureCompleted(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { } - public virtual System.Threading.Tasks.Task PauseIfRunningAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public Azure.Storage.DataMovement.DataTransferStatus TransferStatus { get { throw null; } } + public virtual System.Threading.Tasks.Task PauseAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public void WaitForCompletion(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { } public System.Threading.Tasks.Task WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } + [System.FlagsAttribute] + public enum DataTransferErrorMode + { + StopOnAnyFailure = 0, + ContinueOnFailure = 1, + } + public abstract partial class DataTransferEventArgs : Azure.SyncAsyncEventArgs + { + protected DataTransferEventArgs(string transferId, bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken) : base (default(bool), default(System.Threading.CancellationToken)) { } + public string TransferId { get { throw null; } } + } + public partial class DataTransferOptions : System.IEquatable + { + public DataTransferOptions() { } + public Azure.Storage.DataMovement.StorageResourceCreationPreference CreationPreference { get { throw null; } set { } } + public long? InitialTransferSize { get { throw null; } set { } } + public long? MaximumTransferChunkSize { get { throw null; } set { } } + public System.IProgress ProgressHandler { get { throw null; } set { } } + public Azure.Storage.DataMovement.ProgressHandlerOptions ProgressHandlerOptions { get { throw null; } set { } } + public event Azure.Core.SyncAsyncEventHandler ItemTransferCompleted { add { } remove { } } + public event Azure.Core.SyncAsyncEventHandler ItemTransferFailed { add { } remove { } } + public event Azure.Core.SyncAsyncEventHandler ItemTransferSkipped { add { } remove { } } + public event Azure.Core.SyncAsyncEventHandler TransferStatusChanged { add { } remove { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(Azure.Storage.DataMovement.DataTransferOptions obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator ==(Azure.Storage.DataMovement.DataTransferOptions left, Azure.Storage.DataMovement.DataTransferOptions right) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator !=(Azure.Storage.DataMovement.DataTransferOptions left, Azure.Storage.DataMovement.DataTransferOptions right) { throw null; } + } + public enum DataTransferOrder + { + Unordered = 0, + Sequential = 1, + } + public partial class DataTransferProgress + { + protected internal DataTransferProgress() { } + public long? BytesTransferred { get { throw null; } } + public long CompletedCount { get { throw null; } } + public long FailedCount { get { throw null; } } + public long InProgressCount { get { throw null; } } + public long QueuedCount { get { throw null; } } + public long SkippedCount { get { throw null; } } + } public partial class DataTransferProperties { protected internal DataTransferProperties() { } - public virtual Azure.Storage.DataMovement.TransferCheckpointerOptions Checkpointer { get { throw null; } } + public virtual Azure.Storage.DataMovement.TransferCheckpointStoreOptions Checkpointer { get { throw null; } } public virtual string DestinationPath { get { throw null; } } public virtual string DestinationTypeId { get { throw null; } } public virtual bool IsContainer { get { throw null; } } @@ -22,11 +71,17 @@ protected internal DataTransferProperties() { } public virtual string SourceTypeId { get { throw null; } } public virtual string TransferId { get { throw null; } } } - [System.FlagsAttribute] - public enum ErrorHandlingBehavior + public enum DataTransferStatus { - StopOnAllFailures = 0, - ContinueOnFailure = 1, + None = 0, + Queued = 1, + InProgress = 2, + Paused = 3, + Completed = 4, + CompletedWithSkippedTransfers = 5, + CompletedWithFailedTransfers = 6, + PauseInProgress = 7, + CancellationInProgress = 8, } public partial class LocalDirectoryStorageResourceContainer : Azure.Storage.DataMovement.StorageResourceContainer { @@ -34,10 +89,10 @@ public LocalDirectoryStorageResourceContainer(string path) { } protected internal override bool CanProduceUri { get { throw null; } } public override string Path { get { throw null; } } public override System.Uri Uri { get { throw null; } } - protected internal override Azure.Storage.DataMovement.StorageResourceSingle GetChildStorageResource(string childPath) { throw null; } + protected internal override Azure.Storage.DataMovement.StorageResourceItem GetStorageResourceReference(string childPath) { throw null; } protected internal override System.Collections.Generic.IAsyncEnumerable GetStorageResourcesAsync([System.Runtime.CompilerServices.EnumeratorCancellationAttribute] System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class LocalFileStorageResource : Azure.Storage.DataMovement.StorageResourceSingle + public partial class LocalFileStorageResource : Azure.Storage.DataMovement.StorageResourceItem { public LocalFileStorageResource(string path) { } protected internal override bool CanProduceUri { get { throw null; } } @@ -45,21 +100,21 @@ public LocalFileStorageResource(string path) { } protected internal override long MaxChunkSize { get { throw null; } } public override string Path { get { throw null; } } protected internal override string ResourceId { get { throw null; } } - protected internal override Azure.Storage.DataMovement.TransferType TransferType { get { throw null; } } + protected internal override Azure.Storage.DataMovement.DataTransferOrder TransferType { get { throw null; } } public override System.Uri Uri { get { throw null; } } protected internal override System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected internal override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceSingle sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected internal override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceSingle sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected internal override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected internal override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected internal override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected internal override System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected internal override System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected internal override System.Threading.Tasks.Task GetPropertiesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected internal override System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected internal override System.Threading.Tasks.Task WriteFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected internal override System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class LocalStorageResourceProvider { internal LocalStorageResourceProvider() { } - public Azure.Storage.DataMovement.StorageResource MakeResource() { throw null; } + public Azure.Storage.DataMovement.StorageResource CreateResource() { throw null; } } public static partial class LocalStorageResources { @@ -70,17 +125,6 @@ public partial class ProgressHandlerOptions public ProgressHandlerOptions() { } public bool TrackBytesTransferred { get { throw null; } set { } } } - public partial class ReadStreamStorageResourceResult - { - public ReadStreamStorageResourceResult(System.IO.Stream content) { } - public ReadStreamStorageResourceResult(System.IO.Stream content, string contentRange, string acceptRanges, byte[] rangeContentHash, Azure.Storage.DataMovement.StorageResourceProperties properties) { } - } - public partial class SingleTransferCompletedEventArgs : Azure.Storage.DataMovement.StorageTransferEventArgs - { - public SingleTransferCompletedEventArgs(string transferId, Azure.Storage.DataMovement.StorageResourceSingle sourceResource, Azure.Storage.DataMovement.StorageResourceSingle destinationResource, bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken) : base (default(string), default(bool), default(System.Threading.CancellationToken)) { } - public Azure.Storage.DataMovement.StorageResourceSingle DestinationResource { get { throw null; } } - public Azure.Storage.DataMovement.StorageResourceSingle SourceResource { get { throw null; } } - } public abstract partial class StorageResource { protected StorageResource() { } @@ -93,7 +137,7 @@ public abstract partial class StorageResourceContainer : Azure.Storage.DataMovem { protected StorageResourceContainer() { } protected internal override bool IsContainer { get { throw null; } } - protected internal abstract Azure.Storage.DataMovement.StorageResourceSingle GetChildStorageResource(string path); + protected internal abstract Azure.Storage.DataMovement.StorageResourceItem GetStorageResourceReference(string path); protected internal abstract System.Collections.Generic.IAsyncEnumerable GetStorageResourcesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); } public partial class StorageResourceCopyFromUriOptions @@ -102,136 +146,94 @@ public StorageResourceCopyFromUriOptions() { } public string BlockId { get { throw null; } } public Azure.HttpAuthorization SourceAuthentication { get { throw null; } set { } } } - public enum StorageResourceCreateMode + public enum StorageResourceCreationPreference { - None = 0, - Overwrite = 1, - Fail = 2, - Skip = 3, + FailIfExists = 0, + OverwriteIfExists = 1, + SkipIfExists = 2, } - public partial class StorageResourceProperties + public abstract partial class StorageResourceItem : Azure.Storage.DataMovement.StorageResource { - protected StorageResourceProperties() { } - public StorageResourceProperties(System.DateTimeOffset lastModified, System.DateTimeOffset createdOn, System.Collections.Generic.IDictionary metadata, System.DateTimeOffset copyCompletedOn, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, long contentLength, string contentType, Azure.ETag eTag, byte[] contentHash, long blobSequenceNumber, int blobCommittedBlockCount, bool isServerEncrypted, string encryptionKeySha256, string encryptionScope, string versionId, bool isLatestVersion, System.DateTimeOffset expiresOn, System.DateTimeOffset lastAccessed) { } - public StorageResourceProperties(System.DateTimeOffset lastModified, System.DateTimeOffset createdOn, long contentLength, System.DateTimeOffset lastAccessed) { } - } - public abstract partial class StorageResourceSingle : Azure.Storage.DataMovement.StorageResource - { - protected StorageResourceSingle() { } + protected StorageResourceItem() { } protected internal override bool IsContainer { get { throw null; } } protected internal abstract long? Length { get; } protected internal abstract long MaxChunkSize { get; } protected internal abstract string ResourceId { get; } - protected internal abstract Azure.Storage.DataMovement.TransferType TransferType { get; } + protected internal abstract Azure.Storage.DataMovement.DataTransferOrder TransferType { get; } protected internal abstract System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - protected internal abstract System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceSingle sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - protected internal abstract System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceSingle sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + protected internal abstract System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + protected internal abstract System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + protected internal abstract System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); protected internal abstract System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); protected internal abstract System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); protected internal abstract System.Threading.Tasks.Task GetPropertiesAsync(System.Threading.CancellationToken token = default(System.Threading.CancellationToken)); - protected internal abstract System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - protected internal abstract System.Threading.Tasks.Task WriteFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + protected internal abstract System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); } - public partial class StorageResourceWriteToOffsetOptions + public partial class StorageResourceProperties { - public StorageResourceWriteToOffsetOptions() { } - public string BlockId { get { throw null; } } + protected StorageResourceProperties() { } + public StorageResourceProperties(System.DateTimeOffset lastModified, System.DateTimeOffset createdOn, System.Collections.Generic.IDictionary metadata, System.DateTimeOffset copyCompletedOn, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, long contentLength, string contentType, Azure.ETag eTag, byte[] contentHash, long blobSequenceNumber, int blobCommittedBlockCount, bool isServerEncrypted, string encryptionKeySha256, string encryptionScope, string versionId, bool isLatestVersion, System.DateTimeOffset expiresOn, System.DateTimeOffset lastAccessed) { } + public StorageResourceProperties(System.DateTimeOffset lastModified, System.DateTimeOffset createdOn, long contentLength, System.DateTimeOffset lastAccessed) { } } - public abstract partial class StorageTransferEventArgs : Azure.SyncAsyncEventArgs + public partial class StorageResourceReadStreamResult { - protected StorageTransferEventArgs(string transferId, bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken) : base (default(bool), default(System.Threading.CancellationToken)) { } - public string TransferId { get { throw null; } } + public readonly string AcceptRanges; + public readonly System.IO.Stream Content; + public readonly string ContentRange; + public readonly byte[] RangeContentHash; + public StorageResourceReadStreamResult(System.IO.Stream content, string contentRange, string acceptRanges, byte[] rangeContentHash, Azure.Storage.DataMovement.StorageResourceProperties properties) { } } - public partial class StorageTransferProgress + public partial class StorageResourceWriteToOffsetOptions { - public StorageTransferProgress() { } - public long? BytesTransferred { get { throw null; } } - public long CompletedCount { get { throw null; } } - public long FailedCount { get { throw null; } } - public long InProgressCount { get { throw null; } } - public long QueuedCount { get { throw null; } } - public long SkippedCount { get { throw null; } } + public StorageResourceWriteToOffsetOptions() { } + public string BlockId { get { throw null; } } } - public enum StorageTransferStatus + public partial class TransferCheckpointStoreOptions { - None = 0, - Queued = 1, - InProgress = 2, - Paused = 3, - Completed = 4, - CompletedWithSkippedTransfers = 5, - CompletedWithFailedTransfers = 6, - PauseInProgress = 7, - CancellationInProgress = 8, + public TransferCheckpointStoreOptions(string localCheckpointerPath) { } + public string CheckpointerPath { get { throw null; } } } - public partial class TransferCheckpointerOptions + public partial class TransferItemCompletedEventArgs : Azure.Storage.DataMovement.DataTransferEventArgs { - public TransferCheckpointerOptions(string localCheckpointerPath) { } - public string CheckpointerPath { get { throw null; } } + public TransferItemCompletedEventArgs(string transferId, Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.Storage.DataMovement.StorageResourceItem destinationResource, bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken) : base (default(string), default(bool), default(System.Threading.CancellationToken)) { } + public Azure.Storage.DataMovement.StorageResourceItem DestinationResource { get { throw null; } } + public Azure.Storage.DataMovement.StorageResourceItem SourceResource { get { throw null; } } } - public partial class TransferFailedEventArgs : Azure.Storage.DataMovement.StorageTransferEventArgs + public partial class TransferItemFailedEventArgs : Azure.Storage.DataMovement.DataTransferEventArgs { - public TransferFailedEventArgs(string transferId, Azure.Storage.DataMovement.StorageResourceSingle sourceResource, Azure.Storage.DataMovement.StorageResourceSingle destinationResource, System.Exception exception, bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken) : base (default(string), default(bool), default(System.Threading.CancellationToken)) { } - public Azure.Storage.DataMovement.StorageResourceSingle DestinationResource { get { throw null; } } + public TransferItemFailedEventArgs(string transferId, Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.Storage.DataMovement.StorageResourceItem destinationResource, System.Exception exception, bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken) : base (default(string), default(bool), default(System.Threading.CancellationToken)) { } + public Azure.Storage.DataMovement.StorageResourceItem DestinationResource { get { throw null; } } public System.Exception Exception { get { throw null; } } - public Azure.Storage.DataMovement.StorageResourceSingle SourceResource { get { throw null; } } + public Azure.Storage.DataMovement.StorageResourceItem SourceResource { get { throw null; } } + } + public partial class TransferItemSkippedEventArgs : Azure.Storage.DataMovement.DataTransferEventArgs + { + public TransferItemSkippedEventArgs(string transferId, Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.Storage.DataMovement.StorageResourceItem destinationResource, bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken) : base (default(string), default(bool), default(System.Threading.CancellationToken)) { } + public Azure.Storage.DataMovement.StorageResourceItem DestinationResource { get { throw null; } } + public Azure.Storage.DataMovement.StorageResourceItem SourceResource { get { throw null; } } } public partial class TransferManager : System.IAsyncDisposable { protected TransferManager() { } public TransferManager(Azure.Storage.DataMovement.TransferManagerOptions options = null) { } public virtual System.Collections.Generic.IAsyncEnumerable GetResumableTransfersAsync() { throw null; } - public virtual System.Collections.Generic.IAsyncEnumerable GetTransfersAsync(params Azure.Storage.DataMovement.StorageTransferStatus[] filterByStatus) { throw null; } + public virtual System.Collections.Generic.IAsyncEnumerable GetTransfersAsync(params Azure.Storage.DataMovement.DataTransferStatus[] filterByStatus) { throw null; } public virtual System.Threading.Tasks.Task PauseTransferIfRunningAsync(string transferId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task ResumeTransferAsync(string transferId, Azure.Storage.DataMovement.StorageResource sourceResource, Azure.Storage.DataMovement.StorageResource destinationResource, Azure.Storage.DataMovement.TransferOptions transferOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task StartTransferAsync(Azure.Storage.DataMovement.StorageResource sourceResource, Azure.Storage.DataMovement.StorageResource destinationResource, Azure.Storage.DataMovement.TransferOptions transferOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task ResumeTransferAsync(string transferId, Azure.Storage.DataMovement.StorageResource sourceResource, Azure.Storage.DataMovement.StorageResource destinationResource, Azure.Storage.DataMovement.DataTransferOptions transferOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task StartTransferAsync(Azure.Storage.DataMovement.StorageResource sourceResource, Azure.Storage.DataMovement.StorageResource destinationResource, Azure.Storage.DataMovement.DataTransferOptions transferOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync() { throw null; } } public partial class TransferManagerOptions { public TransferManagerOptions() { } - public Azure.Storage.DataMovement.TransferCheckpointerOptions CheckpointerOptions { get { throw null; } set { } } + public Azure.Storage.DataMovement.TransferCheckpointStoreOptions CheckpointerOptions { get { throw null; } set { } } public Azure.Core.DiagnosticsOptions Diagnostics { get { throw null; } } - public Azure.Storage.DataMovement.ErrorHandlingBehavior ErrorHandling { get { throw null; } set { } } + public Azure.Storage.DataMovement.DataTransferErrorMode ErrorHandling { get { throw null; } set { } } public int? MaximumConcurrency { get { throw null; } set { } } } - public partial class TransferOptions : System.IEquatable - { - public TransferOptions() { } - public Azure.Storage.DataMovement.StorageResourceCreateMode CreateMode { get { throw null; } set { } } - public long? InitialTransferSize { get { throw null; } set { } } - public long? MaximumTransferChunkSize { get { throw null; } set { } } - public System.IProgress ProgressHandler { get { throw null; } set { } } - public Azure.Storage.DataMovement.ProgressHandlerOptions ProgressHandlerOptions { get { throw null; } set { } } - public event Azure.Core.SyncAsyncEventHandler SingleTransferCompleted { add { } remove { } } - public event Azure.Core.SyncAsyncEventHandler TransferFailed { add { } remove { } } - public event Azure.Core.SyncAsyncEventHandler TransferSkipped { add { } remove { } } - public event Azure.Core.SyncAsyncEventHandler TransferStatus { add { } remove { } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public bool Equals(Azure.Storage.DataMovement.TransferOptions obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static bool operator ==(Azure.Storage.DataMovement.TransferOptions left, Azure.Storage.DataMovement.TransferOptions right) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static bool operator !=(Azure.Storage.DataMovement.TransferOptions left, Azure.Storage.DataMovement.TransferOptions right) { throw null; } - } - public partial class TransferSkippedEventArgs : Azure.Storage.DataMovement.StorageTransferEventArgs - { - public TransferSkippedEventArgs(string transferId, Azure.Storage.DataMovement.StorageResourceSingle sourceResource, Azure.Storage.DataMovement.StorageResourceSingle destinationResource, bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken) : base (default(string), default(bool), default(System.Threading.CancellationToken)) { } - public Azure.Storage.DataMovement.StorageResourceSingle DestinationResource { get { throw null; } } - public Azure.Storage.DataMovement.StorageResourceSingle SourceResource { get { throw null; } } - } - public partial class TransferStatusEventArgs : Azure.Storage.DataMovement.StorageTransferEventArgs + public partial class TransferStatusEventArgs : Azure.Storage.DataMovement.DataTransferEventArgs { - public TransferStatusEventArgs(string transferId, Azure.Storage.DataMovement.StorageTransferStatus transferStatus, bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken) : base (default(string), default(bool), default(System.Threading.CancellationToken)) { } - public Azure.Storage.DataMovement.StorageTransferStatus StorageTransferStatus { get { throw null; } } - } - public enum TransferType - { - Concurrent = 0, - Sequential = 1, + public TransferStatusEventArgs(string transferId, Azure.Storage.DataMovement.DataTransferStatus transferStatus, bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken) : base (default(string), default(bool), default(System.Threading.CancellationToken)) { } + public Azure.Storage.DataMovement.DataTransferStatus StorageTransferStatus { get { throw null; } } } } diff --git a/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.netstandard2.0.cs b/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.netstandard2.0.cs index ae5572b7f4a7..41323160e7bb 100644 --- a/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.netstandard2.0.cs +++ b/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.netstandard2.0.cs @@ -6,15 +6,64 @@ internal DataTransfer() { } public bool HasCompleted { get { throw null; } } public string Id { get { throw null; } } public Azure.Storage.DataMovement.TransferManager TransferManager { get { throw null; } } - public Azure.Storage.DataMovement.StorageTransferStatus TransferStatus { get { throw null; } } - public void EnsureCompleted(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { } - public virtual System.Threading.Tasks.Task PauseIfRunningAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public Azure.Storage.DataMovement.DataTransferStatus TransferStatus { get { throw null; } } + public virtual System.Threading.Tasks.Task PauseAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public void WaitForCompletion(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { } public System.Threading.Tasks.Task WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } + [System.FlagsAttribute] + public enum DataTransferErrorMode + { + StopOnAnyFailure = 0, + ContinueOnFailure = 1, + } + public abstract partial class DataTransferEventArgs : Azure.SyncAsyncEventArgs + { + protected DataTransferEventArgs(string transferId, bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken) : base (default(bool), default(System.Threading.CancellationToken)) { } + public string TransferId { get { throw null; } } + } + public partial class DataTransferOptions : System.IEquatable + { + public DataTransferOptions() { } + public Azure.Storage.DataMovement.StorageResourceCreationPreference CreationPreference { get { throw null; } set { } } + public long? InitialTransferSize { get { throw null; } set { } } + public long? MaximumTransferChunkSize { get { throw null; } set { } } + public System.IProgress ProgressHandler { get { throw null; } set { } } + public Azure.Storage.DataMovement.ProgressHandlerOptions ProgressHandlerOptions { get { throw null; } set { } } + public event Azure.Core.SyncAsyncEventHandler ItemTransferCompleted { add { } remove { } } + public event Azure.Core.SyncAsyncEventHandler ItemTransferFailed { add { } remove { } } + public event Azure.Core.SyncAsyncEventHandler ItemTransferSkipped { add { } remove { } } + public event Azure.Core.SyncAsyncEventHandler TransferStatusChanged { add { } remove { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public bool Equals(Azure.Storage.DataMovement.DataTransferOptions obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator ==(Azure.Storage.DataMovement.DataTransferOptions left, Azure.Storage.DataMovement.DataTransferOptions right) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static bool operator !=(Azure.Storage.DataMovement.DataTransferOptions left, Azure.Storage.DataMovement.DataTransferOptions right) { throw null; } + } + public enum DataTransferOrder + { + Unordered = 0, + Sequential = 1, + } + public partial class DataTransferProgress + { + protected internal DataTransferProgress() { } + public long? BytesTransferred { get { throw null; } } + public long CompletedCount { get { throw null; } } + public long FailedCount { get { throw null; } } + public long InProgressCount { get { throw null; } } + public long QueuedCount { get { throw null; } } + public long SkippedCount { get { throw null; } } + } public partial class DataTransferProperties { protected internal DataTransferProperties() { } - public virtual Azure.Storage.DataMovement.TransferCheckpointerOptions Checkpointer { get { throw null; } } + public virtual Azure.Storage.DataMovement.TransferCheckpointStoreOptions Checkpointer { get { throw null; } } public virtual string DestinationPath { get { throw null; } } public virtual string DestinationTypeId { get { throw null; } } public virtual bool IsContainer { get { throw null; } } @@ -22,11 +71,17 @@ protected internal DataTransferProperties() { } public virtual string SourceTypeId { get { throw null; } } public virtual string TransferId { get { throw null; } } } - [System.FlagsAttribute] - public enum ErrorHandlingBehavior + public enum DataTransferStatus { - StopOnAllFailures = 0, - ContinueOnFailure = 1, + None = 0, + Queued = 1, + InProgress = 2, + Paused = 3, + Completed = 4, + CompletedWithSkippedTransfers = 5, + CompletedWithFailedTransfers = 6, + PauseInProgress = 7, + CancellationInProgress = 8, } public partial class LocalDirectoryStorageResourceContainer : Azure.Storage.DataMovement.StorageResourceContainer { @@ -34,10 +89,10 @@ public LocalDirectoryStorageResourceContainer(string path) { } protected internal override bool CanProduceUri { get { throw null; } } public override string Path { get { throw null; } } public override System.Uri Uri { get { throw null; } } - protected internal override Azure.Storage.DataMovement.StorageResourceSingle GetChildStorageResource(string childPath) { throw null; } + protected internal override Azure.Storage.DataMovement.StorageResourceItem GetStorageResourceReference(string childPath) { throw null; } protected internal override System.Collections.Generic.IAsyncEnumerable GetStorageResourcesAsync([System.Runtime.CompilerServices.EnumeratorCancellationAttribute] System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class LocalFileStorageResource : Azure.Storage.DataMovement.StorageResourceSingle + public partial class LocalFileStorageResource : Azure.Storage.DataMovement.StorageResourceItem { public LocalFileStorageResource(string path) { } protected internal override bool CanProduceUri { get { throw null; } } @@ -45,21 +100,21 @@ public LocalFileStorageResource(string path) { } protected internal override long MaxChunkSize { get { throw null; } } public override string Path { get { throw null; } } protected internal override string ResourceId { get { throw null; } } - protected internal override Azure.Storage.DataMovement.TransferType TransferType { get { throw null; } } + protected internal override Azure.Storage.DataMovement.DataTransferOrder TransferType { get { throw null; } } public override System.Uri Uri { get { throw null; } } protected internal override System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected internal override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceSingle sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected internal override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceSingle sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected internal override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected internal override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected internal override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected internal override System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected internal override System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected internal override System.Threading.Tasks.Task GetPropertiesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected internal override System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected internal override System.Threading.Tasks.Task WriteFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected internal override System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class LocalStorageResourceProvider { internal LocalStorageResourceProvider() { } - public Azure.Storage.DataMovement.StorageResource MakeResource() { throw null; } + public Azure.Storage.DataMovement.StorageResource CreateResource() { throw null; } } public static partial class LocalStorageResources { @@ -70,17 +125,6 @@ public partial class ProgressHandlerOptions public ProgressHandlerOptions() { } public bool TrackBytesTransferred { get { throw null; } set { } } } - public partial class ReadStreamStorageResourceResult - { - public ReadStreamStorageResourceResult(System.IO.Stream content) { } - public ReadStreamStorageResourceResult(System.IO.Stream content, string contentRange, string acceptRanges, byte[] rangeContentHash, Azure.Storage.DataMovement.StorageResourceProperties properties) { } - } - public partial class SingleTransferCompletedEventArgs : Azure.Storage.DataMovement.StorageTransferEventArgs - { - public SingleTransferCompletedEventArgs(string transferId, Azure.Storage.DataMovement.StorageResourceSingle sourceResource, Azure.Storage.DataMovement.StorageResourceSingle destinationResource, bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken) : base (default(string), default(bool), default(System.Threading.CancellationToken)) { } - public Azure.Storage.DataMovement.StorageResourceSingle DestinationResource { get { throw null; } } - public Azure.Storage.DataMovement.StorageResourceSingle SourceResource { get { throw null; } } - } public abstract partial class StorageResource { protected StorageResource() { } @@ -93,7 +137,7 @@ public abstract partial class StorageResourceContainer : Azure.Storage.DataMovem { protected StorageResourceContainer() { } protected internal override bool IsContainer { get { throw null; } } - protected internal abstract Azure.Storage.DataMovement.StorageResourceSingle GetChildStorageResource(string path); + protected internal abstract Azure.Storage.DataMovement.StorageResourceItem GetStorageResourceReference(string path); protected internal abstract System.Collections.Generic.IAsyncEnumerable GetStorageResourcesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); } public partial class StorageResourceCopyFromUriOptions @@ -102,136 +146,94 @@ public StorageResourceCopyFromUriOptions() { } public string BlockId { get { throw null; } } public Azure.HttpAuthorization SourceAuthentication { get { throw null; } set { } } } - public enum StorageResourceCreateMode + public enum StorageResourceCreationPreference { - None = 0, - Overwrite = 1, - Fail = 2, - Skip = 3, + FailIfExists = 0, + OverwriteIfExists = 1, + SkipIfExists = 2, } - public partial class StorageResourceProperties + public abstract partial class StorageResourceItem : Azure.Storage.DataMovement.StorageResource { - protected StorageResourceProperties() { } - public StorageResourceProperties(System.DateTimeOffset lastModified, System.DateTimeOffset createdOn, System.Collections.Generic.IDictionary metadata, System.DateTimeOffset copyCompletedOn, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, long contentLength, string contentType, Azure.ETag eTag, byte[] contentHash, long blobSequenceNumber, int blobCommittedBlockCount, bool isServerEncrypted, string encryptionKeySha256, string encryptionScope, string versionId, bool isLatestVersion, System.DateTimeOffset expiresOn, System.DateTimeOffset lastAccessed) { } - public StorageResourceProperties(System.DateTimeOffset lastModified, System.DateTimeOffset createdOn, long contentLength, System.DateTimeOffset lastAccessed) { } - } - public abstract partial class StorageResourceSingle : Azure.Storage.DataMovement.StorageResource - { - protected StorageResourceSingle() { } + protected StorageResourceItem() { } protected internal override bool IsContainer { get { throw null; } } protected internal abstract long? Length { get; } protected internal abstract long MaxChunkSize { get; } protected internal abstract string ResourceId { get; } - protected internal abstract Azure.Storage.DataMovement.TransferType TransferType { get; } + protected internal abstract Azure.Storage.DataMovement.DataTransferOrder TransferType { get; } protected internal abstract System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - protected internal abstract System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceSingle sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - protected internal abstract System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceSingle sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + protected internal abstract System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + protected internal abstract System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + protected internal abstract System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); protected internal abstract System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); protected internal abstract System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); protected internal abstract System.Threading.Tasks.Task GetPropertiesAsync(System.Threading.CancellationToken token = default(System.Threading.CancellationToken)); - protected internal abstract System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - protected internal abstract System.Threading.Tasks.Task WriteFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + protected internal abstract System.Threading.Tasks.Task ReadStreamAsync(long position = (long)0, long? length = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); } - public partial class StorageResourceWriteToOffsetOptions + public partial class StorageResourceProperties { - public StorageResourceWriteToOffsetOptions() { } - public string BlockId { get { throw null; } } + protected StorageResourceProperties() { } + public StorageResourceProperties(System.DateTimeOffset lastModified, System.DateTimeOffset createdOn, System.Collections.Generic.IDictionary metadata, System.DateTimeOffset copyCompletedOn, string copyStatusDescription, string copyId, string copyProgress, System.Uri copySource, long contentLength, string contentType, Azure.ETag eTag, byte[] contentHash, long blobSequenceNumber, int blobCommittedBlockCount, bool isServerEncrypted, string encryptionKeySha256, string encryptionScope, string versionId, bool isLatestVersion, System.DateTimeOffset expiresOn, System.DateTimeOffset lastAccessed) { } + public StorageResourceProperties(System.DateTimeOffset lastModified, System.DateTimeOffset createdOn, long contentLength, System.DateTimeOffset lastAccessed) { } } - public abstract partial class StorageTransferEventArgs : Azure.SyncAsyncEventArgs + public partial class StorageResourceReadStreamResult { - protected StorageTransferEventArgs(string transferId, bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken) : base (default(bool), default(System.Threading.CancellationToken)) { } - public string TransferId { get { throw null; } } + public readonly string AcceptRanges; + public readonly System.IO.Stream Content; + public readonly string ContentRange; + public readonly byte[] RangeContentHash; + public StorageResourceReadStreamResult(System.IO.Stream content, string contentRange, string acceptRanges, byte[] rangeContentHash, Azure.Storage.DataMovement.StorageResourceProperties properties) { } } - public partial class StorageTransferProgress + public partial class StorageResourceWriteToOffsetOptions { - public StorageTransferProgress() { } - public long? BytesTransferred { get { throw null; } } - public long CompletedCount { get { throw null; } } - public long FailedCount { get { throw null; } } - public long InProgressCount { get { throw null; } } - public long QueuedCount { get { throw null; } } - public long SkippedCount { get { throw null; } } + public StorageResourceWriteToOffsetOptions() { } + public string BlockId { get { throw null; } } } - public enum StorageTransferStatus + public partial class TransferCheckpointStoreOptions { - None = 0, - Queued = 1, - InProgress = 2, - Paused = 3, - Completed = 4, - CompletedWithSkippedTransfers = 5, - CompletedWithFailedTransfers = 6, - PauseInProgress = 7, - CancellationInProgress = 8, + public TransferCheckpointStoreOptions(string localCheckpointerPath) { } + public string CheckpointerPath { get { throw null; } } } - public partial class TransferCheckpointerOptions + public partial class TransferItemCompletedEventArgs : Azure.Storage.DataMovement.DataTransferEventArgs { - public TransferCheckpointerOptions(string localCheckpointerPath) { } - public string CheckpointerPath { get { throw null; } } + public TransferItemCompletedEventArgs(string transferId, Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.Storage.DataMovement.StorageResourceItem destinationResource, bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken) : base (default(string), default(bool), default(System.Threading.CancellationToken)) { } + public Azure.Storage.DataMovement.StorageResourceItem DestinationResource { get { throw null; } } + public Azure.Storage.DataMovement.StorageResourceItem SourceResource { get { throw null; } } } - public partial class TransferFailedEventArgs : Azure.Storage.DataMovement.StorageTransferEventArgs + public partial class TransferItemFailedEventArgs : Azure.Storage.DataMovement.DataTransferEventArgs { - public TransferFailedEventArgs(string transferId, Azure.Storage.DataMovement.StorageResourceSingle sourceResource, Azure.Storage.DataMovement.StorageResourceSingle destinationResource, System.Exception exception, bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken) : base (default(string), default(bool), default(System.Threading.CancellationToken)) { } - public Azure.Storage.DataMovement.StorageResourceSingle DestinationResource { get { throw null; } } + public TransferItemFailedEventArgs(string transferId, Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.Storage.DataMovement.StorageResourceItem destinationResource, System.Exception exception, bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken) : base (default(string), default(bool), default(System.Threading.CancellationToken)) { } + public Azure.Storage.DataMovement.StorageResourceItem DestinationResource { get { throw null; } } public System.Exception Exception { get { throw null; } } - public Azure.Storage.DataMovement.StorageResourceSingle SourceResource { get { throw null; } } + public Azure.Storage.DataMovement.StorageResourceItem SourceResource { get { throw null; } } + } + public partial class TransferItemSkippedEventArgs : Azure.Storage.DataMovement.DataTransferEventArgs + { + public TransferItemSkippedEventArgs(string transferId, Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.Storage.DataMovement.StorageResourceItem destinationResource, bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken) : base (default(string), default(bool), default(System.Threading.CancellationToken)) { } + public Azure.Storage.DataMovement.StorageResourceItem DestinationResource { get { throw null; } } + public Azure.Storage.DataMovement.StorageResourceItem SourceResource { get { throw null; } } } public partial class TransferManager : System.IAsyncDisposable { protected TransferManager() { } public TransferManager(Azure.Storage.DataMovement.TransferManagerOptions options = null) { } public virtual System.Collections.Generic.IAsyncEnumerable GetResumableTransfersAsync() { throw null; } - public virtual System.Collections.Generic.IAsyncEnumerable GetTransfersAsync(params Azure.Storage.DataMovement.StorageTransferStatus[] filterByStatus) { throw null; } + public virtual System.Collections.Generic.IAsyncEnumerable GetTransfersAsync(params Azure.Storage.DataMovement.DataTransferStatus[] filterByStatus) { throw null; } public virtual System.Threading.Tasks.Task PauseTransferIfRunningAsync(string transferId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task ResumeTransferAsync(string transferId, Azure.Storage.DataMovement.StorageResource sourceResource, Azure.Storage.DataMovement.StorageResource destinationResource, Azure.Storage.DataMovement.TransferOptions transferOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task StartTransferAsync(Azure.Storage.DataMovement.StorageResource sourceResource, Azure.Storage.DataMovement.StorageResource destinationResource, Azure.Storage.DataMovement.TransferOptions transferOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task ResumeTransferAsync(string transferId, Azure.Storage.DataMovement.StorageResource sourceResource, Azure.Storage.DataMovement.StorageResource destinationResource, Azure.Storage.DataMovement.DataTransferOptions transferOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task StartTransferAsync(Azure.Storage.DataMovement.StorageResource sourceResource, Azure.Storage.DataMovement.StorageResource destinationResource, Azure.Storage.DataMovement.DataTransferOptions transferOptions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync() { throw null; } } public partial class TransferManagerOptions { public TransferManagerOptions() { } - public Azure.Storage.DataMovement.TransferCheckpointerOptions CheckpointerOptions { get { throw null; } set { } } + public Azure.Storage.DataMovement.TransferCheckpointStoreOptions CheckpointerOptions { get { throw null; } set { } } public Azure.Core.DiagnosticsOptions Diagnostics { get { throw null; } } - public Azure.Storage.DataMovement.ErrorHandlingBehavior ErrorHandling { get { throw null; } set { } } + public Azure.Storage.DataMovement.DataTransferErrorMode ErrorHandling { get { throw null; } set { } } public int? MaximumConcurrency { get { throw null; } set { } } } - public partial class TransferOptions : System.IEquatable - { - public TransferOptions() { } - public Azure.Storage.DataMovement.StorageResourceCreateMode CreateMode { get { throw null; } set { } } - public long? InitialTransferSize { get { throw null; } set { } } - public long? MaximumTransferChunkSize { get { throw null; } set { } } - public System.IProgress ProgressHandler { get { throw null; } set { } } - public Azure.Storage.DataMovement.ProgressHandlerOptions ProgressHandlerOptions { get { throw null; } set { } } - public event Azure.Core.SyncAsyncEventHandler SingleTransferCompleted { add { } remove { } } - public event Azure.Core.SyncAsyncEventHandler TransferFailed { add { } remove { } } - public event Azure.Core.SyncAsyncEventHandler TransferSkipped { add { } remove { } } - public event Azure.Core.SyncAsyncEventHandler TransferStatus { add { } remove { } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public bool Equals(Azure.Storage.DataMovement.TransferOptions obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static bool operator ==(Azure.Storage.DataMovement.TransferOptions left, Azure.Storage.DataMovement.TransferOptions right) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static bool operator !=(Azure.Storage.DataMovement.TransferOptions left, Azure.Storage.DataMovement.TransferOptions right) { throw null; } - } - public partial class TransferSkippedEventArgs : Azure.Storage.DataMovement.StorageTransferEventArgs - { - public TransferSkippedEventArgs(string transferId, Azure.Storage.DataMovement.StorageResourceSingle sourceResource, Azure.Storage.DataMovement.StorageResourceSingle destinationResource, bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken) : base (default(string), default(bool), default(System.Threading.CancellationToken)) { } - public Azure.Storage.DataMovement.StorageResourceSingle DestinationResource { get { throw null; } } - public Azure.Storage.DataMovement.StorageResourceSingle SourceResource { get { throw null; } } - } - public partial class TransferStatusEventArgs : Azure.Storage.DataMovement.StorageTransferEventArgs + public partial class TransferStatusEventArgs : Azure.Storage.DataMovement.DataTransferEventArgs { - public TransferStatusEventArgs(string transferId, Azure.Storage.DataMovement.StorageTransferStatus transferStatus, bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken) : base (default(string), default(bool), default(System.Threading.CancellationToken)) { } - public Azure.Storage.DataMovement.StorageTransferStatus StorageTransferStatus { get { throw null; } } - } - public enum TransferType - { - Concurrent = 0, - Sequential = 1, + public TransferStatusEventArgs(string transferId, Azure.Storage.DataMovement.DataTransferStatus transferStatus, bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken) : base (default(string), default(bool), default(System.Threading.CancellationToken)) { } + public Azure.Storage.DataMovement.DataTransferStatus StorageTransferStatus { get { throw null; } } } } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/CommitChunkHandler.cs b/sdk/storage/Azure.Storage.DataMovement/src/CommitChunkHandler.cs index 94f265625b2d..b2147c33b5be 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/CommitChunkHandler.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/CommitChunkHandler.cs @@ -49,14 +49,14 @@ public struct Behaviors private long _bytesTransferred; private readonly long _expectedLength; private readonly long _blockSize; - private readonly TransferType _transferType; + private readonly DataTransferOrder _transferOrder; private readonly ClientDiagnostics _clientDiagnostics; public CommitChunkHandler( long expectedLength, long blockSize, Behaviors behaviors, - TransferType transferType, + DataTransferOrder transferOrder, ClientDiagnostics clientDiagnostics, CancellationToken cancellationToken) { @@ -97,8 +97,8 @@ public CommitChunkHandler( _bytesTransferred = blockSize; _blockSize = blockSize; - _transferType = transferType; - if (_transferType == TransferType.Sequential) + _transferOrder = transferOrder; + if (_transferOrder == DataTransferOrder.Sequential) { _commitBlockHandler += SequentialBlockEvent; } @@ -121,7 +121,7 @@ public async ValueTask DisposeAsync() private void DipsoseHandlers() { - if (_transferType == TransferType.Sequential) + if (_transferOrder == DataTransferOrder.Sequential) { _commitBlockHandler -= SequentialBlockEvent; } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StorageTransferEventArgs.cs b/sdk/storage/Azure.Storage.DataMovement/src/DataTransferEventArgs.cs similarity index 89% rename from sdk/storage/Azure.Storage.DataMovement/src/StorageTransferEventArgs.cs rename to sdk/storage/Azure.Storage.DataMovement/src/DataTransferEventArgs.cs index e987040c9593..5a36628d0d31 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StorageTransferEventArgs.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/DataTransferEventArgs.cs @@ -11,7 +11,7 @@ namespace Azure.Storage.DataMovement /// /// Event Arguments for any Storage Transfer Event Handler. /// - public abstract class StorageTransferEventArgs : SyncAsyncEventArgs + public abstract class DataTransferEventArgs : SyncAsyncEventArgs { /// /// Job ID. @@ -19,7 +19,7 @@ public abstract class StorageTransferEventArgs : SyncAsyncEventArgs public string TransferId { get; internal set; } /// - /// Initializes a new instance of the . + /// Initializes a new instance of the . /// /// The transfer ID. /// @@ -37,7 +37,7 @@ public abstract class StorageTransferEventArgs : SyncAsyncEventArgs /// /// Thrown if is empty or null. /// - protected StorageTransferEventArgs( + protected DataTransferEventArgs( string transferId, bool isRunningSynchronously, CancellationToken cancellationToken) diff --git a/sdk/storage/Azure.Storage.DataMovement/src/TransferOptions.cs b/sdk/storage/Azure.Storage.DataMovement/src/DataTransferOptions.cs similarity index 75% rename from sdk/storage/Azure.Storage.DataMovement/src/TransferOptions.cs rename to sdk/storage/Azure.Storage.DataMovement/src/DataTransferOptions.cs index 0a57a26e029c..2ab757921128 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/TransferOptions.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/DataTransferOptions.cs @@ -8,9 +8,9 @@ namespace Azure.Storage.DataMovement { /// - /// is used to provide options for a transfer. + /// is used to provide options for a transfer. /// - public class TransferOptions : IEquatable + public class DataTransferOptions : IEquatable { /// /// The maximum length of a network transfer in bytes. @@ -32,9 +32,9 @@ public class TransferOptions : IEquatable /// /// Optional. An for tracking progress of the transfer. - /// See for details on what is tracked. + /// See for details on what is tracked. /// - public IProgress ProgressHandler { get; set; } + public IProgress ProgressHandler { get; set; } /// /// Optional. Options for changing behavior of the ProgressHandler. @@ -67,7 +67,7 @@ public override int GetHashCode() /// The second instance to compare. /// True if they're equal, false otherwise. [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator ==(TransferOptions left, TransferOptions right) => left.Equals(right); + public static bool operator ==(DataTransferOptions left, DataTransferOptions right) => left.Equals(right); /// /// Check if two ParallelTransferOptions instances are equal. @@ -76,7 +76,7 @@ public override int GetHashCode() /// The second instance to compare. /// True if they're not equal, false otherwise. [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator !=(TransferOptions left, TransferOptions right) => !(left == right); + public static bool operator !=(DataTransferOptions left, DataTransferOptions right) => !(left == right); /// /// Check if two ParallelTransferOptions instances are equal. @@ -84,28 +84,28 @@ public override int GetHashCode() /// The instance to compare to. /// True if they're equal, false otherwise. [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(TransferOptions obj) + public bool Equals(DataTransferOptions obj) => MaximumTransferChunkSize == obj?.MaximumTransferChunkSize && InitialTransferSize == obj?.InitialTransferSize; /// - /// Optional to configure overwrite - /// behavior. Will default to . + /// Optional to configure overwrite + /// behavior. Will default to . /// - public StorageResourceCreateMode CreateMode { get; set; } + public StorageResourceCreationPreference CreationPreference { get; set; } /// /// If the transfer status of the job changes then the event will get added to this handler. /// - public event SyncAsyncEventHandler TransferStatus; - internal SyncAsyncEventHandler GetTransferStatus() => TransferStatus; + public event SyncAsyncEventHandler TransferStatusChanged; + internal SyncAsyncEventHandler GetTransferStatus() => TransferStatusChanged; /// /// If the transfer has any failed events that occur the event will get added to this handler. /// - public event SyncAsyncEventHandler TransferFailed; + public event SyncAsyncEventHandler ItemTransferFailed; - internal SyncAsyncEventHandler GetFailed() => TransferFailed; + internal SyncAsyncEventHandler GetFailed() => ItemTransferFailed; /// /// If a single transfer within the resource container gets transferred successfully the event @@ -113,16 +113,16 @@ public bool Equals(TransferOptions obj) /// /// Only applies to container transfers, not single resource transfers. /// - public event SyncAsyncEventHandler SingleTransferCompleted; - internal SyncAsyncEventHandler GetCompleted() => SingleTransferCompleted; + public event SyncAsyncEventHandler ItemTransferCompleted; + internal SyncAsyncEventHandler GetCompleted() => ItemTransferCompleted; /// /// If the transfer has any skipped events that occur the event will get added to this handler. /// Skipped transfer occur during Transfer due to no overwrite allowed as specified in - /// + /// /// - public event SyncAsyncEventHandler TransferSkipped; + public event SyncAsyncEventHandler ItemTransferSkipped; - internal SyncAsyncEventHandler GetSkipped() => TransferSkipped; + internal SyncAsyncEventHandler GetSkipped() => ItemTransferSkipped; } } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StorageTransferProgress.cs b/sdk/storage/Azure.Storage.DataMovement/src/DataTransferProgress.cs similarity index 90% rename from sdk/storage/Azure.Storage.DataMovement/src/StorageTransferProgress.cs rename to sdk/storage/Azure.Storage.DataMovement/src/DataTransferProgress.cs index 6cac0ecf2a33..a642466c489f 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StorageTransferProgress.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/DataTransferProgress.cs @@ -6,8 +6,13 @@ namespace Azure.Storage.DataMovement /// /// Progress Handler to track how many files and bytes were transferred, along with files that failed or were skipped in transfer. /// - public class StorageTransferProgress + public class DataTransferProgress { + /// + /// Constructor for mocking. + /// + protected internal DataTransferProgress() { } + /// /// Number of files that were transferred successfully. /// diff --git a/sdk/storage/Azure.Storage.DataMovement/src/DataTransferProperties.cs b/sdk/storage/Azure.Storage.DataMovement/src/DataTransferProperties.cs index be52cb3db122..369887dd736a 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/DataTransferProperties.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/DataTransferProperties.cs @@ -4,14 +4,14 @@ namespace Azure.Storage.DataMovement { /// - /// Storage Resource Item properties returned by + /// Storage Resource Item properties returned by /// public class DataTransferProperties { /// /// Contains the checkpointer information to rehydrate the StorageResource from. /// - public virtual TransferCheckpointerOptions Checkpointer { get; internal set; } + public virtual TransferCheckpointStoreOptions Checkpointer { get; internal set; } /// /// Contains the transfer ID which to rehydrate the StorageResource from. diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StorageTransferStatus.cs b/sdk/storage/Azure.Storage.DataMovement/src/DataTransferStatus.cs similarity index 86% rename from sdk/storage/Azure.Storage.DataMovement/src/StorageTransferStatus.cs rename to sdk/storage/Azure.Storage.DataMovement/src/DataTransferStatus.cs index 3dfdc2b07f5b..0a56b039e54e 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StorageTransferStatus.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/DataTransferStatus.cs @@ -8,23 +8,23 @@ namespace Azure.Storage.DataMovement /// /// Defines the status of the Transfer Job. /// - public enum StorageTransferStatus + public enum DataTransferStatus { /// /// Default value. - /// Equivalent to . + /// Equivalent to . /// None = 0, /// /// The Job has been queued up but has not yet begun any transfers. - /// Equivalent to . + /// Equivalent to . /// Queued = 1, /// /// The Job has started, but has not yet completed. - /// Equivalent to . + /// Equivalent to . /// InProgress = 2, @@ -33,7 +33,7 @@ public enum StorageTransferStatus /// this will be the value. /// /// This status is a resumable state, only - /// transfers that failed will be retried when + /// transfers that failed will be retried when /// with the respective transfer ID to resume. /// Paused = 3, diff --git a/sdk/storage/Azure.Storage.DataMovement/src/DownloadRangeEventArgs.cs b/sdk/storage/Azure.Storage.DataMovement/src/DownloadRangeEventArgs.cs index 3d2ad5f46cf8..a241de280acf 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/DownloadRangeEventArgs.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/DownloadRangeEventArgs.cs @@ -8,7 +8,7 @@ namespace Azure.Storage.DataMovement { - internal class DownloadRangeEventArgs : StorageTransferEventArgs + internal class DownloadRangeEventArgs : DataTransferEventArgs { public bool Success { get; } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/JobPartFailureType.cs b/sdk/storage/Azure.Storage.DataMovement/src/JobPartFailureType.cs index 3c9a9ad9adf7..652a825396df 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/JobPartFailureType.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/JobPartFailureType.cs @@ -15,8 +15,8 @@ internal enum JobPartFailureType AccessDenied = 3, /// - /// If the storage resource already exists and - /// or was not enabled, then it's a failure caused + /// If the storage resource already exists and + /// or was not enabled, then it's a failure caused /// by the file already existing. /// CannotOvewrite = 2, diff --git a/sdk/storage/Azure.Storage.DataMovement/src/JobPartInternal.cs b/sdk/storage/Azure.Storage.DataMovement/src/JobPartInternal.cs index 5e39ee0a67c4..92e532488fad 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/JobPartInternal.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/JobPartInternal.cs @@ -48,22 +48,22 @@ internal abstract class JobPartInternal /// /// Specifies the source resource. /// - internal StorageResourceSingle _sourceResource; + internal StorageResourceItem _sourceResource; /// /// Specifies the destination resource. /// - internal StorageResourceSingle _destinationResource; + internal StorageResourceItem _destinationResource; /// /// Specifies the options for error handling. /// - internal ErrorHandlingBehavior _errorHandling; + internal DataTransferErrorMode _errorHandling; /// /// Determines how files are created and overwrite behavior for files that already exists. /// - internal StorageResourceCreateMode _createMode; + internal StorageResourceCreationPreference _createMode; /// /// If a failure occurred during a job, this defines the type of failure. @@ -95,7 +95,7 @@ internal abstract class JobPartInternal /// /// The current status of each job part. /// - public StorageTransferStatus JobPartStatus { get; set; } + public DataTransferStatus JobPartStatus { get; set; } private object _statusLock = new object(); /// @@ -125,18 +125,18 @@ internal abstract class JobPartInternal /// /// If the transfer has any failed events that occur the event will get added to this handler. /// - public SyncAsyncEventHandler TransferSkippedEventHandler { get; internal set; } + public SyncAsyncEventHandler TransferSkippedEventHandler { get; internal set; } /// /// If the transfer has any failed events that occur the event will get added to this handler. /// - public SyncAsyncEventHandler TransferFailedEventHandler { get; internal set; } + public SyncAsyncEventHandler TransferFailedEventHandler { get; internal set; } /// /// If a single transfer within the resource container gets transferred successfully the event /// will get added to this handler /// - public SyncAsyncEventHandler SingleTransferCompletedEventHandler { get; internal set; } + public SyncAsyncEventHandler SingleTransferCompletedEventHandler { get; internal set; } private List> _chunkTasks; private List> _chunkTaskSources; @@ -152,24 +152,24 @@ protected JobPartInternal() { } internal JobPartInternal( DataTransfer dataTransfer, int partNumber, - StorageResourceSingle sourceResource, - StorageResourceSingle destinationResource, + StorageResourceItem sourceResource, + StorageResourceItem destinationResource, long? maximumTransferChunkSize, long? initialTransferSize, - ErrorHandlingBehavior errorHandling, - StorageResourceCreateMode createMode, + DataTransferErrorMode errorHandling, + StorageResourceCreationPreference createMode, TransferCheckpointer checkpointer, TransferProgressTracker progressTracker, ArrayPool arrayPool, bool isFinalPart, SyncAsyncEventHandler jobPartEventHandler, SyncAsyncEventHandler statusEventHandler, - SyncAsyncEventHandler failedEventHandler, - SyncAsyncEventHandler skippedEventHandler, - SyncAsyncEventHandler singleTransferEventHandler, + SyncAsyncEventHandler failedEventHandler, + SyncAsyncEventHandler skippedEventHandler, + SyncAsyncEventHandler singleTransferEventHandler, ClientDiagnostics clientDiagnostics, CancellationToken cancellationToken, - StorageTransferStatus jobPartStatus = StorageTransferStatus.Queued, + DataTransferStatus jobPartStatus = DataTransferStatus.Queued, long? length = default) { Argument.AssertNotNull(clientDiagnostics, nameof(clientDiagnostics)); @@ -259,28 +259,28 @@ await QueueChunk( /// /// Triggers the cancellation for the Job Part. /// - /// If the status is set to - /// and any chunks is still processing to be cancelled is will be set to - /// until the chunks finish then it will be set to . + /// If the status is set to + /// and any chunks is still processing to be cancelled is will be set to + /// until the chunks finish then it will be set to . /// - /// If the status is set to - /// and any chunks is still processing to be cancelled is will be set to - /// until the chunks finish then it will be set to . + /// If the status is set to + /// and any chunks is still processing to be cancelled is will be set to + /// until the chunks finish then it will be set to . /// /// The task to wait until the cancellation has been triggered. internal async Task TriggerCancellationAsync() { // Set the status to Pause/CancellationInProgress - if (StorageTransferStatus.PauseInProgress == _dataTransfer.TransferStatus) + if (DataTransferStatus.PauseInProgress == _dataTransfer.TransferStatus) { // It's possible that the status hasn't propagated down to the job part // status yet here since we pause from the data transfer object. - await OnTransferStatusChanged(StorageTransferStatus.PauseInProgress).ConfigureAwait(false); + await OnTransferStatusChanged(DataTransferStatus.PauseInProgress).ConfigureAwait(false); } else { // It's a cancellation if a pause wasn't called. - await OnTransferStatusChanged(StorageTransferStatus.CancellationInProgress).ConfigureAwait(false); + await OnTransferStatusChanged(DataTransferStatus.CancellationInProgress).ConfigureAwait(false); } await CleanupAbortedJobPartAsync().ConfigureAwait(false); } @@ -289,12 +289,12 @@ internal async Task TriggerCancellationAsync() /// To change all transfer statues at the same time /// /// - internal async Task OnTransferStatusChanged(StorageTransferStatus transferStatus) + internal async Task OnTransferStatusChanged(DataTransferStatus transferStatus) { bool statusChanged = false; lock (_statusLock) { - if (transferStatus != StorageTransferStatus.None + if (transferStatus != DataTransferStatus.None && JobPartStatus != transferStatus) { statusChanged = true; @@ -304,24 +304,24 @@ internal async Task OnTransferStatusChanged(StorageTransferStatus transferStatus if (statusChanged) { // Progress tracking, do before invoking the event below - if (transferStatus == StorageTransferStatus.InProgress) + if (transferStatus == DataTransferStatus.InProgress) { _progressTracker.IncrementInProgressFiles(); } - else if (transferStatus == StorageTransferStatus.Completed) + else if (transferStatus == DataTransferStatus.Completed) { _progressTracker.IncrementCompletedFiles(); } - else if (transferStatus == StorageTransferStatus.CompletedWithSkippedTransfers) + else if (transferStatus == DataTransferStatus.CompletedWithSkippedTransfers) { _progressTracker.IncrementSkippedFiles(); } - else if (transferStatus == StorageTransferStatus.CompletedWithFailedTransfers) + else if (transferStatus == DataTransferStatus.CompletedWithFailedTransfers) { _progressTracker.IncrementFailedFiles(); } - if (JobPartStatus == StorageTransferStatus.Completed) + if (JobPartStatus == DataTransferStatus.Completed) { await InvokeSingleCompletedArg().ConfigureAwait(false); } @@ -357,7 +357,7 @@ public async virtual Task InvokeSingleCompletedArg() if (SingleTransferCompletedEventHandler != null) { await SingleTransferCompletedEventHandler.RaiseAsync( - new SingleTransferCompletedEventArgs( + new TransferItemCompletedEventArgs( _dataTransfer.Id, _sourceResource, _destinationResource, @@ -379,7 +379,7 @@ public async virtual Task InvokeSkippedArg() { // TODO: change to RaiseAsync await TransferSkippedEventHandler.RaiseAsync( - new TransferSkippedEventArgs( + new TransferItemSkippedEventArgs( _dataTransfer.Id, _sourceResource, _destinationResource, @@ -390,7 +390,7 @@ await TransferSkippedEventHandler.RaiseAsync( ClientDiagnostics) .ConfigureAwait(false); } - await OnTransferStatusChanged(StorageTransferStatus.CompletedWithSkippedTransfers).ConfigureAwait(false); + await OnTransferStatusChanged(DataTransferStatus.CompletedWithSkippedTransfers).ConfigureAwait(false); } /// @@ -406,7 +406,7 @@ public async virtual Task InvokeFailedArg(Exception ex) { // TODO: change to RaiseAsync await TransferFailedEventHandler.RaiseAsync( - new TransferFailedEventArgs( + new TransferItemFailedEventArgs( _dataTransfer.Id, _sourceResource, _destinationResource, @@ -452,7 +452,7 @@ public async virtual Task CleanupAbortedJobPartAsync() public async virtual Task AddJobPartToCheckpointerAsync(int chunksTotal, bool isFinalPart) { JobPartPlanHeader header = this.ToJobPartPlanHeader( - jobStatus: StorageTransferStatus.InProgress, + jobStatus: DataTransferStatus.InProgress, isFinalPart: isFinalPart); using (Stream stream = new MemoryStream()) { @@ -466,7 +466,7 @@ await _checkpointer.AddNewJobPartAsync( } } - internal async virtual Task SetCheckpointerStatus(StorageTransferStatus status) + internal async virtual Task SetCheckpointerStatus(DataTransferStatus status) { await _checkpointer.SetJobPartTransferStatusAsync( transferId: _dataTransfer.Id, @@ -567,13 +567,13 @@ internal async Task CheckAndUpdateCancellationStatusAsync() { if (_chunkTasks.All((Task task) => (task.IsCompleted))) { - if (JobPartStatus == StorageTransferStatus.PauseInProgress) + if (JobPartStatus == DataTransferStatus.PauseInProgress) { - await OnTransferStatusChanged(StorageTransferStatus.Paused).ConfigureAwait(false); + await OnTransferStatusChanged(DataTransferStatus.Paused).ConfigureAwait(false); } - else if (JobPartStatus == StorageTransferStatus.CancellationInProgress) + else if (JobPartStatus == DataTransferStatus.CancellationInProgress) { - await OnTransferStatusChanged(StorageTransferStatus.CompletedWithFailedTransfers).ConfigureAwait(false); + await OnTransferStatusChanged(DataTransferStatus.CompletedWithFailedTransfers).ConfigureAwait(false); } } } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/LocalDirectoryStorageResourceContainer.cs b/sdk/storage/Azure.Storage.DataMovement/src/LocalDirectoryStorageResourceContainer.cs index c572ce2bc303..89094d0d88ff 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/LocalDirectoryStorageResourceContainer.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/LocalDirectoryStorageResourceContainer.cs @@ -48,7 +48,7 @@ public LocalDirectoryStorageResourceContainer(string path) /// /// /// - protected internal override StorageResourceSingle GetChildStorageResource(string childPath) + protected internal override StorageResourceItem GetStorageResourceReference(string childPath) { string concatPath = System.IO.Path.Combine(Path, childPath); return new LocalFileStorageResource(concatPath); diff --git a/sdk/storage/Azure.Storage.DataMovement/src/LocalFileStorageResource.cs b/sdk/storage/Azure.Storage.DataMovement/src/LocalFileStorageResource.cs index c8e30c92dbc9..d2fbc61deb0d 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/LocalFileStorageResource.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/LocalFileStorageResource.cs @@ -12,7 +12,7 @@ namespace Azure.Storage.DataMovement /// /// Local File Storage Resource /// - public class LocalFileStorageResource : StorageResourceSingle + public class LocalFileStorageResource : StorageResourceItem { private string _path; @@ -39,7 +39,7 @@ public class LocalFileStorageResource : StorageResourceSingle /// /// Defines the recommended Transfer Type of the resource /// - protected internal override TransferType TransferType => TransferType.Sequential; + protected internal override DataTransferOrder TransferType => DataTransferOrder.Sequential; /// /// Defines the maximum chunk size for the storage resource. @@ -75,14 +75,14 @@ public LocalFileStorageResource(string path) /// /// /// - protected internal override Task ReadStreamAsync( + protected internal override Task ReadStreamAsync( long position = 0, long? length = default, CancellationToken cancellationToken = default) { FileStream stream = new FileStream(_path, FileMode.Open, FileAccess.Read); stream.Position = position; - return Task.FromResult(new ReadStreamStorageResourceResult(stream)); + return Task.FromResult(new StorageResourceReadStreamResult(stream)); } /// @@ -120,7 +120,7 @@ internal Task CreateAsync(bool overwrite) /// /// /// - protected internal override async Task WriteFromStreamAsync( + protected internal override async Task CopyFromStreamAsync( Stream stream, long streamLength, bool overwrite, @@ -170,7 +170,7 @@ await stream.CopyToAsync( /// /// protected internal override Task CopyFromUriAsync( - StorageResourceSingle sourceResource, + StorageResourceItem sourceResource, bool overwrite, long completeLength, StorageResourceCopyFromUriOptions options = default, @@ -194,7 +194,7 @@ protected internal override Task CopyFromUriAsync( /// /// protected internal override Task CopyBlockFromUriAsync( - StorageResourceSingle sourceResource, + StorageResourceItem sourceResource, HttpRange range, bool overwrite, long completeLength = 0, diff --git a/sdk/storage/Azure.Storage.DataMovement/src/LocalStorageResourceProvider.cs b/sdk/storage/Azure.Storage.DataMovement/src/LocalStorageResourceProvider.cs index 6a90d871f886..2b9c33cc842d 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/LocalStorageResourceProvider.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/LocalStorageResourceProvider.cs @@ -31,7 +31,7 @@ internal LocalStorageResourceProvider( /// /// The this provider is configured for. /// - public StorageResource MakeResource() + public StorageResource CreateResource() { if (_isFolder) { diff --git a/sdk/storage/Azure.Storage.DataMovement/src/ProgressHandlerOptions.cs b/sdk/storage/Azure.Storage.DataMovement/src/ProgressHandlerOptions.cs index bca4769c333e..96e81cb07d14 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/ProgressHandlerOptions.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/ProgressHandlerOptions.cs @@ -9,7 +9,7 @@ namespace Azure.Storage.DataMovement public class ProgressHandlerOptions { /// - /// Set to true to populate BytesTransferred of in + /// Set to true to populate BytesTransferred of in /// progress reports. Set to false to not track BytesTransferred (value will be null). /// Default value is false. /// diff --git a/sdk/storage/Azure.Storage.DataMovement/src/ServiceToServiceJobPart.cs b/sdk/storage/Azure.Storage.DataMovement/src/ServiceToServiceJobPart.cs index 72c7386318c3..277a045fe6e3 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/ServiceToServiceJobPart.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/ServiceToServiceJobPart.cs @@ -30,8 +30,8 @@ private ServiceToServiceJobPart(ServiceToServiceTransferJob job, int partNumber, destinationResource: job._destinationResource, maximumTransferChunkSize: job._maximumTransferChunkSize, initialTransferSize: job._initialTransferSize, - errorHandling: job._errorHandling, - createMode: job._createMode, + errorHandling: job._errorMode, + createMode: job._creationPreference, checkpointer: job._checkpointer, progressTracker: job._progressTracker, arrayPool: job.UploadArrayPool, @@ -40,7 +40,7 @@ private ServiceToServiceJobPart(ServiceToServiceTransferJob job, int partNumber, statusEventHandler: job.TransferStatusEventHandler, failedEventHandler: job.TransferFailedEventHandler, skippedEventHandler: job.TransferSkippedEventHandler, - singleTransferEventHandler: job.SingleTransferCompletedEventHandler, + singleTransferEventHandler: job.TransferItemCompletedEventHandler, clientDiagnostics: job.ClientDiagnostics, cancellationToken: job._cancellationToken) { @@ -52,10 +52,10 @@ private ServiceToServiceJobPart(ServiceToServiceTransferJob job, int partNumber, private ServiceToServiceJobPart( ServiceToServiceTransferJob job, int partNumber, - StorageResourceSingle sourceResource, - StorageResourceSingle destinationResource, + StorageResourceItem sourceResource, + StorageResourceItem destinationResource, bool isFinalPart, - StorageTransferStatus jobPartStatus = StorageTransferStatus.Queued, + DataTransferStatus jobPartStatus = DataTransferStatus.Queued, long? length = default) : base(dataTransfer: job._dataTransfer, partNumber: partNumber, @@ -63,8 +63,8 @@ private ServiceToServiceJobPart( destinationResource :destinationResource, maximumTransferChunkSize: job._maximumTransferChunkSize, initialTransferSize: job._initialTransferSize, - errorHandling: job._errorHandling, - createMode: job._createMode, + errorHandling: job._errorMode, + createMode: job._creationPreference, checkpointer: job._checkpointer, progressTracker: job._progressTracker, arrayPool: job.UploadArrayPool, @@ -73,7 +73,7 @@ private ServiceToServiceJobPart( statusEventHandler: job.TransferStatusEventHandler, failedEventHandler: job.TransferFailedEventHandler, skippedEventHandler: job.TransferSkippedEventHandler, - singleTransferEventHandler: job.SingleTransferCompletedEventHandler, + singleTransferEventHandler: job.TransferItemCompletedEventHandler, clientDiagnostics: job.ClientDiagnostics, cancellationToken: job._cancellationToken, jobPartStatus: jobPartStatus, @@ -103,10 +103,10 @@ public static async Task CreateJobPartAsync( public static async Task CreateJobPartAsync( ServiceToServiceTransferJob job, int partNumber, - StorageResourceSingle sourceResource, - StorageResourceSingle destinationResource, + StorageResourceItem sourceResource, + StorageResourceItem destinationResource, bool isFinalPart, - StorageTransferStatus jobPartStatus = default, + DataTransferStatus jobPartStatus = default, long? length = default, bool partPlanFileExists = false) { @@ -128,7 +128,7 @@ public static async Task CreateJobPartAsync( public override async Task ProcessPartToChunkAsync() { - await OnTransferStatusChanged(StorageTransferStatus.InProgress).ConfigureAwait(false); + await OnTransferStatusChanged(DataTransferStatus.InProgress).ConfigureAwait(false); // Attempt to get the length, it's possible the file could // not be accessible (or does not exist). @@ -176,7 +176,7 @@ await StartSingleCallCopy(length).ConfigureAwait(false)) if (await CreateDestinationResource(length, blockSize).ConfigureAwait(false)) { List<(long Offset, long Length)> commitBlockList = GetRangeList(blockSize, length); - if (_destinationResource.TransferType == TransferType.Concurrent) + if (_destinationResource.TransferType == DataTransferOrder.Unordered) { await QueueStageBlockRequests(commitBlockList, length).ConfigureAwait(false); } @@ -205,16 +205,16 @@ internal async Task StartSingleCallCopy(long completeLength) await GetCopyFromUriOptionsAsync(_cancellationToken).ConfigureAwait(false); await _destinationResource.CopyFromUriAsync( sourceResource: _sourceResource, - overwrite: _createMode == StorageResourceCreateMode.Overwrite, + overwrite: _createMode == StorageResourceCreationPreference.OverwriteIfExists, completeLength: completeLength, options: options, cancellationToken: _cancellationToken).ConfigureAwait(false); ReportBytesWritten(completeLength); - await OnTransferStatusChanged(StorageTransferStatus.Completed).ConfigureAwait(false); + await OnTransferStatusChanged(DataTransferStatus.Completed).ConfigureAwait(false); } catch (RequestFailedException exception) - when (_createMode == StorageResourceCreateMode.Skip + when (_createMode == StorageResourceCreationPreference.SkipIfExists && exception.ErrorCode == "BlobAlreadyExists") { await InvokeSkippedArg().ConfigureAwait(false); @@ -238,7 +238,7 @@ internal async Task CreateDestinationResource(long length, long blockSize) await GetCopyFromUriOptionsAsync(_cancellationToken).ConfigureAwait(false); await _destinationResource.CopyBlockFromUriAsync( sourceResource: _sourceResource, - overwrite: _createMode == StorageResourceCreateMode.Overwrite, + overwrite: _createMode == StorageResourceCreationPreference.OverwriteIfExists, range: new HttpRange(0, blockSize), completeLength: length, options: options, @@ -255,7 +255,7 @@ await _destinationResource.CopyBlockFromUriAsync( return true; } catch (RequestFailedException exception) - when (_createMode == StorageResourceCreateMode.Skip + when (_createMode == StorageResourceCreationPreference.SkipIfExists && exception.ErrorCode == "BlobAlreadyExists") { await InvokeSkippedArg().ConfigureAwait(false); @@ -272,7 +272,7 @@ internal CommitChunkHandler GetCommitController( long expectedLength, long blockSize, ServiceToServiceJobPart jobPart, - TransferType transferType) + DataTransferOrder transferType) => new CommitChunkHandler( expectedLength, blockSize, @@ -300,14 +300,14 @@ internal async Task CompleteTransferAsync() { // Apply necessary transfer completions on the destination. await _destinationResource.CompleteTransferAsync( - overwrite: _createMode == StorageResourceCreateMode.Overwrite, + overwrite: _createMode == StorageResourceCreationPreference.OverwriteIfExists, cancellationToken: _cancellationToken).ConfigureAwait(false); // Dispose the handlers await DisposeHandlers().ConfigureAwait(false); // Set completion status to completed - await OnTransferStatusChanged(StorageTransferStatus.Completed).ConfigureAwait(false); + await OnTransferStatusChanged(DataTransferStatus.Completed).ConfigureAwait(false); } catch (Exception ex) { @@ -351,7 +351,7 @@ internal async Task PutBlockFromUri( await GetCopyFromUriOptionsAsync(_cancellationToken).ConfigureAwait(false); await _destinationResource.CopyBlockFromUriAsync( sourceResource: _sourceResource, - overwrite: _createMode == StorageResourceCreateMode.Overwrite, + overwrite: _createMode == StorageResourceCreationPreference.OverwriteIfExists, range: new HttpRange(offset, blockLength), completeLength: expectedLength, options: options, @@ -368,12 +368,12 @@ await _commitBlockHandler.InvokeEvent( cancellationToken: _cancellationToken)).ConfigureAwait(false); } catch (RequestFailedException ex) - when (_createMode == StorageResourceCreateMode.Overwrite + when (_createMode == StorageResourceCreationPreference.OverwriteIfExists && ex.ErrorCode == "BlobAlreadyExists") { // For Block Blobs this is a one off case because we don't create the blob // before uploading to it. - if (_createMode == StorageResourceCreateMode.Fail) + if (_createMode == StorageResourceCreationPreference.FailIfExists) { await InvokeFailedArg(ex).ConfigureAwait(false); } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/ServiceToServiceTransferJob.cs b/sdk/storage/Azure.Storage.DataMovement/src/ServiceToServiceTransferJob.cs index b821aeb40e1f..ea5af0ae2374 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/ServiceToServiceTransferJob.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/ServiceToServiceTransferJob.cs @@ -18,12 +18,12 @@ internal class ServiceToServiceTransferJob : TransferJobInternal /// internal ServiceToServiceTransferJob( DataTransfer dataTransfer, - StorageResourceSingle sourceResource, - StorageResourceSingle destinationResource, - TransferOptions transferOptions, + StorageResourceItem sourceResource, + StorageResourceItem destinationResource, + DataTransferOptions transferOptions, QueueChunkTaskInternal queueChunkTask, TransferCheckpointer CheckPointFolderPath, - ErrorHandlingBehavior errorHandling, + DataTransferErrorMode errorHandling, ArrayPool arrayPool, ClientDiagnostics clientDiagnostics) : base(dataTransfer, @@ -45,10 +45,10 @@ internal ServiceToServiceTransferJob( DataTransfer dataTransfer, StorageResourceContainer sourceResource, StorageResourceContainer destinationResource, - TransferOptions transferOptions, + DataTransferOptions transferOptions, QueueChunkTaskInternal queueChunkTask, TransferCheckpointer checkpointer, - ErrorHandlingBehavior errorHandling, + DataTransferErrorMode errorHandling, ArrayPool arrayPool, ClientDiagnostics clientDiagnostics) : base(dataTransfer, @@ -69,7 +69,7 @@ internal ServiceToServiceTransferJob( /// An IEnumerable that contains the job parts public override async IAsyncEnumerable ProcessJobToJobPartAsync() { - await OnJobStatusChangedAsync(StorageTransferStatus.InProgress).ConfigureAwait(false); + await OnJobStatusChangedAsync(DataTransferStatus.InProgress).ConfigureAwait(false); int partNumber = 0; if (_jobParts.Count == 0) @@ -108,9 +108,9 @@ public override async IAsyncEnumerable ProcessJobToJobPartAsync bool isFinalPartFound = false; foreach (JobPartInternal part in _jobParts) { - if (part.JobPartStatus != StorageTransferStatus.Completed) + if (part.JobPartStatus != DataTransferStatus.Completed) { - part.JobPartStatus = StorageTransferStatus.Queued; + part.JobPartStatus = DataTransferStatus.Queued; yield return part; if (part.IsFinalPart) @@ -192,8 +192,8 @@ private async IAsyncEnumerable GetStorageResourcesAsync() part = await ServiceToServiceJobPart.CreateJobPartAsync( job: this, partNumber: partNumber, - sourceResource: (StorageResourceSingle)lastResource, - destinationResource: _destinationResourceContainer.GetChildStorageResource(sourceName), + sourceResource: (StorageResourceItem)lastResource, + destinationResource: _destinationResourceContainer.GetStorageResourceReference(sourceName), isFinalPart: false).ConfigureAwait(false); AppendJobPart(part); } @@ -224,8 +224,8 @@ private async IAsyncEnumerable GetStorageResourcesAsync() lastPart = await ServiceToServiceJobPart.CreateJobPartAsync( job: this, partNumber: partNumber, - sourceResource: (StorageResourceSingle)lastResource, - destinationResource: _destinationResourceContainer.GetChildStorageResource(lastSourceName), + sourceResource: (StorageResourceItem)lastResource, + destinationResource: _destinationResourceContainer.GetStorageResourceReference(lastSourceName), isFinalPart: true).ConfigureAwait(false); AppendJobPart(lastPart); } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/Shared/CheckpointerExtensions.cs b/sdk/storage/Azure.Storage.DataMovement/src/Shared/CheckpointerExtensions.cs index 6a87242f13b3..247530390d02 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/Shared/CheckpointerExtensions.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/Shared/CheckpointerExtensions.cs @@ -5,7 +5,7 @@ namespace Azure.Storage.DataMovement { internal static class CheckpointerExtensions { - public static TransferCheckpointer GetCheckpointer(this TransferCheckpointerOptions options) + public static TransferCheckpointer GetCheckpointer(this TransferCheckpointStoreOptions options) { if (!string.IsNullOrEmpty(options?.CheckpointerPath)) { diff --git a/sdk/storage/Azure.Storage.DataMovement/src/Shared/DataMovementExtensions.cs b/sdk/storage/Azure.Storage.DataMovement/src/Shared/DataMovementExtensions.cs index cac74acb85a0..79db0b2bde3f 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/Shared/DataMovementExtensions.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/Shared/DataMovementExtensions.cs @@ -22,14 +22,14 @@ internal static StorageResourceProperties ToStorageResourceProperties(this FileI public static async Task ToJobPartAsync( this StreamToUriTransferJob baseJob, Stream planFileStream, - StorageResourceSingle sourceResource, - StorageResourceSingle destinationResource) + StorageResourceItem sourceResource, + StorageResourceItem destinationResource) { // Convert stream to job plan header JobPartPlanHeader header = JobPartPlanHeader.Deserialize(planFileStream); // Apply credentials to the saved transfer job path - StorageTransferStatus jobPartStatus = header.AtomicJobStatus; + DataTransferStatus jobPartStatus = header.AtomicJobStatus; StreamToUriJobPart jobPart = await StreamToUriJobPart.CreateJobPartAsync( job: baseJob, partNumber: Convert.ToInt32(header.PartNumber), @@ -48,14 +48,14 @@ public static async Task ToJobPartAsync( public static async Task ToJobPartAsync( this ServiceToServiceTransferJob baseJob, Stream planFileStream, - StorageResourceSingle sourceResource, - StorageResourceSingle destinationResource) + StorageResourceItem sourceResource, + StorageResourceItem destinationResource) { // Convert stream to job plan header JobPartPlanHeader header = JobPartPlanHeader.Deserialize(planFileStream); // Apply credentials to the saved transfer job path - StorageTransferStatus jobPartStatus = header.AtomicJobStatus; + DataTransferStatus jobPartStatus = header.AtomicJobStatus; ServiceToServiceJobPart jobPart = await ServiceToServiceJobPart.CreateJobPartAsync( job: baseJob, partNumber: Convert.ToInt32(header.PartNumber), @@ -74,14 +74,14 @@ public static async Task ToJobPartAsync( public static async Task ToJobPartAsync( this UriToStreamTransferJob baseJob, Stream planFileStream, - StorageResourceSingle sourceResource, - StorageResourceSingle destinationResource) + StorageResourceItem sourceResource, + StorageResourceItem destinationResource) { // Convert stream to job plan header JobPartPlanHeader header = JobPartPlanHeader.Deserialize(planFileStream); // Apply credentials to the saved transfer job path - StorageTransferStatus jobPartStatus = header.AtomicJobStatus; + DataTransferStatus jobPartStatus = header.AtomicJobStatus; UriToStreamJobPart jobPart = await UriToStreamJobPart.CreateJobPartAsync( job: baseJob, partNumber: Convert.ToInt32(header.PartNumber), @@ -111,13 +111,13 @@ public static async Task ToJobPartAsync( string childSourceName = childSourcePath.Substring(sourceResource.Path.Length + 1); string childDestinationPath = header.DestinationPath; string childDestinationName = childDestinationPath.Substring(destinationResource.Uri.AbsoluteUri.Length + 1); - StorageTransferStatus jobPartStatus = header.AtomicJobStatus; + DataTransferStatus jobPartStatus = header.AtomicJobStatus; StreamToUriJobPart jobPart = await StreamToUriJobPart.CreateJobPartAsync( job: baseJob, partNumber: Convert.ToInt32(header.PartNumber), jobPartStatus: jobPartStatus, - sourceResource: sourceResource.GetChildStorageResource(childSourceName), - destinationResource: destinationResource.GetChildStorageResource(childDestinationName), + sourceResource: sourceResource.GetStorageResourceReference(childSourceName), + destinationResource: destinationResource.GetStorageResourceReference(childDestinationName), partPlanFileExists: true, isFinalPart: header.IsFinalPart).ConfigureAwait(false); @@ -139,13 +139,13 @@ public static async Task ToJobPartAsync( // Apply credentials to the saved transfer job path string childSourcePath = header.SourcePath; string childDestinationPath = header.DestinationPath; - StorageTransferStatus jobPartStatus = header.AtomicJobStatus; + DataTransferStatus jobPartStatus = header.AtomicJobStatus; ServiceToServiceJobPart jobPart = await ServiceToServiceJobPart.CreateJobPartAsync( job: baseJob, partNumber: Convert.ToInt32(header.PartNumber), jobPartStatus: jobPartStatus, - sourceResource: sourceResource.GetChildStorageResource(childSourcePath.Substring(sourceResource.Uri.AbsoluteUri.Length + 1)), - destinationResource: destinationResource.GetChildStorageResource(childDestinationPath.Substring(destinationResource.Uri.AbsoluteUri.Length + 1)), + sourceResource: sourceResource.GetStorageResourceReference(childSourcePath.Substring(sourceResource.Uri.AbsoluteUri.Length + 1)), + destinationResource: destinationResource.GetStorageResourceReference(childDestinationPath.Substring(destinationResource.Uri.AbsoluteUri.Length + 1)), partPlanFileExists: true, isFinalPart: header.IsFinalPart).ConfigureAwait(false); @@ -169,13 +169,13 @@ public static async Task ToJobPartAsync( string childSourceName = childSourcePath.Substring(sourceResource.Uri.AbsoluteUri.Length + 1); string childDestinationPath = header.DestinationPath; string childDestinationName = childDestinationPath.Substring(destinationResource.Path.Length + 1); - StorageTransferStatus jobPartStatus = header.AtomicJobStatus; + DataTransferStatus jobPartStatus = header.AtomicJobStatus; UriToStreamJobPart jobPart = await UriToStreamJobPart.CreateJobPartAsync( job: baseJob, partNumber: Convert.ToInt32(header.PartNumber), jobPartStatus: jobPartStatus, - sourceResource: sourceResource.GetChildStorageResource(childSourceName), - destinationResource: destinationResource.GetChildStorageResource(childDestinationName), + sourceResource: sourceResource.GetStorageResourceReference(childSourceName), + destinationResource: destinationResource.GetStorageResourceReference(childDestinationName), partPlanFileExists: true, isFinalPart: header.IsFinalPart).ConfigureAwait(false); @@ -189,7 +189,7 @@ public static async Task ToJobPartAsync( /// Translate the initial job part header to a job plan format file /// internal static JobPartPlanHeader ToJobPartPlanHeader(this JobPartInternal jobPart, - StorageTransferStatus jobStatus, + DataTransferStatus jobStatus, bool isFinalPart) { JobPartPlanDestinationBlob dstBlobData = new JobPartPlanDestinationBlob( @@ -252,7 +252,7 @@ internal static JobPartPlanHeader ToJobPartPlanHeader(this JobPartInternal jobPa destinationPath: destinationPath, destinationExtraQuery: "", // TODO: convert options to string isFinalPart: isFinalPart, - forceWrite: jobPart._createMode == StorageResourceCreateMode.Overwrite, // TODO: change to enum value + forceWrite: jobPart._createMode == StorageResourceCreationPreference.OverwriteIfExists, // TODO: change to enum value forceIfReadOnly: false, // TODO: revisit for Azure Files autoDecompress: false, // TODO: revisit if we want to support this feature priority: 0, // TODO: add priority feature @@ -330,8 +330,8 @@ internal static void VerifyJobPartPlanHeader(this JobPartInternal jobPart, JobPa } // Check CreateMode / Overwrite - if ((header.ForceWrite && jobPart._createMode != StorageResourceCreateMode.Overwrite) || - (!header.ForceWrite && jobPart._createMode == StorageResourceCreateMode.Overwrite)) + if ((header.ForceWrite && jobPart._createMode != StorageResourceCreationPreference.OverwriteIfExists) || + (!header.ForceWrite && jobPart._createMode == StorageResourceCreationPreference.OverwriteIfExists)) { throw Errors.MismatchResumeCreateMode(header.ForceWrite, jobPart._createMode); } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/Shared/DataTransfer.cs b/sdk/storage/Azure.Storage.DataMovement/src/Shared/DataTransfer.cs index 0aab393cb562..f1f6becbe1bc 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/Shared/DataTransfer.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/Shared/DataTransfer.cs @@ -21,7 +21,7 @@ public class DataTransfer /// /// Defines the current Transfer Status of the Data Transfer. /// - public StorageTransferStatus TransferStatus => _state.Status; + public DataTransferStatus TransferStatus => _state.Status; /// /// DataTransfer Identification. @@ -50,11 +50,11 @@ internal DataTransfer() /// /// The transfer ID of the transfer object. /// Reference to the transfer manager running this transfer. - /// The Transfer Status of the Transfer. See . + /// The Transfer Status of the Transfer. See . internal DataTransfer( string id, TransferManager transferManager, - StorageTransferStatus status = StorageTransferStatus.Queued) + DataTransferStatus status = DataTransferStatus.Queued) { Argument.AssertNotNullOrEmpty(id, nameof(id)); Argument.AssertNotNull(transferManager, nameof(transferManager)); @@ -65,7 +65,7 @@ internal DataTransfer( /// /// Ensures completion of the DataTransfer and attempts to get result /// - public void EnsureCompleted(CancellationToken cancellationToken = default) + public void WaitForCompletion(CancellationToken cancellationToken = default) { #pragma warning disable AZC0102 // Do not use GetAwaiter().GetResult(). Use the TaskExtensions.EnsureCompleted() extension method instead. WaitForCompletionAsync(cancellationToken).GetAwaiter().GetResult(); @@ -90,7 +90,7 @@ public async Task WaitForCompletionAsync(CancellationToken cancellationToken = d /// /// Will return true if the pause has taken place. /// - public virtual async Task PauseIfRunningAsync(CancellationToken cancellationToken = default) + public virtual async Task PauseAsync(CancellationToken cancellationToken = default) { await _state.PauseIfRunningAsync(cancellationToken).ConfigureAwait(false); } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/Shared/ErrorHandlingBehavior.cs b/sdk/storage/Azure.Storage.DataMovement/src/Shared/DataTransferErrorMode.cs similarity index 92% rename from sdk/storage/Azure.Storage.DataMovement/src/Shared/ErrorHandlingBehavior.cs rename to sdk/storage/Azure.Storage.DataMovement/src/Shared/DataTransferErrorMode.cs index b53c1df4884d..f446b2517555 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/Shared/ErrorHandlingBehavior.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/Shared/DataTransferErrorMode.cs @@ -9,7 +9,7 @@ namespace Azure.Storage.DataMovement /// Defines the Error Handling Path to take when a failure or error occurs. /// [Flags] - public enum ErrorHandlingBehavior + public enum DataTransferErrorMode { /// /// If set all the transfer jobs will ignore failures @@ -25,6 +25,6 @@ public enum ErrorHandlingBehavior /// quickly on encountering failures from the storage service /// and filesystem failures. /// - StopOnAllFailures = 0, + StopOnAnyFailure = 0, } } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/Shared/TransferType.cs b/sdk/storage/Azure.Storage.DataMovement/src/Shared/DataTransferOrder.cs similarity index 76% rename from sdk/storage/Azure.Storage.DataMovement/src/Shared/TransferType.cs rename to sdk/storage/Azure.Storage.DataMovement/src/Shared/DataTransferOrder.cs index f39b96b847c3..0fe6d5a84632 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/Shared/TransferType.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/Shared/DataTransferOrder.cs @@ -8,14 +8,14 @@ namespace Azure.Storage.DataMovement { /// - /// Defines the recommended Transfer Type of the . + /// Defines the recommended Transfer Type of the . /// - public enum TransferType + public enum DataTransferOrder { /// - /// Recommended Transfer type is concurrent transfer for each chunk. + /// Recommended Transfer type is unordered transfer for each chunk. /// - Concurrent = 0, + Unordered = 0, /// /// Recommended Transfer type is sequential transfer for each chunk. diff --git a/sdk/storage/Azure.Storage.DataMovement/src/Shared/DataTransferState.cs b/sdk/storage/Azure.Storage.DataMovement/src/Shared/DataTransferState.cs index 26e41665195b..d96830068f36 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/Shared/DataTransferState.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/Shared/DataTransferState.cs @@ -16,31 +16,31 @@ internal class DataTransferState { private readonly object _statusLock = new object(); private string _id; - private StorageTransferStatus _status; + private DataTransferStatus _status; - public TaskCompletionSource CompletionSource; + public TaskCompletionSource CompletionSource; public CancellationTokenSource CancellationTokenSource { get; internal set; } - public StorageTransferStatus Status => _status; + public DataTransferStatus Status => _status; /// /// Constructor to resume current jobs /// /// The transfer ID of the transfer object. - /// The Transfer Status of the Transfer. See . + /// The Transfer Status of the Transfer. See . public DataTransferState( string id = default, - StorageTransferStatus status = StorageTransferStatus.Queued) + DataTransferStatus status = DataTransferStatus.Queued) { _id = string.IsNullOrEmpty(id) ? Guid.NewGuid().ToString() : id; _status = status; - CompletionSource = new TaskCompletionSource( + CompletionSource = new TaskCompletionSource( _status, TaskCreationOptions.RunContinuationsAsynchronously); - if (StorageTransferStatus.Completed == status || - StorageTransferStatus.CompletedWithSkippedTransfers == status || - StorageTransferStatus.CompletedWithFailedTransfers == status) + if (DataTransferStatus.Completed == status || + DataTransferStatus.CompletedWithSkippedTransfers == status || + DataTransferStatus.CompletedWithFailedTransfers == status) { CompletionSource.TrySetResult(status); } @@ -62,9 +62,9 @@ internal set { } public bool HasCompleted { get { - return (StorageTransferStatus.Completed == _status || - StorageTransferStatus.CompletedWithSkippedTransfers == _status || - StorageTransferStatus.CompletedWithFailedTransfers == _status); + return (DataTransferStatus.Completed == _status || + DataTransferStatus.CompletedWithSkippedTransfers == _status || + DataTransferStatus.CompletedWithFailedTransfers == _status); } internal set { } } @@ -82,7 +82,7 @@ public void SetId(string id) /// Gets the status of the transfer /// /// - public StorageTransferStatus GetTransferStatus() + public DataTransferStatus GetTransferStatus() { lock (_statusLock) { @@ -95,17 +95,17 @@ public StorageTransferStatus GetTransferStatus() /// /// /// Returns whether or not the status has been changed/set - public bool TrySetTransferStatus(StorageTransferStatus status) + public bool TrySetTransferStatus(DataTransferStatus status) { lock (_statusLock) { if (_status != status) { _status = status; - if (StorageTransferStatus.Paused == status || - StorageTransferStatus.Completed == status || - StorageTransferStatus.CompletedWithSkippedTransfers == status || - StorageTransferStatus.CompletedWithFailedTransfers == status) + if (DataTransferStatus.Paused == status || + DataTransferStatus.Completed == status || + DataTransferStatus.CompletedWithSkippedTransfers == status || + DataTransferStatus.CompletedWithFailedTransfers == status) { // If the _completionSource has been cancelled or the exception // has been set, we don't need to check if TrySetResult returns false @@ -119,7 +119,7 @@ public bool TrySetTransferStatus(StorageTransferStatus status) } internal bool CanPause() - => _status == StorageTransferStatus.InProgress; + => _status == DataTransferStatus.InProgress; public async Task PauseIfRunningAsync(CancellationToken cancellationToken) { @@ -129,7 +129,7 @@ public async Task PauseIfRunningAsync(CancellationToken cancellationToken) } CancellationHelper.ThrowIfCancellationRequested(cancellationToken); // Call the inner cancellation token to stop the transfer job - TrySetTransferStatus(StorageTransferStatus.PauseInProgress); + TrySetTransferStatus(DataTransferStatus.PauseInProgress); if (TriggerCancellation()) { // Wait until full pause has completed. diff --git a/sdk/storage/Azure.Storage.DataMovement/src/Shared/Errors.DataMovement.cs b/sdk/storage/Azure.Storage.DataMovement/src/Shared/Errors.DataMovement.cs index 98c732c7740c..b5bb0ef921d5 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/Shared/Errors.DataMovement.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/Shared/Errors.DataMovement.cs @@ -81,7 +81,7 @@ public static ArgumentException MismatchResumeTransferArguments(string elementNa $"Checkpointer Value: {checkpointerValue}\n" + $"New Value: {passedValue}"); - public static ArgumentException MismatchResumeCreateMode(bool checkpointerValue, StorageResourceCreateMode passedValue) + public static ArgumentException MismatchResumeCreateMode(bool checkpointerValue, StorageResourceCreationPreference passedValue) => new ArgumentException($"Mismatch Value to Resume Job: The value to overwrite / create files when they exist does not match the stored value in the transfer checkpointer. Please ensure the value passed to resume the transfer matches the value in order to prevent overwriting or failing files.\n" + $"Checkpointer Value to overwrite was set to {checkpointerValue.ToString()}.\n" + $"The value passed in was {passedValue.ToString()}"); diff --git a/sdk/storage/Azure.Storage.DataMovement/src/Shared/JobPlan/JobPartPlanHeader.cs b/sdk/storage/Azure.Storage.DataMovement/src/Shared/JobPlan/JobPartPlanHeader.cs index 6356909443d9..b9a822ae348b 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/Shared/JobPlan/JobPartPlanHeader.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/Shared/JobPlan/JobPartPlanHeader.cs @@ -209,9 +209,9 @@ internal class JobPartPlanHeader // jobStatus_doNotUse represents the current status of JobPartPlan // jobStatus_doNotUse is a private member whose value can be accessed by Status and SetJobStatus // jobStatus_doNotUse should not be directly accessed anywhere except by the Status and SetJobStatus - public StorageTransferStatus AtomicJobStatus; + public DataTransferStatus AtomicJobStatus; - public StorageTransferStatus AtomicPartStatus; + public DataTransferStatus AtomicPartStatus; internal JobPartPlanHeader( string version, @@ -244,8 +244,8 @@ internal JobPartPlanHeader( JobPartDeleteSnapshotsOption deleteSnapshotsOption, JobPartPermanentDeleteOption permanentDeleteOption, JobPartPlanRehydratePriorityType rehydratePriorityType, - StorageTransferStatus atomicJobStatus, - StorageTransferStatus atomicPartStatus) + DataTransferStatus atomicJobStatus, + DataTransferStatus atomicPartStatus) { // Version String size verification Argument.AssertNotNullOrEmpty(version, nameof(version)); @@ -822,11 +822,11 @@ public static JobPartPlanHeader Deserialize(Stream stream) // AtomicJobStatus byte atomicJobStatusByte = reader.ReadByte(); - StorageTransferStatus atomicJobStatus = (StorageTransferStatus)atomicJobStatusByte; + DataTransferStatus atomicJobStatus = (DataTransferStatus)atomicJobStatusByte; // AtomicPartStatus byte atomicPartStatusByte = reader.ReadByte(); - StorageTransferStatus atomicPartStatus = (StorageTransferStatus)atomicPartStatusByte; + DataTransferStatus atomicPartStatus = (DataTransferStatus)atomicPartStatusByte; JobPartPlanDestinationBlob dstBlobData = new JobPartPlanDestinationBlob( blobType: blobType, diff --git a/sdk/storage/Azure.Storage.DataMovement/src/Shared/LocalTransferCheckpointer.cs b/sdk/storage/Azure.Storage.DataMovement/src/Shared/LocalTransferCheckpointer.cs index 03f55c18a1e1..ae7a5c992c2c 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/Shared/LocalTransferCheckpointer.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/Shared/LocalTransferCheckpointer.cs @@ -302,7 +302,7 @@ public override Task> GetStoredTransfersAsync(CancellationToken can /// public override async Task SetJobTransferStatusAsync( string transferId, - StorageTransferStatus status, + DataTransferStatus status, CancellationToken cancellationToken = default) { long length = DataMovementConstants.PlanFile.OneByte; @@ -345,7 +345,7 @@ public override async Task SetJobTransferStatusAsync( public override async Task SetJobPartTransferStatusAsync( string transferId, int partNumber, - StorageTransferStatus status, + DataTransferStatus status, CancellationToken cancellationToken = default) { long length = DataMovementConstants.PlanFile.OneByte; diff --git a/sdk/storage/Azure.Storage.DataMovement/src/Shared/StorageManagerTransferStatus.cs b/sdk/storage/Azure.Storage.DataMovement/src/Shared/StorageManagerTransferStatus.cs deleted file mode 100644 index 212a6e697fb0..000000000000 --- a/sdk/storage/Azure.Storage.DataMovement/src/Shared/StorageManagerTransferStatus.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -using System; -using System.Collections.Generic; -using System.Text; - -namespace Azure.Storage.DataMovement -{ - /// - /// Defines the status of the StorageTransferManager. - /// - internal enum StorageManagerTransferStatus - { - /// - /// No Jobs are in progress - /// - Idle, - - /// - /// Jobs are in progress - /// - InProgress, - - /// - /// In progress of pausing transfers. Which means we have received the - /// command to PauseTransfers but we have not stopped all the running Tasks yet. - /// - /// During this time we are writing to the plan files to keep track of the progress - /// and waiting for the Tasks in flight to exit properly. Also updating all log files - /// as well. - /// - /// In this state no other transfers can be resumed until all the jobs have been - /// paused, finished or cancelled. - /// - Pausing, - - /// - /// In progress of cancelling transfers. Which means that we received the cancel command - /// but we have not stopped all the transfers and tasks running. - /// - /// During this time we are deleting all the plan files and updating the log files properly. - /// - /// In this state no other transfers can be resumed until all the jobs have been - /// paused, finished or cancelled. - /// - Cancelling, - - /// - /// In progress of cleaning up all the plan and log files. In this state no transfers can - /// occur. - /// - /// In this state no other jobs can be kicked off. - /// - Cleaning - }; -} diff --git a/sdk/storage/Azure.Storage.DataMovement/src/Shared/StorageResourceCreateMode.cs b/sdk/storage/Azure.Storage.DataMovement/src/Shared/StorageResourceCreationPreference.cs similarity index 79% rename from sdk/storage/Azure.Storage.DataMovement/src/Shared/StorageResourceCreateMode.cs rename to sdk/storage/Azure.Storage.DataMovement/src/Shared/StorageResourceCreationPreference.cs index 277f51567f45..e77230b529de 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/Shared/StorageResourceCreateMode.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/Shared/StorageResourceCreationPreference.cs @@ -10,18 +10,8 @@ namespace Azure.Storage.DataMovement /// Defines how creating a transfer file resource should go /// if the resource already exists or does not exist. /// - public enum StorageResourceCreateMode + public enum StorageResourceCreationPreference { - /// - /// Default. If specified to this value, it will default to . - /// - None = default, - - /// - /// Overwrites the file if it already exists. No error will be thrown. - /// - Overwrite = 1, - /// /// If the file/blob already exists in the destination path, a failure will be thrown. /// All parallel downloads in progress will finish, but no further @@ -30,15 +20,20 @@ public enum StorageResourceCreateMode /// If ErrorHandlingOptions.ContinueOnFailure is enabled, then this will get overrided /// and the transfer will complete regardless of failure. /// - Fail = 2, + FailIfExists = 0, + + /// + /// Overwrites the file if it already exists. No error will be thrown. + /// + OverwriteIfExists = 1, /// /// If the file/blob already exists in the destination path, no failure will be thrown. /// The file will simply be skipped over and other parallel downloads in progress /// will finish and the rest of the files in the directory to download will continue. /// - /// If ErrorHandlingOptions.StopOnAllFailures is set, the download will still be skipped. + /// If ErrorHandlingOptions.StopOnAnyFailures is set, the download will still be skipped. /// - Skip = 3, + SkipIfExists = 2, } } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/Shared/TransferCheckpointer.cs b/sdk/storage/Azure.Storage.DataMovement/src/Shared/TransferCheckpointer.cs index b6fdd1f284e4..ebd52aa5c4ca 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/Shared/TransferCheckpointer.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/Shared/TransferCheckpointer.cs @@ -128,14 +128,14 @@ public abstract Task WriteToCheckpointAsync( /// Sets the Job Transfer Status in the Job Part Plan files. /// /// The transfer ID. - /// The of the job. + /// The of the job. /// /// Optional to propagate /// notifications that the operation should be canceled. /// public abstract Task SetJobTransferStatusAsync( string transferId, - StorageTransferStatus status, + DataTransferStatus status, CancellationToken cancellationToken = default); /// @@ -143,7 +143,7 @@ public abstract Task SetJobTransferStatusAsync( /// /// The transfer ID. /// The job part number. - /// The of the job part. + /// The of the job part. /// /// Optional to propagate /// notifications that the operation should be canceled. @@ -151,7 +151,7 @@ public abstract Task SetJobTransferStatusAsync( public abstract Task SetJobPartTransferStatusAsync( string transferId, int partNumber, - StorageTransferStatus status, + DataTransferStatus status, CancellationToken cancellationToken = default); /// diff --git a/sdk/storage/Azure.Storage.DataMovement/src/Shared/TransferManager.cs b/sdk/storage/Azure.Storage.DataMovement/src/Shared/TransferManager.cs index c5e67b1fcdf6..3bff5e88f7f5 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/Shared/TransferManager.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/Shared/TransferManager.cs @@ -67,15 +67,15 @@ public class TransferManager : IAsyncDisposable /// If unspecified will default to LocalTransferCheckpointer at {currentpath}/.azstoragedml /// internal TransferCheckpointer _checkpointer; - private TransferCheckpointerOptions _checkpointerOptions; + private TransferCheckpointStoreOptions _checkpointerOptions; /// /// Defines the error handling method to follow when an error is seen. Defaults to - /// . + /// . /// - /// See . + /// See . /// - internal ErrorHandlingBehavior _errorHandling; + internal DataTransferErrorMode _errorHandling; /// /// Cancels the channels operations when disposing. @@ -125,11 +125,11 @@ public TransferManager(TransferManagerOptions options = default) _currentTaskIsProcessingJobPart = Task.Run(() => NotifyOfPendingJobPartProcessing()); _currentTaskIsProcessingJobChunk = Task.Run(() => NotifyOfPendingJobChunkProcessing()); _maxJobChunkTasks = options?.MaximumConcurrency ?? DataMovementConstants.MaxJobChunkTasks; - _checkpointerOptions = options?.CheckpointerOptions != default ? new TransferCheckpointerOptions(options.CheckpointerOptions) : default; + _checkpointerOptions = options?.CheckpointerOptions != default ? new TransferCheckpointStoreOptions(options.CheckpointerOptions) : default; _checkpointer = _checkpointerOptions != default ? _checkpointerOptions.GetCheckpointer() : CreateDefaultCheckpointer(); _dataTransfers = new Dictionary(); _arrayPool = ArrayPool.Shared; - _errorHandling = options?.ErrorHandling != default ? options.ErrorHandling : ErrorHandlingBehavior.StopOnAllFailures; + _errorHandling = options?.ErrorHandling != default ? options.ErrorHandling : DataTransferErrorMode.StopOnAnyFailure; ClientDiagnostics = new ClientDiagnostics(options?.ClientOptions ?? ClientOptions.Default); } @@ -247,7 +247,7 @@ public virtual async Task PauseTransferIfRunningAsync(string transferId, Cancell { throw Errors.InvalidTransferId(nameof(PauseTransferIfRunningAsync), transferId); } - await transfer.PauseIfRunningAsync(cancellationToken: cancellationToken).ConfigureAwait(false); + await transfer.PauseAsync(cancellationToken: cancellationToken).ConfigureAwait(false); } /// @@ -257,12 +257,12 @@ public virtual async Task PauseTransferIfRunningAsync(string transferId, Cancell /// If specified, the returned list of transfers will have only have the transfers /// of which match the status specified. /// - /// If not specified or specified to , + /// If not specified or specified to , /// all transfers will be returned regardless of status. /// /// public virtual async IAsyncEnumerable GetTransfersAsync( - params StorageTransferStatus[] filterByStatus) + params DataTransferStatus[] filterByStatus) { await SetDataTransfers().ConfigureAwait(false); IEnumerable totalTransfers; @@ -294,13 +294,13 @@ public virtual async IAsyncEnumerable GetResumableTransf List storedTransfers = await _checkpointer.GetStoredTransfersAsync().ConfigureAwait(false); foreach (string transferId in storedTransfers) { - StorageTransferStatus jobStatus = (StorageTransferStatus) await _checkpointer.GetByteValue( + DataTransferStatus jobStatus = (DataTransferStatus) await _checkpointer.GetByteValue( transferId, DataMovementConstants.PlanFile.AtomicJobStatusIndex, _cancellationToken).ConfigureAwait(false); // Transfers marked as fully completed are not resumable - if (jobStatus == StorageTransferStatus.Completed) + if (jobStatus == DataTransferStatus.Completed) { continue; } @@ -345,7 +345,7 @@ public virtual async Task ResumeTransferAsync( string transferId, StorageResource sourceResource, StorageResource destinationResource, - TransferOptions transferOptions = default, + DataTransferOptions transferOptions = default, CancellationToken cancellationToken = default) { CancellationHelper.ThrowIfCancellationRequested(cancellationToken); @@ -353,7 +353,7 @@ public virtual async Task ResumeTransferAsync( Argument.AssertNotNull(sourceResource, nameof(sourceResource)); Argument.AssertNotNull(destinationResource, nameof(destinationResource)); - transferOptions ??= new TransferOptions(); + transferOptions ??= new DataTransferOptions(); if (_dataTransfers.ContainsKey(transferId)) { @@ -382,7 +382,7 @@ internal virtual async Task PauseAllRunningTransfersAsync(CancellationToken canc { await Task.WhenAll(_dataTransfers.Values .Where(transfer => transfer.CanPause()) - .Select(transfer => transfer.PauseIfRunningAsync(cancellationToken))) + .Select(transfer => transfer.PauseAsync(cancellationToken))) .ConfigureAwait(false); } @@ -413,14 +413,14 @@ internal virtual Task TryRemoveTransferAsync(string id) public virtual async Task StartTransferAsync( StorageResource sourceResource, StorageResource destinationResource, - TransferOptions transferOptions = default, + DataTransferOptions transferOptions = default, CancellationToken cancellationToken = default) { CancellationHelper.ThrowIfCancellationRequested(cancellationToken); Argument.AssertNotNull(sourceResource, nameof(sourceResource)); Argument.AssertNotNull(destinationResource, nameof(destinationResource)); - transferOptions ??= new TransferOptions(); + transferOptions ??= new DataTransferOptions(); string transferId = Guid.NewGuid().ToString(); await _checkpointer.AddNewJobAsync(transferId, _cancellationToken).ConfigureAwait(false); @@ -439,7 +439,7 @@ public virtual async Task StartTransferAsync( private async Task BuildAndAddTransferJobAsync( StorageResource sourceResource, StorageResource destinationResource, - TransferOptions transferOptions, + DataTransferOptions transferOptions, string transferId, bool resumeJob, CancellationToken cancellationToken) @@ -450,12 +450,12 @@ private async Task BuildAndAddTransferJobAsync( TransferJobInternal transferJobInternal; // Single transfer - if (sourceResource is StorageResourceSingle && - destinationResource is StorageResourceSingle) + if (sourceResource is StorageResourceItem && + destinationResource is StorageResourceItem) { transferJobInternal = await BuildSingleTransferJob( - (StorageResourceSingle)sourceResource, - (StorageResourceSingle)destinationResource, + (StorageResourceItem)sourceResource, + (StorageResourceItem)destinationResource, transferOptions, dataTransfer, resumeJob).ConfigureAwait(false); @@ -483,9 +483,9 @@ private async Task BuildAndAddTransferJobAsync( } private async Task BuildSingleTransferJob( - StorageResourceSingle sourceResource, - StorageResourceSingle destinationResource, - TransferOptions transferOptions, + StorageResourceItem sourceResource, + StorageResourceItem destinationResource, + DataTransferOptions transferOptions, DataTransfer dataTransfer, bool resumeJob) { @@ -604,7 +604,7 @@ await uriToStreamJob.ToJobPartAsync( private async Task BuildContainerTransferJob( StorageResourceContainer sourceResource, StorageResourceContainer destinationResource, - TransferOptions transferOptions, + DataTransferOptions transferOptions, DataTransfer dataTransfer, bool resumeJob) { diff --git a/sdk/storage/Azure.Storage.DataMovement/src/Shared/TransferStatusEventArgs.cs b/sdk/storage/Azure.Storage.DataMovement/src/Shared/TransferStatusEventArgs.cs index 7e5d867e98d8..dd534f19803f 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/Shared/TransferStatusEventArgs.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/Shared/TransferStatusEventArgs.cs @@ -7,12 +7,12 @@ namespace Azure.Storage.DataMovement /// /// Event Argument for a change in the Transfer Status /// - public class TransferStatusEventArgs : StorageTransferEventArgs + public class TransferStatusEventArgs : DataTransferEventArgs { /// - /// Gets the of the job. + /// Gets the of the job. /// - public StorageTransferStatus StorageTransferStatus { get; } + public DataTransferStatus StorageTransferStatus { get; } /// /// Initializes a new instance of the . @@ -23,7 +23,7 @@ public class TransferStatusEventArgs : StorageTransferEventArgs /// public TransferStatusEventArgs( string transferId, - StorageTransferStatus transferStatus, + DataTransferStatus transferStatus, bool isRunningSynchronously, CancellationToken cancellationToken) : base (transferId, isRunningSynchronously, cancellationToken) diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StageChunkEventArgs.cs b/sdk/storage/Azure.Storage.DataMovement/src/StageChunkEventArgs.cs index ab36fa175261..ed996c6e8642 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StageChunkEventArgs.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/StageChunkEventArgs.cs @@ -17,7 +17,7 @@ namespace Azure.Storage.DataMovement /// will end up using this internal event argument to track the success /// and the bytes transferred to ensure the correct amount of bytes are tranferred. /// - internal class StageChunkEventArgs : StorageTransferEventArgs + internal class StageChunkEventArgs : DataTransferEventArgs { public bool Success { get; } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceContainer.cs b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceContainer.cs index 41531b934b99..1503623a4d60 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceContainer.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceContainer.cs @@ -26,7 +26,7 @@ protected internal abstract IAsyncEnumerable GetStorageResource /// Returns storage resources from the parent resource container /// /// - protected internal abstract StorageResourceSingle GetChildStorageResource(string path); + protected internal abstract StorageResourceItem GetStorageResourceReference(string path); /// /// Storage Resource is a container. diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceCopyFromUriOptions.cs b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceCopyFromUriOptions.cs index 314d8833dc59..e2ddb71c2892 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceCopyFromUriOptions.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceCopyFromUriOptions.cs @@ -7,7 +7,7 @@ namespace Azure.Storage.DataMovement { /// - /// Options for + /// Options for /// public class StorageResourceCopyFromUriOptions { diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceSingle.cs b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceItem.cs similarity index 94% rename from sdk/storage/Azure.Storage.DataMovement/src/StorageResourceSingle.cs rename to sdk/storage/Azure.Storage.DataMovement/src/StorageResourceItem.cs index 141ec2f4c24f..1bbc9f69feec 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceSingle.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceItem.cs @@ -10,12 +10,12 @@ namespace Azure.Storage.DataMovement /// /// Abstract class for a single storage resource. /// - public abstract class StorageResourceSingle : StorageResource + public abstract class StorageResourceItem : StorageResource { /// /// For Mocking. /// - protected StorageResourceSingle() { } + protected StorageResourceItem() { } /// /// The identifier for the type of storage resource. @@ -25,7 +25,7 @@ protected StorageResourceSingle() { } /// /// Defines the transfer type of the storage resource. /// - protected internal abstract TransferType TransferType { get; } + protected internal abstract DataTransferOrder TransferType { get; } /// /// Defines the maximum chunk size for the storage resource. @@ -58,7 +58,7 @@ protected StorageResourceSingle() { } /// notifications that the operation should be cancelled. /// /// - protected internal abstract Task ReadStreamAsync( + protected internal abstract Task ReadStreamAsync( long position = 0, long? length = default, CancellationToken cancellationToken = default); @@ -85,7 +85,7 @@ protected internal abstract Task ReadStreamAsyn /// notifications that the operation should be cancelled. /// /// - protected internal abstract Task WriteFromStreamAsync( + protected internal abstract Task CopyFromStreamAsync( Stream stream, long streamLength, bool overwrite, @@ -111,7 +111,7 @@ protected internal abstract Task WriteFromStreamAsync( /// /// protected internal abstract Task CopyFromUriAsync( - StorageResourceSingle sourceResource, + StorageResourceItem sourceResource, bool overwrite, long completeLength, StorageResourceCopyFromUriOptions options = default, @@ -135,7 +135,7 @@ protected internal abstract Task CopyFromUriAsync( /// /// protected internal abstract Task CopyBlockFromUriAsync( - StorageResourceSingle sourceResource, + StorageResourceItem sourceResource, HttpRange range, bool overwrite, long completeLength = 0, diff --git a/sdk/storage/Azure.Storage.DataMovement/src/ReadStreamStorageResourceResult.cs b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceReadStreamResult.cs similarity index 87% rename from sdk/storage/Azure.Storage.DataMovement/src/ReadStreamStorageResourceResult.cs rename to sdk/storage/Azure.Storage.DataMovement/src/StorageResourceReadStreamResult.cs index ef3b882efdec..378c281888fa 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/ReadStreamStorageResourceResult.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceReadStreamResult.cs @@ -8,12 +8,12 @@ namespace Azure.Storage.DataMovement /// /// The properties and content returned from downloading a storage resource /// - public class ReadStreamStorageResourceResult + public class StorageResourceReadStreamResult { /// /// Content /// - internal Stream Content { get; } + public readonly Stream Content; /// /// Indicates the range of bytes returned if the client requested a subset of the storage resource by setting the Range request header. @@ -24,18 +24,18 @@ public class ReadStreamStorageResourceResult /// /// The [end] value will be the inclusive last byte (e.g. header "bytes 0-7/8" is the entire 8-byte storage resource). /// - internal string ContentRange { get; } + public readonly string ContentRange; /// /// Indicates that the service supports requests for partial storage resource content. /// - internal string AcceptRanges { get; } + public readonly string AcceptRanges; /// /// If the storage resource has a MD5 hash, and if request contains range header (Range or x-ms-range), this response header is returned with the value of the whole storage resource's MD5 value. This value may or may not be equal to the value returned in Content-MD5 header, with the latter calculated from the requested range. /// #pragma warning disable CA1819 // Properties should not return arrays - internal byte[] RangeContentHash { get; } + public readonly byte[] RangeContentHash; #pragma warning restore CA1819 // Properties should not return arrays /// @@ -43,7 +43,7 @@ public class ReadStreamStorageResourceResult /// internal StorageResourceProperties Properties { get; set; } - internal ReadStreamStorageResourceResult() { } + internal StorageResourceReadStreamResult() { } /// /// Constructor for ReadStreamStorageResourceInfo @@ -53,7 +53,7 @@ internal ReadStreamStorageResourceResult() { } /// /// /// - public ReadStreamStorageResourceResult( + public StorageResourceReadStreamResult( Stream content, string contentRange, string acceptRanges, @@ -71,7 +71,7 @@ public ReadStreamStorageResourceResult( /// Constructor for ReadStreamStorageResourceInfo /// /// - public ReadStreamStorageResourceResult( + internal StorageResourceReadStreamResult( Stream content) { Content = content; diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceWriteToOffsetOptions.cs b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceWriteToOffsetOptions.cs index 0ce5e3dcefe8..12717964c781 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceWriteToOffsetOptions.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceWriteToOffsetOptions.cs @@ -7,7 +7,7 @@ namespace Azure.Storage.DataMovement { /// - /// Options for + /// Options for /// public class StorageResourceWriteToOffsetOptions { diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StreamToUriJobPart.cs b/sdk/storage/Azure.Storage.DataMovement/src/StreamToUriJobPart.cs index f96246f1627f..9055e4f601b2 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StreamToUriJobPart.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/StreamToUriJobPart.cs @@ -33,8 +33,8 @@ private StreamToUriJobPart( destinationResource: job._destinationResource, maximumTransferChunkSize: job._maximumTransferChunkSize, initialTransferSize: job._initialTransferSize, - errorHandling: job._errorHandling, - createMode: job._createMode, + errorHandling: job._errorMode, + createMode: job._creationPreference, checkpointer: job._checkpointer, progressTracker: job._progressTracker, arrayPool: job.UploadArrayPool, @@ -43,7 +43,7 @@ private StreamToUriJobPart( statusEventHandler: job.TransferStatusEventHandler, failedEventHandler: job.TransferFailedEventHandler, skippedEventHandler: job.TransferSkippedEventHandler, - singleTransferEventHandler: job.SingleTransferCompletedEventHandler, + singleTransferEventHandler: job.TransferItemCompletedEventHandler, clientDiagnostics: job.ClientDiagnostics, cancellationToken: job._cancellationToken) { @@ -55,10 +55,10 @@ private StreamToUriJobPart( private StreamToUriJobPart( StreamToUriTransferJob job, int partNumber, - StorageResourceSingle sourceResource, - StorageResourceSingle destinationResource, + StorageResourceItem sourceResource, + StorageResourceItem destinationResource, bool isFinalPart, - StorageTransferStatus jobPartStatus = StorageTransferStatus.Queued, + DataTransferStatus jobPartStatus = DataTransferStatus.Queued, long? length = default) : base(dataTransfer: job._dataTransfer, partNumber: partNumber, @@ -66,8 +66,8 @@ private StreamToUriJobPart( destinationResource: destinationResource, maximumTransferChunkSize: job._maximumTransferChunkSize, initialTransferSize: job._initialTransferSize, - errorHandling: job._errorHandling, - createMode: job._createMode, + errorHandling: job._errorMode, + createMode: job._creationPreference, checkpointer: job._checkpointer, progressTracker: job._progressTracker, arrayPool: job.UploadArrayPool, @@ -76,7 +76,7 @@ private StreamToUriJobPart( statusEventHandler: job.TransferStatusEventHandler, failedEventHandler: job.TransferFailedEventHandler, skippedEventHandler: job.TransferSkippedEventHandler, - singleTransferEventHandler: job.SingleTransferCompletedEventHandler, + singleTransferEventHandler: job.TransferItemCompletedEventHandler, clientDiagnostics: job.ClientDiagnostics, cancellationToken: job._cancellationToken, jobPartStatus: jobPartStatus, @@ -108,10 +108,10 @@ await part.AddJobPartToCheckpointerAsync( public static async Task CreateJobPartAsync( StreamToUriTransferJob job, int partNumber, - StorageResourceSingle sourceResource, - StorageResourceSingle destinationResource, + StorageResourceItem sourceResource, + StorageResourceItem destinationResource, bool isFinalPart, - StorageTransferStatus jobPartStatus = default, + DataTransferStatus jobPartStatus = default, long? length = default, bool partPlanFileExists = false) { @@ -142,7 +142,7 @@ public override async Task ProcessPartToChunkAsync() // Attempt to get the length, it's possible the file could // not be accesible (or does not exist). string operationName = $"{nameof(TransferManager.StartTransferAsync)}"; - await OnTransferStatusChanged(StorageTransferStatus.InProgress).ConfigureAwait(false); + await OnTransferStatusChanged(DataTransferStatus.InProgress).ConfigureAwait(false); long? fileLength = default; try { @@ -176,7 +176,7 @@ await CreateDestinationResource( { // If we cannot upload in one shot, initiate the parallel block uploader List<(long Offset, long Length)> rangeList = GetRangeList(blockSize, length); - if (_destinationResource.TransferType == TransferType.Concurrent) + if (_destinationResource.TransferType == DataTransferOrder.Unordered) { await QueueStageBlockRequests(rangeList, length).ConfigureAwait(false); } @@ -216,7 +216,7 @@ private async Task CreateDestinationResource(long blockSize, long length, return !singleCall; } catch (RequestFailedException exception) - when (_createMode == StorageResourceCreateMode.Skip + when (_createMode == StorageResourceCreationPreference.SkipIfExists && exception.ErrorCode == "BlobAlreadyExists") { await InvokeSkippedArg().ConfigureAwait(false); @@ -235,13 +235,13 @@ private async Task InitialUploadCall(long blockSize, long expectedLength, bool s { if (singleCall) { - ReadStreamStorageResourceResult result = await _sourceResource.ReadStreamAsync( + StorageResourceReadStreamResult result = await _sourceResource.ReadStreamAsync( cancellationToken: _cancellationToken).ConfigureAwait(false); using Stream stream = result.Content; - await _destinationResource.WriteFromStreamAsync( + await _destinationResource.CopyFromStreamAsync( stream: stream, - overwrite: _createMode == StorageResourceCreateMode.Overwrite, + overwrite: _createMode == StorageResourceCreationPreference.OverwriteIfExists, position: 0, streamLength: blockSize, completeLength: expectedLength, @@ -252,12 +252,12 @@ await _destinationResource.WriteFromStreamAsync( ReportBytesWritten(blockSize); // Set completion status to completed - await OnTransferStatusChanged(StorageTransferStatus.Completed).ConfigureAwait(false); + await OnTransferStatusChanged(DataTransferStatus.Completed).ConfigureAwait(false); } else { Stream slicedStream = Stream.Null; - ReadStreamStorageResourceResult result = await _sourceResource.ReadStreamAsync( + StorageResourceReadStreamResult result = await _sourceResource.ReadStreamAsync( position: 0, length: blockSize, cancellationToken: _cancellationToken).ConfigureAwait(false); @@ -269,10 +269,10 @@ await _destinationResource.WriteFromStreamAsync( blockSize, UploadArrayPool, _cancellationToken).ConfigureAwait(false); - await _destinationResource.WriteFromStreamAsync( + await _destinationResource.CopyFromStreamAsync( stream: slicedStream, streamLength: blockSize, - overwrite: _createMode == StorageResourceCreateMode.Overwrite, + overwrite: _createMode == StorageResourceCreationPreference.OverwriteIfExists, position: 0, completeLength: expectedLength, default, @@ -283,7 +283,7 @@ await _destinationResource.WriteFromStreamAsync( } } catch (RequestFailedException ex) - when (ex.ErrorCode == "BlobAlreadyExists" && _createMode == StorageResourceCreateMode.Skip) + when (ex.ErrorCode == "BlobAlreadyExists" && _createMode == StorageResourceCreationPreference.SkipIfExists) { await InvokeSkippedArg().ConfigureAwait(false); } @@ -298,7 +298,7 @@ internal CommitChunkHandler GetCommitController( long expectedLength, long blockSize, StreamToUriJobPart jobPart, - TransferType transferType) + DataTransferOrder transferType) => new CommitChunkHandler( expectedLength, blockSize, @@ -329,7 +329,7 @@ internal async Task StageBlockInternal( try { Stream slicedStream = Stream.Null; - ReadStreamStorageResourceResult result = await _sourceResource.ReadStreamAsync( + StorageResourceReadStreamResult result = await _sourceResource.ReadStreamAsync( position: offset, length: blockLength, cancellationToken: _cancellationToken).ConfigureAwait(false); @@ -341,10 +341,10 @@ internal async Task StageBlockInternal( blockLength, UploadArrayPool, _cancellationToken).ConfigureAwait(false); - await _destinationResource.WriteFromStreamAsync( + await _destinationResource.CopyFromStreamAsync( stream: slicedStream, streamLength: blockLength, - overwrite: _createMode == StorageResourceCreateMode.Overwrite, + overwrite: _createMode == StorageResourceCreationPreference.OverwriteIfExists, position: offset, completeLength: completeLength, default, @@ -390,14 +390,14 @@ internal async Task CompleteTransferAsync() // Apply necessary transfer completions on the destination. await _destinationResource.CompleteTransferAsync( - overwrite: _createMode == StorageResourceCreateMode.Overwrite, + overwrite: _createMode == StorageResourceCreationPreference.OverwriteIfExists, cancellationToken: _cancellationToken).ConfigureAwait(false); // Dispose the handlers await DisposeHandlers().ConfigureAwait(false); // Set completion status to completed - await OnTransferStatusChanged(StorageTransferStatus.Completed).ConfigureAwait(false); + await OnTransferStatusChanged(DataTransferStatus.Completed).ConfigureAwait(false); } private async Task QueueStageBlockRequests(List<(long Offset, long Size)> rangeList, long completeLength) diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StreamToUriTransferJob.cs b/sdk/storage/Azure.Storage.DataMovement/src/StreamToUriTransferJob.cs index b4add4c66307..429e7478bfef 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StreamToUriTransferJob.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/StreamToUriTransferJob.cs @@ -16,12 +16,12 @@ internal class StreamToUriTransferJob : TransferJobInternal /// internal StreamToUriTransferJob( DataTransfer dataTransfer, - StorageResourceSingle sourceResource, - StorageResourceSingle destinationResource, - TransferOptions transferOptions, + StorageResourceItem sourceResource, + StorageResourceItem destinationResource, + DataTransferOptions transferOptions, QueueChunkTaskInternal queueChunkTask, TransferCheckpointer checkpointer, - ErrorHandlingBehavior errorHandling, + DataTransferErrorMode errorHandling, ArrayPool arrayPool, ClientDiagnostics clientDiagnostics) : base(dataTransfer, @@ -43,10 +43,10 @@ internal StreamToUriTransferJob( DataTransfer dataTransfer, StorageResourceContainer sourceResource, StorageResourceContainer destinationResource, - TransferOptions transferOptions, + DataTransferOptions transferOptions, QueueChunkTaskInternal queueChunkTask, TransferCheckpointer checkpointer, - ErrorHandlingBehavior errorHandling, + DataTransferErrorMode errorHandling, ArrayPool arrayPool, ClientDiagnostics clientDiagnostics) : base(dataTransfer, @@ -67,7 +67,7 @@ internal StreamToUriTransferJob( /// An IEnumerable that contains the job parts public override async IAsyncEnumerable ProcessJobToJobPartAsync() { - await OnJobStatusChangedAsync(StorageTransferStatus.InProgress).ConfigureAwait(false); + await OnJobStatusChangedAsync(DataTransferStatus.InProgress).ConfigureAwait(false); int partNumber = 0; if (_jobParts.Count == 0) @@ -106,9 +106,9 @@ public override async IAsyncEnumerable ProcessJobToJobPartAsync bool isFinalPartFound = false; foreach (JobPartInternal part in _jobParts) { - if (part.JobPartStatus != StorageTransferStatus.Completed) + if (part.JobPartStatus != DataTransferStatus.Completed) { - part.JobPartStatus = StorageTransferStatus.Queued; + part.JobPartStatus = DataTransferStatus.Queued; yield return part; if (part.IsFinalPart) @@ -190,8 +190,8 @@ private async IAsyncEnumerable GetStorageResourcesAsync() part = await StreamToUriJobPart.CreateJobPartAsync( job: this, partNumber: partNumber, - sourceResource: (StorageResourceSingle)lastResource, - destinationResource: _destinationResourceContainer.GetChildStorageResource(sourceName), + sourceResource: (StorageResourceItem)lastResource, + destinationResource: _destinationResourceContainer.GetStorageResourceReference(sourceName), isFinalPart: false).ConfigureAwait(false); AppendJobPart(part); } @@ -222,8 +222,8 @@ private async IAsyncEnumerable GetStorageResourcesAsync() lastPart = await StreamToUriJobPart.CreateJobPartAsync( job: this, partNumber: partNumber, - sourceResource: (StorageResourceSingle)lastResource, - destinationResource: _destinationResourceContainer.GetChildStorageResource(lastSourceName), + sourceResource: (StorageResourceItem)lastResource, + destinationResource: _destinationResourceContainer.GetStorageResourceReference(lastSourceName), isFinalPart: true).ConfigureAwait(false); AppendJobPart(lastPart); } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/TransferCheckpointerOptions.cs b/sdk/storage/Azure.Storage.DataMovement/src/TransferCheckpointStoreOptions.cs similarity index 77% rename from sdk/storage/Azure.Storage.DataMovement/src/TransferCheckpointerOptions.cs rename to sdk/storage/Azure.Storage.DataMovement/src/TransferCheckpointStoreOptions.cs index 731c4426b9d8..84465289784f 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/TransferCheckpointerOptions.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/TransferCheckpointStoreOptions.cs @@ -7,7 +7,7 @@ namespace Azure.Storage.DataMovement /// Options for Checkpointer used for saving transfer state to allow for /// resuming a transfer. /// - public class TransferCheckpointerOptions + public class TransferCheckpointStoreOptions { /// /// The local folder where the checkpoint information will be stored. @@ -21,14 +21,14 @@ public class TransferCheckpointerOptions /// /// The local folder where the checkpoint information will be stored. /// - public TransferCheckpointerOptions(string localCheckpointerPath) + public TransferCheckpointStoreOptions(string localCheckpointerPath) { CheckpointerPath = localCheckpointerPath; } - internal TransferCheckpointerOptions(TransferCheckpointerOptions other) + internal TransferCheckpointStoreOptions(TransferCheckpointStoreOptions options) { - CheckpointerPath = other.CheckpointerPath; + CheckpointerPath = options.CheckpointerPath; } } } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/TransferEventsInternal.cs b/sdk/storage/Azure.Storage.DataMovement/src/TransferEventsInternal.cs index d86c1e004c50..0bbc50fbdc4c 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/TransferEventsInternal.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/TransferEventsInternal.cs @@ -16,8 +16,8 @@ internal class TransferEventsInternal /// /// If the transfer has any failed events that occur the event will get added to this handler. /// - public event SyncAsyncEventHandler TransferFailedEventHandler; + public event SyncAsyncEventHandler TransferFailedEventHandler; - internal SyncAsyncEventHandler GetFailed() => TransferFailedEventHandler; + internal SyncAsyncEventHandler GetFailed() => TransferFailedEventHandler; } } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/SingleTransferCompletedEventArgs.cs b/sdk/storage/Azure.Storage.DataMovement/src/TransferItemCompletedEventArgs.cs similarity index 78% rename from sdk/storage/Azure.Storage.DataMovement/src/SingleTransferCompletedEventArgs.cs rename to sdk/storage/Azure.Storage.DataMovement/src/TransferItemCompletedEventArgs.cs index 3c24d9fbda09..e16f08ea9509 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/SingleTransferCompletedEventArgs.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/TransferItemCompletedEventArgs.cs @@ -8,20 +8,20 @@ namespace Azure.Storage.DataMovement /// /// Event Argument for a change in the Transfer Status /// - public class SingleTransferCompletedEventArgs : StorageTransferEventArgs + public class TransferItemCompletedEventArgs : DataTransferEventArgs { /// - /// Gets the that was the source resource for the transfer. + /// Gets the that was the source resource for the transfer. /// - public StorageResourceSingle SourceResource { get; } + public StorageResourceItem SourceResource { get; } /// - /// Gets the that was the destination resource for the transfer. + /// Gets the that was the destination resource for the transfer. /// - public StorageResourceSingle DestinationResource { get; } + public StorageResourceItem DestinationResource { get; } /// - /// Initializes a new instance of the . + /// Initializes a new instance of the . /// /// /// @@ -43,10 +43,10 @@ public class SingleTransferCompletedEventArgs : StorageTransferEventArgs /// Thrown if is empty or null. /// Thrown if is empty or null. /// - public SingleTransferCompletedEventArgs( + public TransferItemCompletedEventArgs( string transferId, - StorageResourceSingle sourceResource, - StorageResourceSingle destinationResource, + StorageResourceItem sourceResource, + StorageResourceItem destinationResource, bool isRunningSynchronously, CancellationToken cancellationToken) : base(transferId, isRunningSynchronously, cancellationToken) diff --git a/sdk/storage/Azure.Storage.DataMovement/src/TransferFailedEventArgs.cs b/sdk/storage/Azure.Storage.DataMovement/src/TransferItemFailedEventArgs.cs similarity index 81% rename from sdk/storage/Azure.Storage.DataMovement/src/TransferFailedEventArgs.cs rename to sdk/storage/Azure.Storage.DataMovement/src/TransferItemFailedEventArgs.cs index 2a1869e0023f..b7761982841b 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/TransferFailedEventArgs.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/TransferItemFailedEventArgs.cs @@ -9,17 +9,17 @@ namespace Azure.Storage.DataMovement /// /// Event Argument for Failed Single Blob Upload Transfers /// - public class TransferFailedEventArgs : StorageTransferEventArgs + public class TransferItemFailedEventArgs : DataTransferEventArgs { /// - /// Gets the that was the source resource for the transfer. + /// Gets the that was the source resource for the transfer. /// - public StorageResourceSingle SourceResource { get; } + public StorageResourceItem SourceResource { get; } /// - /// Gets the that was the destination resource for the transfer. + /// Gets the that was the destination resource for the transfer. /// - public StorageResourceSingle DestinationResource { get; } + public StorageResourceItem DestinationResource { get; } /// /// Gets the that was thrown during the job. @@ -27,7 +27,7 @@ public class TransferFailedEventArgs : StorageTransferEventArgs public Exception Exception { get; } /// - /// Initializes a new instance of the . + /// Initializes a new instance of the . /// /// /// @@ -50,10 +50,10 @@ public class TransferFailedEventArgs : StorageTransferEventArgs /// Thrown if is empty or null. /// Thrown if is empty or null. /// - public TransferFailedEventArgs( + public TransferItemFailedEventArgs( string transferId, - StorageResourceSingle sourceResource, - StorageResourceSingle destinationResource, + StorageResourceItem sourceResource, + StorageResourceItem destinationResource, Exception exception, bool isRunningSynchronously, CancellationToken cancellationToken) diff --git a/sdk/storage/Azure.Storage.DataMovement/src/TransferSkippedEventArgs.cs b/sdk/storage/Azure.Storage.DataMovement/src/TransferItemSkippedEventArgs.cs similarity index 78% rename from sdk/storage/Azure.Storage.DataMovement/src/TransferSkippedEventArgs.cs rename to sdk/storage/Azure.Storage.DataMovement/src/TransferItemSkippedEventArgs.cs index 11be24d98602..75e90c62f6c5 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/TransferSkippedEventArgs.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/TransferItemSkippedEventArgs.cs @@ -9,20 +9,20 @@ namespace Azure.Storage.DataMovement /// /// Event Argument for a change in the Transfer Status /// - public class TransferSkippedEventArgs : StorageTransferEventArgs + public class TransferItemSkippedEventArgs : DataTransferEventArgs { /// - /// Gets the that was the source resource for the transfer. + /// Gets the that was the source resource for the transfer. /// - public StorageResourceSingle SourceResource { get; } + public StorageResourceItem SourceResource { get; } /// - /// Gets the that was the destination resource for the transfer. + /// Gets the that was the destination resource for the transfer. /// - public StorageResourceSingle DestinationResource { get; } + public StorageResourceItem DestinationResource { get; } /// - /// Initializes a new instance of the . + /// Initializes a new instance of the . /// /// /// @@ -44,10 +44,10 @@ public class TransferSkippedEventArgs : StorageTransferEventArgs /// Thrown if is empty or null. /// Thrown if is empty or null. /// - public TransferSkippedEventArgs( + public TransferItemSkippedEventArgs( string transferId, - StorageResourceSingle sourceResource, - StorageResourceSingle destinationResource, + StorageResourceItem sourceResource, + StorageResourceItem destinationResource, bool isRunningSynchronously, CancellationToken cancellationToken) : base(transferId, isRunningSynchronously, cancellationToken) diff --git a/sdk/storage/Azure.Storage.DataMovement/src/TransferJobInternal.cs b/sdk/storage/Azure.Storage.DataMovement/src/TransferJobInternal.cs index e5a12cf415b3..935aeeaa6666 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/TransferJobInternal.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/TransferJobInternal.cs @@ -36,12 +36,12 @@ internal abstract class TransferJobInternal : IDisposable /// /// Source resource /// - internal StorageResourceSingle _sourceResource; + internal StorageResourceItem _sourceResource; /// /// Destination Resource /// - internal StorageResourceSingle _destinationResource; + internal StorageResourceItem _destinationResource; /// /// Source resource @@ -80,12 +80,12 @@ internal abstract class TransferJobInternal : IDisposable /// /// The error handling options /// - internal ErrorHandlingBehavior _errorHandling; + internal DataTransferErrorMode _errorMode; /// /// Determines how files are created or if they should be overwritten if they already exists /// - internal StorageResourceCreateMode _createMode; + internal StorageResourceCreationPreference _creationPreference; private object _statusLock = new object(); @@ -110,19 +110,19 @@ internal abstract class TransferJobInternal : IDisposable /// /// If the transfer has any failed events that occur the event will get added to this handler. /// - public SyncAsyncEventHandler TransferFailedEventHandler { get; internal set; } + public SyncAsyncEventHandler TransferFailedEventHandler { get; internal set; } /// /// Number of single transfers skipped during Transfer due to no overwrite allowed as specified in - /// + /// /// - public SyncAsyncEventHandler TransferSkippedEventHandler { get; internal set; } + public SyncAsyncEventHandler TransferSkippedEventHandler { get; internal set; } /// /// If a single transfer within the resource container gets transferred successfully the event /// will get added to this handler /// - public SyncAsyncEventHandler SingleTransferCompletedEventHandler { get; internal set; } + public SyncAsyncEventHandler TransferItemCompletedEventHandler { get; internal set; } internal ClientDiagnostics ClientDiagnostics { get; } @@ -152,22 +152,22 @@ private TransferJobInternal( DataTransfer dataTransfer, QueueChunkTaskInternal queueChunkTask, TransferCheckpointer checkPointer, - ErrorHandlingBehavior errorHandling, - StorageResourceCreateMode createMode, + DataTransferErrorMode errorHandling, + StorageResourceCreationPreference creationPreference, ArrayPool arrayPool, SyncAsyncEventHandler statusEventHandler, - SyncAsyncEventHandler failedEventHandler, - SyncAsyncEventHandler skippedEventHandler, - SyncAsyncEventHandler singleTransferEventHandler, + SyncAsyncEventHandler failedEventHandler, + SyncAsyncEventHandler skippedEventHandler, + SyncAsyncEventHandler singleTransferEventHandler, ClientDiagnostics clientDiagnostics) { Argument.AssertNotNull(clientDiagnostics, nameof(clientDiagnostics)); _dataTransfer = dataTransfer ?? throw Errors.ArgumentNull(nameof(dataTransfer)); - _dataTransfer._state.TrySetTransferStatus(StorageTransferStatus.Queued); - _errorHandling = errorHandling; - _createMode = createMode == StorageResourceCreateMode.None ? StorageResourceCreateMode.Fail : createMode; + _dataTransfer._state.TrySetTransferStatus(DataTransferStatus.Queued); + _errorMode = errorHandling; _checkpointer = checkPointer; + _creationPreference = creationPreference; QueueChunkTask = queueChunkTask; _hasFailures = false; _hasSkipped = false; @@ -181,7 +181,7 @@ private TransferJobInternal( TransferStatusEventHandler = statusEventHandler; TransferFailedEventHandler = failedEventHandler; TransferSkippedEventHandler = skippedEventHandler; - SingleTransferCompletedEventHandler = singleTransferEventHandler; + TransferItemCompletedEventHandler = singleTransferEventHandler; ClientDiagnostics = clientDiagnostics; } @@ -190,19 +190,19 @@ private TransferJobInternal( /// internal TransferJobInternal( DataTransfer dataTransfer, - StorageResourceSingle sourceResource, - StorageResourceSingle destinationResource, - TransferOptions transferOptions, + StorageResourceItem sourceResource, + StorageResourceItem destinationResource, + DataTransferOptions transferOptions, QueueChunkTaskInternal queueChunkTask, TransferCheckpointer checkpointer, - ErrorHandlingBehavior errorHandling, + DataTransferErrorMode errorHandling, ArrayPool arrayPool, ClientDiagnostics clientDiagnostics) : this(dataTransfer, queueChunkTask, checkpointer, errorHandling, - transferOptions.CreateMode, + transferOptions.CreationPreference, arrayPool, transferOptions.GetTransferStatus(), transferOptions.GetFailed(), @@ -225,17 +225,17 @@ internal TransferJobInternal( DataTransfer dataTransfer, StorageResourceContainer sourceResource, StorageResourceContainer destinationResource, - TransferOptions transferOptions, + DataTransferOptions transferOptions, QueueChunkTaskInternal queueChunkTask, TransferCheckpointer checkpointer, - ErrorHandlingBehavior errorHandling, + DataTransferErrorMode errorHandling, ArrayPool arrayPool, ClientDiagnostics clientDiagnostics) : this(dataTransfer, queueChunkTask, checkpointer, errorHandling, - transferOptions.CreateMode, + transferOptions.CreationPreference, arrayPool, transferOptions.GetTransferStatus(), transferOptions.GetFailed(), @@ -273,20 +273,20 @@ public void DisposeHandlers() /// /// Triggers the cancellation for the Job Part. /// - /// If the status is set to - /// and any chunks is still processing to be cancelled is will be set to - /// until the chunks finish then it will be set to . + /// If the status is set to + /// and any chunks is still processing to be cancelled is will be set to + /// until the chunks finish then it will be set to . /// - /// If the status is set to - /// and any chunks is still processing to be cancelled is will be set to - /// until the chunks finish then it will be set to . + /// If the status is set to + /// and any chunks is still processing to be cancelled is will be set to + /// until the chunks finish then it will be set to . /// /// The task to wait until the cancellation has been triggered. public async Task TriggerJobCancellationAsync() { if (!_dataTransfer._state.CancellationTokenSource.IsCancellationRequested) { - await OnJobStatusChangedAsync(StorageTransferStatus.CancellationInProgress).ConfigureAwait(false); + await OnJobStatusChangedAsync(DataTransferStatus.CancellationInProgress).ConfigureAwait(false); _dataTransfer._state.TriggerCancellation(); } } @@ -304,7 +304,7 @@ public async virtual Task InvokeFailedArgAsync(Exception ex) { // TODO: change to RaiseAsync await TransferFailedEventHandler.RaiseAsync( - new TransferFailedEventArgs( + new TransferItemFailedEventArgs( _dataTransfer.Id, _sourceResource, _destinationResource, @@ -332,43 +332,43 @@ await TransferFailedEventHandler.RaiseAsync( /// public async Task JobPartEvent(TransferStatusEventArgs args) { - StorageTransferStatus jobPartStatus = args.StorageTransferStatus; - StorageTransferStatus jobStatus = _dataTransfer._state.GetTransferStatus(); + DataTransferStatus jobPartStatus = args.StorageTransferStatus; + DataTransferStatus jobStatus = _dataTransfer._state.GetTransferStatus(); // Keep track of paused, failed, and skipped which we will use to determine final job status - if (jobPartStatus == StorageTransferStatus.Paused) + if (jobPartStatus == DataTransferStatus.Paused) { _jobPartPaused = true; } - else if (jobPartStatus == StorageTransferStatus.CompletedWithFailedTransfers) + else if (jobPartStatus == DataTransferStatus.CompletedWithFailedTransfers) { _jobPartFailed = true; } - else if (jobPartStatus == StorageTransferStatus.CompletedWithSkippedTransfers) + else if (jobPartStatus == DataTransferStatus.CompletedWithSkippedTransfers) { _jobPartSkipped = true; } // Cancel the entire job if one job part fails and StopOnFailure is set - if (_errorHandling == ErrorHandlingBehavior.StopOnAllFailures && - jobPartStatus == StorageTransferStatus.CompletedWithFailedTransfers && - jobStatus != StorageTransferStatus.CancellationInProgress && - jobStatus != StorageTransferStatus.CompletedWithFailedTransfers && - jobStatus != StorageTransferStatus.CompletedWithSkippedTransfers && - jobStatus != StorageTransferStatus.Completed) + if (_errorMode == DataTransferErrorMode.StopOnAnyFailure && + jobPartStatus == DataTransferStatus.CompletedWithFailedTransfers && + jobStatus != DataTransferStatus.CancellationInProgress && + jobStatus != DataTransferStatus.CompletedWithFailedTransfers && + jobStatus != DataTransferStatus.CompletedWithSkippedTransfers && + jobStatus != DataTransferStatus.Completed) { await TriggerJobCancellationAsync().ConfigureAwait(false); jobStatus = _dataTransfer._state.GetTransferStatus(); } - if ((jobPartStatus == StorageTransferStatus.Paused || - jobPartStatus == StorageTransferStatus.Completed || - jobPartStatus == StorageTransferStatus.CompletedWithSkippedTransfers || - jobPartStatus == StorageTransferStatus.CompletedWithFailedTransfers) - && (jobStatus == StorageTransferStatus.Queued || - jobStatus == StorageTransferStatus.InProgress || - jobStatus == StorageTransferStatus.PauseInProgress || - jobStatus == StorageTransferStatus.CancellationInProgress)) + if ((jobPartStatus == DataTransferStatus.Paused || + jobPartStatus == DataTransferStatus.Completed || + jobPartStatus == DataTransferStatus.CompletedWithSkippedTransfers || + jobPartStatus == DataTransferStatus.CompletedWithFailedTransfers) + && (jobStatus == DataTransferStatus.Queued || + jobStatus == DataTransferStatus.InProgress || + jobStatus == DataTransferStatus.PauseInProgress || + jobStatus == DataTransferStatus.CancellationInProgress)) { Interlocked.Decrement(ref _pendingJobParts); @@ -379,7 +379,7 @@ public async Task JobPartEvent(TransferStatusEventArgs args) } } - public async Task OnJobStatusChangedAsync(StorageTransferStatus status) + public async Task OnJobStatusChangedAsync(DataTransferStatus status) { bool statusChanged = false; lock (_statusLock) @@ -389,10 +389,10 @@ public async Task OnJobStatusChangedAsync(StorageTransferStatus status) if (statusChanged) { // If we are in a final state, dispose the JobPartEvent handlers - if (status == StorageTransferStatus.Completed || - status == StorageTransferStatus.CompletedWithSkippedTransfers || - status == StorageTransferStatus.CompletedWithFailedTransfers || - status == StorageTransferStatus.Paused) + if (status == DataTransferStatus.Completed || + status == DataTransferStatus.CompletedWithSkippedTransfers || + status == DataTransferStatus.CompletedWithFailedTransfers || + status == DataTransferStatus.Paused) { DisposeHandlers(); } @@ -413,7 +413,7 @@ await TransferStatusEventHandler.RaiseAsync( } } - public async Task OnJobPartStatusChangedAsync(StorageTransferStatus status) + public async Task OnJobPartStatusChangedAsync(DataTransferStatus status) { //TODO: change to RaiseAsync after implementing ClientDiagnostics for TransferManager await JobPartStatusEvents.RaiseAsync( @@ -428,7 +428,7 @@ await JobPartStatusEvents.RaiseAsync( .ConfigureAwait(false); } - internal async virtual Task SetCheckpointerStatus(StorageTransferStatus status) + internal async virtual Task SetCheckpointerStatus(DataTransferStatus status) { await _checkpointer.SetJobTransferStatusAsync( transferId: _dataTransfer.Id, @@ -439,24 +439,24 @@ internal async Task OnEnumerationComplete() { // If there were no job parts enumerated and we haven't already aborted/completed the job. if (_jobParts.Count == 0 && - _dataTransfer.TransferStatus != StorageTransferStatus.Paused && - _dataTransfer.TransferStatus != StorageTransferStatus.CompletedWithSkippedTransfers && - _dataTransfer.TransferStatus != StorageTransferStatus.CompletedWithFailedTransfers && - _dataTransfer.TransferStatus != StorageTransferStatus.Completed) + _dataTransfer.TransferStatus != DataTransferStatus.Paused && + _dataTransfer.TransferStatus != DataTransferStatus.CompletedWithSkippedTransfers && + _dataTransfer.TransferStatus != DataTransferStatus.CompletedWithFailedTransfers && + _dataTransfer.TransferStatus != DataTransferStatus.Completed) { - if (_dataTransfer.TransferStatus == StorageTransferStatus.PauseInProgress) + if (_dataTransfer.TransferStatus == DataTransferStatus.PauseInProgress) { // If we paused before we were able to list, set the status properly. - await OnJobStatusChangedAsync(StorageTransferStatus.Paused).ConfigureAwait(false); + await OnJobStatusChangedAsync(DataTransferStatus.Paused).ConfigureAwait(false); } - else if (_dataTransfer.TransferStatus == StorageTransferStatus.CancellationInProgress) + else if (_dataTransfer.TransferStatus == DataTransferStatus.CancellationInProgress) { // If we aborted before we were able to list, set the status properly. - await OnJobStatusChangedAsync(StorageTransferStatus.CompletedWithFailedTransfers).ConfigureAwait(false); + await OnJobStatusChangedAsync(DataTransferStatus.CompletedWithFailedTransfers).ConfigureAwait(false); } else { - await OnJobStatusChangedAsync(StorageTransferStatus.Completed).ConfigureAwait(false); + await OnJobStatusChangedAsync(DataTransferStatus.Completed).ConfigureAwait(false); } } await CheckAndUpdateStatusAsync().ConfigureAwait(false); @@ -468,13 +468,13 @@ internal async Task CheckAndUpdateStatusAsync() // This is in the case that we weren't able to begin listing any job parts yet. if (_jobParts.Count == 0) { - if (_dataTransfer.TransferStatus == StorageTransferStatus.PauseInProgress) + if (_dataTransfer.TransferStatus == DataTransferStatus.PauseInProgress) { - await OnJobStatusChangedAsync(StorageTransferStatus.Paused).ConfigureAwait(false); + await OnJobStatusChangedAsync(DataTransferStatus.Paused).ConfigureAwait(false); } - else if (_dataTransfer.TransferStatus == StorageTransferStatus.CancellationInProgress) + else if (_dataTransfer.TransferStatus == DataTransferStatus.CancellationInProgress) { - await OnJobStatusChangedAsync(StorageTransferStatus.CompletedWithFailedTransfers).ConfigureAwait(false); + await OnJobStatusChangedAsync(DataTransferStatus.CompletedWithFailedTransfers).ConfigureAwait(false); } return; } @@ -484,19 +484,19 @@ internal async Task CheckAndUpdateStatusAsync() { if (_jobPartPaused) { - await OnJobStatusChangedAsync(StorageTransferStatus.Paused).ConfigureAwait(false); + await OnJobStatusChangedAsync(DataTransferStatus.Paused).ConfigureAwait(false); } else if (_jobPartFailed) { - await OnJobStatusChangedAsync(StorageTransferStatus.CompletedWithFailedTransfers).ConfigureAwait(false); + await OnJobStatusChangedAsync(DataTransferStatus.CompletedWithFailedTransfers).ConfigureAwait(false); } else if (_jobPartSkipped) { - await OnJobStatusChangedAsync(StorageTransferStatus.CompletedWithSkippedTransfers).ConfigureAwait(false); + await OnJobStatusChangedAsync(DataTransferStatus.CompletedWithSkippedTransfers).ConfigureAwait(false); } else { - await OnJobStatusChangedAsync(StorageTransferStatus.Completed).ConfigureAwait(false); + await OnJobStatusChangedAsync(DataTransferStatus.Completed).ConfigureAwait(false); } } } @@ -506,10 +506,10 @@ public void AppendJobPart(JobPartInternal jobPart) _jobParts.Add(jobPart); // Job parts can come from resuming a transfer and therefore may already be complete - StorageTransferStatus status = jobPart.JobPartStatus; - if (status != StorageTransferStatus.CompletedWithSkippedTransfers && - status != StorageTransferStatus.CompletedWithFailedTransfers && - status != StorageTransferStatus.Completed) + DataTransferStatus status = jobPart.JobPartStatus; + if (status != DataTransferStatus.CompletedWithSkippedTransfers && + status != DataTransferStatus.CompletedWithFailedTransfers && + status != DataTransferStatus.Completed) { Interlocked.Increment(ref _pendingJobParts); } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/TransferManagerOptions.cs b/sdk/storage/Azure.Storage.DataMovement/src/TransferManagerOptions.cs index 94838568e4e6..6a63e58a6fc1 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/TransferManagerOptions.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/TransferManagerOptions.cs @@ -20,9 +20,9 @@ internal class TransferManagerClientOptions : ClientOptions /// /// Optional. Sets the way errors during a transfer will be handled. - /// Default is . + /// Default is . /// - public ErrorHandlingBehavior ErrorHandling { get; set; } + public DataTransferErrorMode ErrorHandling { get; set; } /// /// The maximum number of workers that may be used in a parallel transfer. @@ -33,7 +33,7 @@ internal class TransferManagerClientOptions : ClientOptions /// Optional. Defines the options for creating a checkpointer which is used for saving /// transfer state so transfers can be resumed. /// - public TransferCheckpointerOptions CheckpointerOptions { get; set; } + public TransferCheckpointStoreOptions CheckpointerOptions { get; set; } internal TransferManagerClientOptions ClientOptions { get; } = new(); diff --git a/sdk/storage/Azure.Storage.DataMovement/src/TransferProgressTracker.cs b/sdk/storage/Azure.Storage.DataMovement/src/TransferProgressTracker.cs index a43e88e7f048..cd41937b2aee 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/TransferProgressTracker.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/TransferProgressTracker.cs @@ -12,7 +12,7 @@ namespace Azure.Storage.DataMovement /// internal class TransferProgressTracker { - private readonly IProgress _progressHandler; + private readonly IProgress _progressHandler; private readonly ProgressHandlerOptions _options; private long _completedCount = 0; @@ -23,7 +23,7 @@ internal class TransferProgressTracker private long _bytesTransferred = 0; private object _bytesTransferredLock = new(); - public TransferProgressTracker(IProgress progressHandler, ProgressHandlerOptions options) + public TransferProgressTracker(IProgress progressHandler, ProgressHandlerOptions options) { _progressHandler = progressHandler; _options = options ?? new ProgressHandlerOptions(); @@ -94,9 +94,9 @@ public void IncrementBytesTransferred(long bytesTransferred) } } - private StorageTransferProgress GetTransferProgress() + private DataTransferProgress GetTransferProgress() { - return new StorageTransferProgress() + return new DataTransferProgress() { CompletedCount = _completedCount, SkippedCount = _skippedCount, diff --git a/sdk/storage/Azure.Storage.DataMovement/src/UriToStreamJobPart.cs b/sdk/storage/Azure.Storage.DataMovement/src/UriToStreamJobPart.cs index b8479fd4751a..747b830145d0 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/UriToStreamJobPart.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/UriToStreamJobPart.cs @@ -34,8 +34,8 @@ private UriToStreamJobPart( destinationResource: job._destinationResource, maximumTransferChunkSize: job._maximumTransferChunkSize, initialTransferSize: job._initialTransferSize, - errorHandling: job._errorHandling, - createMode: job._createMode, + errorHandling: job._errorMode, + createMode: job._creationPreference, checkpointer: job._checkpointer, progressTracker: job._progressTracker, arrayPool: job.UploadArrayPool, @@ -44,7 +44,7 @@ private UriToStreamJobPart( statusEventHandler: job.TransferStatusEventHandler, failedEventHandler: job.TransferFailedEventHandler, skippedEventHandler: job.TransferSkippedEventHandler, - singleTransferEventHandler: job.SingleTransferCompletedEventHandler, + singleTransferEventHandler: job.TransferItemCompletedEventHandler, clientDiagnostics: job.ClientDiagnostics, cancellationToken: job._cancellationToken) { } @@ -55,10 +55,10 @@ private UriToStreamJobPart( private UriToStreamJobPart( UriToStreamTransferJob job, int partNumber, - StorageResourceSingle sourceResource, - StorageResourceSingle destinationResource, + StorageResourceItem sourceResource, + StorageResourceItem destinationResource, bool isFinalPart, - StorageTransferStatus jobPartStatus = StorageTransferStatus.Queued, + DataTransferStatus jobPartStatus = DataTransferStatus.Queued, long? length = default) : base(dataTransfer: job._dataTransfer, partNumber: partNumber, @@ -66,8 +66,8 @@ private UriToStreamJobPart( destinationResource: destinationResource, maximumTransferChunkSize: job._maximumTransferChunkSize, initialTransferSize: job._initialTransferSize, - errorHandling: job._errorHandling, - createMode: job._createMode, + errorHandling: job._errorMode, + createMode: job._creationPreference, checkpointer: job._checkpointer, progressTracker: job._progressTracker, arrayPool: job.UploadArrayPool, @@ -76,7 +76,7 @@ private UriToStreamJobPart( statusEventHandler: job.TransferStatusEventHandler, failedEventHandler: job.TransferFailedEventHandler, skippedEventHandler: job.TransferSkippedEventHandler, - singleTransferEventHandler: job.SingleTransferCompletedEventHandler, + singleTransferEventHandler: job.TransferItemCompletedEventHandler, clientDiagnostics: job.ClientDiagnostics, cancellationToken: job._cancellationToken, jobPartStatus: jobPartStatus, @@ -102,10 +102,10 @@ await part.AddJobPartToCheckpointerAsync( public static async Task CreateJobPartAsync( UriToStreamTransferJob job, int partNumber, - StorageResourceSingle sourceResource, - StorageResourceSingle destinationResource, + StorageResourceItem sourceResource, + StorageResourceItem destinationResource, bool isFinalPart, - StorageTransferStatus jobPartStatus = default, + DataTransferStatus jobPartStatus = default, long? length = default, bool partPlanFileExists = false) { @@ -147,7 +147,7 @@ public override async Task ProcessPartToChunkAsync() { // we can default the length to 0 because we know the destination is local and // does not require a length to be created. - await OnTransferStatusChanged(StorageTransferStatus.InProgress).ConfigureAwait(false); + await OnTransferStatusChanged(DataTransferStatus.InProgress).ConfigureAwait(false); try { @@ -169,14 +169,14 @@ public override async Task ProcessPartToChunkAsync() internal async Task UnknownDownloadInternal() { - Task initialTask = _sourceResource.ReadStreamAsync( + Task initialTask = _sourceResource.ReadStreamAsync( position: 0, length: _initialTransferSize, _cancellationToken); try { - ReadStreamStorageResourceResult initialResult = default; + StorageResourceReadStreamResult initialResult = default; try { initialResult = await initialTask.ConfigureAwait(false); @@ -268,7 +268,7 @@ internal async Task LengthKnownDownloadInternal() { // To prevent requesting a range that is invalid when // we already know the length we can just make one get blob request. - ReadStreamStorageResourceResult result = await _sourceResource. + StorageResourceReadStreamResult result = await _sourceResource. ReadStreamAsync(cancellationToken: _cancellationToken) .ConfigureAwait(false); @@ -333,14 +333,14 @@ internal async Task CompleteFileDownload() // Apply necessary transfer completions on the destination. await _destinationResource.CompleteTransferAsync( - overwrite: _createMode == StorageResourceCreateMode.Overwrite, + overwrite: _createMode == StorageResourceCreationPreference.OverwriteIfExists, cancellationToken: _cancellationToken).ConfigureAwait(false); // Dispose the handlers await DisposeHandlers().ConfigureAwait(false); // Update the transfer status - await OnTransferStatusChanged(StorageTransferStatus.Completed).ConfigureAwait(false); + await OnTransferStatusChanged(DataTransferStatus.Completed).ConfigureAwait(false); } catch (Exception ex) { @@ -352,7 +352,7 @@ internal async Task DownloadStreamingInternal(HttpRange range) { try { - ReadStreamStorageResourceResult result = await _sourceResource.ReadStreamAsync( + StorageResourceReadStreamResult result = await _sourceResource.ReadStreamAsync( range.Offset, (long)range.Length, _cancellationToken).ConfigureAwait(false); @@ -401,9 +401,9 @@ public async Task CopyToStreamInternal( try { // TODO: change to custom offset based on chunk offset - await _destinationResource.WriteFromStreamAsync( + await _destinationResource.CopyFromStreamAsync( stream: source, - overwrite: _createMode == StorageResourceCreateMode.Overwrite, + overwrite: _createMode == StorageResourceCreationPreference.OverwriteIfExists, position: offset, streamLength: sourceLength, completeLength: expectedLength, @@ -412,7 +412,7 @@ await _destinationResource.WriteFromStreamAsync( return true; } catch (IOException ex) - when (_createMode == StorageResourceCreateMode.Skip && + when (_createMode == StorageResourceCreationPreference.SkipIfExists && ex.Message.Contains("Cannot overwrite file.")) { // Skip file that already exists on the destination. diff --git a/sdk/storage/Azure.Storage.DataMovement/src/UriToStreamTransferJob.cs b/sdk/storage/Azure.Storage.DataMovement/src/UriToStreamTransferJob.cs index dec94e9250bf..88cc9bccab05 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/UriToStreamTransferJob.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/UriToStreamTransferJob.cs @@ -16,12 +16,12 @@ internal class UriToStreamTransferJob : TransferJobInternal /// internal UriToStreamTransferJob( DataTransfer dataTransfer, - StorageResourceSingle sourceResource, - StorageResourceSingle destinationResource, - TransferOptions transferOptions, + StorageResourceItem sourceResource, + StorageResourceItem destinationResource, + DataTransferOptions transferOptions, QueueChunkTaskInternal queueChunkTask, TransferCheckpointer checkpointer, - ErrorHandlingBehavior errorHandling, + DataTransferErrorMode errorHandling, ArrayPool arrayPool, ClientDiagnostics clientDiagnostics) : base(dataTransfer, @@ -43,10 +43,10 @@ internal UriToStreamTransferJob( DataTransfer dataTransfer, StorageResourceContainer sourceResource, StorageResourceContainer destinationResource, - TransferOptions transferOptions, + DataTransferOptions transferOptions, QueueChunkTaskInternal queueChunkTask, TransferCheckpointer checkpointer, - ErrorHandlingBehavior errorHandling, + DataTransferErrorMode errorHandling, ArrayPool arrayPool, ClientDiagnostics clientDiagnostics) : base(dataTransfer, @@ -67,7 +67,7 @@ internal UriToStreamTransferJob( /// An IEnumerable that contains the job parts public override async IAsyncEnumerable ProcessJobToJobPartAsync() { - await OnJobStatusChangedAsync(StorageTransferStatus.InProgress).ConfigureAwait(false); + await OnJobStatusChangedAsync(DataTransferStatus.InProgress).ConfigureAwait(false); int partNumber = 0; if (_jobParts.Count == 0) @@ -106,9 +106,9 @@ public override async IAsyncEnumerable ProcessJobToJobPartAsync bool isFinalPartFound = false; foreach (JobPartInternal part in _jobParts) { - if (part.JobPartStatus != StorageTransferStatus.Completed) + if (part.JobPartStatus != DataTransferStatus.Completed) { - part.JobPartStatus = StorageTransferStatus.Queued; + part.JobPartStatus = DataTransferStatus.Queued; yield return part; if (part.IsFinalPart) @@ -190,8 +190,8 @@ private async IAsyncEnumerable GetStorageResourcesAsync() part = await UriToStreamJobPart.CreateJobPartAsync( job: this, partNumber: partNumber, - sourceResource: (StorageResourceSingle)lastResource, - destinationResource: _destinationResourceContainer.GetChildStorageResource(sourceName), + sourceResource: (StorageResourceItem)lastResource, + destinationResource: _destinationResourceContainer.GetStorageResourceReference(sourceName), isFinalPart: false).ConfigureAwait(false); AppendJobPart(part); } @@ -222,8 +222,8 @@ private async IAsyncEnumerable GetStorageResourcesAsync() lastPart = await UriToStreamJobPart.CreateJobPartAsync( job: this, partNumber: partNumber, - sourceResource: (StorageResourceSingle) lastResource, - destinationResource: _destinationResourceContainer.GetChildStorageResource(lastSourceName), + sourceResource: (StorageResourceItem) lastResource, + destinationResource: _destinationResourceContainer.GetStorageResourceReference(lastSourceName), isFinalPart: true).ConfigureAwait(false); AppendJobPart(lastPart); } diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/AppendBlobStorageResourceTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/AppendBlobStorageResourceTests.cs index a16962e3a8c2..2f2c752151d3 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/AppendBlobStorageResourceTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/AppendBlobStorageResourceTests.cs @@ -55,7 +55,7 @@ public async Task ReadStreamAsync() AppendBlobStorageResource storageResource = new AppendBlobStorageResource(blobClient); // Act - ReadStreamStorageResourceResult result = await storageResource.ReadStreamAsync(); + StorageResourceReadStreamResult result = await storageResource.ReadStreamAsync(); // Assert Assert.NotNull(result); @@ -81,7 +81,7 @@ public async Task ReadStreamAsync_Position() AppendBlobStorageResource storageResource = new AppendBlobStorageResource(blobClient); // Act - ReadStreamStorageResourceResult result = await storageResource.ReadStreamAsync(position: readPosition); + StorageResourceReadStreamResult result = await storageResource.ReadStreamAsync(position: readPosition); // Assert Assert.NotNull(result); @@ -125,7 +125,7 @@ public async Task ReadStreamAsync_Partial() } // Act - ReadStreamStorageResourceResult result = + StorageResourceReadStreamResult result = await storageResource.ReadStreamAsync(position: 0, length: Constants.KB); // Assert @@ -146,7 +146,7 @@ public async Task WriteFromStreamAsync() using (var stream = new MemoryStream(data)) { // Act - await storageResource.WriteFromStreamAsync(stream, length, false); + await storageResource.CopyFromStreamAsync(stream, length, false); } BlobDownloadStreamingResult result = await blobClient.DownloadStreamingAsync(); @@ -175,7 +175,7 @@ public async Task WriteFromStreamAsync_Position() using (var stream = new MemoryStream(data)) { // Act - await storageResource.WriteFromStreamAsync( + await storageResource.CopyFromStreamAsync( stream: stream, streamLength: length, overwrite: false, @@ -212,7 +212,7 @@ public async Task WriteFromStreamAsync_Error() { // Act await TestHelper.AssertExpectedExceptionAsync( - storageResource.WriteFromStreamAsync(stream, streamLength: length, false, position: position), + storageResource.CopyFromStreamAsync(stream, streamLength: length, false, position: position), e => { Assert.AreEqual(e.ErrorCode, "BlobAlreadyExists"); @@ -612,7 +612,7 @@ public async Task CompleteTransferAsync() var data = GetRandomBuffer(length); using (var stream = new MemoryStream(data)) { - await storageResource.WriteFromStreamAsync( + await storageResource.CopyFromStreamAsync( stream: stream, streamLength: length, overwrite: false, diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/BlobContainerClientExtensionsTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/BlobContainerClientExtensionsTests.cs index 225ee68d1235..3113c30490fa 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/BlobContainerClientExtensionsTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/BlobContainerClientExtensionsTests.cs @@ -45,7 +45,7 @@ public async Task VerifyStartUploadDirectoryAsync([Values] bool addBlobDirectory var directoryPath = Path.GetTempPath(); - var options = addTransferOptions ? new TransferOptions() : (TransferOptions)null; + var options = addTransferOptions ? new DataTransferOptions() : (DataTransferOptions)null; var assertionComplete = false; @@ -65,7 +65,7 @@ public async Task VerifyStartUploadDirectoryAsync([Values] bool addBlobDirectory { await client.StartUploadDirectoryAsync(directoryPath, new BlobContainerClientTransferOptions { - BlobContainerOptions = new() { DirectoryPrefix = blobDirectoryPrefix }, + BlobContainerOptions = new() { BlobDirectoryPrefix = blobDirectoryPrefix }, TransferOptions = options }); } @@ -90,7 +90,7 @@ public async Task VerifyStartDownloadToDirectoryAsync([Values] bool addBlobDirec var directoryPath = Path.GetTempPath(); - var options = addTransferOptions ? new TransferOptions() : (TransferOptions)null; + var options = addTransferOptions ? new DataTransferOptions() : (DataTransferOptions)null; var expSourceResourceType = addBlobDirectoryPath ? typeof(BlobStorageResourceContainer) : typeof(BlobStorageResourceContainer); @@ -112,7 +112,7 @@ public async Task VerifyStartDownloadToDirectoryAsync([Values] bool addBlobDirec { await client.StartDownloadToDirectoryAsync(directoryPath, new BlobContainerClientTransferOptions { - BlobContainerOptions = new() { DirectoryPrefix = blobDirectoryPrefix }, + BlobContainerOptions = new() { BlobDirectoryPrefix = blobDirectoryPrefix }, TransferOptions = options }); } @@ -132,9 +132,9 @@ private class MockTransferManager : TransferManager { public MockTransferManager() { } - public Action OnStartTransferContainerAsync { get; set; } + public Action OnStartTransferContainerAsync { get; set; } - public override Task StartTransferAsync(StorageResource sourceResource, StorageResource destinationResource, TransferOptions transferOptions = null, CancellationToken cancellationToken = default) + public override Task StartTransferAsync(StorageResource sourceResource, StorageResource destinationResource, DataTransferOptions transferOptions = null, CancellationToken cancellationToken = default) { if (OnStartTransferContainerAsync != null) { diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/BlobStorageResourceContainerTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/BlobStorageResourceContainerTests.cs index f4483dbb825a..0638d2fc39be 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/BlobStorageResourceContainerTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/BlobStorageResourceContainerTests.cs @@ -65,7 +65,7 @@ public void Ctor_PublicUri() string directoryName = "directoryName"; BlobContainerClient blobContainerClient = new BlobContainerClient(uri); BlobStorageResourceContainer storageResource = - new BlobStorageResourceContainer(blobContainerClient, new() { DirectoryPrefix = "directoryName" }); + new BlobStorageResourceContainer(blobContainerClient, new() { BlobDirectoryPrefix = "directoryName" }); // Assert Assert.AreEqual(uri, storageResource.Uri); @@ -82,7 +82,7 @@ public async Task GetStorageResourcesAsync() string folderName = "foo"; BlobStorageResourceContainer storageResourceContainer = - new BlobStorageResourceContainer(test.Container, new() { DirectoryPrefix = folderName }); + new BlobStorageResourceContainer(test.Container, new() { BlobDirectoryPrefix = folderName }); var resources = new List(); @@ -104,9 +104,9 @@ public async Task GetChildStorageResourceAsync() string prefix = "foo"; StorageResourceContainer containerResource = - new BlobStorageResourceContainer(test.Container, new() { DirectoryPrefix = prefix }); + new BlobStorageResourceContainer(test.Container, new() { BlobDirectoryPrefix = prefix }); - StorageResourceSingle resource = containerResource.GetChildStorageResource("bar"); + StorageResourceItem resource = containerResource.GetStorageResourceReference("bar"); // Assert StorageResourceProperties properties = await resource.GetPropertiesAsync(); diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/BlockBlobStorageResourceTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/BlockBlobStorageResourceTests.cs index 8e71e96ab466..56bce91bd4e6 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/BlockBlobStorageResourceTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/BlockBlobStorageResourceTests.cs @@ -53,7 +53,7 @@ public async Task ReadStreamAsync() BlockBlobStorageResource storageResource = new BlockBlobStorageResource(blobClient); // Act - ReadStreamStorageResourceResult result = await storageResource.ReadStreamAsync(); + StorageResourceReadStreamResult result = await storageResource.ReadStreamAsync(); // Assert Assert.NotNull(result); @@ -78,7 +78,7 @@ await blobClient.UploadAsync( BlockBlobStorageResource storageResource = new BlockBlobStorageResource(blobClient); // Act - ReadStreamStorageResourceResult result = await storageResource.ReadStreamAsync(position: position); + StorageResourceReadStreamResult result = await storageResource.ReadStreamAsync(position: position); // Assert Assert.NotNull(result); @@ -121,7 +121,7 @@ await blobClient.UploadAsync( } // Act - ReadStreamStorageResourceResult result = + StorageResourceReadStreamResult result = await storageResource.ReadStreamAsync(position: 0, length: Constants.KB); // Assert @@ -142,7 +142,7 @@ public async Task WriteFromStreamAsync() using (var stream = new MemoryStream(data)) { // Act - await storageResource.WriteFromStreamAsync( + await storageResource.CopyFromStreamAsync( stream: stream, streamLength: length, completeLength: length, @@ -169,7 +169,7 @@ public async Task WriteFromStreamAsync_Position() using (var stream = new MemoryStream(data)) { // Act - await storageResource.WriteFromStreamAsync( + await storageResource.CopyFromStreamAsync( stream: stream, streamLength: length, overwrite: false, @@ -200,7 +200,7 @@ public async Task WriteFromStreamAsync_Error() var data = GetRandomBuffer(length); using (var stream = new MemoryStream(data)) { - await storageResource.WriteFromStreamAsync( + await storageResource.CopyFromStreamAsync( stream: stream, streamLength: length, overwrite: false, @@ -210,7 +210,7 @@ await storageResource.WriteFromStreamAsync( { // Act await TestHelper.AssertExpectedExceptionAsync( - storageResource.WriteFromStreamAsync( + storageResource.CopyFromStreamAsync( stream: stream, streamLength: length, overwrite: false, @@ -605,7 +605,7 @@ public async Task CompleteTransferAsync() var data = GetRandomBuffer(length); using (var stream = new MemoryStream(data)) { - await storageResource.WriteFromStreamAsync( + await storageResource.CopyFromStreamAsync( stream: stream, streamLength: length, overwrite: false, @@ -641,7 +641,7 @@ public async Task CompleteTransferAsync_Overwrite() var newData = GetRandomBuffer(length); using (var stream = new MemoryStream(newData)) { - await storageResource.WriteFromStreamAsync( + await storageResource.CopyFromStreamAsync( stream: stream, streamLength: length, overwrite: overwrite, diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/CommitChunkHandlerTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/CommitChunkHandlerTests.cs index b4d68ed2ba1d..dfd780566fdb 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/CommitChunkHandlerTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/CommitChunkHandlerTests.cs @@ -159,7 +159,7 @@ public async Task OneChunkTransfer(long blockSize) ReportProgressInBytes = mockCommitChunkBehaviors.ReportProgressInBytesTask.Object, InvokeFailedHandler = mockCommitChunkBehaviors.InvokeFailedEventHandlerTask.Object, }, - TransferType.Concurrent, + DataTransferOrder.Unordered, ClientDiagnostics, CancellationToken.None); @@ -201,7 +201,7 @@ public async Task ParallelChunkTransfer(long blockSize) ReportProgressInBytes = mockCommitChunkBehaviors.ReportProgressInBytesTask.Object, InvokeFailedHandler = mockCommitChunkBehaviors.InvokeFailedEventHandlerTask.Object, }, - TransferType.Concurrent, + DataTransferOrder.Unordered, ClientDiagnostics, CancellationToken.None); @@ -263,7 +263,7 @@ public async Task ParallelChunkTransfer_ExceedError(long blockSize) ReportProgressInBytes = mockCommitChunkBehaviors.ReportProgressInBytesTask.Object, InvokeFailedHandler = mockCommitChunkBehaviors.InvokeFailedEventHandlerTask.Object, }, - TransferType.Concurrent, + DataTransferOrder.Unordered, ClientDiagnostics, CancellationToken.None); @@ -308,7 +308,7 @@ public async Task ParallelChunkTransfer_MultipleProcesses(long blockSize, int ta ReportProgressInBytes = mockCommitChunkBehaviors.ReportProgressInBytesTask.Object, InvokeFailedHandler = mockCommitChunkBehaviors.InvokeFailedEventHandlerTask.Object, }, - TransferType.Concurrent, + DataTransferOrder.Unordered, ClientDiagnostics, CancellationToken.None); @@ -360,7 +360,7 @@ public async Task SequentialChunkTransfer(long blockSize) ReportProgressInBytes = mockCommitChunkBehaviors.ReportProgressInBytesTask.Object, InvokeFailedHandler = mockCommitChunkBehaviors.InvokeFailedEventHandlerTask.Object, }, - TransferType.Sequential, + DataTransferOrder.Sequential, ClientDiagnostics, CancellationToken.None); @@ -422,7 +422,7 @@ public async Task SequentialChunkTransfer_ExceedError(long blockSize) ReportProgressInBytes = mockCommitChunkBehaviors.ReportProgressInBytesTask.Object, InvokeFailedHandler = mockCommitChunkBehaviors.InvokeFailedEventHandlerTask.Object, }, - TransferType.Sequential, + DataTransferOrder.Sequential, ClientDiagnostics, CancellationToken.None); @@ -466,7 +466,7 @@ public async Task GetPutBlockTask_ExpectedFailure() ReportProgressInBytes = mockCommitChunkBehaviors.ReportProgressInBytesTask.Object, InvokeFailedHandler = mockCommitChunkBehaviors.InvokeFailedEventHandlerTask.Object, }, - transferType: TransferType.Sequential, + transferOrder: DataTransferOrder.Sequential, ClientDiagnostics, CancellationToken.None); @@ -508,7 +508,7 @@ public async Task GetCommitBlockTask_ExpectedFailure() ReportProgressInBytes = mockCommitChunkBehaviors.ReportProgressInBytesTask.Object, InvokeFailedHandler = mockCommitChunkBehaviors.InvokeFailedEventHandlerTask.Object, }, - transferType: TransferType.Concurrent, + transferOrder: DataTransferOrder.Unordered, ClientDiagnostics, CancellationToken.None); @@ -549,7 +549,7 @@ public async Task DisposedEventHandler() ReportProgressInBytes = mockCommitChunkBehaviors.ReportProgressInBytesTask.Object, InvokeFailedHandler = mockCommitChunkBehaviors.InvokeFailedEventHandlerTask.Object, }, - transferType: TransferType.Concurrent, + transferOrder: DataTransferOrder.Unordered, ClientDiagnostics, CancellationToken.None); diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/DataTransferTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/DataTransferTests.cs index 22b30cc44e85..879586d0c8b6 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/DataTransferTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/DataTransferTests.cs @@ -30,13 +30,13 @@ public void Ctor_Default() } [Test] - [TestCase(StorageTransferStatus.None)] - [TestCase(StorageTransferStatus.Queued)] - [TestCase(StorageTransferStatus.InProgress)] - [TestCase(StorageTransferStatus.PauseInProgress)] - [TestCase(StorageTransferStatus.CancellationInProgress)] - [TestCase(StorageTransferStatus.Paused)] - public void HasCompleted_False(StorageTransferStatus status) + [TestCase(DataTransferStatus.None)] + [TestCase(DataTransferStatus.Queued)] + [TestCase(DataTransferStatus.InProgress)] + [TestCase(DataTransferStatus.PauseInProgress)] + [TestCase(DataTransferStatus.CancellationInProgress)] + [TestCase(DataTransferStatus.Paused)] + public void HasCompleted_False(DataTransferStatus status) { // Arrange string transferId = GetNewTransferId(); @@ -55,10 +55,10 @@ public void HasCompleted_False(StorageTransferStatus status) } [Test] - [TestCase(StorageTransferStatus.Completed)] - [TestCase(StorageTransferStatus.CompletedWithSkippedTransfers)] - [TestCase(StorageTransferStatus.CompletedWithFailedTransfers)] - public void HasCompleted_True(StorageTransferStatus status) + [TestCase(DataTransferStatus.Completed)] + [TestCase(DataTransferStatus.CompletedWithSkippedTransfers)] + [TestCase(DataTransferStatus.CompletedWithFailedTransfers)] + public void HasCompleted_True(DataTransferStatus status) { // Arrange string transferId = GetNewTransferId(); @@ -86,10 +86,10 @@ public void EnsureCompleted() DataTransfer transfer = new DataTransfer( id: transferId, transferManager: transferManager, - status: StorageTransferStatus.Completed); + status: DataTransferStatus.Completed); // Act - transfer.EnsureCompleted(); + transfer.WaitForCompletion(); // Assert Assert.AreEqual(transferId, transfer.Id); @@ -106,12 +106,12 @@ public void EnsureCompleted_CancellationToken() DataTransfer transfer = new DataTransfer( id: transferId, transferManager: new(), - status: StorageTransferStatus.Queued); + status: DataTransferStatus.Queued); CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(1)); // Act TestHelper.AssertExpectedException( - () => transfer.EnsureCompleted(cancellationTokenSource.Token), + () => transfer.WaitForCompletion(cancellationTokenSource.Token), new OperationCanceledException("The operation was canceled.")); } @@ -125,7 +125,7 @@ public async Task AwaitCompletion() DataTransfer transfer = new DataTransfer( id: transferId, transferManager: transferManager, - status: StorageTransferStatus.Completed); + status: DataTransferStatus.Completed); // Act await transfer.WaitForCompletionAsync(); @@ -145,7 +145,7 @@ public void AwaitCompletion_CancellationToken() DataTransfer transfer = new DataTransfer( id: transferId, transferManager: new(), - status: StorageTransferStatus.Queued); + status: DataTransferStatus.Queued); CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(1)); Assert.CatchAsync( @@ -162,31 +162,31 @@ public async Task TryPauseAsync() DataTransfer transfer = new DataTransfer( id: transferId, transferManager: new(), - status: StorageTransferStatus.InProgress); + status: DataTransferStatus.InProgress); // Act - Task pauseTask = transfer.PauseIfRunningAsync(); + Task pauseTask = transfer.PauseAsync(); - Assert.AreEqual(StorageTransferStatus.PauseInProgress, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.PauseInProgress, transfer.TransferStatus); // Assert - if (!transfer._state.TrySetTransferStatus(StorageTransferStatus.Paused)) + if (!transfer._state.TrySetTransferStatus(DataTransferStatus.Paused)) { Assert.Fail("Unable to set the transfer status internally to the DataTransfer."); } await pauseTask; - Assert.AreEqual(StorageTransferStatus.Paused, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Paused, transfer.TransferStatus); Assert.IsFalse(transfer.HasCompleted); } [Test] - [TestCase(StorageTransferStatus.Paused)] - [TestCase(StorageTransferStatus.Completed)] - [TestCase(StorageTransferStatus.CompletedWithSkippedTransfers)] - [TestCase(StorageTransferStatus.CompletedWithFailedTransfers)] - public async Task TryPauseAsync_AlreadyPaused(StorageTransferStatus status) + [TestCase(DataTransferStatus.Paused)] + [TestCase(DataTransferStatus.Completed)] + [TestCase(DataTransferStatus.CompletedWithSkippedTransfers)] + [TestCase(DataTransferStatus.CompletedWithFailedTransfers)] + public async Task TryPauseAsync_AlreadyPaused(DataTransferStatus status) { // Arrange string transferId = GetNewTransferId(); @@ -197,7 +197,7 @@ public async Task TryPauseAsync_AlreadyPaused(StorageTransferStatus status) status: status); Assert.AreEqual(status, transfer.TransferStatus); - await transfer.PauseIfRunningAsync(); + await transfer.PauseAsync(); Assert.AreEqual(status, transfer.TransferStatus); } @@ -210,18 +210,18 @@ public async Task TryPauseAsync_CancellationToken() DataTransfer transfer = new DataTransfer( id: transferId, transferManager: new(), - status: StorageTransferStatus.InProgress); + status: DataTransferStatus.InProgress); CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(1)); try { - await transfer.PauseIfRunningAsync(cancellationTokenSource.Token); + await transfer.PauseAsync(cancellationTokenSource.Token); } catch (OperationCanceledException exception) { Assert.AreEqual(exception.Message, "The operation was canceled."); } - Assert.AreEqual(StorageTransferStatus.PauseInProgress, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.PauseInProgress, transfer.TransferStatus); Assert.IsFalse(transfer.HasCompleted); } } diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/GetTransfersTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/GetTransfersTests.cs index 095deee7c7b3..06939c2fd71f 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/GetTransfersTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/GetTransfersTests.cs @@ -10,14 +10,14 @@ namespace Azure.Storage.DataMovement.Tests { /// - /// These tests aim to test the . + /// These tests aim to test the . /// public class GetTransfersTests { private TransferManagerOptions GetDefaultManagerOptions(string checkpointerPath) => new TransferManagerOptions() { - CheckpointerOptions = new TransferCheckpointerOptions(checkpointerPath) + CheckpointerOptions = new TransferCheckpointStoreOptions(checkpointerPath) }; private void AssertListTransfersEquals(IList expected, IList actual) @@ -38,7 +38,7 @@ private void AssertListTransfersEquals(IList expected, IList storedTransfers = new List { - GetNewDataTransfer(StorageTransferStatus.Queued), - GetNewDataTransfer(StorageTransferStatus.Queued), - GetNewDataTransfer(StorageTransferStatus.Queued), - GetNewDataTransfer(StorageTransferStatus.Queued), - GetNewDataTransfer(StorageTransferStatus.InProgress), - GetNewDataTransfer(StorageTransferStatus.InProgress), - GetNewDataTransfer(StorageTransferStatus.Paused), - GetNewDataTransfer(StorageTransferStatus.Paused), - GetNewDataTransfer(StorageTransferStatus.CompletedWithFailedTransfers), - GetNewDataTransfer(StorageTransferStatus.CompletedWithFailedTransfers), - GetNewDataTransfer(StorageTransferStatus.CompletedWithFailedTransfers), - GetNewDataTransfer(StorageTransferStatus.Completed), - GetNewDataTransfer(StorageTransferStatus.Completed), + GetNewDataTransfer(DataTransferStatus.Queued), + GetNewDataTransfer(DataTransferStatus.Queued), + GetNewDataTransfer(DataTransferStatus.Queued), + GetNewDataTransfer(DataTransferStatus.Queued), + GetNewDataTransfer(DataTransferStatus.InProgress), + GetNewDataTransfer(DataTransferStatus.InProgress), + GetNewDataTransfer(DataTransferStatus.Paused), + GetNewDataTransfer(DataTransferStatus.Paused), + GetNewDataTransfer(DataTransferStatus.CompletedWithFailedTransfers), + GetNewDataTransfer(DataTransferStatus.CompletedWithFailedTransfers), + GetNewDataTransfer(DataTransferStatus.CompletedWithFailedTransfers), + GetNewDataTransfer(DataTransferStatus.Completed), + GetNewDataTransfer(DataTransferStatus.Completed), }; TransferManagerFactory factory = new TransferManagerFactory(GetDefaultManagerOptions(testDirectory.DirectoryPath)); TransferManager manager = factory.BuildTransferManager(storedTransfers); // Act - StorageTransferStatus[] statuses = new StorageTransferStatus[] { status }; + DataTransferStatus[] statuses = new DataTransferStatus[] { status }; IList result = await manager.GetTransfersAsync(statuses).ToListAsync(); // Assert @@ -127,30 +127,30 @@ public async Task GetTransfers_FilterMultipleStatuses() // Arrange - Set up transfer manager with multiple transfers List storedTransfers = new List { - GetNewDataTransfer(StorageTransferStatus.Queued), - GetNewDataTransfer(StorageTransferStatus.Queued), - GetNewDataTransfer(StorageTransferStatus.Queued), - GetNewDataTransfer(StorageTransferStatus.Queued), - GetNewDataTransfer(StorageTransferStatus.InProgress), - GetNewDataTransfer(StorageTransferStatus.InProgress), - GetNewDataTransfer(StorageTransferStatus.Paused), - GetNewDataTransfer(StorageTransferStatus.Paused), - GetNewDataTransfer(StorageTransferStatus.CompletedWithFailedTransfers), - GetNewDataTransfer(StorageTransferStatus.CompletedWithFailedTransfers), - GetNewDataTransfer(StorageTransferStatus.CompletedWithFailedTransfers), - GetNewDataTransfer(StorageTransferStatus.Completed), - GetNewDataTransfer(StorageTransferStatus.Completed), - GetNewDataTransfer(StorageTransferStatus.CompletedWithSkippedTransfers) + GetNewDataTransfer(DataTransferStatus.Queued), + GetNewDataTransfer(DataTransferStatus.Queued), + GetNewDataTransfer(DataTransferStatus.Queued), + GetNewDataTransfer(DataTransferStatus.Queued), + GetNewDataTransfer(DataTransferStatus.InProgress), + GetNewDataTransfer(DataTransferStatus.InProgress), + GetNewDataTransfer(DataTransferStatus.Paused), + GetNewDataTransfer(DataTransferStatus.Paused), + GetNewDataTransfer(DataTransferStatus.CompletedWithFailedTransfers), + GetNewDataTransfer(DataTransferStatus.CompletedWithFailedTransfers), + GetNewDataTransfer(DataTransferStatus.CompletedWithFailedTransfers), + GetNewDataTransfer(DataTransferStatus.Completed), + GetNewDataTransfer(DataTransferStatus.Completed), + GetNewDataTransfer(DataTransferStatus.CompletedWithSkippedTransfers) }; TransferManagerFactory factory = new TransferManagerFactory(GetDefaultManagerOptions(testDirectory.DirectoryPath)); TransferManager manager = factory.BuildTransferManager(storedTransfers); // Act - StorageTransferStatus[] statuses = new StorageTransferStatus[] { - StorageTransferStatus.Completed, - StorageTransferStatus.CompletedWithFailedTransfers, - StorageTransferStatus.CompletedWithSkippedTransfers }; + DataTransferStatus[] statuses = new DataTransferStatus[] { + DataTransferStatus.Completed, + DataTransferStatus.CompletedWithFailedTransfers, + DataTransferStatus.CompletedWithSkippedTransfers }; IList result = await manager.GetTransfersAsync(statuses).ToListAsync(); // Assert @@ -164,26 +164,26 @@ public async Task GetTransfers_Filtered_Empty() // Arrange - Set up transfer manager with multiple transfers List storedTransfers = new List { - GetNewDataTransfer(StorageTransferStatus.Queued), - GetNewDataTransfer(StorageTransferStatus.Queued), - GetNewDataTransfer(StorageTransferStatus.Queued), - GetNewDataTransfer(StorageTransferStatus.Queued), - GetNewDataTransfer(StorageTransferStatus.InProgress), - GetNewDataTransfer(StorageTransferStatus.InProgress), - GetNewDataTransfer(StorageTransferStatus.Paused), - GetNewDataTransfer(StorageTransferStatus.Paused), - GetNewDataTransfer(StorageTransferStatus.CompletedWithFailedTransfers), - GetNewDataTransfer(StorageTransferStatus.CompletedWithFailedTransfers), - GetNewDataTransfer(StorageTransferStatus.CompletedWithFailedTransfers), - GetNewDataTransfer(StorageTransferStatus.Completed), - GetNewDataTransfer(StorageTransferStatus.Completed), + GetNewDataTransfer(DataTransferStatus.Queued), + GetNewDataTransfer(DataTransferStatus.Queued), + GetNewDataTransfer(DataTransferStatus.Queued), + GetNewDataTransfer(DataTransferStatus.Queued), + GetNewDataTransfer(DataTransferStatus.InProgress), + GetNewDataTransfer(DataTransferStatus.InProgress), + GetNewDataTransfer(DataTransferStatus.Paused), + GetNewDataTransfer(DataTransferStatus.Paused), + GetNewDataTransfer(DataTransferStatus.CompletedWithFailedTransfers), + GetNewDataTransfer(DataTransferStatus.CompletedWithFailedTransfers), + GetNewDataTransfer(DataTransferStatus.CompletedWithFailedTransfers), + GetNewDataTransfer(DataTransferStatus.Completed), + GetNewDataTransfer(DataTransferStatus.Completed), }; TransferManagerFactory factory = new TransferManagerFactory(GetDefaultManagerOptions(testDirectory.DirectoryPath)); TransferManager manager = factory.BuildTransferManager(storedTransfers); // Act - With a transfer status not in the above stored transfers - StorageTransferStatus[] statuses = new StorageTransferStatus[] { StorageTransferStatus.CancellationInProgress }; + DataTransferStatus[] statuses = new DataTransferStatus[] { DataTransferStatus.CancellationInProgress }; IList result = await manager.GetTransfersAsync(statuses).ToListAsync(); // Assert @@ -206,7 +206,7 @@ public async Task GetTransfers_LocalCheckpointer() // Build TransferManager with the stored transfers TransferManagerOptions options = new TransferManagerOptions() { - CheckpointerOptions = new TransferCheckpointerOptions(test.DirectoryPath) + CheckpointerOptions = new TransferCheckpointStoreOptions(test.DirectoryPath) }; TransferManager manager = new TransferManager(options); @@ -247,7 +247,7 @@ public async Task GetResumableTransfers_LocalCheckpointer() // Build TransferManager with the stored transfers TransferManagerOptions options = new TransferManagerOptions() { - CheckpointerOptions = new TransferCheckpointerOptions(test.DirectoryPath) + CheckpointerOptions = new TransferCheckpointStoreOptions(test.DirectoryPath) }; TransferManager manager = new TransferManager(options); @@ -274,19 +274,19 @@ public async Task GetResumableTransfers_IgnoresCompleted() test.DirectoryPath, transferId1, 3 /* jobPartCount */, - StorageTransferStatus.Completed); + DataTransferStatus.Completed); string transferId2 = Guid.NewGuid().ToString(); factory.CreateStubJobPartPlanFilesAsync( test.DirectoryPath, transferId2, 3 /* jobPartCount */, - StorageTransferStatus.Queued); + DataTransferStatus.Queued); // Build TransferManager with the stored transfers TransferManagerOptions options = new TransferManagerOptions() { - CheckpointerOptions = new TransferCheckpointerOptions(test.DirectoryPath) + CheckpointerOptions = new TransferCheckpointStoreOptions(test.DirectoryPath) }; TransferManager manager = new TransferManager(options); @@ -326,7 +326,7 @@ private void AddTransferFromDataTransferProperties( checkpointerPath, properties.TransferId, numParts, /* jobPartCount */ - StorageTransferStatus.InProgress, + DataTransferStatus.InProgress, sourcePaths, destinationPaths, sourceResourceId: properties.SourceTypeId, @@ -338,7 +338,7 @@ private void AddTransferFromDataTransferProperties( checkpointerPath, properties.TransferId, 1, /* jobPartCount */ - StorageTransferStatus.InProgress, + DataTransferStatus.InProgress, new List { properties.SourcePath }, new List { properties.DestinationPath }, sourceResourceId: properties.SourceTypeId, diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/LocalDirectoryStorageResourceTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/LocalDirectoryStorageResourceTests.cs index 5006a7d0675a..ec4f590114e5 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/LocalDirectoryStorageResourceTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/LocalDirectoryStorageResourceTests.cs @@ -95,7 +95,7 @@ public async Task GetChildStorageResourceAsync() StorageResourceContainer containerResource = new LocalDirectoryStorageResourceContainer(folderPath); foreach (string fileName in fileNames) { - StorageResourceSingle resource = containerResource.GetChildStorageResource(fileName); + StorageResourceItem resource = containerResource.GetStorageResourceReference(fileName); // Assert await resource.GetPropertiesAsync().ConfigureAwait(false); } @@ -127,7 +127,7 @@ public async Task GetChildStorageResourceAsync_SubDir() StorageResourceContainer containerResource = new LocalDirectoryStorageResourceContainer(folderPath); foreach (string fileName in fileNames) { - StorageResourceSingle resource = containerResource.GetChildStorageResource(fileName); + StorageResourceItem resource = containerResource.GetStorageResourceReference(fileName); // Assert await resource.GetPropertiesAsync().ConfigureAwait(false); } diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/LocalFileStorageResourceTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/LocalFileStorageResourceTests.cs index 7acdb373b2f1..8f55986a03fe 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/LocalFileStorageResourceTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/LocalFileStorageResourceTests.cs @@ -98,7 +98,7 @@ public async Task ReadStreamAsync() // Act LocalFileStorageResource storageResource = new LocalFileStorageResource(path); - ReadStreamStorageResourceResult result = await storageResource.ReadStreamAsync(); + StorageResourceReadStreamResult result = await storageResource.ReadStreamAsync(); using Stream content = result.Content; // Assert @@ -120,7 +120,7 @@ public async Task ReadStreamAsync_Position() // Act var readPosition = 5; LocalFileStorageResource storageResource = new LocalFileStorageResource(path); - ReadStreamStorageResourceResult result = await storageResource.ReadStreamAsync(position: readPosition); + StorageResourceReadStreamResult result = await storageResource.ReadStreamAsync(position: readPosition); using Stream content = result.Content; // Assert @@ -163,7 +163,7 @@ public async Task WriteStreamAsync() using (var stream = new MemoryStream(data)) { // Act - await storageResource.WriteFromStreamAsync( + await storageResource.CopyFromStreamAsync( stream, streamLength: length, false, @@ -192,7 +192,7 @@ public async Task WriteStreamAsync_Position() using (var stream = new MemoryStream(data)) { // Act - await storageResource.WriteFromStreamAsync( + await storageResource.CopyFromStreamAsync( stream, streamLength: length, overwrite: false, @@ -220,7 +220,7 @@ public async Task WriteStreamAsync_Error() { using (var stream = new MemoryStream(data)) { - await storageResource.WriteFromStreamAsync(stream, length, false); + await storageResource.CopyFromStreamAsync(stream, length, false); } } catch (IOException ex) diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/LocalTransferCheckpointerFactory.cs b/sdk/storage/Azure.Storage.DataMovement/tests/LocalTransferCheckpointerFactory.cs index 43a5c22d98d2..255123d43b73 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/LocalTransferCheckpointerFactory.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/LocalTransferCheckpointerFactory.cs @@ -43,8 +43,8 @@ internal static readonly DateTimeOffset _testStartTime internal const JobPartDeleteSnapshotsOption _testDeleteSnapshotsOption = JobPartDeleteSnapshotsOption.None; internal const JobPartPermanentDeleteOption _testPermanentDeleteOption = JobPartPermanentDeleteOption.None; internal const JobPartPlanRehydratePriorityType _testRehydratePriorityType = JobPartPlanRehydratePriorityType.None; - internal const StorageTransferStatus _testJobStatus = StorageTransferStatus.Queued; - internal const StorageTransferStatus _testPartStatus = StorageTransferStatus.Queued; + internal const DataTransferStatus _testJobStatus = DataTransferStatus.Queued; + internal const DataTransferStatus _testPartStatus = DataTransferStatus.Queued; private string _checkpointerPath; @@ -89,7 +89,7 @@ internal void CreateStubJobPartPlanFilesAsync( string checkpointerPath, string transferId, int jobPartCount, - StorageTransferStatus status = StorageTransferStatus.Queued, + DataTransferStatus status = DataTransferStatus.Queued, List sourcePaths = default, List destinationPaths = default, string sourceResourceId = "LocalFile", @@ -185,8 +185,8 @@ internal JobPartPlanHeader CreateDefaultJobPartHeader( JobPartDeleteSnapshotsOption deleteSnapshotsOption = _testDeleteSnapshotsOption, JobPartPermanentDeleteOption permanentDeleteOption = _testPermanentDeleteOption, JobPartPlanRehydratePriorityType rehydratePriorityType = _testRehydratePriorityType, - StorageTransferStatus atomicJobStatus = _testJobStatus, - StorageTransferStatus atomicPartStatus = _testPartStatus) + DataTransferStatus atomicJobStatus = _testJobStatus, + DataTransferStatus atomicPartStatus = _testPartStatus) { if (startTime == default) { diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/LocalTransferCheckpointerTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/LocalTransferCheckpointerTests.cs index 9c32af576bd1..3c74cb43e158 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/LocalTransferCheckpointerTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/LocalTransferCheckpointerTests.cs @@ -906,7 +906,7 @@ public async Task SetJobTransferStatusAsync() string transferId = GetNewTransferId(); int partNumber = 0; int chunksTotal = 1; - StorageTransferStatus newStatus = StorageTransferStatus.Completed; + DataTransferStatus newStatus = DataTransferStatus.Completed; JobPartPlanHeader header = CheckpointerTesting.CreateDefaultJobPartHeader( transferId: transferId, partNumber: partNumber); @@ -948,7 +948,7 @@ public async Task SetJobTransferStatusAsync_MultipleParts() // Arrange string transferId = GetNewTransferId(); int chunksTotal = 1; - StorageTransferStatus newStatus = StorageTransferStatus.Completed; + DataTransferStatus newStatus = DataTransferStatus.Completed; JobPartPlanHeader header1 = CheckpointerTesting.CreateDefaultJobPartHeader( transferId: transferId, partNumber: 0); @@ -1057,7 +1057,7 @@ public void SetJobTransferStatusAsync_Error() // Arrange string transferId = GetNewTransferId(); int partNumber = 0; - StorageTransferStatus newStatus = StorageTransferStatus.Completed; + DataTransferStatus newStatus = DataTransferStatus.Completed; JobPartPlanHeader header = CheckpointerTesting.CreateDefaultJobPartHeader( transferId: transferId, partNumber: partNumber); @@ -1079,7 +1079,7 @@ public async Task SetJobPartTransferStatusAsync() int partNumber = 0; int chunksTotal = 1; // originally the default is set to Queued - StorageTransferStatus newStatus = StorageTransferStatus.Completed; + DataTransferStatus newStatus = DataTransferStatus.Completed; JobPartPlanHeader header = CheckpointerTesting.CreateDefaultJobPartHeader( transferId: transferId, partNumber: partNumber); @@ -1122,7 +1122,7 @@ public void SetJobPartTransferStatusAsync_Error() string transferId = GetNewTransferId(); int partNumber = 0; // originally the default is set to Queued - StorageTransferStatus newStatus = StorageTransferStatus.Completed; + DataTransferStatus newStatus = DataTransferStatus.Completed; JobPartPlanHeader header = CheckpointerTesting.CreateDefaultJobPartHeader( transferId: transferId, partNumber: partNumber); diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/MockStorageResource.cs b/sdk/storage/Azure.Storage.DataMovement/tests/MockStorageResource.cs index f9ed45d3c0e0..09911de1f596 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/MockStorageResource.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/MockStorageResource.cs @@ -9,13 +9,13 @@ namespace Azure.Storage.DataMovement.Tests { - internal class MockStorageResource : StorageResourceSingle + internal class MockStorageResource : StorageResourceItem { private readonly Stream _readStream; protected internal override string ResourceId => "Mock"; - protected internal override TransferType TransferType => TransferType.Sequential; + protected internal override DataTransferOrder TransferType => DataTransferOrder.Sequential; private readonly long _maxChunkSize; protected internal override long MaxChunkSize => _maxChunkSize; @@ -55,12 +55,12 @@ protected internal override Task CompleteTransferAsync(bool overwrite, Cancellat return Task.CompletedTask; } - protected internal override Task CopyBlockFromUriAsync(StorageResourceSingle sourceResource, HttpRange range, bool overwrite, long completeLength = 0, StorageResourceCopyFromUriOptions options = null, CancellationToken cancellationToken = default) + protected internal override Task CopyBlockFromUriAsync(StorageResourceItem sourceResource, HttpRange range, bool overwrite, long completeLength = 0, StorageResourceCopyFromUriOptions options = null, CancellationToken cancellationToken = default) { return Task.CompletedTask; } - protected internal override Task CopyFromUriAsync(StorageResourceSingle sourceResource, bool overwrite, long completeLength, StorageResourceCopyFromUriOptions options = null, CancellationToken cancellationToken = default) + protected internal override Task CopyFromUriAsync(StorageResourceItem sourceResource, bool overwrite, long completeLength, StorageResourceCopyFromUriOptions options = null, CancellationToken cancellationToken = default) { return Task.CompletedTask; } @@ -84,13 +84,13 @@ protected internal override Task GetCopyAuthorizationHeaderAs return Task.FromResult(default); } - protected internal override Task ReadStreamAsync(long position = 0, long? length = null, CancellationToken cancellationToken = default) + protected internal override Task ReadStreamAsync(long position = 0, long? length = null, CancellationToken cancellationToken = default) { _readStream.Position = 0; - return Task.FromResult(new ReadStreamStorageResourceResult(_readStream)); + return Task.FromResult(new StorageResourceReadStreamResult(_readStream)); } - protected internal override async Task WriteFromStreamAsync(Stream stream, long streamLength, bool overwrite, long position = 0, long completeLength = 0, StorageResourceWriteToOffsetOptions options = null, CancellationToken cancellationToken = default) + protected internal override async Task CopyFromStreamAsync(Stream stream, long streamLength, bool overwrite, long position = 0, long completeLength = 0, StorageResourceWriteToOffsetOptions options = null, CancellationToken cancellationToken = default) { await stream.CopyToAsync(Stream.Null); } diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/PageBlobStorageResourceTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/PageBlobStorageResourceTests.cs index 677acd5c1bd6..3f5443ac0d97 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/PageBlobStorageResourceTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/PageBlobStorageResourceTests.cs @@ -57,7 +57,7 @@ await blobClient.UploadPagesAsync( PageBlobStorageResource storageResource = new PageBlobStorageResource(blobClient); // Act - ReadStreamStorageResourceResult result = await storageResource.ReadStreamAsync(); + StorageResourceReadStreamResult result = await storageResource.ReadStreamAsync(); // Assert Assert.NotNull(result); @@ -85,7 +85,7 @@ await blobClient.UploadPagesAsync( PageBlobStorageResource storageResource = new PageBlobStorageResource(blobClient); // Act - ReadStreamStorageResourceResult result = await storageResource.ReadStreamAsync(position: readPosition); + StorageResourceReadStreamResult result = await storageResource.ReadStreamAsync(position: readPosition); // Assert Assert.NotNull(result); @@ -131,7 +131,7 @@ await blobClient.UploadPagesAsync( } // Act - ReadStreamStorageResourceResult result = + StorageResourceReadStreamResult result = await storageResource.ReadStreamAsync(position: 0, length: Constants.KB); // Assert @@ -152,7 +152,7 @@ public async Task WriteFromStreamAsync() using (var stream = new MemoryStream(data)) { // Act - await storageResource.WriteFromStreamAsync( + await storageResource.CopyFromStreamAsync( stream: stream, streamLength: length, completeLength: length, @@ -185,7 +185,7 @@ public async Task WriteFromStreamAsync_Position() using (var stream = new MemoryStream(data)) { // Act - await storageResource.WriteFromStreamAsync( + await storageResource.CopyFromStreamAsync( stream: stream, streamLength: length, overwrite: false, @@ -222,7 +222,7 @@ public async Task WriteFromStreamAsync_Error() { // Act await TestHelper.AssertExpectedExceptionAsync( - storageResource.WriteFromStreamAsync( + storageResource.CopyFromStreamAsync( stream: stream, overwrite: false, position: position, @@ -643,7 +643,7 @@ public async Task CompleteTransferAsync() var data = GetRandomBuffer(length); using (var stream = new MemoryStream(data)) { - await storageResource.WriteFromStreamAsync( + await storageResource.CopyFromStreamAsync( stream: stream, streamLength: length, completeLength: length, diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/PauseResumeTransferTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/PauseResumeTransferTests.cs index 91ea53299d76..ac86813f8634 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/PauseResumeTransferTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/PauseResumeTransferTests.cs @@ -37,18 +37,18 @@ private async Task AssertDirectorySourceAndDestinationAsync( BlobContainerClient sourceContainer, BlobContainerClient destinationContainer) { - await foreach (StorageResourceSingle childSourceResource in sourceResource.GetStorageResourcesAsync()) + await foreach (StorageResourceItem childSourceResource in sourceResource.GetStorageResourcesAsync()) { - StorageResourceSingle childDestinationResource; + StorageResourceItem childDestinationResource; if (transferType == TransferDirection.Upload) { string destinationChildName = childSourceResource.Path.Substring(sourceResource.Path.Length + 1); - childDestinationResource = destinationResource.GetChildStorageResource(destinationChildName); + childDestinationResource = destinationResource.GetStorageResourceReference(destinationChildName); } else { string destinationChildName = childSourceResource.Uri.AbsoluteUri.Substring(sourceResource.Uri.AbsoluteUri.Length + 1); - childDestinationResource = destinationResource.GetChildStorageResource(destinationChildName); + childDestinationResource = destinationResource.GetStorageResourceReference(destinationChildName); } await AssertSourceAndDestinationAsync( transferType: transferType, @@ -61,8 +61,8 @@ await AssertSourceAndDestinationAsync( private async Task AssertSourceAndDestinationAsync( TransferDirection transferType, - StorageResourceSingle sourceResource, - StorageResourceSingle destinationResource, + StorageResourceItem sourceResource, + StorageResourceItem destinationResource, BlobContainerClient sourceContainer, BlobContainerClient destinationContainer) { @@ -139,7 +139,7 @@ private BlockBlobStorageResource CreateBlobDestinationResource( return new BlockBlobStorageResource(destinationClient, options); } - private async Task<(StorageResourceSingle SourceResource, StorageResourceSingle DestinationResource)> CreateStorageResourcesAsync( + private async Task<(StorageResourceItem SourceResource, StorageResourceItem DestinationResource)> CreateStorageResourcesAsync( TransferDirection transferType, long size, string localDirectory, @@ -149,8 +149,8 @@ private BlockBlobStorageResource CreateBlobDestinationResource( { storagePath ??= GetNewBlobName(); - StorageResourceSingle SourceResource = default; - StorageResourceSingle DestinationResource = default; + StorageResourceItem SourceResource = default; + StorageResourceItem DestinationResource = default; if (transferType == TransferDirection.Download) { Argument.AssertNotNull(sourceContainer, nameof(sourceContainer)); @@ -188,15 +188,15 @@ private async Task CreateSingleLongTransferAsync( string localDirectory = default, BlobContainerClient sourceContainer = default, BlobContainerClient destinationContainer = default, - StorageResourceSingle sourceResource = default, - StorageResourceSingle destinationResource = default, - TransferOptions transferOptions = default, + StorageResourceItem sourceResource = default, + StorageResourceItem destinationResource = default, + DataTransferOptions transferOptions = default, long size = Constants.KB * 100) { Argument.AssertNotNull(manager, nameof(manager)); if (sourceResource == default && destinationResource == default) { - (StorageResourceSingle source, StorageResourceSingle dest) = await CreateStorageResourcesAsync( + (StorageResourceItem source, StorageResourceItem dest) = await CreateStorageResourcesAsync( transferType: transferType, size: size, localDirectory: localDirectory, @@ -230,11 +230,11 @@ public async Task TryPauseTransferAsync_Id(TransferDirection transferType) await using DisposingBlobContainer destinationContainer = await GetTestContainerAsync(); TransferManagerOptions options = new TransferManagerOptions() { - CheckpointerOptions = new TransferCheckpointerOptions(checkpointerDirectory.DirectoryPath), - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure, + CheckpointerOptions = new TransferCheckpointStoreOptions(checkpointerDirectory.DirectoryPath), + ErrorHandling = DataTransferErrorMode.ContinueOnFailure, }; TransferManager transferManager = new TransferManager(options); - TransferOptions transferOptions = new TransferOptions(); + DataTransferOptions transferOptions = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(transferOptions); // Add long-running job to pause, if the job is not big enough @@ -254,7 +254,7 @@ public async Task TryPauseTransferAsync_Id(TransferDirection transferType) // Assert await testEventsRaised.AssertPausedCheck(); - Assert.AreEqual(StorageTransferStatus.Paused, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Paused, transfer.TransferStatus); // Check if Job Plan File exists in checkpointer path. JobPartPlanFileName fileName = new JobPartPlanFileName( @@ -278,10 +278,10 @@ public async Task TryPauseTransferAsync_DataTransfer(TransferDirection transferT await using DisposingBlobContainer destinationContainer = await GetTestContainerAsync(); TransferManagerOptions options = new TransferManagerOptions() { - CheckpointerOptions = new TransferCheckpointerOptions(checkpointerDirectory.DirectoryPath), - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure + CheckpointerOptions = new TransferCheckpointStoreOptions(checkpointerDirectory.DirectoryPath), + ErrorHandling = DataTransferErrorMode.ContinueOnFailure }; - TransferOptions transferOptions = new TransferOptions(); + DataTransferOptions transferOptions = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(transferOptions); TransferManager transferManager = new TransferManager(options); @@ -302,7 +302,7 @@ public async Task TryPauseTransferAsync_DataTransfer(TransferDirection transferT // Assert await testEventsRaised.AssertPausedCheck(); - Assert.AreEqual(StorageTransferStatus.Paused, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Paused, transfer.TransferStatus); // Check if Job Plan File exists in checkpointer path. JobPartPlanFileName fileName = new JobPartPlanFileName( @@ -319,8 +319,8 @@ public void TryPauseTransferAsync_Error() using DisposingLocalDirectory checkpointerDirectory = DisposingLocalDirectory.GetTestDirectory(); TransferManagerOptions options = new TransferManagerOptions() { - CheckpointerOptions = new TransferCheckpointerOptions(checkpointerDirectory.DirectoryPath), - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure + CheckpointerOptions = new TransferCheckpointStoreOptions(checkpointerDirectory.DirectoryPath), + ErrorHandling = DataTransferErrorMode.ContinueOnFailure }; TransferManager transferManager = new TransferManager(options); @@ -342,10 +342,10 @@ public async Task TryPauseTransferAsync_AlreadyPaused(TransferDirection transfer await using DisposingBlobContainer destinationContainer = await GetTestContainerAsync(); TransferManagerOptions options = new TransferManagerOptions() { - CheckpointerOptions = new TransferCheckpointerOptions(checkpointerDirectory.DirectoryPath), - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure + CheckpointerOptions = new TransferCheckpointStoreOptions(checkpointerDirectory.DirectoryPath), + ErrorHandling = DataTransferErrorMode.ContinueOnFailure }; - TransferOptions transferOptions = new TransferOptions(); + DataTransferOptions transferOptions = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(transferOptions); TransferManager transferManager = new TransferManager(options); @@ -366,12 +366,12 @@ public async Task TryPauseTransferAsync_AlreadyPaused(TransferDirection transfer // Assert await testEventsRaised.AssertPausedCheck(); - Assert.AreEqual(StorageTransferStatus.Paused, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Paused, transfer.TransferStatus); CancellationTokenSource cancellationTokenSource2 = new CancellationTokenSource(TimeSpan.FromSeconds(10)); await transferManager.PauseTransferIfRunningAsync(transfer.Id, cancellationTokenSource2.Token); - Assert.AreEqual(StorageTransferStatus.Paused, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Paused, transfer.TransferStatus); // Check if Job Plan File exists in checkpointer path. JobPartPlanFileName fileName = new JobPartPlanFileName( @@ -396,22 +396,22 @@ public async Task PauseThenResumeTransferAsync(TransferDirection transferType) TransferManagerOptions options = new TransferManagerOptions() { - CheckpointerOptions = new TransferCheckpointerOptions(checkpointerDirectory.DirectoryPath), - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure + CheckpointerOptions = new TransferCheckpointStoreOptions(checkpointerDirectory.DirectoryPath), + ErrorHandling = DataTransferErrorMode.ContinueOnFailure }; - TransferOptions transferOptions = new TransferOptions(); + DataTransferOptions transferOptions = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(transferOptions); TransferManager transferManager = new TransferManager(options); long size = Constants.KB * 100; - (StorageResourceSingle sResource, StorageResourceSingle dResource) = await CreateStorageResourcesAsync( + (StorageResourceItem sResource, StorageResourceItem dResource) = await CreateStorageResourcesAsync( transferType: transferType, size: size, localDirectory: localDirectory.DirectoryPath, sourceContainer: sourceContainer.Container, destinationContainer: destinationContainer.Container); - StorageResourceSingle sourceResource = sResource; - StorageResourceSingle destinationResource = dResource; + StorageResourceItem sourceResource = sResource; + StorageResourceItem destinationResource = dResource; // Add long-running job to pause, if the job is not big enough // then the job might finish before we can pause it. @@ -426,11 +426,11 @@ public async Task PauseThenResumeTransferAsync(TransferDirection transferType) await transferManager.PauseTransferIfRunningAsync(transfer.Id, cancellationTokenSource.Token); // Assert - Confirm we've paused - Assert.AreEqual(StorageTransferStatus.Paused, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Paused, transfer.TransferStatus); await testEventsRaised.AssertPausedCheck(); // Act - Resume Job - TransferOptions resumeOptions = new TransferOptions(); + DataTransferOptions resumeOptions = new DataTransferOptions(); TestEventsRaised testEventRaised2 = new TestEventsRaised(resumeOptions); DataTransfer resumeTransfer = await transferManager.ResumeTransferAsync( transferId: transfer.Id, @@ -443,7 +443,7 @@ public async Task PauseThenResumeTransferAsync(TransferDirection transferType) // Assert await testEventRaised2.AssertSingleCompletedCheck(); - Assert.AreEqual(StorageTransferStatus.Completed, resumeTransfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, resumeTransfer.TransferStatus); Assert.IsTrue(resumeTransfer.HasCompleted); // Verify transfer @@ -470,15 +470,15 @@ public async Task ResumeTransferAsync(TransferDirection transferType) TransferManagerOptions options = new TransferManagerOptions() { - CheckpointerOptions = new TransferCheckpointerOptions(checkpointerDirectory.DirectoryPath), - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure + CheckpointerOptions = new TransferCheckpointStoreOptions(checkpointerDirectory.DirectoryPath), + ErrorHandling = DataTransferErrorMode.ContinueOnFailure }; - TransferOptions transferOptions = new TransferOptions(); + DataTransferOptions transferOptions = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(transferOptions); TransferManager transferManager = new TransferManager(options); long size = Constants.KB * 100; - (StorageResourceSingle sResource, StorageResourceSingle dResource) = await CreateStorageResourcesAsync( + (StorageResourceItem sResource, StorageResourceItem dResource) = await CreateStorageResourcesAsync( transferType: transferType, size: size, localDirectory: localDirectory.DirectoryPath, @@ -498,11 +498,11 @@ public async Task ResumeTransferAsync(TransferDirection transferType) await transferManager.PauseTransferIfRunningAsync(transfer.Id, cancellationTokenSource.Token); // Assert - Confirm we've paused - Assert.AreEqual(StorageTransferStatus.Paused, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Paused, transfer.TransferStatus); await testEventsRaised.AssertPausedCheck(); // Act - Resume Job - TransferOptions resumeOptions = new(); + DataTransferOptions resumeOptions = new(); TestEventsRaised testEventRaised2 = new TestEventsRaised(resumeOptions); DataTransfer resumeTransfer = await transferManager.ResumeTransferAsync( transfer.Id, @@ -515,7 +515,7 @@ public async Task ResumeTransferAsync(TransferDirection transferType) // Assert await testEventRaised2.AssertSingleCompletedCheck(); - Assert.AreEqual(StorageTransferStatus.Completed, resumeTransfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, resumeTransfer.TransferStatus); Assert.IsTrue(resumeTransfer.HasCompleted); // Verify transfer @@ -547,7 +547,7 @@ private async Task CreateBlobDirectorySourceResour } } options ??= new(); - options.DirectoryPrefix = directoryPath; + options.BlobDirectoryPrefix = directoryPath; return new BlobStorageResourceContainer(container, options); } @@ -591,7 +591,7 @@ private async Task CreateLocalDirectoryS Argument.AssertNotNull(destinationContainer, nameof(destinationContainer)); BlobStorageResourceContainerOptions options = new BlobStorageResourceContainerOptions() { - DirectoryPrefix = GetNewBlobDirectoryName(), + BlobDirectoryPrefix = GetNewBlobDirectoryName(), }; SourceResource ??= await CreateBlobDirectorySourceResourceAsync( size: size, @@ -612,7 +612,7 @@ private async Task CreateLocalDirectoryS BlobStorageResourceContainerOptions options = new() { - DirectoryPrefix = GetNewBlobDirectoryName() + BlobDirectoryPrefix = GetNewBlobDirectoryName() }; DestinationResource ??= new BlobStorageResourceContainer(destinationContainer, options); } @@ -634,7 +634,7 @@ private async Task CreateDirectoryLongTransferAsync( BlobContainerClient destinationContainer = default, StorageResourceContainer sourceResource = default, StorageResourceContainer destinationResource = default, - TransferOptions transferOptions = default, + DataTransferOptions transferOptions = default, int transferCount = 100, long size = Constants.MB) { @@ -678,11 +678,11 @@ public async Task TryPauseTransferAsync_Id_Directory(TransferDirection transferT await using DisposingBlobContainer destinationContainer = await GetTestContainerAsync(); TransferManagerOptions options = new TransferManagerOptions() { - CheckpointerOptions = new TransferCheckpointerOptions(checkpointerDirectory.DirectoryPath), - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure, + CheckpointerOptions = new TransferCheckpointStoreOptions(checkpointerDirectory.DirectoryPath), + ErrorHandling = DataTransferErrorMode.ContinueOnFailure, }; TransferManager transferManager = new TransferManager(options); - TransferOptions transferOptions = new TransferOptions(); + DataTransferOptions transferOptions = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(transferOptions); // Add long-running job to pause, if the job is not big enough @@ -705,7 +705,7 @@ public async Task TryPauseTransferAsync_Id_Directory(TransferDirection transferT // Assert await testEventsRaised.AssertPausedCheck(); - Assert.AreEqual(StorageTransferStatus.Paused, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Paused, transfer.TransferStatus); } [Ignore("https://github.com/Azure/azure-sdk-for-net/issues/35439")] @@ -723,11 +723,11 @@ public async Task TryPauseTransferAsync_DataTransfer_Directory(TransferDirection await using DisposingBlobContainer destinationContainer = await GetTestContainerAsync(); TransferManagerOptions options = new TransferManagerOptions() { - CheckpointerOptions = new TransferCheckpointerOptions(checkpointerDirectory.DirectoryPath), - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure, + CheckpointerOptions = new TransferCheckpointStoreOptions(checkpointerDirectory.DirectoryPath), + ErrorHandling = DataTransferErrorMode.ContinueOnFailure, }; TransferManager transferManager = new TransferManager(options); - TransferOptions transferOptions = new TransferOptions(); + DataTransferOptions transferOptions = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(transferOptions); // Add long-running job to pause, if the job is not big enough @@ -750,7 +750,7 @@ public async Task TryPauseTransferAsync_DataTransfer_Directory(TransferDirection // Assert await testEventsRaised.AssertPausedCheck(); - Assert.AreEqual(StorageTransferStatus.Paused, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Paused, transfer.TransferStatus); } [Ignore("https://github.com/Azure/azure-sdk-for-net/issues/35439")] @@ -768,11 +768,11 @@ public async Task TryPauseTransferAsync_AlreadyPaused_Directory(TransferDirectio await using DisposingBlobContainer destinationContainer = await GetTestContainerAsync(); TransferManagerOptions options = new TransferManagerOptions() { - CheckpointerOptions = new TransferCheckpointerOptions(checkpointerDirectory.DirectoryPath), - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure, + CheckpointerOptions = new TransferCheckpointStoreOptions(checkpointerDirectory.DirectoryPath), + ErrorHandling = DataTransferErrorMode.ContinueOnFailure, }; TransferManager transferManager = new TransferManager(options); - TransferOptions transferOptions = new TransferOptions(); + DataTransferOptions transferOptions = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(transferOptions); // Add long-running job to pause, if the job is not big enough @@ -795,13 +795,13 @@ public async Task TryPauseTransferAsync_AlreadyPaused_Directory(TransferDirectio // Assert await testEventsRaised.AssertPausedCheck(); - Assert.AreEqual(StorageTransferStatus.Paused, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Paused, transfer.TransferStatus); CancellationTokenSource cancellationTokenSource2 = new CancellationTokenSource(TimeSpan.FromSeconds(10)); await transferManager.PauseTransferIfRunningAsync(transfer.Id, cancellationTokenSource2.Token); await testEventsRaised.AssertPausedCheck(); - Assert.AreEqual(StorageTransferStatus.Paused, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Paused, transfer.TransferStatus); } [Ignore("https://github.com/Azure/azure-sdk-for-net/issues/35439")] @@ -819,11 +819,11 @@ public async Task PauseThenResumeTransferAsync_Directory(TransferDirection trans await using DisposingBlobContainer destinationContainer = await GetTestContainerAsync(publicAccessType: PublicAccessType.BlobContainer); TransferManagerOptions options = new TransferManagerOptions() { - CheckpointerOptions = new TransferCheckpointerOptions(checkpointerDirectory.DirectoryPath), - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure, + CheckpointerOptions = new TransferCheckpointStoreOptions(checkpointerDirectory.DirectoryPath), + ErrorHandling = DataTransferErrorMode.ContinueOnFailure, }; TransferManager transferManager = new TransferManager(options); - TransferOptions transferOptions = new TransferOptions(); + DataTransferOptions transferOptions = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(transferOptions); long size = Constants.KB * 4; int partCount = 4; @@ -852,11 +852,11 @@ public async Task PauseThenResumeTransferAsync_Directory(TransferDirection trans await transferManager.PauseTransferIfRunningAsync(transfer.Id, cancellationTokenSource.Token); // Assert - Confirm we've paused - Assert.AreEqual(StorageTransferStatus.Paused, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Paused, transfer.TransferStatus); await testEventsRaised.AssertPausedCheck(); // Act - Resume Job - TransferOptions resumeOptions = new TransferOptions(); + DataTransferOptions resumeOptions = new DataTransferOptions(); TestEventsRaised testEventRaised2 = new TestEventsRaised(resumeOptions); DataTransfer resumeTransfer = await transferManager.ResumeTransferAsync( transferId: transfer.Id, @@ -869,7 +869,7 @@ public async Task PauseThenResumeTransferAsync_Directory(TransferDirection trans // Assert await testEventRaised2.AssertContainerCompletedCheck(partCount); - Assert.AreEqual(StorageTransferStatus.Completed, resumeTransfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, resumeTransfer.TransferStatus); Assert.IsTrue(resumeTransfer.HasCompleted); // Verify transfer @@ -896,11 +896,11 @@ public async Task ResumeTransferAsync_Directory(TransferDirection transferType) await using DisposingBlobContainer destinationContainer = await GetTestContainerAsync(publicAccessType: PublicAccessType.BlobContainer); TransferManagerOptions options = new TransferManagerOptions() { - CheckpointerOptions = new TransferCheckpointerOptions(checkpointerDirectory.DirectoryPath), - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure, + CheckpointerOptions = new TransferCheckpointStoreOptions(checkpointerDirectory.DirectoryPath), + ErrorHandling = DataTransferErrorMode.ContinueOnFailure, }; TransferManager transferManager = new TransferManager(options); - TransferOptions transferOptions = new TransferOptions(); + DataTransferOptions transferOptions = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(transferOptions); long size = Constants.KB * 4; int partCount = 4; @@ -929,11 +929,11 @@ public async Task ResumeTransferAsync_Directory(TransferDirection transferType) await transferManager.PauseTransferIfRunningAsync(transfer.Id, cancellationTokenSource.Token); // Assert - Confirm we've paused - Assert.AreEqual(StorageTransferStatus.Paused, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Paused, transfer.TransferStatus); await testEventsRaised.AssertPausedCheck(); // Act - Resume Job - TransferOptions resumeOptions = new(); + DataTransferOptions resumeOptions = new(); TestEventsRaised testEventsRaised2 = new TestEventsRaised(resumeOptions); DataTransfer resumeTransfer = await transferManager.ResumeTransferAsync( transfer.Id, @@ -946,7 +946,7 @@ public async Task ResumeTransferAsync_Directory(TransferDirection transferType) // Assert await testEventsRaised2.AssertContainerCompletedCheck(partCount); - Assert.AreEqual(StorageTransferStatus.Completed, resumeTransfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, resumeTransfer.TransferStatus); Assert.IsTrue(resumeTransfer.HasCompleted); // Verify transfer @@ -964,15 +964,15 @@ public async Task PauseAllTriggersCorrectPauses() List> pausable = new(); List> unpausable = new(); TransferManager manager = new(); - foreach (StorageTransferStatus state in Enum.GetValues(typeof(StorageTransferStatus)).Cast()) + foreach (DataTransferStatus state in Enum.GetValues(typeof(DataTransferStatus)).Cast()) { - bool canPause = state == StorageTransferStatus.InProgress; + bool canPause = state == DataTransferStatus.InProgress; Mock transfer = new(MockBehavior.Loose) { CallBase = true, }; transfer.Setup(t => t.CanPause()).Returns(canPause); - transfer.Setup(t => t.PauseIfRunningAsync(_mockingToken)).Returns(Task.CompletedTask); + transfer.Setup(t => t.PauseAsync(_mockingToken)).Returns(Task.CompletedTask); if (canPause) { pausable.Add(transfer); @@ -988,7 +988,7 @@ public async Task PauseAllTriggersCorrectPauses() foreach (Mock transfer in pausable) { - transfer.Verify(t => t.PauseIfRunningAsync(_mockingToken), Times.Once()); + transfer.Verify(t => t.PauseAsync(_mockingToken), Times.Once()); } foreach (Mock transfer in pausable.Concat(unpausable)) { diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/ProgressHandlerAsserts.cs b/sdk/storage/Azure.Storage.DataMovement/tests/ProgressHandlerAsserts.cs index 553ccf9e261f..388e7beef562 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/ProgressHandlerAsserts.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/ProgressHandlerAsserts.cs @@ -11,7 +11,7 @@ namespace Azure.Storage.DataMovement.Tests internal static class ProgressHandlerAsserts { public static void AssertFileProgress( - IEnumerable updates, + IEnumerable updates, long fileCount, long skippedCount = 0, long failedCount = 0, @@ -32,23 +32,23 @@ public static void AssertFileProgress( continue; } - IEnumerable before = updates.Take(index); + IEnumerable before = updates.Take(index); AssertProgressUpdates(before, fileCount); - StorageTransferProgress lastBeforePause = before.Last(); + DataTransferProgress lastBeforePause = before.Last(); completed += lastBeforePause.CompletedCount; skipped += lastBeforePause.SkippedCount; failed += lastBeforePause.FailedCount; } // Grab the final set of updates (all the updates if there were no pauses) - IEnumerable finalUpdates = + IEnumerable finalUpdates = pauseIndexes.Length > 0 ? updates.Skip(pauseIndexes.Last()) : updates; AssertProgressUpdates(finalUpdates, fileCount); // Check final update for goal state - StorageTransferProgress final = finalUpdates.Last(); + DataTransferProgress final = finalUpdates.Last(); completed += final.CompletedCount; skipped += final.SkippedCount; failed += final.FailedCount; @@ -61,7 +61,7 @@ public static void AssertFileProgress( } public static void AssertBytesTransferred( - IEnumerable updates, + IEnumerable updates, long[] expectedUpdates) { IEnumerable bytesUpdates = updates.Select(x => x.BytesTransferred); @@ -77,12 +77,12 @@ public static void AssertBytesTransferred( CollectionAssert.AreEqual(expectedUpdates, actualUpdates); } - private static void AssertProgressUpdates(IEnumerable updates, long fileCount) + private static void AssertProgressUpdates(IEnumerable updates, long fileCount) { long completed = 0; long skipped = 0; long failed = 0; - foreach (StorageTransferProgress update in updates) + foreach (DataTransferProgress update in updates) { // Queued/InProgress should never be below zero or above total Assert.GreaterOrEqual(update.QueuedCount, 0); diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/ProgressHandlerTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/ProgressHandlerTests.cs index 8e46b8fa267e..a2bea0c44de3 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/ProgressHandlerTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/ProgressHandlerTests.cs @@ -114,26 +114,26 @@ private async Task TransferAndAssertProgress( int skippedCount = 0, int failedCount = 0, TransferManagerOptions transferManagerOptions = default, - TransferOptions transferOptions = default, + DataTransferOptions transferOptions = default, ProgressHandlerOptions progressHandlerOptions = default, - StorageResourceCreateMode createMode = StorageResourceCreateMode.Overwrite, + StorageResourceCreationPreference createMode = StorageResourceCreationPreference.OverwriteIfExists, int waitTime = 30) { transferManagerOptions ??= new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure + ErrorHandling = DataTransferErrorMode.ContinueOnFailure }; TransferManager transferManager = new TransferManager(transferManagerOptions); TestProgressHandler progressHandler = new TestProgressHandler(); - transferOptions ??= new TransferOptions(); + transferOptions ??= new DataTransferOptions(); transferOptions.ProgressHandler = progressHandler; transferOptions.ProgressHandlerOptions = progressHandlerOptions ?? new ProgressHandlerOptions() { TrackBytesTransferred = true }; - transferOptions.CreateMode = createMode; + transferOptions.CreationPreference = createMode; DataTransfer transfer = await transferManager.StartTransferAsync(source, destination, transferOptions); CancellationTokenSource tokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(waitTime)); @@ -214,9 +214,9 @@ await TransferAndAssertProgress( [Test] [LiveOnly] // https://github.com/Azure/azure-sdk-for-net/issues/33082 - [TestCase(StorageResourceCreateMode.Skip)] - [TestCase(StorageResourceCreateMode.Fail)] - public async Task ProgressHandler_Conflict(StorageResourceCreateMode createMode) + [TestCase(StorageResourceCreationPreference.SkipIfExists)] + [TestCase(StorageResourceCreationPreference.FailIfExists)] + public async Task ProgressHandler_Conflict(StorageResourceCreationPreference createMode) { // Arrange using DisposingLocalDirectory source = DisposingLocalDirectory.GetTestDirectory(); @@ -239,8 +239,8 @@ await TransferAndAssertProgress( destinationResource, _expectedBytesTransferred.Take(_expectedBytesTransferred.Length - 2).ToArray(), fileCount: 5, - skippedCount: createMode == StorageResourceCreateMode.Skip ? 2 : 0, - failedCount: createMode == StorageResourceCreateMode.Fail ? 2 : 0, + skippedCount: createMode == StorageResourceCreationPreference.SkipIfExists ? 2 : 0, + failedCount: createMode == StorageResourceCreationPreference.FailIfExists ? 2 : 0, createMode: createMode); } @@ -284,10 +284,10 @@ public async Task ProgressHandler_Chunks(TransferDirection transferType) TransferManagerOptions transferManagerOptions = new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.StopOnAllFailures, + ErrorHandling = DataTransferErrorMode.StopOnAnyFailure, MaximumConcurrency = 3 }; - TransferOptions transferOptions = new TransferOptions() + DataTransferOptions transferOptions = new DataTransferOptions() { InitialTransferSize = chunkSize, MaximumTransferChunkSize = chunkSize @@ -325,7 +325,7 @@ public async Task ProgressHandler_PauseResume(int delayInMs) TransferManager transferManager = new TransferManager(); TestProgressHandler progressHandler = new TestProgressHandler(); - TransferOptions transferOptions = new TransferOptions() + DataTransferOptions transferOptions = new DataTransferOptions() { ProgressHandler = progressHandler, ProgressHandlerOptions = new ProgressHandlerOptions() @@ -344,7 +344,7 @@ public async Task ProgressHandler_PauseResume(int delayInMs) // Pause transfer CancellationTokenSource tokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(30)); await transferManager.PauseTransferIfRunningAsync(transfer.Id, tokenSource.Token); - Assert.AreEqual(StorageTransferStatus.Paused, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Paused, transfer.TransferStatus); // Record the current number of progress updates to use during assertions int pause = progressHandler.Updates.Count; @@ -360,7 +360,7 @@ public async Task ProgressHandler_PauseResume(int delayInMs) await resumeTransfer.WaitForCompletionAsync(tokenSource.Token); // Assert - Assert.AreEqual(StorageTransferStatus.Completed, resumeTransfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, resumeTransfer.TransferStatus); ProgressHandlerAsserts.AssertFileProgress(progressHandler.Updates, 5, pauseIndexes: pause); ProgressHandlerAsserts.AssertBytesTransferred(progressHandler.Updates, _expectedBytesTransferred); } diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/RehydrateStorageResourceTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/RehydrateStorageResourceTests.cs index 2239cf8bfdf9..6b29e052140d 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/RehydrateStorageResourceTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/RehydrateStorageResourceTests.cs @@ -65,7 +65,7 @@ private static Mock GetProperties( { var mock = new Mock(MockBehavior.Strict); mock.Setup(p => p.TransferId).Returns(transferId); - mock.Setup(p => p.Checkpointer).Returns(new TransferCheckpointerOptions(checkpointerPath)); + mock.Setup(p => p.Checkpointer).Returns(new TransferCheckpointStoreOptions(checkpointerPath)); mock.Setup(p => p.SourcePath).Returns(sourcePath); mock.Setup(p => p.DestinationPath).Returns(destinationPath); mock.Setup(p => p.SourceTypeId).Returns(sourceResourceId); @@ -154,7 +154,7 @@ private StorageResource LocalStorageResourcesInlineTryGet(DataTransferProperties { return null; } - return getSource ? sourceProvider.MakeResource() : destinationProvider.MakeResource(); + return getSource ? sourceProvider.CreateResource() : destinationProvider.CreateResource(); } [Test] @@ -194,7 +194,7 @@ await AddJobPartToCheckpointer( { RehydrateApi.ResourceStaticApi => LocalFileStorageResource.RehydrateResource(transferProperties, isSource), RehydrateApi.ProviderInstance => (LocalFileStorageResource)new LocalStorageResourceProvider( - transferProperties, isSource, isFolder: false).MakeResource(), + transferProperties, isSource, isFolder: false).CreateResource(), RehydrateApi.PublicStaticApi => (LocalFileStorageResource)LocalStorageResourcesInlineTryGet( transferProperties, isSource), _ => throw new ArgumentException("Unrecognized test parameter"), @@ -250,7 +250,7 @@ await AddJobPartToCheckpointer( { RehydrateApi.ResourceStaticApi => LocalDirectoryStorageResourceContainer.RehydrateResource(transferProperties, isSource), RehydrateApi.ProviderInstance => (LocalDirectoryStorageResourceContainer)new LocalStorageResourceProvider( - transferProperties, isSource, isFolder: true).MakeResource(), + transferProperties, isSource, isFolder: true).CreateResource(), RehydrateApi.PublicStaticApi => (LocalDirectoryStorageResourceContainer)LocalStorageResourcesInlineTryGet( transferProperties, isSource), _ => throw new ArgumentException("Unrecognized test parameter"), diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/Shared/CheckpointerTesting.cs b/sdk/storage/Azure.Storage.DataMovement/tests/Shared/CheckpointerTesting.cs index 354677c3d6b8..0e28efccc35d 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/Shared/CheckpointerTesting.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/Shared/CheckpointerTesting.cs @@ -43,8 +43,8 @@ internal static readonly DateTimeOffset DefaultStartTime internal const JobPartDeleteSnapshotsOption DefaultDeleteSnapshotsOption = JobPartDeleteSnapshotsOption.None; internal const JobPartPermanentDeleteOption DefaultPermanentDeleteOption = JobPartPermanentDeleteOption.None; internal const JobPartPlanRehydratePriorityType DefaultRehydratePriorityType = JobPartPlanRehydratePriorityType.None; - internal const StorageTransferStatus DefaultJobStatus = StorageTransferStatus.Queued; - internal const StorageTransferStatus DefaultPartStatus = StorageTransferStatus.Queued; + internal const DataTransferStatus DefaultJobStatus = DataTransferStatus.Queued; + internal const DataTransferStatus DefaultPartStatus = DataTransferStatus.Queued; internal static JobPartPlanHeader CreateDefaultJobPartHeader( string version = DataMovementConstants.PlanFile.SchemaVersion, @@ -92,8 +92,8 @@ internal static JobPartPlanHeader CreateDefaultJobPartHeader( JobPartDeleteSnapshotsOption deleteSnapshotsOption = DefaultDeleteSnapshotsOption, JobPartPermanentDeleteOption permanentDeleteOption = DefaultPermanentDeleteOption, JobPartPlanRehydratePriorityType rehydratePriorityType = DefaultRehydratePriorityType, - StorageTransferStatus atomicJobStatus = DefaultJobStatus, - StorageTransferStatus atomicPartStatus = DefaultPartStatus) + DataTransferStatus atomicJobStatus = DefaultJobStatus, + DataTransferStatus atomicPartStatus = DefaultPartStatus) { if (startTime == default) { diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferCheckpointerTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferCheckpointerTests.cs index 8660ede55bec..108e47e04b5d 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferCheckpointerTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferCheckpointerTests.cs @@ -66,18 +66,18 @@ public async Task CheckpointerWithSasAsync() .GetBlobContainerClient(containerName) .GetBlockBlobClient(destinationBlobName)); - StorageResourceSingle sourceResource = new BlockBlobStorageResource(sasSourceBlob); - StorageResourceSingle destinationResource = new BlockBlobStorageResource(sasDestinationBlob); + StorageResourceItem sourceResource = new BlockBlobStorageResource(sasSourceBlob); + StorageResourceItem destinationResource = new BlockBlobStorageResource(sasDestinationBlob); TransferManagerOptions managerOptions = new TransferManagerOptions() { - CheckpointerOptions = new TransferCheckpointerOptions(disposingLocalDirectory.DirectoryPath) + CheckpointerOptions = new TransferCheckpointStoreOptions(disposingLocalDirectory.DirectoryPath) }; TransferManager transferManager = new TransferManager(managerOptions); - TransferOptions transferOptions = new TransferOptions() + DataTransferOptions transferOptions = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail + CreationPreference = StorageResourceCreationPreference.FailIfExists }; // Start transfer and await for completion. This transfer will fail @@ -126,18 +126,18 @@ public async Task CheckpointerMismatch_Source() string destinationBlobName = GetNewBlobName(); BlockBlobClient destinationBlob = await CreateBlockBlob(test.Container, Path.GetTempFileName(), destinationBlobName, Constants.KB * 4); - StorageResourceSingle sourceResource = new BlockBlobStorageResource(sourceBlob); - StorageResourceSingle destinationResource = new BlockBlobStorageResource(destinationBlob); + StorageResourceItem sourceResource = new BlockBlobStorageResource(sourceBlob); + StorageResourceItem destinationResource = new BlockBlobStorageResource(destinationBlob); TransferManagerOptions managerOptions = new TransferManagerOptions() { - CheckpointerOptions = new TransferCheckpointerOptions(disposingLocalDirectory.DirectoryPath) + CheckpointerOptions = new TransferCheckpointStoreOptions(disposingLocalDirectory.DirectoryPath) }; TransferManager transferManager = new TransferManager(managerOptions); - TransferOptions transferOptions = new TransferOptions() + DataTransferOptions transferOptions = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail + CreationPreference = StorageResourceCreationPreference.FailIfExists }; // Start transfer and await for completion. @@ -151,7 +151,7 @@ public async Task CheckpointerMismatch_Source() // Act/Assert - resume transfer with wrong source resource. BlockBlobClient newSourceBlob = test.Container.GetBlockBlobClient(GetNewBlobName()); - StorageResourceSingle wrongSourceResource = new BlockBlobStorageResource(newSourceBlob); + StorageResourceItem wrongSourceResource = new BlockBlobStorageResource(newSourceBlob); Assert.CatchAsync( async () => await transferManager.ResumeTransferAsync( @@ -180,18 +180,18 @@ public async Task CheckpointerMismatch_Destination() string destinationBlobName = GetNewBlobName(); BlockBlobClient destinationBlob = await CreateBlockBlob(test.Container, Path.GetTempFileName(), destinationBlobName, Constants.KB * 4); - StorageResourceSingle sourceResource = new BlockBlobStorageResource(sourceBlob); - StorageResourceSingle destinationResource = new BlockBlobStorageResource(destinationBlob); + StorageResourceItem sourceResource = new BlockBlobStorageResource(sourceBlob); + StorageResourceItem destinationResource = new BlockBlobStorageResource(destinationBlob); TransferManagerOptions managerOptions = new TransferManagerOptions() { - CheckpointerOptions = new TransferCheckpointerOptions(disposingLocalDirectory.DirectoryPath) + CheckpointerOptions = new TransferCheckpointStoreOptions(disposingLocalDirectory.DirectoryPath) }; TransferManager transferManager = new TransferManager(managerOptions); - TransferOptions transferOptions = new TransferOptions() + DataTransferOptions transferOptions = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail + CreationPreference = StorageResourceCreationPreference.FailIfExists }; // Start transfer and await for completion. @@ -205,7 +205,7 @@ public async Task CheckpointerMismatch_Destination() // Act/Assert - resume transfer with wrong destination resource. BlockBlobClient newDestinationBlob = test.Container.GetBlockBlobClient(GetNewBlobName()); - StorageResourceSingle wrongDestinationResource = new BlockBlobStorageResource(newDestinationBlob); + StorageResourceItem wrongDestinationResource = new BlockBlobStorageResource(newDestinationBlob); Assert.CatchAsync( async () => await transferManager.ResumeTransferAsync( @@ -234,18 +234,18 @@ public async Task CheckpointerMismatch_CreateMode_Overwrite() string destinationBlobName = GetNewBlobName(); BlockBlobClient destinationBlob = await CreateBlockBlob(test.Container, Path.GetTempFileName(), destinationBlobName, Constants.KB * 4); - StorageResourceSingle sourceResource = new BlockBlobStorageResource(sourceBlob); - StorageResourceSingle destinationResource = new BlockBlobStorageResource(destinationBlob); + StorageResourceItem sourceResource = new BlockBlobStorageResource(sourceBlob); + StorageResourceItem destinationResource = new BlockBlobStorageResource(destinationBlob); TransferManagerOptions managerOptions = new TransferManagerOptions() { - CheckpointerOptions = new TransferCheckpointerOptions(disposingLocalDirectory.DirectoryPath) + CheckpointerOptions = new TransferCheckpointStoreOptions(disposingLocalDirectory.DirectoryPath) }; TransferManager transferManager = new TransferManager(managerOptions); - TransferOptions transferOptions = new TransferOptions() + DataTransferOptions transferOptions = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail + CreationPreference = StorageResourceCreationPreference.FailIfExists }; // Start transfer and await for completion. @@ -258,9 +258,9 @@ public async Task CheckpointerMismatch_CreateMode_Overwrite() await transfer.WaitForCompletionAsync(cancellationTokenSource.Token).ConfigureAwait(false); // Act/Assert - resume transfer with wrong CreateMode Resource - TransferOptions resumeTransferOptions = new TransferOptions() + DataTransferOptions resumeTransferOptions = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite, + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists, }; Assert.CatchAsync( @@ -271,7 +271,7 @@ public async Task CheckpointerMismatch_CreateMode_Overwrite() resumeTransferOptions), Errors.MismatchResumeCreateMode( false, - StorageResourceCreateMode.Overwrite).Message); + StorageResourceCreationPreference.OverwriteIfExists).Message); } } } diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferDownloadDirectoryTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferDownloadDirectoryTests.cs index bec270bd110c..e3c7b3212169 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferDownloadDirectoryTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferDownloadDirectoryTests.cs @@ -48,22 +48,22 @@ private async Task DownloadBlobDirectoryAndVerify( string destinationLocalPath, int waitTimeInSec = 30, TransferManagerOptions transferManagerOptions = default, - TransferOptions options = default) + DataTransferOptions options = default) { // Set transfer options - options ??= new TransferOptions(); + options ??= new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(options); transferManagerOptions ??= new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure + ErrorHandling = DataTransferErrorMode.ContinueOnFailure }; // Initialize transferManager TransferManager transferManager = new TransferManager(transferManagerOptions); StorageResourceContainer sourceResource = - new BlobStorageResourceContainer(sourceContainer, new() { DirectoryPrefix = sourceBlobPrefix }); + new BlobStorageResourceContainer(sourceContainer, new() { BlobDirectoryPrefix = sourceBlobPrefix }); StorageResourceContainer destinationResource = new LocalDirectoryStorageResourceContainer(destinationLocalPath); @@ -75,7 +75,7 @@ private async Task DownloadBlobDirectoryAndVerify( await testEventsRaised.AssertContainerCompletedCheck(sourceFiles.Count); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.Completed, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, transfer.TransferStatus); // List all files in source blob folder path List blobNames = new List(); @@ -208,11 +208,11 @@ public async Task DownloadDirectoryAsync_Empty() // Initialize transferManager TransferManager transferManager = new TransferManager(); - TransferOptions options = new TransferOptions(); + DataTransferOptions options = new DataTransferOptions(); TestEventsRaised testEventRaised = new TestEventsRaised(options); StorageResourceContainer sourceResource = - new BlobStorageResourceContainer(test.Container, new() { DirectoryPrefix = sourceBlobDirectoryName }); + new BlobStorageResourceContainer(test.Container, new() { BlobDirectoryPrefix = sourceBlobDirectoryName }); StorageResourceContainer destinationResource = new LocalDirectoryStorageResourceContainer(destinationFolder); @@ -221,7 +221,7 @@ public async Task DownloadDirectoryAsync_Empty() await transfer.WaitForCompletionAsync(cancellationTokenSource.Token); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.Completed, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, transfer.TransferStatus); List localItemsAfterDownload = Directory.GetFiles(destinationFolder, "*", SearchOption.AllDirectories).ToList(); @@ -382,10 +382,10 @@ public async Task DownloadDirectoryAsync_SmallChunks_ManyFiles() TransferManagerOptions transferManagerOptions = new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.StopOnAllFailures, + ErrorHandling = DataTransferErrorMode.StopOnAnyFailure, MaximumConcurrency = 3 }; - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { InitialTransferSize = 512, MaximumTransferChunkSize = 512 @@ -464,7 +464,7 @@ private async Task CreateStartTransfer( BlobContainerClient containerClient, string destinationFolder, int concurrency, - TransferOptions options = default, + DataTransferOptions options = default, int size = Constants.KB) { // Arrange @@ -473,7 +473,7 @@ private async Task CreateStartTransfer( await CreateBlobDirectoryTree(containerClient, sourceFolderPath, sourceBlobPrefix, size); // Create storage resources - StorageResourceContainer sourceResource = new BlobStorageResourceContainer(containerClient, new() { DirectoryPrefix = sourceBlobPrefix }); + StorageResourceContainer sourceResource = new BlobStorageResourceContainer(containerClient, new() { BlobDirectoryPrefix = sourceBlobPrefix }); StorageResourceContainer destinationResource = new LocalDirectoryStorageResourceContainer(destinationFolder); // Create Transfer Manager with single threaded operation @@ -500,7 +500,7 @@ public async Task StartTransfer_AwaitCompletion() string destinationFolder = CreateRandomDirectory(testDirectory.DirectoryPath); // Create transfer to do a AwaitCompletion - TransferOptions options = new TransferOptions(); + DataTransferOptions options = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(options); DataTransfer transfer = await CreateStartTransfer( test.Container, @@ -515,7 +515,7 @@ public async Task StartTransfer_AwaitCompletion() // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.Completed, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, transfer.TransferStatus); await testEventsRaised.AssertContainerCompletedCheck(4); } @@ -528,9 +528,9 @@ public async Task StartTransfer_AwaitCompletion_Failed() using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); string destinationFolder = CreateRandomDirectory(testDirectory.DirectoryPath); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail + CreationPreference = StorageResourceCreationPreference.FailIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -551,7 +551,7 @@ public async Task StartTransfer_AwaitCompletion_Failed() // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); Assert.IsTrue(testEventsRaised.FailedEvents.First().Exception.Message.Contains("Cannot overwrite file.")); await testEventsRaised.AssertContainerCompletedWithFailedCheck(1); } @@ -566,9 +566,9 @@ public async Task StartTransfer_AwaitCompletion_Skipped() string destinationFolder = CreateRandomDirectory(testDirectory.DirectoryPath); // Create transfer options with Skipping available - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Skip + CreationPreference = StorageResourceCreationPreference.SkipIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -589,7 +589,7 @@ public async Task StartTransfer_AwaitCompletion_Skipped() // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); await testEventsRaised.AssertContainerCompletedWithSkippedCheck(1); } @@ -603,7 +603,7 @@ public async Task StartTransfer_EnsureCompleted() string destinationFolder = CreateRandomDirectory(testDirectory.DirectoryPath); // Create transfer to do a EnsureCompleted - TransferOptions options = new TransferOptions(); + DataTransferOptions options = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(options); DataTransfer transfer = await CreateStartTransfer( @@ -614,12 +614,12 @@ public async Task StartTransfer_EnsureCompleted() // Act CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(30)); - transfer.EnsureCompleted(cancellationTokenSource.Token); + transfer.WaitForCompletion(cancellationTokenSource.Token); // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.Completed, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, transfer.TransferStatus); await testEventsRaised.AssertContainerCompletedCheck(4); } @@ -632,9 +632,9 @@ public async Task StartTransfer_EnsureCompleted_Failed() using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); string destinationFolder = CreateRandomDirectory(testDirectory.DirectoryPath); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail + CreationPreference = StorageResourceCreationPreference.FailIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -650,12 +650,12 @@ public async Task StartTransfer_EnsureCompleted_Failed() // Act CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(30)); - transfer.EnsureCompleted(cancellationTokenSource.Token); + transfer.WaitForCompletion(cancellationTokenSource.Token); // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); Assert.IsTrue(testEventsRaised.FailedEvents.First().Exception.Message.Contains("Cannot overwrite file.")); await testEventsRaised.AssertContainerCompletedWithFailedCheck(1); } @@ -670,9 +670,9 @@ public async Task StartTransfer_EnsureCompleted_Skipped() string destinationFolder = CreateRandomDirectory(testDirectory.DirectoryPath); // Create transfer options with Skipping available - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Skip + CreationPreference = StorageResourceCreationPreference.SkipIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -688,12 +688,12 @@ public async Task StartTransfer_EnsureCompleted_Skipped() // Act CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(30)); - transfer.EnsureCompleted(cancellationTokenSource.Token); + transfer.WaitForCompletion(cancellationTokenSource.Token); // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); await testEventsRaised.AssertContainerCompletedWithSkippedCheck(1); } @@ -706,9 +706,9 @@ public async Task StartTransfer_EnsureCompleted_Failed_SmallChunks() using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); string destinationFolder = CreateRandomDirectory(testDirectory.DirectoryPath); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail, + CreationPreference = StorageResourceCreationPreference.FailIfExists, InitialTransferSize = 512, MaximumTransferChunkSize = 512 }; @@ -727,12 +727,12 @@ public async Task StartTransfer_EnsureCompleted_Failed_SmallChunks() // Act CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(30)); - transfer.EnsureCompleted(cancellationTokenSource.Token); + transfer.WaitForCompletion(cancellationTokenSource.Token); // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); Assert.IsTrue(testEventsRaised.FailedEvents.First().Exception.Message.Contains("Cannot overwrite file.")); await testEventsRaised.AssertContainerCompletedWithFailedCheck(1); } diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferDownloadTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferDownloadTests.cs index 2787ab92d2ba..ee0478b07acc 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferDownloadTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferDownloadTests.cs @@ -73,7 +73,7 @@ private async Task DownloadBlockBlobsAndVerify( int blobCount = 1, TransferManagerOptions transferManagerOptions = default, List blobNames = default, - List options = default) + List options = default) { using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); // Populate blobNames list for number of blobs to be created @@ -96,7 +96,7 @@ private async Task DownloadBlockBlobsAndVerify( transferManagerOptions ??= new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure + ErrorHandling = DataTransferErrorMode.ContinueOnFailure }; List downloadedBlobInfo = new List(blobCount); @@ -114,10 +114,10 @@ private async Task DownloadBlockBlobsAndVerify( await CreateBlockBlob(container, localSourceFile, blobNames[i], size); // Set up event handler for the respective blob - options[i].TransferStatus += (TransferStatusEventArgs args) => + options[i].TransferStatusChanged += (TransferStatusEventArgs args) => { // Assert - if (args.StorageTransferStatus == StorageTransferStatus.Completed) + if (args.StorageTransferStatus == DataTransferStatus.Completed) { completed = true; } @@ -147,8 +147,8 @@ private async Task DownloadBlockBlobsAndVerify( BlobName = blobNames[i] }; BlockBlobClient sourceBlobClient = InstrumentClient(new BlockBlobClient(blobUriBuilder.ToUri(), credential, GetOptions(true))); - StorageResourceSingle sourceResource = new BlockBlobStorageResource(sourceBlobClient); - StorageResourceSingle destinationResource = new LocalFileStorageResource(downloadedBlobInfo[i].DestinationLocalPath); + StorageResourceItem sourceResource = new BlockBlobStorageResource(sourceBlobClient); + StorageResourceItem destinationResource = new LocalFileStorageResource(downloadedBlobInfo[i].DestinationLocalPath); // Act DataTransfer transfer = await transferManager.StartTransferAsync( @@ -169,7 +169,7 @@ private async Task DownloadBlockBlobsAndVerify( // Verify Download await downloadedBlobInfo[i].EventsRaised.AssertSingleCompletedCheck(); - Assert.AreEqual(StorageTransferStatus.Completed, downloadedBlobInfo[i].DataTransfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, downloadedBlobInfo[i].DataTransfer.TransferStatus); CheckDownloadFile(downloadedBlobInfo[i].SourceLocalPath, downloadedBlobInfo[i].DestinationLocalPath); }; } @@ -204,11 +204,11 @@ public async Task BlockBlobToLocal_Overwrite_Exists() // Act // Create options bag to overwrite any existing destination. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite, + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists, }; - List optionsList = new List { options }; + List optionsList = new List { options }; await DownloadBlockBlobsAndVerify( testContainer.Container, waitTimeInSec: 10, @@ -226,11 +226,11 @@ public async Task BlockBlobToLocal_Overwrite_NotExists() // Act // Create options bag to overwrite any existing destination. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite, + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists, }; - List optionsList = new List { options }; + List optionsList = new List { options }; await DownloadBlockBlobsAndVerify( testContainer.Container, waitTimeInSec: 10, @@ -258,11 +258,11 @@ public async Task BlockBlobToLocal_Skip_Exists() // Act // Create options bag to overwrite any existing destination. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Skip, + CreationPreference = StorageResourceCreationPreference.SkipIfExists, }; - options.TransferSkipped += (TransferSkippedEventArgs args) => + options.ItemTransferSkipped += (TransferItemSkippedEventArgs args) => { if (args.SourceResource != null && args.DestinationResource != null && @@ -285,7 +285,7 @@ public async Task BlockBlobToLocal_Skip_Exists() // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); Assert.IsTrue(skippedSeen); FileInfo destFileInfo = new FileInfo(destFile); Assert.IsTrue(destFileInfo.Length == 0); @@ -307,13 +307,13 @@ public async Task BlockBlobToLocal_Failure_Exists() // Act // Create options bag to fail and keep track of the failure. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail, + CreationPreference = StorageResourceCreationPreference.FailIfExists, }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); - StorageResourceSingle sourceResource = new BlockBlobStorageResource(sourceClient); - StorageResourceSingle destinationResource = new LocalFileStorageResource(destFile); + StorageResourceItem sourceResource = new BlockBlobStorageResource(sourceClient); + StorageResourceItem destinationResource = new LocalFileStorageResource(destFile); TransferManager transferManager = new TransferManager(); // Start transfer and await for completion. @@ -327,7 +327,7 @@ public async Task BlockBlobToLocal_Failure_Exists() // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); await testEventsRaised.AssertSingleFailedCheck(); FileInfo destFileInfo = new FileInfo(destFile); Assert.IsTrue(destFileInfo.Length == 0); @@ -340,7 +340,7 @@ public async Task BlockBlobToLocal_SmallChunk() { long size = Constants.KB; int waitTimeInSec = 25; - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { InitialTransferSize = 100, MaximumTransferChunkSize = 200, @@ -349,7 +349,7 @@ public async Task BlockBlobToLocal_SmallChunk() // Arrange await using DisposingBlobContainer testContainer = await GetTestContainerAsync(); - List optionsList = new List() { options }; + List optionsList = new List() { options }; await DownloadBlockBlobsAndVerify( testContainer.Container, waitTimeInSec: waitTimeInSec, @@ -435,19 +435,19 @@ public async Task BlockBlobToLocal_SmallConcurrency(int concurrency, int size, i { TransferManagerOptions managerOptions = new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure, + ErrorHandling = DataTransferErrorMode.ContinueOnFailure, MaximumConcurrency = concurrency, }; // Arrange await using DisposingBlobContainer testContainer = await GetTestContainerAsync(); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { InitialTransferSize = 512, MaximumTransferChunkSize = 512, }; - List optionsList = new List() { options }; + List optionsList = new List() { options }; await DownloadBlockBlobsAndVerify( testContainer.Container, @@ -468,7 +468,7 @@ public async Task BlockBlobToLocal_LargeConcurrency(int concurrency, int size, i { TransferManagerOptions managerOptions = new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure, + ErrorHandling = DataTransferErrorMode.ContinueOnFailure, MaximumConcurrency = concurrency, }; @@ -500,7 +500,7 @@ private async Task DownloadAppendBlobsAndVerify( int blobCount = 1, TransferManagerOptions transferManagerOptions = default, List blobNames = default, - List options = default) + List options = default) { using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); @@ -524,7 +524,7 @@ private async Task DownloadAppendBlobsAndVerify( transferManagerOptions ??= new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure + ErrorHandling = DataTransferErrorMode.ContinueOnFailure }; List downloadedBlobInfo = new List(blobCount); @@ -565,8 +565,8 @@ private async Task DownloadAppendBlobsAndVerify( BlobName = blobNames[i] }; AppendBlobClient sourceBlobClient = InstrumentClient(new AppendBlobClient(blobUriBuilder.ToUri(), credential, GetOptions(true))); - StorageResourceSingle sourceResource = new AppendBlobStorageResource(sourceBlobClient); - StorageResourceSingle destinationResource = new LocalFileStorageResource(downloadedBlobInfo[i].DestinationLocalPath); + StorageResourceItem sourceResource = new AppendBlobStorageResource(sourceBlobClient); + StorageResourceItem destinationResource = new LocalFileStorageResource(downloadedBlobInfo[i].DestinationLocalPath); // Act DataTransfer transfer = await transferManager.StartTransferAsync( @@ -621,11 +621,11 @@ public async Task AppendBlobToLocal_Overwrite_Exists() // Act // Create options bag to overwrite any existing destination. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite, + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists, }; - List optionsList = new List { options }; + List optionsList = new List { options }; await DownloadAppendBlobsAndVerify( testContainer.Container, waitTimeInSec: 10, @@ -643,11 +643,11 @@ public async Task AppendBlobToLocal_Overwrite_NotExists() // Act // Create options bag to overwrite any existing destination. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite, + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists, }; - List optionsList = new List { options }; + List optionsList = new List { options }; await DownloadAppendBlobsAndVerify( testContainer.Container, waitTimeInSec: 10, @@ -674,9 +674,9 @@ public async Task AppendBlobToLocal_Skip_Exists() // Act // Create options bag to overwrite any existing destination. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Skip, + CreationPreference = StorageResourceCreationPreference.SkipIfExists, }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); TransferManager transferManager = new TransferManager(); @@ -692,7 +692,7 @@ public async Task AppendBlobToLocal_Skip_Exists() // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); await testEventsRaised.AssertSingleSkippedCheck(); FileInfo destFileInfo = new FileInfo(destFile); Assert.IsTrue(destFileInfo.Length == 0); @@ -715,13 +715,13 @@ public async Task AppendBlobToLocal_Failure_Exists() // Act // Create options bag to fail and keep track of the failure. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail, + CreationPreference = StorageResourceCreationPreference.FailIfExists, }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); - StorageResourceSingle sourceResource = new AppendBlobStorageResource(sourceClient); - StorageResourceSingle destinationResource = new LocalFileStorageResource(destFile); + StorageResourceItem sourceResource = new AppendBlobStorageResource(sourceClient); + StorageResourceItem destinationResource = new LocalFileStorageResource(destFile); TransferManager transferManager = new TransferManager(); // Start transfer and await for completion. @@ -735,7 +735,7 @@ public async Task AppendBlobToLocal_Failure_Exists() // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); await testEventsRaised.AssertSingleFailedCheck(); FileInfo destFileInfo = new FileInfo(destFile); Assert.IsTrue(destFileInfo.Length == 0); @@ -763,14 +763,14 @@ public async Task AppendBlobToLocal_FailedEvent() // Act - Attempt a transfer even though the destination already exists. TransferManager transferManager = new TransferManager(); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail, + CreationPreference = StorageResourceCreationPreference.FailIfExists, }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); - StorageResourceSingle sourceResource = new AppendBlobStorageResource(sourceClient); - StorageResourceSingle destinationResource = new LocalFileStorageResource(destFile); + StorageResourceItem sourceResource = new AppendBlobStorageResource(sourceClient); + StorageResourceItem destinationResource = new LocalFileStorageResource(destFile); DataTransfer transfer = await transferManager.StartTransferAsync( sourceResource, @@ -792,9 +792,9 @@ public async Task AppendBlobToLocal_SmallSize(long size, int waitTimeInSec) // Arrange await using DisposingBlobContainer testContainer = await GetTestContainerAsync(); - TransferOptions options = new TransferOptions(); + DataTransferOptions options = new DataTransferOptions(); - List optionsList = new List() { options }; + List optionsList = new List() { options }; await DownloadAppendBlobsAndVerify( testContainer.Container, size: size, @@ -817,9 +817,9 @@ public async Task AppendBlobToLocal_LargeSize(long size, int waitTimeInSec) await using DisposingBlobContainer testContainer = await GetTestContainerAsync(); string exceptionMessage = default; - TransferOptions options = new TransferOptions(); + DataTransferOptions options = new DataTransferOptions(); - List optionsList = new List() { options }; + List optionsList = new List() { options }; await DownloadAppendBlobsAndVerify( testContainer.Container, size: size, @@ -879,7 +879,7 @@ public async Task AppendBlobToLocal_SmallChunk() // and run through. long size = Constants.KB; int waitTimeInSec = 25; - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { InitialTransferSize = 100, MaximumTransferChunkSize = 200, @@ -888,7 +888,7 @@ public async Task AppendBlobToLocal_SmallChunk() // Arrange await using DisposingBlobContainer testContainer = await GetTestContainerAsync(); - List optionsList = new List() { options }; + List optionsList = new List() { options }; await DownloadBlockBlobsAndVerify( testContainer.Container, waitTimeInSec: waitTimeInSec, @@ -907,7 +907,7 @@ public async Task AppendBlobToLocal_SmallConcurrency(int concurrency, int size, { TransferManagerOptions managerOptions = new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure, + ErrorHandling = DataTransferErrorMode.ContinueOnFailure, MaximumConcurrency = concurrency, }; @@ -934,7 +934,7 @@ public async Task AppendBlobToLocal_LargeConcurrency(int concurrency, int size, { TransferManagerOptions managerOptions = new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure, + ErrorHandling = DataTransferErrorMode.ContinueOnFailure, MaximumConcurrency = concurrency, }; @@ -966,7 +966,7 @@ private async Task DownloadPageBlobsAndVerify( int blobCount = 1, TransferManagerOptions transferManagerOptions = default, List blobNames = default, - List options = default) + List options = default) { using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); // Populate blobNames list for number of blobs to be created @@ -989,7 +989,7 @@ private async Task DownloadPageBlobsAndVerify( transferManagerOptions ??= new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure + ErrorHandling = DataTransferErrorMode.ContinueOnFailure }; List downloadedBlobInfo = new List(blobCount); @@ -1029,8 +1029,8 @@ private async Task DownloadPageBlobsAndVerify( BlobName = blobNames[i] }; PageBlobClient sourceBlobClient = InstrumentClient(new PageBlobClient(blobUriBuilder.ToUri(), credential, GetOptions(true))); - StorageResourceSingle sourceResource = new PageBlobStorageResource(sourceBlobClient); - StorageResourceSingle destinationResource = new LocalFileStorageResource(downloadedBlobInfo[i].DestinationLocalPath); + StorageResourceItem sourceResource = new PageBlobStorageResource(sourceBlobClient); + StorageResourceItem destinationResource = new LocalFileStorageResource(downloadedBlobInfo[i].DestinationLocalPath); // Act DataTransfer transfer = await TransferManager.StartTransferAsync( @@ -1080,11 +1080,11 @@ public async Task PageBlobToLocal_Overwrite_Exists() // Act // Create options bag to overwrite any existing destination. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite, + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists, }; - List optionsList = new List { options }; + List optionsList = new List { options }; await DownloadPageBlobsAndVerify( testContainer.Container, waitTimeInSec: 10, @@ -1102,11 +1102,11 @@ public async Task PageBlobToLocal_Overwrite_NotExists() // Act // Create options bag to overwrite any existing destination. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite, + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists, }; - List optionsList = new List { options }; + List optionsList = new List { options }; await DownloadPageBlobsAndVerify( testContainer.Container, waitTimeInSec: 10, @@ -1134,9 +1134,9 @@ public async Task PageBlobToLocal_Skip_Exists() // Act // Create options bag to overwrite any existing destination. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Skip, + CreationPreference = StorageResourceCreationPreference.SkipIfExists, }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); TransferManager transferManager = new TransferManager(); @@ -1152,7 +1152,7 @@ public async Task PageBlobToLocal_Skip_Exists() // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); await testEventsRaised.AssertSingleSkippedCheck(); FileInfo destFileInfo = new FileInfo(destFile); Assert.IsTrue(destFileInfo.Length == 0); @@ -1175,13 +1175,13 @@ public async Task PageBlobToLocal_Failure_Exists() // Act // Create options bag to fail and keep track of the failure. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail, + CreationPreference = StorageResourceCreationPreference.FailIfExists, }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); - StorageResourceSingle sourceResource = new PageBlobStorageResource(sourceClient); - StorageResourceSingle destinationResource = new LocalFileStorageResource(destFile); + StorageResourceItem sourceResource = new PageBlobStorageResource(sourceClient); + StorageResourceItem destinationResource = new LocalFileStorageResource(destFile); TransferManager transferManager = new TransferManager(); // Start transfer and await for completion. @@ -1195,7 +1195,7 @@ public async Task PageBlobToLocal_Failure_Exists() // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); await testEventsRaised.AssertSingleFailedCheck(); FileInfo destFileInfo = new FileInfo(destFile); Assert.IsTrue(destFileInfo.Length == 0); @@ -1208,7 +1208,7 @@ public async Task PageBlobToLocal_SmallChunk() { long size = 12 * Constants.KB; int waitTimeInSec = 25; - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { InitialTransferSize = Constants.KB, MaximumTransferChunkSize = Constants.KB, @@ -1217,7 +1217,7 @@ public async Task PageBlobToLocal_SmallChunk() // Arrange await using DisposingBlobContainer testContainer = await GetTestContainerAsync(); - List optionsList = new List() { options }; + List optionsList = new List() { options }; await DownloadPageBlobsAndVerify( testContainer.Container, waitTimeInSec: waitTimeInSec, @@ -1302,16 +1302,16 @@ public async Task PageBlobToLocal_SmallConcurrency(int concurrency, int size, in { TransferManagerOptions managerOptions = new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure, + ErrorHandling = DataTransferErrorMode.ContinueOnFailure, MaximumConcurrency = concurrency, }; - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { InitialTransferSize = 512, MaximumTransferChunkSize = 512, }; - List optionsList = new List() { options }; + List optionsList = new List() { options }; // Arrange await using DisposingBlobContainer testContainer = await GetTestContainerAsync(); @@ -1335,7 +1335,7 @@ public async Task PageBlobToLocal_LargeConcurrency(int concurrency, int size, in { TransferManagerOptions managerOptions = new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure, + ErrorHandling = DataTransferErrorMode.ContinueOnFailure, MaximumConcurrency = concurrency, }; @@ -1355,7 +1355,7 @@ private async Task CreateStartTransfer( string localDirectoryPath, int concurrency, bool createFailedCondition = false, - TransferOptions options = default, + DataTransferOptions options = default, int size = Constants.KB) { // Arrange @@ -1374,8 +1374,8 @@ private async Task CreateStartTransfer( // Create new source block blob. string newSourceFile = Path.Combine(localDirectoryPath, sourceBlobName); BlockBlobClient blockBlobClient = await CreateBlockBlob(containerClient, newSourceFile, sourceBlobName, size); - StorageResourceSingle sourceResource = new BlockBlobStorageResource(blockBlobClient); - StorageResourceSingle destinationResource = new LocalFileStorageResource(destFile); + StorageResourceItem sourceResource = new BlockBlobStorageResource(blockBlobClient); + StorageResourceItem destinationResource = new LocalFileStorageResource(destFile); // Create Transfer Manager with single threaded operation TransferManagerOptions managerOptions = new TransferManagerOptions() @@ -1399,7 +1399,7 @@ public async Task StartTransfer_AwaitCompletion() using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); // Create transfer to do a AwaitCompletion - TransferOptions options = new TransferOptions(); + DataTransferOptions options = new DataTransferOptions(); TestEventsRaised failureTransferHolder = new TestEventsRaised(options); DataTransfer transfer = await CreateStartTransfer( containerClient: test.Container, @@ -1415,7 +1415,7 @@ public async Task StartTransfer_AwaitCompletion() failureTransferHolder.AssertUnexpectedFailureCheck(); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.Completed, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, transfer.TransferStatus); } [RecordedTest] @@ -1425,9 +1425,9 @@ public async Task StartTransfer_AwaitCompletion_Failed() await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: Storage.Blobs.Models.PublicAccessType.BlobContainer); using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail + CreationPreference = StorageResourceCreationPreference.FailIfExists }; TestEventsRaised testEventRaised = new TestEventsRaised(options); @@ -1446,7 +1446,7 @@ public async Task StartTransfer_AwaitCompletion_Failed() // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); await testEventRaised.AssertSingleFailedCheck(); Assert.AreEqual(1, testEventRaised.FailedEvents.Count); Assert.IsTrue(testEventRaised.FailedEvents.First().Exception.Message.Contains("Cannot overwrite file.")); @@ -1460,9 +1460,9 @@ public async Task StartTransfer_AwaitCompletion_Skipped() using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); // Create transfer options with Skipping available - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Skip + CreationPreference = StorageResourceCreationPreference.SkipIfExists }; TestEventsRaised testEventRaised = new TestEventsRaised(options); @@ -1481,7 +1481,7 @@ public async Task StartTransfer_AwaitCompletion_Skipped() // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); await testEventRaised.AssertSingleSkippedCheck(); } @@ -1493,9 +1493,9 @@ public async Task StartTransfer_EnsureCompleted() using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); // Create transfer to do a EnsureCompleted - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail + CreationPreference = StorageResourceCreationPreference.FailIfExists }; TestEventsRaised testEventRaised = new TestEventsRaised(options); @@ -1508,13 +1508,13 @@ public async Task StartTransfer_EnsureCompleted() // Act CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(5)); - transfer.EnsureCompleted(cancellationTokenSource.Token); + transfer.WaitForCompletion(cancellationTokenSource.Token); // Assert testEventRaised.AssertUnexpectedFailureCheck(); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.Completed, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, transfer.TransferStatus); } [RecordedTest] @@ -1524,9 +1524,9 @@ public async Task StartTransfer_EnsureCompleted_Failed() await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: Storage.Blobs.Models.PublicAccessType.BlobContainer); using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail + CreationPreference = StorageResourceCreationPreference.FailIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -1540,12 +1540,12 @@ public async Task StartTransfer_EnsureCompleted_Failed() // Act CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(5)); - transfer.EnsureCompleted(cancellationTokenSource.Token); + transfer.WaitForCompletion(cancellationTokenSource.Token); // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); await testEventsRaised.AssertSingleFailedCheck(); Assert.IsTrue(testEventsRaised.FailedEvents.First().Exception.Message.Contains("Cannot overwrite file.")); } @@ -1558,9 +1558,9 @@ public async Task StartTransfer_EnsureCompleted_Skipped() using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); // Create transfer options with Skipping available - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Skip + CreationPreference = StorageResourceCreationPreference.SkipIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -1574,13 +1574,13 @@ public async Task StartTransfer_EnsureCompleted_Skipped() // Act CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(5)); - transfer.EnsureCompleted(cancellationTokenSource.Token); + transfer.WaitForCompletion(cancellationTokenSource.Token); // Assert await testEventsRaised.AssertSingleSkippedCheck(); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); } #endregion } diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferSyncCopyDirectoryTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferSyncCopyDirectoryTests.cs index fbbfd6ba15af..56e367a2cd12 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferSyncCopyDirectoryTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferSyncCopyDirectoryTests.cs @@ -47,27 +47,27 @@ private async Task CopyBlobDirectoryAndVerify( List sourceFiles, int waitTimeInSec = 30, TransferManagerOptions transferManagerOptions = default, - TransferOptions options = default) + DataTransferOptions options = default) { // Set transfer options - options ??= new TransferOptions(); + options ??= new DataTransferOptions(); TestEventsRaised testEventFailed = new TestEventsRaised(options); transferManagerOptions ??= new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure + ErrorHandling = DataTransferErrorMode.ContinueOnFailure }; // Initialize transferManager TransferManager transferManager = new TransferManager(transferManagerOptions); StorageResourceContainer sourceResource = - new BlobStorageResourceContainer(container, new() { DirectoryPrefix = sourceBlobPrefix }); + new BlobStorageResourceContainer(container, new() { BlobDirectoryPrefix = sourceBlobPrefix }); StorageResourceContainer destinationResource = new BlobStorageResourceContainer(container, new BlobStorageResourceContainerOptions() { - DirectoryPrefix = destinationBlobPrefix, + BlobDirectoryPrefix = destinationBlobPrefix, }); DataTransfer transfer = await transferManager.StartTransferAsync(sourceResource, destinationResource, options); @@ -78,7 +78,7 @@ private async Task CopyBlobDirectoryAndVerify( await testEventFailed.AssertContainerCompletedCheck(sourceFiles.Count); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.Completed, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, transfer.TransferStatus); // List all files in source blob folder path List sourceblobNames = new List(); @@ -223,20 +223,20 @@ public async Task BlockBlobDirectoryToDirectory_EmptyFolder() string folder = CreateRandomDirectory(testDirectory.DirectoryPath); // Set up destination client - StorageResourceContainer destinationResource = new BlobStorageResourceContainer(test.Container, new() { DirectoryPrefix = dirName }); + StorageResourceContainer destinationResource = new BlobStorageResourceContainer(test.Container, new() { BlobDirectoryPrefix = dirName }); StorageResourceContainer sourceResource = new BlobStorageResourceContainer(test.Container, new BlobStorageResourceContainerOptions() { - DirectoryPrefix = dirName2, + BlobDirectoryPrefix = dirName2, }); TransferManagerOptions managerOptions = new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure, + ErrorHandling = DataTransferErrorMode.ContinueOnFailure, MaximumConcurrency = 1, }; TransferManager transferManager = new TransferManager(managerOptions); - TransferOptions options = new TransferOptions(); + DataTransferOptions options = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(options); // Act @@ -245,7 +245,7 @@ public async Task BlockBlobDirectoryToDirectory_EmptyFolder() CancellationTokenSource tokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(30)); await transfer.WaitForCompletionAsync(tokenSource.Token); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.Completed, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, transfer.TransferStatus); // Assert List blobs = ((List)await test.Container.GetBlobsAsync().ToListAsync()) @@ -384,9 +384,9 @@ public async Task BlockBlobDirectoryToDirectory_OverwriteTrue() await CreateBlockBlobAndSourceFile(test.Container, testDirectory.DirectoryPath, blobName4, size); blobNames.Add(blobName4); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists }; string destinationFolder = "destFolder"; @@ -433,9 +433,9 @@ public async Task BlockBlobDirectoryToDirectory_OverwriteFalse() await CreateBlockBlobAndSourceFile(test.Container, testDirectory.DirectoryPath, blobName4, size); blobNames.Add(blobName4); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists }; string destinationFolder = "destFolder"; @@ -526,7 +526,7 @@ private async Task CreateStartTransfer( BlobContainerClient containerClient, int concurrency, bool createFailedCondition = false, - TransferOptions options = default, + DataTransferOptions options = default, int size = Constants.KB) { using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); @@ -538,11 +538,11 @@ private async Task CreateStartTransfer( await CreateBlobDirectoryTree(containerClient, sourceFolderPath, sourceBlobPrefix, size); // Create new source block blob. - StorageResourceContainer sourceResource = new BlobStorageResourceContainer(containerClient, new() { DirectoryPrefix = sourceBlobPrefix }); + StorageResourceContainer sourceResource = new BlobStorageResourceContainer(containerClient, new() { BlobDirectoryPrefix = sourceBlobPrefix }); StorageResourceContainer destinationResource = new BlobStorageResourceContainer(containerClient, new BlobStorageResourceContainerOptions() { - DirectoryPrefix = destBlobPrefix, + BlobDirectoryPrefix = destBlobPrefix, }); // If we want a failure condition to happen @@ -574,7 +574,7 @@ public async Task StartTransfer_AwaitCompletion() await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: PublicAccessType.BlobContainer); // Create transfer to do a AwaitCompletion - TransferOptions options = new TransferOptions(); + DataTransferOptions options = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(options); DataTransfer transfer = await CreateStartTransfer(test.Container, 1, options: options); @@ -586,7 +586,7 @@ public async Task StartTransfer_AwaitCompletion() testEventsRaised.AssertUnexpectedFailureCheck(); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.Completed, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, transfer.TransferStatus); } [Test] @@ -596,9 +596,9 @@ public async Task StartTransfer_AwaitCompletion_Failed() // Arrange await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: PublicAccessType.BlobContainer); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail + CreationPreference = StorageResourceCreationPreference.FailIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -616,7 +616,7 @@ public async Task StartTransfer_AwaitCompletion_Failed() // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); await testEventsRaised.AssertContainerCompletedWithFailedCheck(1); Assert.IsTrue(testEventsRaised.FailedEvents.First().Exception.Message.Contains("BlobAlreadyExists")); } @@ -629,9 +629,9 @@ public async Task StartTransfer_AwaitCompletion_Skipped() await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: PublicAccessType.BlobContainer); // Create transfer options with Skipping available - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Skip + CreationPreference = StorageResourceCreationPreference.SkipIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -649,7 +649,7 @@ public async Task StartTransfer_AwaitCompletion_Skipped() // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); await testEventsRaised.AssertContainerCompletedWithSkippedCheck(1); } @@ -661,20 +661,20 @@ public async Task StartTransfer_EnsureCompleted() await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: PublicAccessType.BlobContainer); // Create transfer to do a EnsureCompleted - TransferOptions options = new TransferOptions(); + DataTransferOptions options = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(options); DataTransfer transfer = await CreateStartTransfer(test.Container, 1, options: options); // Act CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(30)); - transfer.EnsureCompleted(cancellationTokenSource.Token); + transfer.WaitForCompletion(cancellationTokenSource.Token); // Assert testEventsRaised.AssertUnexpectedFailureCheck(); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.Completed, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, transfer.TransferStatus); } [Test] @@ -684,9 +684,9 @@ public async Task StartTransfer_EnsureCompleted_Failed() // Arrange await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: PublicAccessType.BlobContainer); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail + CreationPreference = StorageResourceCreationPreference.FailIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -699,12 +699,12 @@ public async Task StartTransfer_EnsureCompleted_Failed() // Act CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(30)); - transfer.EnsureCompleted(cancellationTokenSource.Token); + transfer.WaitForCompletion(cancellationTokenSource.Token); // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); await testEventsRaised.AssertContainerCompletedWithFailedCheck(1); Assert.IsTrue(testEventsRaised.FailedEvents.First().Exception.Message.Contains("BlobAlreadyExists")); } @@ -717,9 +717,9 @@ public async Task StartTransfer_EnsureCompleted_Skipped() await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: PublicAccessType.BlobContainer); // Create transfer options with Skipping available - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Skip + CreationPreference = StorageResourceCreationPreference.SkipIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -732,13 +732,13 @@ public async Task StartTransfer_EnsureCompleted_Skipped() // Act CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(30)); - transfer.EnsureCompleted(cancellationTokenSource.Token); + transfer.WaitForCompletion(cancellationTokenSource.Token); // Assert testEventsRaised.AssertUnexpectedFailureCheck(); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); } [Test] @@ -750,9 +750,9 @@ public async Task StartTransfer_EnsureCompleted_Failed_SmallChunks() using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); string destinationFolder = CreateRandomDirectory(testDirectory.DirectoryPath); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail, + CreationPreference = StorageResourceCreationPreference.FailIfExists, InitialTransferSize = 512, MaximumTransferChunkSize = 512 }; @@ -768,12 +768,12 @@ public async Task StartTransfer_EnsureCompleted_Failed_SmallChunks() // Act CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(30)); - transfer.EnsureCompleted(cancellationTokenSource.Token); + transfer.WaitForCompletion(cancellationTokenSource.Token); // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); Assert.IsTrue(testEventsRaised.FailedEvents.First().Exception.Message.Contains("BlobAlreadyExists")); await testEventsRaised.AssertContainerCompletedWithFailedCheck(1); } diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferSyncCopyTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferSyncCopyTests.cs index d072ef81b1d3..307dd7c781de 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferSyncCopyTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferSyncCopyTests.cs @@ -25,8 +25,8 @@ public StartTransferSyncCopyTests(bool async, BlobClientOptions.ServiceVersion s internal class VerifyBlockBlobCopyFromUriInfo { public readonly string SourceLocalPath; - public readonly StorageResourceSingle SourceResource; - public readonly StorageResourceSingle DestinationResource; + public readonly StorageResourceItem SourceResource; + public readonly StorageResourceItem DestinationResource; public readonly BlockBlobClient DestinationClient; public TestEventsRaised testEventsRaised; public DataTransfer DataTransfer; @@ -34,8 +34,8 @@ internal class VerifyBlockBlobCopyFromUriInfo public VerifyBlockBlobCopyFromUriInfo( string sourceLocalPath, - StorageResourceSingle sourceResource, - StorageResourceSingle destinationResource, + StorageResourceItem sourceResource, + StorageResourceItem destinationResource, BlockBlobClient destinationClient, TestEventsRaised eventsRaised, bool completed) @@ -69,7 +69,7 @@ private async Task CopyBlockBlobsAndVerify( TransferManagerOptions transferManagerOptions = default, List sourceBlobNames = default, List destinationBlobNames = default, - List options = default) + List options = default) { using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); // Populate blobNames list for number of blobs to be created @@ -107,7 +107,7 @@ private async Task CopyBlockBlobsAndVerify( transferManagerOptions ??= new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure + ErrorHandling = DataTransferErrorMode.ContinueOnFailure }; List copyBlobInfo = new List(blobCount); @@ -134,10 +134,10 @@ private async Task CopyBlockBlobsAndVerify( await originalBlob.UploadAsync(originalStream); } - StorageResourceSingle sourceResource = new BlockBlobStorageResource(originalBlob); + StorageResourceItem sourceResource = new BlockBlobStorageResource(originalBlob); // Set up destination client BlockBlobClient destClient = InstrumentClient(container.GetBlockBlobClient(string.Concat(destinationBlobNames[i]))); - StorageResourceSingle destinationResource = new BlockBlobStorageResource(destClient); + StorageResourceItem destinationResource = new BlockBlobStorageResource(destClient); copyBlobInfo.Add(new VerifyBlockBlobCopyFromUriInfo( localSourceFile, sourceResource, @@ -165,7 +165,7 @@ private async Task CopyBlockBlobsAndVerify( CancellationTokenSource tokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(waitTimeInSec)); await copyBlobInfo[i].DataTransfer.WaitForCompletionAsync(tokenSource.Token); Assert.IsTrue(copyBlobInfo[i].DataTransfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.Completed, copyBlobInfo[i].DataTransfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, copyBlobInfo[i].DataTransfer.TransferStatus); // Verify Copy - using original source File and Copying the destination await copyBlobInfo[i].testEventsRaised.AssertSingleCompletedCheck(); @@ -192,7 +192,7 @@ public async Task BlockBlobToBlockBlob_SmallChunk() long size = Constants.KB; int waitTimeInSec = 25; - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { InitialTransferSize = 100, MaximumTransferChunkSize = 200, @@ -201,7 +201,7 @@ public async Task BlockBlobToBlockBlob_SmallChunk() // Arrange await using DisposingBlobContainer testContainer = await GetTestContainerAsync(publicAccessType: PublicAccessType.BlobContainer); - List optionsList = new List() { options }; + List optionsList = new List() { options }; await CopyBlockBlobsAndVerify( testContainer.Container, waitTimeInSec: waitTimeInSec, @@ -299,11 +299,11 @@ public async Task BlockBlobToBlockBlob_Overwrite_Exists() // Act // Create options bag to overwrite any existing destination. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite, + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists, }; - List optionsList = new List() { options }; + List optionsList = new List() { options }; List blobNames = new List() { blobName }; // Start transfer and await for completion. @@ -324,11 +324,11 @@ public async Task BlockBlobToBlockBlob_Overwrite_NotExists() // Act // Create options bag to overwrite any existing destination. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite, + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists, }; - List optionsList = new List() { options }; + List optionsList = new List() { options }; // Start transfer and await for completion. await CopyBlockBlobsAndVerify( @@ -356,9 +356,9 @@ public async Task BlockBlobToBlockBlob_Skip_Exists() // Act // Create options bag to overwrite any existing destination. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Skip, + CreationPreference = StorageResourceCreationPreference.SkipIfExists, }; // Create new source block blob. @@ -368,8 +368,8 @@ public async Task BlockBlobToBlockBlob_Skip_Exists() newSourceFile, GetNewBlobName(), size); - StorageResourceSingle sourceResource = new BlockBlobStorageResource(blockBlobClient); - StorageResourceSingle destinationResource = new BlockBlobStorageResource(destinationClient); + StorageResourceItem sourceResource = new BlockBlobStorageResource(blockBlobClient); + StorageResourceItem destinationResource = new BlockBlobStorageResource(destinationClient); TestEventsRaised testEventsRaised = new TestEventsRaised(options); TransferManager transferManager = new TransferManager(); @@ -385,7 +385,7 @@ public async Task BlockBlobToBlockBlob_Skip_Exists() // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); await testEventsRaised.AssertSingleSkippedCheck(); Assert.IsTrue(await destinationClient.ExistsAsync()); // Verify Upload - That we skipped over and didn't reupload something new. @@ -410,9 +410,9 @@ public async Task BlockBlobToBlockBlob_Failure_Exists() // Act // Create options bag to fail and keep track of the failure. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail, + CreationPreference = StorageResourceCreationPreference.FailIfExists, }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); // Create new source block blob. @@ -422,8 +422,8 @@ public async Task BlockBlobToBlockBlob_Failure_Exists() newSourceFile, GetNewBlobName(), size); - StorageResourceSingle sourceResource = new BlockBlobStorageResource(blockBlobClient); - StorageResourceSingle destinationResource = new BlockBlobStorageResource(destinationClient); + StorageResourceItem sourceResource = new BlockBlobStorageResource(blockBlobClient); + StorageResourceItem destinationResource = new BlockBlobStorageResource(destinationClient); TransferManager transferManager = new TransferManager(); // Start transfer and await for completion. @@ -437,7 +437,7 @@ public async Task BlockBlobToBlockBlob_Failure_Exists() // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); Assert.IsTrue(await destinationClient.ExistsAsync()); await testEventsRaised.AssertSingleFailedCheck(); Assert.NotNull(testEventsRaised.FailedEvents.First().Exception, "Excepted failure: Overwrite failure was supposed to be raised during the test"); @@ -465,11 +465,11 @@ public async Task BlockBlobToBlockBlob_OAuth() // Act // Create options bag to overwrite any existing destination. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite, + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists, }; - List optionsList = new List() { options }; + List optionsList = new List() { options }; // Start transfer and await for completion. await CopyBlockBlobsAndVerify( @@ -489,9 +489,9 @@ public async Task AppendBlobToAppendBlob_Error() // Act // Create options bag to fail and keep track of the failure. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail, + CreationPreference = StorageResourceCreationPreference.FailIfExists, }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); // Create new source block blob. @@ -511,8 +511,8 @@ public async Task AppendBlobToAppendBlob_Error() blobName: destinationBlobName, size: size); - StorageResourceSingle sourceResource = new AppendBlobStorageResource(sourceBlob); - StorageResourceSingle destinationResource = new AppendBlobStorageResource(destinationBlob); + StorageResourceItem sourceResource = new AppendBlobStorageResource(sourceBlob); + StorageResourceItem destinationResource = new AppendBlobStorageResource(destinationBlob); TransferManager transferManager = new TransferManager(); // Start transfer and await for completion. @@ -526,7 +526,7 @@ public async Task AppendBlobToAppendBlob_Error() // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); await testEventsRaised.AssertSingleFailedCheck(); Assert.NotNull(testEventsRaised.FailedEvents.First().Exception, "Excepted failure: Failure was supposed to be raised during the test"); Assert.IsTrue(testEventsRaised.FailedEvents.First().Exception.Message.Contains("BlobAlreadyExists")); @@ -542,9 +542,9 @@ public async Task PageBlobToPageBlob_Error() // Act // Create options bag to fail and keep track of the failure. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail, + CreationPreference = StorageResourceCreationPreference.FailIfExists, }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); // Create new source block blob. @@ -564,8 +564,8 @@ public async Task PageBlobToPageBlob_Error() blobName: destinationBlobName, size: size); - StorageResourceSingle sourceResource = new PageBlobStorageResource(sourceClient); - StorageResourceSingle destinationResource = new PageBlobStorageResource(destinationClient); + StorageResourceItem sourceResource = new PageBlobStorageResource(sourceClient); + StorageResourceItem destinationResource = new PageBlobStorageResource(destinationClient); TransferManager transferManager = new TransferManager(); // Start transfer and await for completion. @@ -579,7 +579,7 @@ public async Task PageBlobToPageBlob_Error() // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); await testEventsRaised.AssertSingleFailedCheck(); Assert.NotNull(testEventsRaised.FailedEvents.First().Exception, "Excepted failure: Failure was supposed to be raised during the test"); Assert.IsTrue(testEventsRaised.FailedEvents.First().Exception.Message.Contains("BlobAlreadyExists")); @@ -591,7 +591,7 @@ private async Task CreateStartTransfer( BlobContainerClient containerClient, int concurrency, bool createFailedCondition = false, - TransferOptions options = default, + DataTransferOptions options = default, int size = Constants.KB) { // Arrange @@ -612,8 +612,8 @@ private async Task CreateStartTransfer( // Create new source block blob. string newSourceFile = Path.Combine(testDirectory.DirectoryPath, sourceBlobName); BlockBlobClient blockBlobClient = await CreateBlockBlob(containerClient, newSourceFile, sourceBlobName, size); - StorageResourceSingle sourceResource = new BlockBlobStorageResource(blockBlobClient); - StorageResourceSingle destinationResource = new BlockBlobStorageResource(destinationClient); + StorageResourceItem sourceResource = new BlockBlobStorageResource(blockBlobClient); + StorageResourceItem destinationResource = new BlockBlobStorageResource(destinationClient); // Create Transfer Manager with single threaded operation TransferManagerOptions managerOptions = new TransferManagerOptions() @@ -635,7 +635,7 @@ public async Task StartTransfer_AwaitCompletion() // Arrange await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: PublicAccessType.BlobContainer); - TransferOptions options = new TransferOptions(); + DataTransferOptions options = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(options); // Create transfer to do a AwaitCompletion @@ -649,7 +649,7 @@ public async Task StartTransfer_AwaitCompletion() await testEventsRaised.AssertSingleCompletedCheck(); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.Completed, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, transfer.TransferStatus); } [RecordedTest] @@ -658,9 +658,9 @@ public async Task StartTransfer_AwaitCompletion_Failed() // Arrange await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: PublicAccessType.BlobContainer); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail + CreationPreference = StorageResourceCreationPreference.FailIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -678,7 +678,7 @@ public async Task StartTransfer_AwaitCompletion_Failed() // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); await testEventsRaised.AssertSingleFailedCheck(); Assert.IsTrue(testEventsRaised.FailedEvents.First().Exception.Message.Contains("BlobAlreadyExists")); } @@ -690,9 +690,9 @@ public async Task StartTransfer_AwaitCompletion_Skipped() await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: PublicAccessType.BlobContainer); // Create transfer options with Skipping available - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Skip + CreationPreference = StorageResourceCreationPreference.SkipIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -711,7 +711,7 @@ public async Task StartTransfer_AwaitCompletion_Skipped() await testEventsRaised.AssertSingleSkippedCheck(); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); } [RecordedTest] @@ -720,7 +720,7 @@ public async Task StartTransfer_EnsureCompleted() // Arrange await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: PublicAccessType.BlobContainer); - TransferOptions options = new TransferOptions(); + DataTransferOptions options = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(options); // Create transfer to do a EnsureCompleted @@ -728,13 +728,13 @@ public async Task StartTransfer_EnsureCompleted() // Act CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(5)); - transfer.EnsureCompleted(cancellationTokenSource.Token); + transfer.WaitForCompletion(cancellationTokenSource.Token); // Assert await testEventsRaised.AssertSingleCompletedCheck(); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.Completed, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, transfer.TransferStatus); } [RecordedTest] @@ -743,9 +743,9 @@ public async Task StartTransfer_EnsureCompleted_Failed() // Arrange await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: PublicAccessType.BlobContainer); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail + CreationPreference = StorageResourceCreationPreference.FailIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -758,13 +758,13 @@ public async Task StartTransfer_EnsureCompleted_Failed() // Act CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(5)); - transfer.EnsureCompleted(cancellationTokenSource.Token); + transfer.WaitForCompletion(cancellationTokenSource.Token); // Assert await testEventsRaised.AssertSingleFailedCheck(); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); Assert.IsTrue(testEventsRaised.FailedEvents.First().Exception.Message.Contains("BlobAlreadyExists")); } @@ -775,9 +775,9 @@ public async Task StartTransfer_EnsureCompleted_Skipped() await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: PublicAccessType.BlobContainer); // Create transfer options with Skipping available - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Skip + CreationPreference = StorageResourceCreationPreference.SkipIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -790,13 +790,13 @@ public async Task StartTransfer_EnsureCompleted_Skipped() // Act CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(5)); - transfer.EnsureCompleted(cancellationTokenSource.Token); + transfer.WaitForCompletion(cancellationTokenSource.Token); // Assert await testEventsRaised.AssertSingleSkippedCheck(); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); } #endregion } diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferUploadDirectoryTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferUploadDirectoryTests.cs index 6e11ea01a9e6..3f0c961d57b2 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferUploadDirectoryTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferUploadDirectoryTests.cs @@ -41,15 +41,15 @@ private async Task UploadBlobDirectoryAndVerify( string destinationPrefix = default, int waitTimeInSec = 30, TransferManagerOptions transferManagerOptions = default, - TransferOptions options = default) + DataTransferOptions options = default) { // Set transfer options - options ??= new TransferOptions(); + options ??= new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(options); transferManagerOptions ??= new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure + ErrorHandling = DataTransferErrorMode.ContinueOnFailure }; destinationPrefix ??= "foo"; @@ -60,7 +60,7 @@ private async Task UploadBlobDirectoryAndVerify( StorageResourceContainer sourceResource = new LocalDirectoryStorageResourceContainer(localDirectoryPath); StorageResourceContainer destinationResource = - new BlobStorageResourceContainer(destinationContainer, new() { DirectoryPrefix = destinationPrefix }); + new BlobStorageResourceContainer(destinationContainer, new() { BlobDirectoryPrefix = destinationPrefix }); // Set up blob to upload DataTransfer transfer = await transferManager.StartTransferAsync(sourceResource, destinationResource, options); @@ -71,7 +71,7 @@ private async Task UploadBlobDirectoryAndVerify( await testEventsRaised.AssertContainerCompletedCheck(files.Count); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.Completed, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, transfer.TransferStatus); // Assert - Check Response List blobs = ((List)await destinationContainer.GetBlobsAsync(prefix: destinationPrefix).ToListAsync()) @@ -100,7 +100,7 @@ private async Task UploadBlobDirectoryAndVerify( [TestCase(Constants.KB, 10)] public async Task LocalToBlockBlobDirectory_SmallSize(long blobSize, int waitTimeInSec) { - TransferOptions options = new TransferOptions(); + DataTransferOptions options = new DataTransferOptions(); List files = new List(); using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); string localDirectory = CreateRandomDirectory(testDirectory.DirectoryPath); @@ -132,7 +132,7 @@ await UploadBlobDirectoryAndVerify( [TestCase(Constants.GB, 500)] public async Task LocalToBlockBlobDirectory_LargeSize(long blobSize, int waitTimeInSec) { - TransferOptions options = new TransferOptions(); + DataTransferOptions options = new DataTransferOptions(); List files = new List(); using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); string localDirectory = CreateRandomDirectory(testDirectory.DirectoryPath); @@ -161,7 +161,7 @@ public async Task LocalToBlockBlobDirectory_SmallChunks() { long blobSize = Constants.KB; int waitTimeInSec = 25; - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { InitialTransferSize = 100, MaximumTransferChunkSize = 200, @@ -197,10 +197,10 @@ public async Task LocalToBlockBlobDirectory_SmallChunks_ManyFiles() int waitTimeInSec = 25; TransferManagerOptions transferManagerOptions = new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.StopOnAllFailures, + ErrorHandling = DataTransferErrorMode.StopOnAnyFailure, MaximumConcurrency = 3, }; - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { InitialTransferSize = 512, MaximumTransferChunkSize = 512, @@ -248,16 +248,16 @@ public async Task DirectoryUpload_EmptyFolder() string localDirectory = CreateRandomDirectory(testDirectory.DirectoryPath); // Set up destination client - StorageResourceContainer destinationResource = new BlobStorageResourceContainer(test.Container, new() { DirectoryPrefix = dirName }); + StorageResourceContainer destinationResource = new BlobStorageResourceContainer(test.Container, new() { BlobDirectoryPrefix = dirName }); StorageResourceContainer sourceResource = new LocalDirectoryStorageResourceContainer(localDirectory); TransferManagerOptions managerOptions = new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure, + ErrorHandling = DataTransferErrorMode.ContinueOnFailure, MaximumConcurrency = 1, }; TransferManager transferManager = new TransferManager(managerOptions); - TransferOptions options = new TransferOptions(); + DataTransferOptions options = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(options); // Act @@ -281,7 +281,7 @@ public async Task DirectoryUpload_SingleFile() await using DisposingBlobContainer test = await GetTestContainerAsync(); string dirName = GetNewBlobName(); - StorageResourceContainer destinationResource = new BlobStorageResourceContainer(test.Container, new() { DirectoryPrefix = dirName }); + StorageResourceContainer destinationResource = new BlobStorageResourceContainer(test.Container, new() { BlobDirectoryPrefix = dirName }); List files = new List(); using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); @@ -437,9 +437,9 @@ public async Task DirectoryUpload_OverwriteTrue() string file4 = await CreateRandomFileAsync(lockedSubfolder); files.Add(file4); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists }; BlobClient blobClient = test.Container.GetBlobClient(dirName + "/" + file1.Substring(localDirectory.Length + 1).Replace('\\', '/')); await blobClient.UploadAsync(file1); @@ -478,9 +478,9 @@ public async Task DirectoryUpload_OverwriteFalse() string file4 = await CreateRandomFileAsync(lockedSubfolder); files.Add(file4); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists }; BlobClient blobClient = test.Container.GetBlobClient(dirName + "/" + file1.Substring(localDirectory.Length + 1).Replace('\\', '/')); await blobClient.UploadAsync(file1); @@ -519,13 +519,13 @@ public async Task DirectoryUpload_BlobType(BlobType blobType) BlobStorageResourceContainerOptions options = new BlobStorageResourceContainerOptions() { BlobType = blobType, - DirectoryPrefix = destinationPrefix, + BlobDirectoryPrefix = destinationPrefix, }; StorageResourceContainer destinationResource = new BlobStorageResourceContainer( test.Container, options); - TransferOptions containerOptions = new TransferOptions(); + DataTransferOptions containerOptions = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(containerOptions); // Act @@ -593,9 +593,9 @@ public async Task DirectoryUpload_Root() [Test] [LiveOnly] // https://github.com/Azure/azure-sdk-for-net/issues/33082 - [TestCase(ErrorHandlingBehavior.ContinueOnFailure)] - [TestCase(ErrorHandlingBehavior.StopOnAllFailures)] - public async Task DirectoryUpload_ErrorHandling(ErrorHandlingBehavior errorHandling) + [TestCase(DataTransferErrorMode.ContinueOnFailure)] + [TestCase(DataTransferErrorMode.StopOnAnyFailure)] + public async Task DirectoryUpload_ErrorHandling(DataTransferErrorMode errorHandling) { // Arrange using DisposingLocalDirectory source = DisposingLocalDirectory.GetTestDirectory(); @@ -618,9 +618,9 @@ await destination.Container.UploadBlobAsync( new BlobStorageResourceContainer(destination.Container); // Conflict should cause failure - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail + CreationPreference = StorageResourceCreationPreference.FailIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -634,7 +634,7 @@ await destination.Container.UploadBlobAsync( IEnumerable destinationFiles = (await destination.Container.GetBlobsAsync().ToEnumerableAsync()).Select(b => b.Name); - if (errorHandling == ErrorHandlingBehavior.ContinueOnFailure) + if (errorHandling == DataTransferErrorMode.ContinueOnFailure) { await testEventsRaised.AssertContainerCompletedWithFailedCheckContinue(1); @@ -644,7 +644,7 @@ await destination.Container.UploadBlobAsync( .OrderBy(f => f) .SequenceEqual(destinationFiles.OrderBy(f => f))); } - else if (errorHandling == ErrorHandlingBehavior.StopOnAllFailures) + else if (errorHandling == DataTransferErrorMode.StopOnAnyFailure) { await testEventsRaised.AssertContainerCompletedWithFailedCheck(1); @@ -673,7 +673,7 @@ private async Task CreateStartTransfer( BlobContainerClient containerClient, int concurrency, bool createFailedCondition = false, - TransferOptions options = default, + DataTransferOptions options = default, int size = Constants.KB) { // Arrange @@ -683,7 +683,7 @@ private async Task CreateStartTransfer( // Create storage resources StorageResourceContainer sourceResource = new LocalDirectoryStorageResourceContainer(sourceDirectoryPath); // Create destination folder - StorageResourceContainer destinationResource = new BlobStorageResourceContainer(containerClient, new() { DirectoryPrefix = destinationFolderName }); + StorageResourceContainer destinationResource = new BlobStorageResourceContainer(containerClient, new() { BlobDirectoryPrefix = destinationFolderName }); // Create Transfer Manager with single threaded operation TransferManagerOptions managerOptions = new TransferManagerOptions() @@ -717,7 +717,7 @@ public async Task StartTransfer_AwaitCompletion() // Arrange await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: PublicAccessType.BlobContainer); using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); - TransferOptions options = new TransferOptions(); + DataTransferOptions options = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(options); // Create transfer to do a AwaitCompletion @@ -734,7 +734,7 @@ public async Task StartTransfer_AwaitCompletion() // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.Completed, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, transfer.TransferStatus); await testEventsRaised.AssertContainerCompletedCheck(4); } @@ -746,9 +746,9 @@ public async Task StartTransfer_AwaitCompletion_Failed() await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: PublicAccessType.BlobContainer); using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail + CreationPreference = StorageResourceCreationPreference.FailIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -768,7 +768,7 @@ public async Task StartTransfer_AwaitCompletion_Failed() await testEventsRaised.AssertContainerCompletedWithFailedCheck(1); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); Assert.IsTrue(testEventsRaised.FailedEvents.First().Exception.Message.Contains("BlobAlreadyExists")); } @@ -781,9 +781,9 @@ public async Task StartTransfer_AwaitCompletion_Skipped() using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); // Create transfer options with Skipping available - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Skip + CreationPreference = StorageResourceCreationPreference.SkipIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -803,7 +803,7 @@ public async Task StartTransfer_AwaitCompletion_Skipped() await testEventsRaised.AssertContainerCompletedWithSkippedCheck(1); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); } [Test] @@ -814,7 +814,7 @@ public async Task StartTransfer_EnsureCompleted() await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: PublicAccessType.BlobContainer); using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); - TransferOptions options = new TransferOptions(); + DataTransferOptions options = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(options); // Create transfer to do a EnsureCompleted @@ -826,13 +826,13 @@ public async Task StartTransfer_EnsureCompleted() // Act CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(30)); - transfer.EnsureCompleted(cancellationTokenSource.Token); + transfer.WaitForCompletion(cancellationTokenSource.Token); // Assert await testEventsRaised.AssertContainerCompletedCheck(4); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.Completed, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, transfer.TransferStatus); } [Test] @@ -843,9 +843,9 @@ public async Task StartTransfer_EnsureCompleted_Failed() await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: PublicAccessType.BlobContainer); using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail + CreationPreference = StorageResourceCreationPreference.FailIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -859,13 +859,13 @@ public async Task StartTransfer_EnsureCompleted_Failed() // Act CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(30)); - transfer.EnsureCompleted(cancellationTokenSource.Token); + transfer.WaitForCompletion(cancellationTokenSource.Token); // Assert await testEventsRaised.AssertContainerCompletedWithFailedCheck(1); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); Assert.IsTrue(testEventsRaised.FailedEvents.First().Exception.Message.Contains("BlobAlreadyExists")); } @@ -878,9 +878,9 @@ public async Task StartTransfer_EnsureCompleted_Skipped() using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); // Create transfer options with Skipping available - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Skip + CreationPreference = StorageResourceCreationPreference.SkipIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -894,13 +894,13 @@ public async Task StartTransfer_EnsureCompleted_Skipped() // Act CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(30)); - transfer.EnsureCompleted(cancellationTokenSource.Token); + transfer.WaitForCompletion(cancellationTokenSource.Token); // Assert await testEventsRaised.AssertContainerCompletedWithSkippedCheck(1); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); } [Test] @@ -912,9 +912,9 @@ public async Task StartTransfer_EnsureCompleted_Failed_SmallChunks() using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); string destinationFolder = CreateRandomDirectory(testDirectory.DirectoryPath); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail, + CreationPreference = StorageResourceCreationPreference.FailIfExists, InitialTransferSize = 512, MaximumTransferChunkSize = 512 }; @@ -930,12 +930,12 @@ public async Task StartTransfer_EnsureCompleted_Failed_SmallChunks() size: Constants.KB * 4); CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(30)); - transfer.EnsureCompleted(cancellationTokenSource.Token); + transfer.WaitForCompletion(cancellationTokenSource.Token); // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); Assert.IsTrue(testEventsRaised.FailedEvents.First().Exception.Message.Contains("BlobAlreadyExists")); await testEventsRaised.AssertContainerCompletedWithFailedCheck(1); } diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferUploadTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferUploadTests.cs index 10118190f1d9..b25ac03a1414 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferUploadTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/StartTransferUploadTests.cs @@ -42,9 +42,9 @@ public VerifyUploadBlobContentInfo( } }; - internal TransferOptions CopySingleUploadOptions(TransferOptions options) + internal DataTransferOptions CopySingleUploadOptions(DataTransferOptions options) { - TransferOptions newOptions = new TransferOptions() + DataTransferOptions newOptions = new DataTransferOptions() { MaximumTransferChunkSize = options.MaximumTransferChunkSize, InitialTransferSize = options.InitialTransferSize, @@ -70,7 +70,7 @@ private async Task UploadBlockBlobsAndVerify( TransferManagerOptions transferManagerOptions = default, int blobCount = 1, List blobNames = default, - List options = default) + List options = default) { using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); @@ -94,7 +94,7 @@ private async Task UploadBlockBlobsAndVerify( transferManagerOptions ??= new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure + ErrorHandling = DataTransferErrorMode.ContinueOnFailure }; List uploadedBlobInfo = new List(blobCount); @@ -116,10 +116,10 @@ private async Task UploadBlockBlobsAndVerify( // Set up destination client BlockBlobClient destClient = container.GetBlockBlobClient(blobNames[i]); - StorageResourceSingle destinationResource = new BlockBlobStorageResource(destClient); + StorageResourceItem destinationResource = new BlockBlobStorageResource(destClient); // Act - StorageResourceSingle sourceResource = new LocalFileStorageResource(localSourceFile); + StorageResourceItem sourceResource = new LocalFileStorageResource(localSourceFile); DataTransfer transfer = await transferManager.StartTransferAsync(sourceResource, destinationResource, options[i]); uploadedBlobInfo.Add(new VerifyUploadBlobContentInfo( @@ -162,11 +162,11 @@ public async Task LocalToBlockBlob_EventHandler() AutoResetEvent InProgressWait = new AutoResetEvent(false); bool progressSeen = false; - TransferOptions options = new TransferOptions(); - options.TransferStatus += (TransferStatusEventArgs args) => + DataTransferOptions options = new DataTransferOptions(); + options.TransferStatusChanged += (TransferStatusEventArgs args) => { // Assert - if (args.StorageTransferStatus == StorageTransferStatus.InProgress) + if (args.StorageTransferStatus == DataTransferStatus.InProgress) { progressSeen = true; } @@ -176,7 +176,7 @@ public async Task LocalToBlockBlob_EventHandler() // Arrange await using DisposingBlobContainer testContainer = await GetTestContainerAsync(); - List optionsList = new List() { options }; + List optionsList = new List() { options }; await UploadBlockBlobsAndVerify( container: testContainer.Container, blobCount: optionsList.Count, @@ -191,7 +191,7 @@ public async Task LocalToBlockBlobSize_SmallChunk() { long fileSize = Constants.KB; int waitTimeInSec = 25; - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { InitialTransferSize = 100, MaximumTransferChunkSize = 200, @@ -199,7 +199,7 @@ public async Task LocalToBlockBlobSize_SmallChunk() // Arrange await using DisposingBlobContainer testContainer = await GetTestContainerAsync(); - List optionsList = new List() { options }; + List optionsList = new List() { options }; await UploadBlockBlobsAndVerify( size: fileSize, @@ -223,11 +223,11 @@ public async Task LocalToBlockBlob_Overwrite_Exists() // Act // Create options bag to overwrite any existing destination. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite, + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists, }; - List optionsList = new List() { options }; + List optionsList = new List() { options }; List blobNames = new List() { blobName }; // Start transfer and await for completion. @@ -250,11 +250,11 @@ public async Task LocalToBlockBlob_Overwrite_NotExists() // Act // Create options bag to overwrite any existing destination. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite, + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists, }; - List optionsList = new List() { options }; + List optionsList = new List() { options }; // Start transfer and await for completion. await UploadBlockBlobsAndVerify( @@ -280,12 +280,12 @@ public async Task LocalToBlockBlob_Skip_Exists() // Create new source file string newSourceFile = await CreateRandomFileAsync(Path.GetTempPath(), size:size); // Create options bag to overwrite any existing destination. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Skip, + CreationPreference = StorageResourceCreationPreference.SkipIfExists, }; - StorageResourceSingle sourceResource = new LocalFileStorageResource(newSourceFile); - StorageResourceSingle destinationResource = new BlockBlobStorageResource(destinationClient); + StorageResourceItem sourceResource = new LocalFileStorageResource(newSourceFile); + StorageResourceItem destinationResource = new BlockBlobStorageResource(destinationClient); TestEventsRaised testEventsRaised = new TestEventsRaised(options); TransferManager transferManager = new TransferManager(); @@ -302,7 +302,7 @@ public async Task LocalToBlockBlob_Skip_Exists() await testEventsRaised.AssertSingleSkippedCheck(); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); Assert.IsTrue(await destinationClient.ExistsAsync()); // Verify Upload - That we skipped over and didn't reupload something new. using (FileStream fileStream = File.OpenRead(originalSourceFile)) @@ -329,13 +329,13 @@ public async Task LocalToBlockBlob_Failure_Exists() // Act // Create options bag to fail and keep track of the failure. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail, + CreationPreference = StorageResourceCreationPreference.FailIfExists, }; TestEventsRaised testEventRaised = new TestEventsRaised(options); - StorageResourceSingle sourceResource = new LocalFileStorageResource(newSourceFile); - StorageResourceSingle destinationResource = new BlockBlobStorageResource(destinationClient); + StorageResourceItem sourceResource = new LocalFileStorageResource(newSourceFile); + StorageResourceItem destinationResource = new BlockBlobStorageResource(destinationClient); TransferManager transferManager = new TransferManager(); // Start transfer and await for completion. @@ -349,7 +349,7 @@ public async Task LocalToBlockBlob_Failure_Exists() // Assert Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); Assert.IsTrue(await destinationClient.ExistsAsync()); await testEventRaised.AssertSingleFailedCheck(); Assert.NotNull(testEventRaised.FailedEvents.First().Exception, "Excepted failure: Overwrite failure was supposed to be raised during the test"); @@ -408,16 +408,16 @@ public async Task LocalToBlockBlob_SmallConcurrency(int concurrency, long size, TransferManagerOptions managerOptions = new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure, + ErrorHandling = DataTransferErrorMode.ContinueOnFailure, MaximumConcurrency = concurrency, }; - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { InitialTransferSize = 512, MaximumTransferChunkSize = 512, }; - List optionsList = new List { options }; + List optionsList = new List { options }; await UploadBlockBlobsAndVerify( container: testContainer.Container, @@ -442,7 +442,7 @@ public async Task LocalToBlockBlob_LargeConcurrency(int concurrency, int size, i TransferManagerOptions managerOptions = new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure, + ErrorHandling = DataTransferErrorMode.ContinueOnFailure, MaximumConcurrency = concurrency, }; @@ -512,7 +512,7 @@ private async Task UploadPageBlobsAndVerify( int blobCount = 1, TransferManagerOptions transferManagerOptions = default, List blobNames = default, - List options = default) + List options = default) { using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); @@ -536,7 +536,7 @@ private async Task UploadPageBlobsAndVerify( transferManagerOptions ??= new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure + ErrorHandling = DataTransferErrorMode.ContinueOnFailure }; List uploadedBlobInfo = new List(blobCount); @@ -558,10 +558,10 @@ private async Task UploadPageBlobsAndVerify( // Set up destination client PageBlobClient destClient = container.GetPageBlobClient(blobNames[i]); - StorageResourceSingle destinationResource = new PageBlobStorageResource(destClient); + StorageResourceItem destinationResource = new PageBlobStorageResource(destClient); // Act - StorageResourceSingle sourceResource = new LocalFileStorageResource(localSourceFile); + StorageResourceItem sourceResource = new LocalFileStorageResource(localSourceFile); DataTransfer transfer = await blobDataController.StartTransferAsync(sourceResource, destinationResource, options[i]); uploadedBlobInfo.Add(new VerifyUploadBlobContentInfo( @@ -578,7 +578,7 @@ private async Task UploadPageBlobsAndVerify( CancellationTokenSource tokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(waitTimeInSec)); await uploadedBlobInfo[i].DataTransfer.WaitForCompletionAsync(tokenSource.Token); Assert.IsTrue(uploadedBlobInfo[i].DataTransfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.Completed, uploadedBlobInfo[i].DataTransfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, uploadedBlobInfo[i].DataTransfer.TransferStatus); // Verify Upload await uploadedBlobInfo[i].EventsRaised.AssertSingleCompletedCheck(); @@ -612,11 +612,11 @@ public async Task LocalToPageBlob_Overwrite_Exists() // Act // Create options bag to overwrite any existing destination. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite, + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists, }; - List optionsList = new List() { options }; + List optionsList = new List() { options }; List blobNames = new List() { blobName }; TransferManager transferManager = new TransferManager(); @@ -640,11 +640,11 @@ public async Task LocalToPageBlob_Overwrite_NotExists() // Act // Create options bag to overwrite any existing destination. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite, + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists, }; - List optionsList = new List() { options }; + List optionsList = new List() { options }; TransferManager transferManager = new TransferManager(); // Start transfer and await for completion. @@ -670,12 +670,12 @@ public async Task LocalToPageBlob_Skip_Exists() // Create new source file string newSourceFile = await CreateRandomFileAsync(Path.GetTempPath(), size: size); // Create options bag to overwrite any existing destination. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Skip, + CreationPreference = StorageResourceCreationPreference.SkipIfExists, }; - StorageResourceSingle sourceResource = new LocalFileStorageResource(newSourceFile); - StorageResourceSingle destinationResource = new PageBlobStorageResource(destinationClient); + StorageResourceItem sourceResource = new LocalFileStorageResource(newSourceFile); + StorageResourceItem destinationResource = new PageBlobStorageResource(destinationClient); TestEventsRaised testEventsRaised = new TestEventsRaised(options); TransferManager transferManager = new TransferManager(); @@ -692,7 +692,7 @@ public async Task LocalToPageBlob_Skip_Exists() await testEventsRaised.AssertSingleSkippedCheck(); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); Assert.IsTrue(await destinationClient.ExistsAsync()); // Verify Upload - That we skipped over and didn't reupload something new. using (FileStream fileStream = File.OpenRead(originalSourceFile)) @@ -718,13 +718,13 @@ public async Task LocalToPageBlob_Failure_Exists() // Act // Create options bag to fail and keep track of the failure. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail, + CreationPreference = StorageResourceCreationPreference.FailIfExists, }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); - StorageResourceSingle sourceResource = new LocalFileStorageResource(newSourceFile); - StorageResourceSingle destinationResource = new PageBlobStorageResource(destinationClient); + StorageResourceItem sourceResource = new LocalFileStorageResource(newSourceFile); + StorageResourceItem destinationResource = new PageBlobStorageResource(destinationClient); TransferManager transferManager = new TransferManager(); // Start transfer and await for completion. @@ -739,7 +739,7 @@ public async Task LocalToPageBlob_Failure_Exists() await testEventsRaised.AssertSingleFailedCheck(); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); Assert.IsTrue(await destinationClient.ExistsAsync()); Assert.NotNull(testEventsRaised.FailedEvents.First().Exception, "Excepted failure: Overwrite failure was supposed to be raised during the test"); Assert.IsTrue(testEventsRaised.FailedEvents.First().Exception.Message.Contains("The specified blob already exists.")); @@ -757,7 +757,7 @@ public async Task LocalToPageBlob_Failure_Exists() [TestCase(5 * Constants.KB, 60)] public async Task LocalToPageBlob_SmallSize(long fileSize, int waitTimeInSec) { - TransferOptions options = new TransferOptions(); + DataTransferOptions options = new DataTransferOptions(); // Arrange var blobName = GetNewBlobName(); @@ -779,7 +779,7 @@ await UploadPageBlobsAndVerify( [TestCase(Constants.GB, 1500)] public async Task LocalToPageBlob_LargeSize(long fileSize, int waitTimeInSec) { - TransferOptions options = new TransferOptions(); + DataTransferOptions options = new DataTransferOptions(); // Arrange var blobName = GetNewBlobName(); @@ -805,16 +805,16 @@ public async Task LocalToPageBlob_SmallConcurrency(int concurrency, int size, in TransferManagerOptions managerOptions = new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure, + ErrorHandling = DataTransferErrorMode.ContinueOnFailure, MaximumConcurrency = concurrency, }; - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { InitialTransferSize = 512, MaximumTransferChunkSize = 512, }; - List optionsList = new List { options }; + List optionsList = new List { options }; await UploadPageBlobsAndVerify( size: size, @@ -841,7 +841,7 @@ public async Task LocalToPageBlob_LargeConcurrency(int concurrency, int size, in TransferManagerOptions managerOptions = new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure, + ErrorHandling = DataTransferErrorMode.ContinueOnFailure, MaximumConcurrency = concurrency, }; @@ -895,7 +895,7 @@ await UploadPageBlobsAndVerify( public async Task LocalToPageBlob_SmallChunks() { long size = 12 * Constants.KB; - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { InitialTransferSize = Constants.KB, MaximumTransferChunkSize = Constants.KB @@ -904,7 +904,7 @@ public async Task LocalToPageBlob_SmallChunks() // Arrange await using DisposingBlobContainer testContainer = await GetTestContainerAsync(); - List optionsList = new List() { options }; + List optionsList = new List() { options }; await UploadPageBlobsAndVerify( container: testContainer.Container, size: size, @@ -931,7 +931,7 @@ private async Task UploadAppendBlobsAndVerify( int blobCount = 1, TransferManagerOptions transferManagerOptions = default, List blobNames = default, - List options = default) + List options = default) { using DisposingLocalDirectory testDirectory = DisposingLocalDirectory.GetTestDirectory(); @@ -955,7 +955,7 @@ private async Task UploadAppendBlobsAndVerify( transferManagerOptions ??= new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure + ErrorHandling = DataTransferErrorMode.ContinueOnFailure }; List uploadedBlobInfo = new List(blobCount); @@ -977,10 +977,10 @@ private async Task UploadAppendBlobsAndVerify( // Set up destination client AppendBlobClient destClient = container.GetAppendBlobClient(blobNames[i]); - StorageResourceSingle destinationResource = new AppendBlobStorageResource(destClient); + StorageResourceItem destinationResource = new AppendBlobStorageResource(destClient); // Act - StorageResourceSingle sourceResource = new LocalFileStorageResource(localSourceFile); + StorageResourceItem sourceResource = new LocalFileStorageResource(localSourceFile); DataTransfer transfer = await blobDataController.StartTransferAsync(sourceResource, destinationResource, options[i]); uploadedBlobInfo.Add(new VerifyUploadBlobContentInfo( @@ -997,7 +997,7 @@ private async Task UploadAppendBlobsAndVerify( CancellationTokenSource tokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(waitTimeInSec)); await uploadedBlobInfo[i].DataTransfer.WaitForCompletionAsync(tokenSource.Token); Assert.IsTrue(uploadedBlobInfo[i].DataTransfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.Completed, uploadedBlobInfo[i].DataTransfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, uploadedBlobInfo[i].DataTransfer.TransferStatus); // Verify Upload await uploadedBlobInfo[i].EventsRaised.AssertSingleCompletedCheck(); @@ -1023,7 +1023,7 @@ public async Task LocalToAppend_SmallChunk() long size = Constants.KB; int waitTimeInSec = 25; - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { InitialTransferSize = 100, MaximumTransferChunkSize = 500, @@ -1032,7 +1032,7 @@ public async Task LocalToAppend_SmallChunk() // Arrange await using DisposingBlobContainer testContainer = await GetTestContainerAsync(publicAccessType: PublicAccessType.BlobContainer); - List optionsList = new List() { options }; + List optionsList = new List() { options }; await UploadAppendBlobsAndVerify( testContainer.Container, waitTimeInSec: waitTimeInSec, @@ -1055,11 +1055,11 @@ public async Task LocalToAppendBlob_Overwrite_Exists() // Act // Create options bag to overwrite any existing destination. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite, + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists, }; - List optionsList = new List() { options }; + List optionsList = new List() { options }; List blobNames = new List() { blobName }; // Start transfer and await for completion. @@ -1082,11 +1082,11 @@ public async Task LocalToAppendBlob_Overwrite_NotExists() // Act // Create options bag to overwrite any existing destination. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Overwrite, + CreationPreference = StorageResourceCreationPreference.OverwriteIfExists, }; - List optionsList = new List() { options }; + List optionsList = new List() { options }; // Start transfer and await for completion. await UploadAppendBlobsAndVerify( @@ -1111,12 +1111,12 @@ public async Task LocalToAppendBlob_Skip_Exists() // Create new source file string newSourceFile = await CreateRandomFileAsync(Path.GetTempPath(), size: size); // Create options bag to overwrite any existing destination. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Skip, + CreationPreference = StorageResourceCreationPreference.SkipIfExists, }; - StorageResourceSingle sourceResource = new LocalFileStorageResource(newSourceFile); - StorageResourceSingle destinationResource = new AppendBlobStorageResource(destinationClient); + StorageResourceItem sourceResource = new LocalFileStorageResource(newSourceFile); + StorageResourceItem destinationResource = new AppendBlobStorageResource(destinationClient); TestEventsRaised testEventsRaised = new TestEventsRaised(options); TransferManager transferManager = new TransferManager(); @@ -1133,7 +1133,7 @@ public async Task LocalToAppendBlob_Skip_Exists() await testEventsRaised.AssertSingleSkippedCheck(); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); Assert.IsTrue(await destinationClient.ExistsAsync()); // Verify Upload - That we skipped over and didn't reupload something new. using (FileStream fileStream = File.OpenRead(originalSourceFile)) @@ -1159,13 +1159,13 @@ public async Task LocalToAppendBlob_Failure_Exists() // Act // Create options bag to fail and keep track of the failure. - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail, + CreationPreference = StorageResourceCreationPreference.FailIfExists, }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); - StorageResourceSingle sourceResource = new LocalFileStorageResource(newSourceFile); - StorageResourceSingle destinationResource = new AppendBlobStorageResource(destinationClient); + StorageResourceItem sourceResource = new LocalFileStorageResource(newSourceFile); + StorageResourceItem destinationResource = new AppendBlobStorageResource(destinationClient); TransferManager transferManager = new TransferManager(); // Start transfer and await for completion. @@ -1180,7 +1180,7 @@ public async Task LocalToAppendBlob_Failure_Exists() await testEventsRaised.AssertSingleFailedCheck(); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); Assert.IsTrue(await destinationClient.ExistsAsync()); Assert.NotNull(testEventsRaised.FailedEvents.First().Exception, "Excepted failure: Overwrite failure was supposed to be raised during the test"); Assert.IsTrue(testEventsRaised.FailedEvents.First().Exception.Message.Contains("The specified blob already exists.")); @@ -1243,18 +1243,18 @@ public async Task LocalToAppendBlob_SmallConcurrency(int concurrency, int size, await using DisposingBlobContainer testContainer = await GetTestContainerAsync(); AppendBlobClient destClient = testContainer.Container.GetAppendBlobClient(blobName); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { InitialTransferSize = 512, MaximumTransferChunkSize = 512 }; - List optionsList = new List { options }; + List optionsList = new List { options }; List blobNames = new List() { blobName }; TransferManagerOptions managerOptions = new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure, + ErrorHandling = DataTransferErrorMode.ContinueOnFailure, MaximumConcurrency = concurrency, }; @@ -1285,7 +1285,7 @@ public async Task LocalToAppendBlob_LargeConcurrency(int concurrency, int size, TransferManagerOptions managerOptions = new TransferManagerOptions() { - ErrorHandling = ErrorHandlingBehavior.ContinueOnFailure, + ErrorHandling = DataTransferErrorMode.ContinueOnFailure, MaximumConcurrency = concurrency, }; @@ -1349,7 +1349,7 @@ private async Task CreateStartTransfer( BlobContainerClient containerClient, int concurrency, bool createFailedCondition = false, - TransferOptions options = default, + DataTransferOptions options = default, int size = Constants.KB) { // Arrange @@ -1364,7 +1364,7 @@ private async Task CreateStartTransfer( { destinationClient = containerClient.GetBlockBlobClient(destinationBlobName); } - StorageResourceSingle destinationResource = new BlockBlobStorageResource(destinationClient); + StorageResourceItem destinationResource = new BlockBlobStorageResource(destinationClient); // Create new source file using Stream originalStream = await CreateLimitedMemoryStream(size); @@ -1375,7 +1375,7 @@ private async Task CreateStartTransfer( { await originalStream.CopyToAsync(fileStream); } - StorageResourceSingle sourceResource = new LocalFileStorageResource(localSourceFile); + StorageResourceItem sourceResource = new LocalFileStorageResource(localSourceFile); // Create Transfer Manager with single threaded operation TransferManagerOptions managerOptions = new TransferManagerOptions() @@ -1397,7 +1397,7 @@ public async Task StartTransfer_AwaitCompletion() // Arrange await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: Storage.Blobs.Models.PublicAccessType.BlobContainer); - TransferOptions options = new TransferOptions(); + DataTransferOptions options = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(options); // Create transfer to do a AwaitCompletion @@ -1411,7 +1411,7 @@ public async Task StartTransfer_AwaitCompletion() await testEventsRaised.AssertSingleCompletedCheck(); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.Completed, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, transfer.TransferStatus); } [RecordedTest] @@ -1420,9 +1420,9 @@ public async Task StartTransfer_AwaitCompletion_Failed() // Arrange await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: Storage.Blobs.Models.PublicAccessType.BlobContainer); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail + CreationPreference = StorageResourceCreationPreference.FailIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -1441,7 +1441,7 @@ public async Task StartTransfer_AwaitCompletion_Failed() await testEventsRaised.AssertSingleFailedCheck(); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); Assert.IsTrue(testEventsRaised.FailedEvents.First().Exception.Message.Contains("BlobAlreadyExists")); } @@ -1452,9 +1452,9 @@ public async Task StartTransfer_AwaitCompletion_Skipped() await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: Storage.Blobs.Models.PublicAccessType.BlobContainer); // Create transfer options with Skipping available - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Skip + CreationPreference = StorageResourceCreationPreference.SkipIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -1473,7 +1473,7 @@ public async Task StartTransfer_AwaitCompletion_Skipped() await testEventsRaised.AssertSingleSkippedCheck(); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); } [RecordedTest] @@ -1482,7 +1482,7 @@ public async Task StartTransfer_EnsureCompleted() // Arrange await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: Storage.Blobs.Models.PublicAccessType.BlobContainer); - TransferOptions options = new TransferOptions(); + DataTransferOptions options = new DataTransferOptions(); TestEventsRaised testEventsRaised = new TestEventsRaised(options); // Create transfer to do a EnsureCompleted @@ -1490,13 +1490,13 @@ public async Task StartTransfer_EnsureCompleted() // Act CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(5)); - transfer.EnsureCompleted(cancellationTokenSource.Token); + transfer.WaitForCompletion(cancellationTokenSource.Token); // Assert await testEventsRaised.AssertSingleCompletedCheck(); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.Completed, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.Completed, transfer.TransferStatus); } [RecordedTest] @@ -1505,9 +1505,9 @@ public async Task StartTransfer_EnsureCompleted_Failed() // Arrange await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: Storage.Blobs.Models.PublicAccessType.BlobContainer); - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Fail + CreationPreference = StorageResourceCreationPreference.FailIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -1520,13 +1520,13 @@ public async Task StartTransfer_EnsureCompleted_Failed() // Act CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(5)); - transfer.EnsureCompleted(cancellationTokenSource.Token); + transfer.WaitForCompletion(cancellationTokenSource.Token); // Assert await testEventsRaised.AssertSingleFailedCheck(); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithFailedTransfers, transfer.TransferStatus); Assert.IsTrue(testEventsRaised.FailedEvents.First().Exception.Message.Contains("BlobAlreadyExists")); } @@ -1537,9 +1537,9 @@ public async Task StartTransfer_EnsureCompleted_Skipped() await using DisposingBlobContainer test = await GetTestContainerAsync(publicAccessType: Storage.Blobs.Models.PublicAccessType.BlobContainer); // Create transfer options with Skipping available - TransferOptions options = new TransferOptions() + DataTransferOptions options = new DataTransferOptions() { - CreateMode = StorageResourceCreateMode.Skip + CreationPreference = StorageResourceCreationPreference.SkipIfExists }; TestEventsRaised testEventsRaised = new TestEventsRaised(options); @@ -1552,13 +1552,13 @@ public async Task StartTransfer_EnsureCompleted_Skipped() // Act CancellationTokenSource cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(5)); - transfer.EnsureCompleted(cancellationTokenSource.Token); + transfer.WaitForCompletion(cancellationTokenSource.Token); // Assert await testEventsRaised.AssertSingleSkippedCheck(); Assert.NotNull(transfer); Assert.IsTrue(transfer.HasCompleted); - Assert.AreEqual(StorageTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); + Assert.AreEqual(DataTransferStatus.CompletedWithSkippedTransfers, transfer.TransferStatus); } #endregion @@ -1567,11 +1567,11 @@ public async Task SupportsLongFiles() { long fileSize = 5L * Constants.GB; - StorageResourceSingle srcResource = MockStorageResource.MakeSourceResource(fileSize, false, maxChunkSize: Constants.GB); - StorageResourceSingle dstResource = MockStorageResource.MakeDestinationResource(true, maxChunkSize: Constants.GB); + StorageResourceItem srcResource = MockStorageResource.MakeSourceResource(fileSize, false, maxChunkSize: Constants.GB); + StorageResourceItem dstResource = MockStorageResource.MakeDestinationResource(true, maxChunkSize: Constants.GB); TransferManager transferManager = new TransferManager(); - TransferOptions options = new(); + DataTransferOptions options = new(); TestEventsRaised events = new(options); DataTransfer transfer = await transferManager.StartTransferAsync(srcResource, dstResource, options); await transfer.WaitForCompletionAsync(); diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/TestEventsRaised.cs b/sdk/storage/Azure.Storage.DataMovement/tests/TestEventsRaised.cs index 36b2bc118e1e..15e47868ca36 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/TestEventsRaised.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/TestEventsRaised.cs @@ -20,61 +20,61 @@ namespace Azure.Storage.DataMovement.Tests /// an Assert.Failure in the middle of an event. /// /// Also if there's multiple failures then we will catch all of them. - /// (Which would mainly occur during + /// (Which would mainly occur during /// internal class TestEventsRaised : IDisposable { - public List FailedEvents { get; internal set; } + public List FailedEvents { get; internal set; } public List StatusEvents { get; internal set; } - public List SkippedEvents { get; internal set; } - public ConcurrentBag SingleCompletedEvents { get; internal set; } + public List SkippedEvents { get; internal set; } + public ConcurrentBag SingleCompletedEvents { get; internal set; } - private List _options; + private List _options; private TestEventsRaised() { - FailedEvents = new List(); + FailedEvents = new List(); StatusEvents = new List(); - SkippedEvents = new List(); - SingleCompletedEvents = new ConcurrentBag(); + SkippedEvents = new List(); + SingleCompletedEvents = new ConcurrentBag(); } - public TestEventsRaised(TransferOptions options) + public TestEventsRaised(DataTransferOptions options) : this() { - options.TransferFailed += AppendFailedArg; - options.TransferStatus += AppendStatusArg; - options.TransferSkipped += AppendSkippedArg; - options.SingleTransferCompleted += AppendSingleTransferCompleted; - _options = new List { options }; + options.ItemTransferFailed += AppendFailedArg; + options.TransferStatusChanged += AppendStatusArg; + options.ItemTransferSkipped += AppendSkippedArg; + options.ItemTransferCompleted += AppendSingleTransferCompleted; + _options = new List { options }; } - public TestEventsRaised(List optionsList) + public TestEventsRaised(List optionsList) : this() { - _options = new List(); - foreach (TransferOptions options in optionsList) + _options = new List(); + foreach (DataTransferOptions options in optionsList) { - options.TransferFailed += AppendFailedArg; - options.TransferStatus += AppendStatusArg; - options.TransferSkipped += AppendSkippedArg; - options.SingleTransferCompleted += AppendSingleTransferCompleted; + options.ItemTransferFailed += AppendFailedArg; + options.TransferStatusChanged += AppendStatusArg; + options.ItemTransferSkipped += AppendSkippedArg; + options.ItemTransferCompleted += AppendSingleTransferCompleted; _options.Add(options); } } public void Dispose() { - foreach (TransferOptions options in _options) + foreach (DataTransferOptions options in _options) { - options.TransferFailed -= AppendFailedArg; - options.TransferStatus -= AppendStatusArg; - options.TransferSkipped -= AppendSkippedArg; - options.SingleTransferCompleted -= AppendSingleTransferCompleted; + options.ItemTransferFailed -= AppendFailedArg; + options.TransferStatusChanged -= AppendStatusArg; + options.ItemTransferSkipped -= AppendSkippedArg; + options.ItemTransferCompleted -= AppendSingleTransferCompleted; } } - private Task AppendFailedArg(TransferFailedEventArgs args) + private Task AppendFailedArg(TransferItemFailedEventArgs args) { FailedEvents.Add(args); return Task.CompletedTask; @@ -86,13 +86,13 @@ private Task AppendStatusArg(TransferStatusEventArgs args) return Task.CompletedTask; } - private Task AppendSkippedArg(TransferSkippedEventArgs args) + private Task AppendSkippedArg(TransferItemSkippedEventArgs args) { SkippedEvents.Add(args); return Task.CompletedTask; } - private Task AppendSingleTransferCompleted(SingleTransferCompletedEventArgs args) + private Task AppendSingleTransferCompleted(TransferItemCompletedEventArgs args) { SingleCompletedEvents.Add(args); return Task.CompletedTask; @@ -102,7 +102,7 @@ public void AssertUnexpectedFailureCheck() { Assert.Multiple(() => { - foreach (TransferFailedEventArgs failure in FailedEvents) + foreach (TransferItemFailedEventArgs failure in FailedEvents) { Assert.Fail( $"Failure occurred at Transfer id: {failure.TransferId}.\n" + @@ -116,7 +116,7 @@ public void AssertUnexpectedFailureCheck() /// /// This asserts that the expected events occurred during a single transfer that is expected - /// to have a at the end without any skips + /// to have a at the end without any skips /// or failures. /// public async Task AssertSingleCompletedCheck() @@ -127,15 +127,15 @@ public async Task AssertSingleCompletedCheck() await WaitForStatusEventsAsync().ConfigureAwait(false); CollectionAssert.AreEqual( - new StorageTransferStatus[] { - StorageTransferStatus.InProgress, - StorageTransferStatus.Completed }, + new DataTransferStatus[] { + DataTransferStatus.InProgress, + DataTransferStatus.Completed }, StatusEvents.Select(e => e.StorageTransferStatus)); } /// /// This asserts that the expected events occurred during a single transfer that is expected - /// to have a at the end without any + /// to have a at the end without any /// or failures. /// public async Task AssertSingleSkippedCheck() @@ -148,15 +148,15 @@ public async Task AssertSingleSkippedCheck() await WaitForStatusEventsAsync().ConfigureAwait(false); CollectionAssert.AreEqual( - new StorageTransferStatus[] { - StorageTransferStatus.InProgress, - StorageTransferStatus.CompletedWithSkippedTransfers }, + new DataTransferStatus[] { + DataTransferStatus.InProgress, + DataTransferStatus.CompletedWithSkippedTransfers }, StatusEvents.Select(e => e.StorageTransferStatus)); } /// /// This asserts that the expected events occurred during a single transfer that is expected - /// to have a at the end without any skips. + /// to have a at the end without any skips. /// public async Task AssertSingleFailedCheck() { @@ -169,16 +169,16 @@ public async Task AssertSingleFailedCheck() await WaitForStatusEventsAsync().ConfigureAwait(false); CollectionAssert.AreEqual( - new StorageTransferStatus[] { - StorageTransferStatus.InProgress, - StorageTransferStatus.CancellationInProgress, - StorageTransferStatus.CompletedWithFailedTransfers }, + new DataTransferStatus[] { + DataTransferStatus.InProgress, + DataTransferStatus.CancellationInProgress, + DataTransferStatus.CompletedWithFailedTransfers }, StatusEvents.Select(e => e.StorageTransferStatus)); } /// /// This asserts that the expected events occurred during a container transfer that is expected - /// to have a at the end without any skips + /// to have a at the end without any skips /// or failures. /// /// @@ -192,16 +192,16 @@ public async Task AssertContainerCompletedCheck(int transferCount) await WaitForStatusEventsAsync().ConfigureAwait(false); CollectionAssert.AreEqual( - new StorageTransferStatus[] { - StorageTransferStatus.InProgress, - StorageTransferStatus.Completed }, + new DataTransferStatus[] { + DataTransferStatus.InProgress, + DataTransferStatus.Completed }, StatusEvents.Select(e => e.StorageTransferStatus)); } /// /// This asserts that the expected events occurred during a container transfer that is expected - /// to have a at the end without any skips. - /// Assuming was set. + /// to have a at the end without any skips. + /// Assuming was set. /// /// /// Expected amount of failure single transfers to occur within the container transfers. @@ -222,17 +222,17 @@ public async Task AssertContainerCompletedWithFailedCheck(int expectedFailureCou await WaitForStatusEventsAsync().ConfigureAwait(false); CollectionAssert.AreEqual( - new StorageTransferStatus[] { - StorageTransferStatus.InProgress, - StorageTransferStatus.CancellationInProgress, - StorageTransferStatus.CompletedWithFailedTransfers }, + new DataTransferStatus[] { + DataTransferStatus.InProgress, + DataTransferStatus.CancellationInProgress, + DataTransferStatus.CompletedWithFailedTransfers }, StatusEvents.Select(e => e.StorageTransferStatus)); } /// /// This asserts that the expected events occurred during a container transfer that is expected - /// to have a at the end without any skips. - /// Assuming was set. + /// to have a at the end without any skips. + /// Assuming was set. /// /// /// Expected amount of failure single transfers to occur within the container transfers. @@ -253,15 +253,15 @@ public async Task AssertContainerCompletedWithFailedCheckContinue(int expectedFa await WaitForStatusEventsAsync().ConfigureAwait(false); CollectionAssert.AreEqual( - new StorageTransferStatus[] { - StorageTransferStatus.InProgress, - StorageTransferStatus.CompletedWithFailedTransfers }, + new DataTransferStatus[] { + DataTransferStatus.InProgress, + DataTransferStatus.CompletedWithFailedTransfers }, StatusEvents.Select(e => e.StorageTransferStatus)); } /// /// This asserts that the expected events occurred during a container transfer that is expected - /// to have a at the end without any failures. + /// to have a at the end without any failures. /// /// /// Expected amount of skipped single transfers to occur within the container transfers. @@ -273,9 +273,9 @@ public async Task AssertContainerCompletedWithSkippedCheck(int expectedSkipCount await WaitForStatusEventsAsync().ConfigureAwait(false); CollectionAssert.AreEqual( - new StorageTransferStatus[] { - StorageTransferStatus.InProgress, - StorageTransferStatus.CompletedWithSkippedTransfers }, + new DataTransferStatus[] { + DataTransferStatus.InProgress, + DataTransferStatus.CompletedWithSkippedTransfers }, StatusEvents.Select(e => e.StorageTransferStatus)); } @@ -286,9 +286,9 @@ public async Task AssertPausedCheck() await WaitForStatusEventsAsync().ConfigureAwait(false); CollectionAssert.AreEqual( - new StorageTransferStatus[] { - StorageTransferStatus.InProgress, - StorageTransferStatus.Paused }, + new DataTransferStatus[] { + DataTransferStatus.InProgress, + DataTransferStatus.Paused }, StatusEvents.Select(e => e.StorageTransferStatus)); } @@ -300,15 +300,15 @@ public async Task AssertPausedCheck() /// The options bag reference. If there are existing options, use the existing options, /// if not default options will be created so event args can be added to the event handlers /// A respective list of Events Raised coordinating with the options given. - internal static List PopulateTestOptions(int transferCount, ref List listOptions) + internal static List PopulateTestOptions(int transferCount, ref List listOptions) { List eventRaisedList = new List(transferCount); if (listOptions == default || listOptions?.Count == 0) { - listOptions ??= new List(transferCount); + listOptions ??= new List(transferCount); for (int i = 0; i < transferCount; i++) { - TransferOptions currentOptions = new TransferOptions(); + DataTransferOptions currentOptions = new DataTransferOptions(); TestEventsRaised testEventRaisedCurrent = new TestEventsRaised(currentOptions); listOptions.Add(currentOptions); eventRaisedList.Add(testEventRaisedCurrent); @@ -319,7 +319,7 @@ internal static List PopulateTestOptions(int transferCount, re // If blobNames is populated make sure these number of blobs match Assert.AreEqual(transferCount, listOptions.Count); // Add TestEventRaised to each option - foreach (TransferOptions currentOptions in listOptions) + foreach (DataTransferOptions currentOptions in listOptions) { TestEventsRaised testEventRaisedCurrent = new TestEventsRaised(currentOptions); eventRaisedList.Add(testEventRaisedCurrent); diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/TestProgressHandler.cs b/sdk/storage/Azure.Storage.DataMovement/tests/TestProgressHandler.cs index e5a188f979df..4877cf33bf83 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/TestProgressHandler.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/TestProgressHandler.cs @@ -6,11 +6,11 @@ namespace Azure.Storage.DataMovement.Tests { - internal class TestProgressHandler : IProgress + internal class TestProgressHandler : IProgress { - public List Updates { get; private set; } = new List(); + public List Updates { get; private set; } = new List(); - public void Report(StorageTransferProgress progress) + public void Report(DataTransferProgress progress) { Updates.Add(progress); } From 2111bfc845526a36b2363c4d82f4799665981c00 Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Thu, 3 Aug 2023 11:02:34 -0700 Subject: [PATCH 33/54] Ignore new sample tests (#38005) --- .../tests/Samples/Sample13_AdvancedConfiguration.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Samples/Sample13_AdvancedConfiguration.cs b/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Samples/Sample13_AdvancedConfiguration.cs index d7c9f4ff53d5..ce23a037ea67 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Samples/Sample13_AdvancedConfiguration.cs +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Samples/Sample13_AdvancedConfiguration.cs @@ -90,6 +90,7 @@ public void ConfigurePrefetchProcessor() } [Test] + [Ignore("Only verifying that the code builds")] public async Task ConfigureMessageLockLostHandler() { #region Snippet:ServiceBusProcessorLockLostHandler @@ -156,6 +157,7 @@ Task ErrorHandler(ProcessErrorEventArgs args) } [Test] + [Ignore("Only verifying that the code builds")] public async Task ConfigureSessionLockLostHandler() { #region Snippet:ServiceBusSessionProcessorLockLostHandler From d86f71590cefefe73aa9ce8d72bf126709c22efb Mon Sep 17 00:00:00 2001 From: Juntu Chen <95723208+juntuchen-msft@users.noreply.github.com> Date: Thu, 3 Aug 2023 14:24:13 -0400 Subject: [PATCH 34/54] [DO NOT MERGE]Per-action callback Uri feature name updates (#37842) * name update * fixed a bug --- .../Azure.Communication.CallAutomation.netstandard2.0.cs | 6 +++--- .../src/CallConnection.cs | 8 ++++---- .../Models/AddParticipantRequestInternal.Serialization.cs | 6 +++--- .../src/Generated/Models/AddParticipantRequestInternal.cs | 4 ++-- .../RemoveParticipantRequestInternal.Serialization.cs | 6 +++--- .../Generated/Models/RemoveParticipantRequestInternal.cs | 4 ++-- .../TransferToParticipantRequestInternal.Serialization.cs | 6 +++--- .../Models/TransferToParticipantRequestInternal.cs | 4 ++-- .../src/Models/AddParticipantOptions.cs | 4 +++- .../src/Models/RemoveParticipantOptions.cs | 4 +++- .../src/Models/TransferToParticipantOptions.cs | 3 ++- .../Azure.Communication.CallAutomation/src/autorest.md | 2 +- 12 files changed, 31 insertions(+), 26 deletions(-) diff --git a/sdk/communication/Azure.Communication.CallAutomation/api/Azure.Communication.CallAutomation.netstandard2.0.cs b/sdk/communication/Azure.Communication.CallAutomation/api/Azure.Communication.CallAutomation.netstandard2.0.cs index dadcb7255a2d..57720e1a6dcf 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/api/Azure.Communication.CallAutomation.netstandard2.0.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/api/Azure.Communication.CallAutomation.netstandard2.0.cs @@ -17,7 +17,7 @@ internal AddParticipantFailed() { } public partial class AddParticipantOptions { public AddParticipantOptions(Azure.Communication.CallAutomation.CallInvite participantToAdd) { } - public string CallbackUriOverride { get { throw null; } set { } } + public System.Uri CallbackUri { get { throw null; } set { } } public int? InvitationTimeoutInSeconds { get { throw null; } set { } } public string OperationContext { get { throw null; } set { } } public Azure.Communication.CallAutomation.CallInvite ParticipantToAdd { get { throw null; } } @@ -1119,7 +1119,7 @@ internal RemoveParticipantFailed() { } public partial class RemoveParticipantOptions { public RemoveParticipantOptions(Azure.Communication.CommunicationIdentifier participantToRemove) { } - public string CallbackUriOverride { get { throw null; } set { } } + public System.Uri CallbackUri { get { throw null; } set { } } public string OperationContext { get { throw null; } set { } } public Azure.Communication.CommunicationIdentifier ParticipantToRemove { get { throw null; } } } @@ -1263,7 +1263,7 @@ public partial class TransferToParticipantOptions public TransferToParticipantOptions(Azure.Communication.CommunicationUserIdentifier targetIdentity) { } public TransferToParticipantOptions(Azure.Communication.MicrosoftTeamsUserIdentifier targetIdentity) { } public TransferToParticipantOptions(Azure.Communication.PhoneNumberIdentifier targetPhoneNumberIdentity) { } - public string CallbackUriOverride { get { throw null; } set { } } + public System.Uri CallbackUri { get { throw null; } set { } } public Azure.Communication.CallAutomation.CustomContext CustomContext { get { throw null; } } public string OperationContext { get { throw null; } set { } } public Azure.Communication.CommunicationIdentifier Target { get { throw null; } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/CallConnection.cs b/sdk/communication/Azure.Communication.CallAutomation/src/CallConnection.cs index cbc2e5e28caf..e07eb37e97a3 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/CallConnection.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/CallConnection.cs @@ -289,7 +289,7 @@ private static TransferToParticipantRequestInternal CreateTransferToParticipantR request.Transferee = CommunicationIdentifierSerializer.Serialize(options.Transferee); } - request.CallbackUriOverride = options.CallbackUriOverride; + request.CallbackUri = options.CallbackUri?.AbsoluteUri; return request; } @@ -392,7 +392,7 @@ private static AddParticipantRequestInternal CreateAddParticipantRequest(AddPart }; request.InvitationTimeoutInSeconds = options.InvitationTimeoutInSeconds; - request.CallbackUriOverride = options.CallbackUriOverride; + request.CallbackUri = options.CallbackUri?.AbsoluteUri; request.CustomContext = new CustomContextInternal( options.ParticipantToAdd.CustomContext.SipHeaders == null ? new ChangeTrackingDictionary() : options.ParticipantToAdd.CustomContext.SipHeaders, @@ -544,7 +544,7 @@ public virtual async Task> RemoveParticipantAs request.OperationContext = options.OperationContext == default ? Guid.NewGuid().ToString() : options.OperationContext; - request.CallbackUriOverride = options.CallbackUriOverride; + request.CallbackUri = options.CallbackUri?.AbsoluteUri; var response = await RestClient.RemoveParticipantAsync(CallConnectionId, request, cancellationToken).ConfigureAwait(false); var result = new RemoveParticipantResult(response); @@ -593,7 +593,7 @@ public virtual Response RemoveParticipant(RemovePartici options.OperationContext = options.OperationContext == default ? Guid.NewGuid().ToString() : options.OperationContext; - request.CallbackUriOverride = options.CallbackUriOverride; + request.CallbackUri = options.CallbackUri?.AbsoluteUri; var response = RestClient.RemoveParticipant(CallConnectionId, request, cancellationToken); var result = new RemoveParticipantResult(response); diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantRequestInternal.Serialization.cs index f87db4f7c3f7..1247be0dccd2 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantRequestInternal.Serialization.cs @@ -42,10 +42,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("customContext"u8); writer.WriteObjectValue(CustomContext); } - if (Optional.IsDefined(CallbackUriOverride)) + if (Optional.IsDefined(CallbackUri)) { - writer.WritePropertyName("callbackUriOverride"u8); - writer.WriteStringValue(CallbackUriOverride); + writer.WritePropertyName("callbackUri"u8); + writer.WriteStringValue(CallbackUri); } writer.WriteEndObject(); } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantRequestInternal.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantRequestInternal.cs index e147652cb8da..5953ac8580db 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantRequestInternal.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/AddParticipantRequestInternal.cs @@ -45,7 +45,7 @@ public AddParticipantRequestInternal(CommunicationIdentifierModel participantToA public string OperationContext { get; set; } /// Used by customer to send custom context to targets. public CustomContextInternal CustomContext { get; set; } - /// The callback URI override. - public string CallbackUriOverride { get; set; } + /// The callback URI to override the main callback URI. + public string CallbackUri { get; set; } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantRequestInternal.Serialization.cs index 5ad6f9f82db3..73bdcc964717 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantRequestInternal.Serialization.cs @@ -22,10 +22,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("operationContext"u8); writer.WriteStringValue(OperationContext); } - if (Optional.IsDefined(CallbackUriOverride)) + if (Optional.IsDefined(CallbackUri)) { - writer.WritePropertyName("callbackUriOverride"u8); - writer.WriteStringValue(CallbackUriOverride); + writer.WritePropertyName("callbackUri"u8); + writer.WriteStringValue(CallbackUri); } writer.WriteEndObject(); } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantRequestInternal.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantRequestInternal.cs index 4f2135cf86b6..b1b668e22eea 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantRequestInternal.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/RemoveParticipantRequestInternal.cs @@ -28,7 +28,7 @@ public RemoveParticipantRequestInternal(CommunicationIdentifierModel participant public CommunicationIdentifierModel ParticipantToRemove { get; } /// Used by customers when calling mid-call actions to correlate the request to the response event. public string OperationContext { get; set; } - /// The callback URI override. - public string CallbackUriOverride { get; set; } + /// The callback URI to override the main callback URI. + public string CallbackUri { get; set; } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TransferToParticipantRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TransferToParticipantRequestInternal.Serialization.cs index 59fa7516bc18..4209a8a10b30 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TransferToParticipantRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TransferToParticipantRequestInternal.Serialization.cs @@ -32,10 +32,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("transferee"u8); writer.WriteObjectValue(Transferee); } - if (Optional.IsDefined(CallbackUriOverride)) + if (Optional.IsDefined(CallbackUri)) { - writer.WritePropertyName("callbackUriOverride"u8); - writer.WriteStringValue(CallbackUriOverride); + writer.WritePropertyName("callbackUri"u8); + writer.WriteStringValue(CallbackUri); } writer.WriteEndObject(); } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TransferToParticipantRequestInternal.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TransferToParticipantRequestInternal.cs index bc4046681705..0fdd0ceb227e 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TransferToParticipantRequestInternal.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/Models/TransferToParticipantRequestInternal.cs @@ -32,7 +32,7 @@ public TransferToParticipantRequestInternal(CommunicationIdentifierModel targetP public string OperationContext { get; set; } /// Transferee is the participant who is transferring the call. public CommunicationIdentifierModel Transferee { get; set; } - /// The callback URI override. - public string CallbackUriOverride { get; set; } + /// The callback URI to override the main callback URI. + public string CallbackUri { get; set; } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Models/AddParticipantOptions.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Models/AddParticipantOptions.cs index 2454be79bb75..2396cd20e0ce 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Models/AddParticipantOptions.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Models/AddParticipantOptions.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System; + namespace Azure.Communication.CallAutomation { /// @@ -37,6 +39,6 @@ public AddParticipantOptions(CallInvite participantToAdd) /// /// The callback URI override for this transfer call request. /// - public string CallbackUriOverride { get; set; } + public Uri CallbackUri { get; set; } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Models/RemoveParticipantOptions.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Models/RemoveParticipantOptions.cs index 6bc3ed1240ad..9d7a67b9bf0e 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Models/RemoveParticipantOptions.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Models/RemoveParticipantOptions.cs @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System; + namespace Azure.Communication.CallAutomation { /// @@ -29,6 +31,6 @@ public RemoveParticipantOptions(CommunicationIdentifier participantToRemove) /// /// The callback URI override for this transfer call request. /// - public string CallbackUriOverride { get; set; } + public Uri CallbackUri { get; set; } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Models/TransferToParticipantOptions.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Models/TransferToParticipantOptions.cs index a40818c5a910..4d4eb541558e 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Models/TransferToParticipantOptions.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Models/TransferToParticipantOptions.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System; using System.Collections.Generic; namespace Azure.Communication.CallAutomation @@ -64,6 +65,6 @@ public TransferToParticipantOptions(MicrosoftTeamsUserIdentifier targetIdentity) /// /// The callback URI override for this transfer call request. /// - public string CallbackUriOverride { get; set; } + public Uri CallbackUri { get; set; } } } diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/autorest.md b/sdk/communication/Azure.Communication.CallAutomation/src/autorest.md index 9ae3551e19b5..0373bc3e6d54 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/autorest.md +++ b/sdk/communication/Azure.Communication.CallAutomation/src/autorest.md @@ -10,7 +10,7 @@ model-namespace: false tag: package-2023-01-15-preview require: - - https://github.com/williamzhao87/azure-rest-api-specs/blob/0a316f5346cf6dc37200403d6b20e2400157721c/specification/communication/data-plane/CallAutomation/readme.md + - https://github.com/williamzhao87/azure-rest-api-specs/blob/b496fbaf1cef0d9a8d31cfb11c3fc301d4c328ef/specification/communication/data-plane/CallAutomation/readme.md title: Azure Communication Services From 39faef50dd23188aaad4735c95681c7439e1d188 Mon Sep 17 00:00:00 2001 From: hakimms <131916587+hakimms@users.noreply.github.com> Date: Thu, 3 Aug 2023 12:17:28 -0700 Subject: [PATCH 35/54] Entra - Make Source field in payload required (#37966) * Marked empty/null actions as failed * replaced tabs with spaces * Updated spacing * Replaced tab with spaces * Updates based on feedback * Updated Validation Logic * WIP Added test cases for OneOrMoreRequiredAttribute * Added test case for EnumberableItemsNotNull Attribute * Feedback updates * Updates based on PR feedback * Sort 'using' lists and removed unapplicable data annotation * Adding necessary updates to merge with azure main * Removed xUnit reference now that we are using NUnit tests * removed Update-Snippets.ps1 changes and will rebase * Added null check and test for response before marking as failed * Updated exception to validation exception and corrected test * Changed back to argument null exception * Added response validation exception type * Update sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/AuthenticationEventResource.resx Adding a missing period Co-authored-by: Jesse Squire * Added period * Added not null check for source field in payload * Changed source attribute to required * Sorted usings * Added test scenarios for AuthenticationEventMetadata * Added big fix to changelog * Refactored test case for consistency with existing tests and added links to changelog * Added assertions for exception messages and removed links to bugs * Ran scripts to update netstandard2.0 class --------- Co-authored-by: Jesse Squire --- .../CHANGELOG.md | 5 +- ...ons.AuthenticationEvents.netstandard2.0.cs | 1 + .../src/Framework/CloudEventRequest.cs | 5 +- .../AuthenticationEventMetadataTests.cs | 56 +++++++++++++++++++ .../EnumerableItemsNotNullAttributeTests.cs | 19 +++++-- .../OneOrMoreRequiredAttributeTests.cs | 14 ++++- ...tensions.AuthenticationEvents.Tests.csproj | 4 ++ .../RequestMissingSource.json | 41 ++++++++++++++ .../TokenIssuanceStart/TokenIssuanceStart.cs | 18 ++++++ .../TokenIssuanceStart/ValidRequest.json | 42 ++++++++++++++ .../tests/TestHelpers/TestCaseStructure.cs | 8 ++- 11 files changed, 199 insertions(+), 14 deletions(-) create mode 100644 sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/AuthenticationEventMetadataTests.cs create mode 100644 sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Payloads/TokenIssuanceStart/RequestMissingSource.json create mode 100644 sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Payloads/TokenIssuanceStart/ValidRequest.json diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/CHANGELOG.md b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/CHANGELOG.md index d305990e7683..2cfda098a132 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/CHANGELOG.md +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/CHANGELOG.md @@ -4,8 +4,9 @@ ### Bugs Fixed -- Updated ODataType signature - 2433332 -- Empty or null response actions will throw a bad response - 2161553 +- Updated ODataType signature +- Empty or null response actions will throw a bad response +- Made the source field in the request a required field ## 1.0.0-beta.3 (2022-12-13) diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/api/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.netstandard2.0.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/api/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.netstandard2.0.cs index 098c9aaa84e6..2a98cfb7b289 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/api/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.netstandard2.0.cs +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/api/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.netstandard2.0.cs @@ -130,6 +130,7 @@ protected CloudEventData() { } internal CloudEventRequest() { } [System.Text.Json.Serialization.JsonPropertyNameAttribute("oDataType")] public string ODataType { get { throw null; } set { } } + [System.ComponentModel.DataAnnotations.RequiredAttribute] [System.Text.Json.Serialization.JsonPropertyNameAttribute("source")] public string Source { get { throw null; } set { } } } diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/CloudEventRequest.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/CloudEventRequest.cs index 92c9fe97bdb5..eed463b54727 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/CloudEventRequest.cs +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/Framework/CloudEventRequest.cs @@ -1,9 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.Validators; +using System.ComponentModel.DataAnnotations; using System.Net.Http; using System.Text.Json.Serialization; +using Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.Validators; namespace Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework { @@ -17,7 +18,7 @@ public abstract class CloudEventRequest : AuthenticationEventR /// Gets or sets the source. /// The source. [JsonPropertyName("source")] - [RequireNonDefault] + [Required] public string Source { get; set; } /// Gets or sets the cloud event data type. diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/AuthenticationEventMetadataTests.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/AuthenticationEventMetadataTests.cs new file mode 100644 index 000000000000..f0645e276048 --- /dev/null +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/AuthenticationEventMetadataTests.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Net.Http; +using Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework; +using NUnit.Framework; +using Payload = Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Tests.Payloads.TokenIssuanceStart; + +namespace Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Tests.Framework +{ + [TestFixture] + public class AuthenticationEventMetadataTests + { + [Test] + [TestCaseSource(nameof(TestScenarios))] + public void TestRequestCreateInstance(object testObject, string message, bool success, string exceptionMessage) + { + string payload = testObject.ToString(); + AuthenticationEventMetadata eventMetadata = AuthenticationEventMetadataLoader.GetEventMetadata(payload); + HttpRequestMessage requestMessage = new HttpRequestMessage(HttpMethod.Post, $"http://localhost:7278/runtime/webhooks/customauthenticationextension?code=opVsbQul8-MsRuM9x6yVoghE2Xda5G-MeV_Ybv1MdEfuAzFuVtpEpg==&functionName=onTokenIssuanceStart"); + + if (success == false) + { + var ex = Assert.Throws(() => eventMetadata.CreateEventRequestValidate(requestMessage, payload, string.Empty)); + Assert.AreEqual(exceptionMessage, ex.Message); + } + else + { + Assert.DoesNotThrow(() => eventMetadata.CreateEventRequestValidate(requestMessage, payload, string.Empty)); + } + } + + private static IEnumerable TestScenarios() + { +#region Invalid + yield return new TestCaseStructure() + { + Test = Payload.TokenIssuanceStart.RequestWithoutSourcePayload, + Message = "Testing request payload without source field passed and verifies it throws an error", + ExceptionMessage = "TokenIssuanceStartRequest: The Source field is required." + }.ToArray; +#endregion + +#region Valid + yield return new TestCaseStructure() + { + Test = Payload.TokenIssuanceStart.ValidRequestPayload, + Message = "Testing valid full request payload", + Success = true, + }.ToArray; +#endregion + } + } +} diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/Validators/EnumerableItemsNotNullAttributeTests.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/Validators/EnumerableItemsNotNullAttributeTests.cs index 26d59fa9acd0..98b3ab100e27 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/Validators/EnumerableItemsNotNullAttributeTests.cs +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/Validators/EnumerableItemsNotNullAttributeTests.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.Validators; using NUnit.Framework; @@ -13,13 +16,14 @@ public class EnumerableItemsNotNullAttributeTests { [Test] [TestCaseSource(nameof(TestScenarios))] - public void EnumberableItemsNotNullIsValidWithTestCase(object testObject, string message, bool success) + public void EnumberableItemsNotNullIsValidWithTestCase(object testObject, string message, bool success, string exceptionMessage) { DummyClass dummyObj = new() { Obj = testObject }; if (success == false) { - Assert.Throws(() => Validator.ValidateObject(dummyObj, new ValidationContext(dummyObj), true), AuthenticationEventResource.Ex_Null_Action_Items); + var ex = Assert.Throws(() => Validator.ValidateObject(dummyObj, new ValidationContext(dummyObj), true)); + Assert.AreEqual(exceptionMessage, ex.Message); } else { @@ -43,30 +47,35 @@ private static IEnumerable TestScenarios() { Test = null, Message = "Testing null", + ExceptionMessage = AuthenticationEventResource.Ex_Null_Action_Items, }.ToArray; yield return new TestCaseStructure() { Test = new object(), Message = "Testing object", + ExceptionMessage = AuthenticationEventResource.Ex_Null_Action_Items, }.ToArray; yield return new TestCaseStructure() { Test = new List() { null }, Message = "Testing object list with null item", + ExceptionMessage = AuthenticationEventResource.Ex_Null_Action_Items, }.ToArray; yield return new TestCaseStructure() { Test = new List() { new(), null, new() }, Message = "Testing object list with multiple items with one null", + ExceptionMessage = AuthenticationEventResource.Ex_Null_Action_Items, }.ToArray; yield return new TestCaseStructure() { Test = new object[1], Message = "Testing single null item array", + ExceptionMessage = AuthenticationEventResource.Ex_Null_Action_Items, }.ToArray; -#endregion + #endregion -#region Valid + #region Valid yield return new TestCaseStructure() { Test = new List() { new(), new() }, diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/Validators/OneOrMoreRequiredAttributeTests.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/Validators/OneOrMoreRequiredAttributeTests.cs index 02a4bb46d3ce..460315b4b343 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/Validators/OneOrMoreRequiredAttributeTests.cs +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/Validators/OneOrMoreRequiredAttributeTests.cs @@ -1,4 +1,7 @@ -using System.Collections.Generic; +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Framework.Validators; using NUnit.Framework; @@ -13,13 +16,14 @@ public class OneOrMoreRequiredAttributeTests { [Test] [TestCaseSource(nameof(TestScenarios))] - public void OneOrMoreRequiredIsValidWithTestCase(object testObject, string message, bool success) + public void OneOrMoreRequiredIsValidWithTestCase(object testObject, string message, bool success, string exceptionMessage) { DummyClass dummyObj = new() { Obj = testObject }; if (success == false) { - Assert.Throws(() => Validator.ValidateObject(dummyObj, new ValidationContext(dummyObj), true), AuthenticationEventResource.Ex_No_Action); + var ex = Assert.Throws(() => Validator.ValidateObject(dummyObj, new ValidationContext(dummyObj), true)); + Assert.AreEqual(exceptionMessage, ex.Message); } else { @@ -43,21 +47,25 @@ private static IEnumerable TestScenarios() { Test = null, Message = "Testing null", + ExceptionMessage = AuthenticationEventResource.Ex_No_Action, }.ToArray; yield return new TestCaseStructure() { Test = new object(), Message = "Testing object", + ExceptionMessage = AuthenticationEventResource.Ex_No_Action, }.ToArray; yield return new TestCaseStructure() { Test = new List(), Message = "Testing initialized object", + ExceptionMessage = AuthenticationEventResource.Ex_No_Action, }.ToArray; yield return new TestCaseStructure() { Test = new object[0], Message = "Testing empty array", + ExceptionMessage = AuthenticationEventResource.Ex_No_Action, }.ToArray; #endregion diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Tests.csproj b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Tests.csproj index 1847cb5ee010..ba453f21d54f 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Tests.csproj +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Tests.csproj @@ -10,6 +10,8 @@ + + @@ -19,6 +21,8 @@ + + diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Payloads/TokenIssuanceStart/RequestMissingSource.json b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Payloads/TokenIssuanceStart/RequestMissingSource.json new file mode 100644 index 000000000000..ed0aaf506f36 --- /dev/null +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Payloads/TokenIssuanceStart/RequestMissingSource.json @@ -0,0 +1,41 @@ +{ + "type": "microsoft.graph.authenticationEvent.tokenIssuanceStart", + "data": { + "@odata.type": "microsoft.graph.onTokenIssuanceStartCalloutData", + "tenantId": "d33b1c3f-49c2-8cb3-963b-ca195de1e704", + "authenticationEventListenerId": "6fd9cb25-ff72-304b-7b27-5fd793aa3c2f", + "customAuthenticationExtensionId": "ce1b2217-fdf9-a19f-2f46-a639514a4107", + "authenticationContext": { + "correlationId": "1dc14bea-414b-a99e-64de-b4702d82ab59", + "client": { + "ip": "30.51.176.110", + "locale": "en-us", + "market": "en-us" + }, + "protocol": "OAUTH2.0", + "clientServicePrincipal": { + "id": "1dc14bea-414b-a99e-64de-b4702d82ab59", + "appId": "d56ef0c3-a4e8-b26c-484c-8873b560eab3", + "appDisplayName": "My Test application", + "displayName": "My Test application" + }, + "resourceServicePrincipal": { + "id": "8de396f3-6559-a65c-398e-43a2fc6a2141", + "appId": "d56ef0c3-a4e8-b26c-484c-8873b560eab3", + "appDisplayName": "My Test application", + "displayName": "My Test application" + }, + "user": { + "createdDateTime": "2016-03-01T15:23:40Z", + "displayName": "Bob", + "givenName": "Bob Smith", + "id": "90847c2a-e29d-4d2f-9f54-c5b4d3f26471", + "mail": "bob@contoso.com", + "preferredLanguage": "en-us", + "surname": "Smith", + "userPrincipalName": "bob@contoso.com", + "userType": "Member" + } + } + } +} \ No newline at end of file diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Payloads/TokenIssuanceStart/TokenIssuanceStart.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Payloads/TokenIssuanceStart/TokenIssuanceStart.cs index da1ef66f1016..be598d80dfc6 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Payloads/TokenIssuanceStart/TokenIssuanceStart.cs +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Payloads/TokenIssuanceStart/TokenIssuanceStart.cs @@ -70,5 +70,23 @@ public static string NullResponsePayload return PayloadHelper.GetPayload("TokenIssuanceStart.NullResponse.json"); } } + + /// Gets the valid request payload + public static string ValidRequestPayload + { + get + { + return PayloadHelper.GetPayload("TokenIssuanceStart.ValidRequest.json"); + } + } + + /// Gets the request payload without source field + public static string RequestWithoutSourcePayload + { + get + { + return PayloadHelper.GetPayload("TokenIssuanceStart.RequestMissingSource.json"); + } + } } } diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Payloads/TokenIssuanceStart/ValidRequest.json b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Payloads/TokenIssuanceStart/ValidRequest.json new file mode 100644 index 000000000000..7b1017ea53c1 --- /dev/null +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Payloads/TokenIssuanceStart/ValidRequest.json @@ -0,0 +1,42 @@ +{ + "type": "microsoft.graph.authenticationEvent.tokenIssuanceStart", + "source": "/tenants/d33b1c3f-49c2-8cb3-963b-ca195de1e704/applications/d56ef0c3-a4e8-b26c-484c-8873b560eab3", + "data": { + "@odata.type": "microsoft.graph.onTokenIssuanceStartCalloutData", + "tenantId": "d33b1c3f-49c2-8cb3-963b-ca195de1e704", + "authenticationEventListenerId": "6fd9cb25-ff72-304b-7b27-5fd793aa3c2f", + "customAuthenticationExtensionId": "ce1b2217-fdf9-a19f-2f46-a639514a4107", + "authenticationContext": { + "correlationId": "1dc14bea-414b-a99e-64de-b4702d82ab59", + "client": { + "ip": "30.51.176.110", + "locale": "en-us", + "market": "en-us" + }, + "protocol": "OAUTH2.0", + "clientServicePrincipal": { + "id": "1dc14bea-414b-a99e-64de-b4702d82ab59", + "appId": "d56ef0c3-a4e8-b26c-484c-8873b560eab3", + "appDisplayName": "My Test application", + "displayName": "My Test application" + }, + "resourceServicePrincipal": { + "id": "8de396f3-6559-a65c-398e-43a2fc6a2141", + "appId": "d56ef0c3-a4e8-b26c-484c-8873b560eab3", + "appDisplayName": "My Test application", + "displayName": "My Test application" + }, + "user": { + "createdDateTime": "2016-03-01T15:23:40Z", + "displayName": "Bob", + "givenName": "Bob Smith", + "id": "90847c2a-e29d-4d2f-9f54-c5b4d3f26471", + "mail": "bob@contoso.com", + "preferredLanguage": "en-us", + "surname": "Smith", + "userPrincipalName": "bob@contoso.com", + "userType": "Member" + } + } + } +} \ No newline at end of file diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/TestHelpers/TestCaseStructure.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/TestHelpers/TestCaseStructure.cs index e3fae9958ac1..c0de3a5f91be 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/TestHelpers/TestCaseStructure.cs +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/TestHelpers/TestCaseStructure.cs @@ -1,11 +1,15 @@ -namespace Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Tests +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.Tests { public class TestCaseStructure { public object Test { get; set; } public string Message { get; set; } public bool Success { get; set; } + public string ExceptionMessage { get; set; } - public object[] ToArray => new object[] { Test, Message, Success }; + public object[] ToArray => new object[] { Test, Message, Success, ExceptionMessage }; } } From b01abf1261a30dfc85576f2420f1b6cf6a085dd6 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 3 Aug 2023 13:36:43 -0700 Subject: [PATCH 36/54] Sync eng/common directory with azure-sdk-tools for PR 6670 (#38008) * bump the proxy version * updating version proxy consumed by framework --------- Co-authored-by: Scott Beddall --- eng/Packages.Data.props | 2 +- eng/common/testproxy/target_version.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index ab23f4d7521a..50796941cc33 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -301,7 +301,7 @@ - 1.0.0-dev.20230728.1 + 1.0.0-dev.20230802.1 diff --git a/eng/common/testproxy/target_version.txt b/eng/common/testproxy/target_version.txt index faaab72a41d3..3ebae04c3478 100644 --- a/eng/common/testproxy/target_version.txt +++ b/eng/common/testproxy/target_version.txt @@ -1 +1 @@ -1.0.0-dev.20230728.1 +1.0.0-dev.20230802.1 From 0bb83895e9eacef1bf3f8b68029797087ab3db9d Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Thu, 3 Aug 2023 13:41:04 -0700 Subject: [PATCH 37/54] Enable Test Proxy logging in Test Framework (#37994) * Add AMQP constructor to ServiceBusMessage * Enable logging for test proxy integration * Clean up * readme * add section * revert default * Add locking * Add AspNetCore Info logging * reduce delay to 20ms * Put all proxy logging behind flag instead of allowing loglevel config * Fix wrapping * Split out CheckForErrors to make it sync --- sdk/core/Azure.Core.TestFramework/README.md | 5 +++ .../src/RecordedTestBase.cs | 5 ++- .../src/TestEnvironment.cs | 16 +++++++ .../Azure.Core.TestFramework/src/TestProxy.cs | 42 +++++++++++++++++-- 4 files changed, 63 insertions(+), 5 deletions(-) diff --git a/sdk/core/Azure.Core.TestFramework/README.md b/sdk/core/Azure.Core.TestFramework/README.md index 09e09e7a1f15..8da1b7de68b0 100644 --- a/sdk/core/Azure.Core.TestFramework/README.md +++ b/sdk/core/Azure.Core.TestFramework/README.md @@ -380,6 +380,11 @@ The key integration points between the Test Framework and the Test Proxy are: - InstrumentClientOptions method of `RecordedTestBase` - calling this on your client options will set the [ClientOptions.Transport property](https://learn.microsoft.com/dotnet/api/azure.core.clientoptions.transport?view=azure-dotnet) to be [ProxyTransport](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core.TestFramework/src/ProxyTransport.cs) to your client options when in `Playback` or `Record` mode. The ProxyTransport will send all requests to the Test Proxy. - [TestProxy.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core.TestFramework/src/TestProxy.cs) - This class is responsible for starting and stopping the Test Proxy process, as well as reporting any errors that occur in the Test Proxy process. The Test Proxy process is started automatically when running tests in `Record` or `Playback` mode, and is stopped automatically when the test run is complete. The Test Proxy process is shared between tests and test classes within a process. +#### Including Test Proxy Logs + +In order to enable Test Proxy logging, you can either set the `AZURE_ENABLE_TEST_PROXY_LOGGING` +environment variable or the `EnableTestProxyLogging` [runsetting](https://github.com/Azure/azure-sdk-for-net/blob/main/eng/nunit.runsettings) parameter to `true`. + ## Unit tests The Test Framework provides several classes that can help you write unit tests for your client library. Unit tests are helpful for scenarios that would be tricky to test with a recorded test, such as simulating certain error scenarios. diff --git a/sdk/core/Azure.Core.TestFramework/src/RecordedTestBase.cs b/sdk/core/Azure.Core.TestFramework/src/RecordedTestBase.cs index c3a7bd2160df..bf9d6306c564 100644 --- a/sdk/core/Azure.Core.TestFramework/src/RecordedTestBase.cs +++ b/sdk/core/Azure.Core.TestFramework/src/RecordedTestBase.cs @@ -458,7 +458,10 @@ public virtual async Task StopTestRecordingAsync() } } - _proxy?.CheckForErrors(); + if (_proxy != null) + { + await _proxy.CheckProxyOutputAsync(); + } } protected internal override object InstrumentClient(Type clientType, object client, IEnumerable preInterceptors) diff --git a/sdk/core/Azure.Core.TestFramework/src/TestEnvironment.cs b/sdk/core/Azure.Core.TestFramework/src/TestEnvironment.cs index 8d1d2c840c29..791d52a6eb23 100644 --- a/sdk/core/Azure.Core.TestFramework/src/TestEnvironment.cs +++ b/sdk/core/Azure.Core.TestFramework/src/TestEnvironment.cs @@ -650,6 +650,22 @@ internal static bool EnableFiddler } } + /// + /// Determines whether to enable proxy logging beyond errors. + /// + internal static bool EnableProxyLogging + { + get + { + string switchString = TestContext.Parameters["EnableProxyLogging"] ?? + Environment.GetEnvironmentVariable("AZURE_ENABLE_PROXY_LOGGING"); + + bool.TryParse(switchString, out bool enableProxyLogging); + + return enableProxyLogging; + } + } + private void BootStrapTestResources() { lock (s_syncLock) diff --git a/sdk/core/Azure.Core.TestFramework/src/TestProxy.cs b/sdk/core/Azure.Core.TestFramework/src/TestProxy.cs index 4521342d3561..ee2fcb10a2f7 100644 --- a/sdk/core/Azure.Core.TestFramework/src/TestProxy.cs +++ b/sdk/core/Azure.Core.TestFramework/src/TestProxy.cs @@ -9,6 +9,7 @@ using System.Reflection; using System.Runtime.InteropServices; using System.Text; +using System.Threading; using System.Threading.Tasks; using Azure.Core.Pipeline; using NUnit.Framework; @@ -38,6 +39,8 @@ public class TestProxy private readonly StringBuilder _errorBuffer = new(); private static readonly object _lock = new(); private static TestProxy _shared; + private readonly StringBuilder _output = new(); + private static readonly bool s_enableProxyLogging; static TestProxy() { @@ -56,6 +59,7 @@ static TestProxy() s_dotNetExe = Path.Combine(installDir, dotNetExeName); bool HasDotNetExe(string dotnetDir) => dotnetDir != null && File.Exists(Path.Combine(dotnetDir, dotNetExeName)); + s_enableProxyLogging = TestEnvironment.EnableProxyLogging; } private TestProxy(string proxyPath, bool debugMode = false) @@ -74,7 +78,9 @@ private TestProxy(string proxyPath, bool debugMode = false) EnvironmentVariables = { ["ASPNETCORE_URLS"] = $"http://{IpAddress}:0;https://{IpAddress}:0", + ["Logging__LogLevel__Azure.Sdk.Tools.TestProxy"] = s_enableProxyLogging ? "Debug" : "Error", ["Logging__LogLevel__Default"] = "Error", + ["Logging__LogLevel__Microsoft.AspNetCore"] = s_enableProxyLogging ? "Information" : "Error", ["Logging__LogLevel__Microsoft.Hosting.Lifetime"] = "Information", ["ASPNETCORE_Kestrel__Certificates__Default__Path"] = TestEnvironment.DevCertPath, ["ASPNETCORE_Kestrel__Certificates__Default__Password"] = TestEnvironment.DevCertPassword @@ -133,14 +139,24 @@ private TestProxy(string proxyPath, bool debugMode = false) var options = new TestProxyClientOptions(); Client = new TestProxyRestClient(new ClientDiagnostics(options), HttpPipelineBuilder.Build(options), new Uri($"http://{IpAddress}:{_proxyPortHttp}")); - // For some reason draining the standard output stream is necessary to keep the test-proxy process healthy. Otherwise requests - // start timing out. This only seems to happen when not specifying a port. _ = Task.Run( () => { while (!_testProxyProcess.HasExited && !_testProxyProcess.StandardOutput.EndOfStream) { - _testProxyProcess.StandardOutput.ReadLine(); + if (s_enableProxyLogging) + { + lock (_output) + { + _output.AppendLine(_testProxyProcess.StandardOutput.ReadLine()); + } + } + // For some reason draining the standard output stream is necessary to keep the test-proxy process healthy, even + // when we are not outputting logs. Otherwise, requests start timing out. + else + { + _testProxyProcess.StandardOutput.ReadLine(); + } } }); } @@ -204,7 +220,25 @@ private static bool TryParsePort(string output, string scheme, out int? port) return false; } - public void CheckForErrors() + public async Task CheckProxyOutputAsync() + { + if (s_enableProxyLogging) + { + // add a small delay to allow the log output for the just finished test to be collected into the _output StringBuilder + await Task.Delay(20); + + // lock to avoid any race conditions caused by appending to the StringBuilder while calling ToString + lock (_output) + { + TestContext.Out.WriteLine(_output.ToString()); + _output.Clear(); + } + } + + CheckForErrors(); + } + + private void CheckForErrors() { if (_errorBuffer.Length > 0) { From 688a2056851f26f26ac7fe4280961d5834313bf3 Mon Sep 17 00:00:00 2001 From: Timothy Mothra Date: Thu, 3 Aug 2023 15:04:21 -0700 Subject: [PATCH 38/54] [AzureMonitorExporter] Refactor Environment Variables (#38012) * refactor Env Vars * cleanup --- .../src/Internals/AzureMonitorTransmitter.cs | 4 +- .../Internals/EnvironmentVariableConstants.cs | 59 +++++++++++++++++++ .../PersistentStorage/StorageHelper.cs | 6 +- .../Statsbeat/AzureMonitorStatsbeat.cs | 8 +-- 4 files changed, 68 insertions(+), 9 deletions(-) create mode 100644 sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/EnvironmentVariableConstants.cs diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/AzureMonitorTransmitter.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/AzureMonitorTransmitter.cs index 0ca72df15751..4871be2fc1f1 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/AzureMonitorTransmitter.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/AzureMonitorTransmitter.cs @@ -62,7 +62,7 @@ internal static ConnectionVars InitializeConnectionVars(AzureMonitorExporterOpti { if (options.ConnectionString == null) { - var connectionString = platform.GetEnvironmentVariable("APPLICATIONINSIGHTS_CONNECTION_STRING"); + var connectionString = platform.GetEnvironmentVariable(EnvironmentVariableConstants.APPLICATIONINSIGHTS_CONNECTION_STRING); if (!string.IsNullOrWhiteSpace(connectionString)) { @@ -137,7 +137,7 @@ private static ApplicationInsightsRestClient InitializeRestClient(AzureMonitorEx { try { - var disableStatsbeat = platform.GetEnvironmentVariable("APPLICATIONINSIGHTS_STATSBEAT_DISABLED"); + var disableStatsbeat = platform.GetEnvironmentVariable(EnvironmentVariableConstants.APPLICATIONINSIGHTS_STATSBEAT_DISABLED); if (string.Equals(disableStatsbeat, "true", StringComparison.OrdinalIgnoreCase)) { AzureMonitorExporterEventSource.Log.StatsbeatDisabled(); diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/EnvironmentVariableConstants.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/EnvironmentVariableConstants.cs new file mode 100644 index 000000000000..3b097b0080eb --- /dev/null +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/EnvironmentVariableConstants.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.Monitor.OpenTelemetry.Exporter.Internals +{ + internal static class EnvironmentVariableConstants + { + /// + /// Available for users to set their Connection String. + /// + /// + /// . + /// + public const string APPLICATIONINSIGHTS_CONNECTION_STRING = "APPLICATIONINSIGHTS_CONNECTION_STRING"; + + /// + /// Available for users to opt-out of Statsbeat. + /// + /// + /// . + /// + public const string APPLICATIONINSIGHTS_STATSBEAT_DISABLED = "APPLICATIONINSIGHTS_STATSBEAT_DISABLED"; + + /// + /// INTERNAL ONLY. Used by Statsbeat to identify if the Exporter is running within Azure Functions. + /// + public const string FUNCTIONS_WORKER_RUNTIME = "FUNCTIONS_WORKER_RUNTIME"; + + /// + /// INTERNAL ONLY. Used by PersistentStorage to identify a Windows temp directory to save telemetry. + /// + public const string LOCALAPPDATA = "LOCALAPPDATA"; + + /// + /// INTERNAL ONLY. Used by PersistentStorage to identify a Windows temp directory to save telemetry. + /// + public const string TEMP = "TEMP"; + + /// + /// INTERNAL ONLY. Used by PersistentStorage to identify a Linux temp directory to save telemetry. + /// + public const string TMPDIR = "TMPDIR"; + + /// + /// INTERNAL ONLY. Used by Statsbeat to get the App Service Host Name. + /// + public const string WEBSITE_HOME_STAMPNAME = "WEBSITE_HOME_STAMPNAME"; + + /// + /// INTERNAL ONLY. Used by Statsbeat to identify Azure Functions. + /// + public const string WEBSITE_HOSTNAME = "WEBSITE_HOSTNAME"; + + /// + /// INTERNAL ONLY. Used by Statsbeat to get the App Service Website Name. + /// + public const string WEBSITE_SITE_NAME = "WEBSITE_SITE_NAME"; + } +} diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/PersistentStorage/StorageHelper.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/PersistentStorage/StorageHelper.cs index c825961270d0..ca811bbd41df 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/PersistentStorage/StorageHelper.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/PersistentStorage/StorageHelper.cs @@ -34,15 +34,15 @@ internal static string GetStorageDirectory(IPlatform platform, string? configure if (platform.IsOSPlatform(OSPlatform.Windows)) { - if (TryCreateTelemetryDirectory(platform: platform, path: environmentVars["LOCALAPPDATA"]?.ToString(), createdDirectoryPath: out dirPath) - || TryCreateTelemetryDirectory(platform: platform, path: environmentVars["TEMP"]?.ToString(), createdDirectoryPath: out dirPath)) + if (TryCreateTelemetryDirectory(platform: platform, path: environmentVars[EnvironmentVariableConstants.LOCALAPPDATA]?.ToString(), createdDirectoryPath: out dirPath) + || TryCreateTelemetryDirectory(platform: platform, path: environmentVars[EnvironmentVariableConstants.TEMP]?.ToString(), createdDirectoryPath: out dirPath)) { return dirPath; } } else { - if (TryCreateTelemetryDirectory(platform: platform, path: environmentVars["TMPDIR"]?.ToString(), createdDirectoryPath: out dirPath) + if (TryCreateTelemetryDirectory(platform: platform, path: environmentVars[EnvironmentVariableConstants.TMPDIR]?.ToString(), createdDirectoryPath: out dirPath) || TryCreateTelemetryDirectory(platform: platform, path: "/var/tmp/", createdDirectoryPath: out dirPath) || TryCreateTelemetryDirectory(platform: platform, path: "/tmp/", createdDirectoryPath: out dirPath)) { diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/Statsbeat/AzureMonitorStatsbeat.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/Statsbeat/AzureMonitorStatsbeat.cs index 94ac48b399bf..c4e6467dedeb 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/Statsbeat/AzureMonitorStatsbeat.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/Internals/Statsbeat/AzureMonitorStatsbeat.cs @@ -144,12 +144,12 @@ private Measurement GetAttachStatsbeat() private void SetResourceProviderDetails(IPlatform platform) { - var appSvcWebsiteName = platform.GetEnvironmentVariable("WEBSITE_SITE_NAME"); + var appSvcWebsiteName = platform.GetEnvironmentVariable(EnvironmentVariableConstants.WEBSITE_SITE_NAME); if (appSvcWebsiteName != null) { _resourceProvider = "appsvc"; _resourceProviderId = appSvcWebsiteName; - var appSvcWebsiteHostName = platform.GetEnvironmentVariable("WEBSITE_HOME_STAMPNAME"); + var appSvcWebsiteHostName = platform.GetEnvironmentVariable(EnvironmentVariableConstants.WEBSITE_HOME_STAMPNAME); if (!string.IsNullOrEmpty(appSvcWebsiteHostName)) { _resourceProviderId += "/" + appSvcWebsiteHostName; @@ -158,11 +158,11 @@ private void SetResourceProviderDetails(IPlatform platform) return; } - var functionsWorkerRuntime = platform.GetEnvironmentVariable("FUNCTIONS_WORKER_RUNTIME"); + var functionsWorkerRuntime = platform.GetEnvironmentVariable(EnvironmentVariableConstants.FUNCTIONS_WORKER_RUNTIME); if (functionsWorkerRuntime != null) { _resourceProvider = "functions"; - _resourceProviderId = platform.GetEnvironmentVariable("WEBSITE_HOSTNAME"); + _resourceProviderId = platform.GetEnvironmentVariable(EnvironmentVariableConstants.WEBSITE_HOSTNAME); return; } From c135a107f55aa51d8046e5fce2c3f4afbee11c93 Mon Sep 17 00:00:00 2001 From: Zunli Hu Date: Fri, 4 Aug 2023 11:59:15 +0800 Subject: [PATCH 39/54] Upgrade containerapps SDK to 2023-04-01-preview (#37930) * upgrade * update * update * fix ci --- .vscode/cspell.json | 1 + .../CHANGELOG.md | 11 + ...rceManager.AppContainers.netstandard2.0.cs | 193 ++++++++++--- ...Sample_ContainerAppAuthConfigCollection.cs | 8 +- .../Sample_ContainerAppAuthConfigResource.cs | 6 +- .../Samples/Sample_ContainerAppCollection.cs | 21 +- ...nnectedEnvironmentCertificateCollection.cs | 8 +- ...ConnectedEnvironmentCertificateResource.cs | 6 +- ...tainerAppConnectedEnvironmentCollection.cs | 8 +- ...ectedEnvironmentDaprComponentCollection.cs | 8 +- ...nnectedEnvironmentDaprComponentResource.cs | 8 +- ...ontainerAppConnectedEnvironmentResource.cs | 10 +- ...ppConnectedEnvironmentStorageCollection.cs | 8 +- ...rAppConnectedEnvironmentStorageResource.cs | 6 +- .../Sample_ContainerAppDetectorCollection.cs | 6 +- ...le_ContainerAppDetectorPropertyResource.cs | 2 +- ...erAppDetectorPropertyRevisionCollection.cs | 6 +- ...inerAppDetectorPropertyRevisionResource.cs | 2 +- .../Sample_ContainerAppDetectorResource.cs | 2 +- .../Sample_ContainerAppJobCollection.cs | 106 ++++++- ...mple_ContainerAppJobExecutionCollection.cs | 122 ++++++++ ...Sample_ContainerAppJobExecutionResource.cs | 80 ++++++ .../Samples/Sample_ContainerAppJobResource.cs | 89 +----- ...ontainerAppManagedCertificateCollection.cs | 8 +- ..._ContainerAppManagedCertificateResource.cs | 6 +- ...ManagedEnvironmentCertificateCollection.cs | 8 +- ...ppManagedEnvironmentCertificateResource.cs | 6 +- ...ontainerAppManagedEnvironmentCollection.cs | 11 +- ...nagedEnvironmentDaprComponentCollection.cs | 14 +- ...ManagedEnvironmentDaprComponentResource.cs | 12 +- ...AppManagedEnvironmentDetectorCollection.cs | 6 +- ...erAppManagedEnvironmentDetectorResource.cs | 2 +- ...ronmentDetectorResourcePropertyResource.cs | 2 +- ..._ContainerAppManagedEnvironmentResource.cs | 16 +- ...rAppManagedEnvironmentStorageCollection.cs | 8 +- ...nerAppManagedEnvironmentStorageResource.cs | 6 +- .../Sample_ContainerAppReplicaCollection.cs | 6 +- .../Sample_ContainerAppReplicaResource.cs | 2 +- .../Samples/Sample_ContainerAppResource.cs | 87 +++++- .../Sample_ContainerAppRevisionCollection.cs | 6 +- .../Sample_ContainerAppRevisionResource.cs | 8 +- ...ple_ContainerAppSourceControlCollection.cs | 14 +- ...ample_ContainerAppSourceControlResource.cs | 12 +- .../Sample_SubscriptionResourceExtensions.cs | 4 +- .../Generated/ArmAppContainersModelFactory.cs | 133 +++++---- .../Generated/ContainerAppJobCollection.cs | 12 +- .../ContainerAppJobExecutionCollection.cs | 265 ++++++++++++++++++ ...ion.cs => ContainerAppJobExecutionData.cs} | 22 +- .../ContainerAppJobExecutionResource.cs | 226 +++++++++++++++ .../src/Generated/ContainerAppJobResource.cs | 215 +++++--------- .../ContainerAppManagedEnvironmentData.cs | 17 +- .../src/Generated/ContainerAppReplicaData.cs | 15 +- .../src/Generated/ContainerAppResource.cs | 136 +++++++++ .../src/Generated/ContainerAppRevisionData.cs | 6 +- .../Extensions/AppContainersExtensions.cs | 137 +++++---- .../ResourceGroupResourceExtensionClient.cs | 14 +- ...ContainerAppConfiguration.Serialization.cs | 17 +- .../Models/ContainerAppConfiguration.cs | 12 +- .../ContainerAppContainerRunningState.cs | 54 ++++ .../ContainerAppCredentials.Serialization.cs | 13 +- .../Models/ContainerAppCredentials.cs | 6 +- ...GitHubActionConfiguration.Serialization.cs | 13 +- .../ContainerAppGitHubActionConfiguration.cs | 6 +- ...tainerAppJobConfiguration.Serialization.cs | 17 +- .../Models/ContainerAppJobConfiguration.cs | 6 +- ...tainerAppJobExecutionBase.Serialization.cs | 18 +- .../Models/ContainerAppJobExecutionBase.cs | 6 +- ...ainerAppJobExecutionData.Serialization.cs} | 9 +- ...ContainerAppJobExecutions.Serialization.cs | 7 +- .../Models/ContainerAppJobExecutions.cs | 7 +- .../Models/ContainerAppJobTriggerType.cs | 6 +- .../ContainerAppLogAnalyticsConfiguration.cs | 2 +- .../Models/ContainerAppLogsConfiguration.cs | 8 +- ...AppManagedEnvironmentData.Serialization.cs | 17 +- ...tainerAppReplicaContainer.Serialization.cs | 18 +- .../Models/ContainerAppReplicaContainer.cs | 10 +- .../ContainerAppReplicaData.Serialization.cs | 43 ++- .../Models/ContainerAppReplicaRunningState.cs | 54 ++++ .../ContainerAppRevisionData.Serialization.cs | 12 +- .../Models/ContainerAppScaleRuleAuth.cs | 6 +- .../ContainerAppTemplate.Serialization.cs | 42 ++- .../Generated/Models/ContainerAppTemplate.cs | 11 +- .../ContainerAppVolume.Serialization.cs | 13 +- .../Generated/Models/ContainerAppVolume.cs | 6 +- .../ContainerAppVolumeMount.Serialization.cs | 13 +- .../Models/ContainerAppVolumeMount.cs | 6 +- ...urationEventTriggerConfig.Serialization.cs | 78 ++++++ .../JobConfigurationEventTriggerConfig.cs | 36 +++ ...bExecutionNamesCollection.Serialization.cs | 28 -- .../Models/JobExecutionNamesCollection.cs | 31 -- .../Models/JobScale.Serialization.cs | 104 +++++++ .../src/Generated/Models/JobScale.cs | 44 +++ .../Models/JobScaleRule.Serialization.cs | 101 +++++++ .../src/Generated/Models/JobScaleRule.cs | 80 ++++++ ...pertiesPeerAuthentication.Serialization.cs | 48 ++++ ...EnvironmentPropertiesPeerAuthentication.cs | 39 +++ .../Generated/Models/Mtls.Serialization.cs | 48 ++++ .../src/Generated/Models/Mtls.cs | 28 ++ .../Generated/Models/RevisionRunningState.cs | 63 +++++ .../Generated/Models/Service.Serialization.cs | 41 +++ .../src/Generated/Models/Service.cs | 29 ++ .../Models/ServiceBind.Serialization.cs | 59 ++++ .../src/Generated/Models/ServiceBind.cs | 34 +++ ...AvailableWorkloadProfilesRestOperations.cs | 2 +- .../BillingMetersRestOperations.cs | 2 +- .../CertificatesRestOperations.cs | 2 +- ...dEnvironmentsCertificatesRestOperations.cs | 2 +- ...nvironmentsDaprComponentsRestOperations.cs | 2 +- .../ConnectedEnvironmentsRestOperations.cs | 2 +- ...ectedEnvironmentsStoragesRestOperations.cs | 2 +- .../ContainerAppsAPIRestOperations.cs | 127 +++++++++ .../ContainerAppsAuthConfigsRestOperations.cs | 2 +- .../ContainerAppsDiagnosticsRestOperations.cs | 2 +- .../ContainerAppsRestOperations.cs | 144 +++++++++- ...ainerAppsRevisionReplicasRestOperations.cs | 2 +- .../ContainerAppsRevisionsRestOperations.cs | 2 +- ...ntainerAppsSourceControlsRestOperations.cs | 2 +- .../DaprComponentsRestOperations.cs | 2 +- .../JobsExecutionsRestOperations.cs | 10 +- .../RestOperations/JobsRestOperations.cs | 81 +++--- .../ManagedCertificatesRestOperations.cs | 2 +- ...gedEnvironmentDiagnosticsRestOperations.cs | 2 +- ...edEnvironmentsDiagnosticsRestOperations.cs | 2 +- .../ManagedEnvironmentsRestOperations.cs | 2 +- ...nagedEnvironmentsStoragesRestOperations.cs | 2 +- .../NamespacesRestOperations.cs | 2 +- .../src/autorest.md | 9 +- 127 files changed, 3181 insertions(+), 736 deletions(-) create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobExecutionCollection.cs create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobExecutionResource.cs create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppJobExecutionCollection.cs rename sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/{Models/ContainerAppJobExecution.cs => ContainerAppJobExecutionData.cs} (61%) create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppJobExecutionResource.cs create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppContainerRunningState.cs rename sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/{ContainerAppJobExecution.Serialization.cs => ContainerAppJobExecutionData.Serialization.cs} (87%) create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppReplicaRunningState.cs create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobConfigurationEventTriggerConfig.Serialization.cs create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobConfigurationEventTriggerConfig.cs delete mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobExecutionNamesCollection.Serialization.cs delete mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobExecutionNamesCollection.cs create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScale.Serialization.cs create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScale.cs create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScaleRule.Serialization.cs create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScaleRule.cs create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ManagedEnvironmentPropertiesPeerAuthentication.Serialization.cs create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ManagedEnvironmentPropertiesPeerAuthentication.cs create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/Mtls.Serialization.cs create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/Mtls.cs create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/RevisionRunningState.cs create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/Service.Serialization.cs create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/Service.cs create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ServiceBind.Serialization.cs create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ServiceBind.cs create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAPIRestOperations.cs diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 2aaf62684d1d..a9eff51f0b0d 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -86,6 +86,7 @@ "lucene", "mgmt", "msal", + "Mtls", "northcentralus", "nunit", "odata", diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md b/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md index 24ddbc12a4d4..53fbce62b588 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md @@ -4,6 +4,17 @@ ### Features Added +- Upgrade to 2023-04-01-preview api version +- Add `runningState` and `runningStateDetails` for `ContainerAppReplica` +- Add `TerminationGracePeriodSeconds` and `ServicBinds`for `ContainerAppTemplate` +- Add `MountOptions` for `ContainerAppVolume` +- Add `SubPath` for `ContainerAppVolumeMount` +- Add Mtls Enabled for ContainerAppManagedEnvironment +- Add `Kind` for ContainerAppCredentials +- Add `GitHubPersonalAccessToken` for `ContainerAppGitHubActionConfiguration` +- Add `EventTriggerConfig` for JobConfiguration +- Rename `ContainerAppJobTriggerType` value from `Scheduled` to `Schedule` + ### Breaking Changes ### Bugs Fixed diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/api/Azure.ResourceManager.AppContainers.netstandard2.0.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/api/Azure.ResourceManager.AppContainers.netstandard2.0.cs index f29cc2eb5e48..49c43730de77 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/api/Azure.ResourceManager.AppContainers.netstandard2.0.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/api/Azure.ResourceManager.AppContainers.netstandard2.0.cs @@ -23,6 +23,7 @@ public static partial class AppContainersExtensions public static Azure.ResourceManager.AppContainers.ContainerAppDetectorResource GetContainerAppDetectorResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Response GetContainerAppJob(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string jobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetContainerAppJobAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string jobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.AppContainers.ContainerAppJobExecutionResource GetContainerAppJobExecutionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.AppContainers.ContainerAppJobResource GetContainerAppJobResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.AppContainers.ContainerAppJobCollection GetContainerAppJobs(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } public static Azure.Pageable GetContainerAppJobs(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -380,6 +381,39 @@ public ContainerAppJobData(Azure.Core.AzureLocation location) : base (default(Az public Azure.ResourceManager.AppContainers.Models.ContainerAppJobTemplate Template { get { throw null; } set { } } public string WorkloadProfileName { get { throw null; } set { } } } + public partial class ContainerAppJobExecutionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected ContainerAppJobExecutionCollection() { } + public virtual Azure.Response Exists(string jobExecutionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string jobExecutionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string jobExecutionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string jobExecutionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class ContainerAppJobExecutionData : Azure.ResourceManager.Models.ResourceData + { + internal ContainerAppJobExecutionData() { } + public System.DateTimeOffset? EndOn { get { throw null; } } + public System.DateTimeOffset? StartOn { get { throw null; } } + public Azure.ResourceManager.AppContainers.Models.JobExecutionRunningState? Status { get { throw null; } } + public Azure.ResourceManager.AppContainers.Models.ContainerAppJobExecutionTemplate Template { get { throw null; } } + } + public partial class ContainerAppJobExecutionResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected ContainerAppJobExecutionResource() { } + public virtual Azure.ResourceManager.AppContainers.ContainerAppJobExecutionData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string jobName, string jobExecutionName) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation StopExecutionJob(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task StopExecutionJobAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } public partial class ContainerAppJobResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; @@ -393,20 +427,19 @@ protected ContainerAppJobResource() { } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetJobsExecutions(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetJobsExecutionsAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetContainerAppJobExecution(string jobExecutionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetContainerAppJobExecutionAsync(string jobExecutionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.AppContainers.ContainerAppJobExecutionCollection GetContainerAppJobExecutions() { throw null; } public virtual Azure.Pageable GetSecrets(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetSecretsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Start(Azure.WaitUntil waitUntil, Azure.ResourceManager.AppContainers.Models.ContainerAppJobExecutionTemplate template, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> StartAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.AppContainers.Models.ContainerAppJobExecutionTemplate template, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation StopExecution(Azure.WaitUntil waitUntil, string jobExecutionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task StopExecutionAsync(Azure.WaitUntil waitUntil, string jobExecutionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation StopMultipleExecutions(Azure.WaitUntil waitUntil, Azure.ResourceManager.AppContainers.Models.JobExecutionNamesCollection jobExecutionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> StopMultipleExecutionsAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.AppContainers.Models.JobExecutionNamesCollection jobExecutionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Start(Azure.WaitUntil waitUntil, Azure.ResourceManager.AppContainers.Models.ContainerAppJobExecutionTemplate template = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> StartAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.AppContainers.Models.ContainerAppJobExecutionTemplate template = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation StopMultipleExecutions(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> StopMultipleExecutionsAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.AppContainers.Models.ContainerAppJobPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.AppContainers.Models.ContainerAppJobPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } @@ -543,6 +576,7 @@ public ContainerAppManagedEnvironmentData(Azure.Core.AzureLocation location) : b public string DeploymentErrors { get { throw null; } } public string EventStreamEndpoint { get { throw null; } } public string InfrastructureResourceGroup { get { throw null; } set { } } + public bool? IsMtlsEnabled { get { throw null; } set { } } public bool? IsZoneRedundant { get { throw null; } set { } } public string KedaVersion { get { throw null; } } public string Kind { get { throw null; } set { } } @@ -680,6 +714,9 @@ public partial class ContainerAppReplicaData : Azure.ResourceManager.Models.Reso public ContainerAppReplicaData() { } public System.Collections.Generic.IList Containers { get { throw null; } } public System.DateTimeOffset? CreatedOn { get { throw null; } } + public System.Collections.Generic.IList InitContainers { get { throw null; } } + public Azure.ResourceManager.AppContainers.Models.ContainerAppReplicaRunningState? RunningState { get { throw null; } } + public string RunningStateDetails { get { throw null; } } } public partial class ContainerAppReplicaResource : Azure.ResourceManager.ArmResource { @@ -730,6 +767,10 @@ protected ContainerAppResource() { } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Start(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> StartAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Stop(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> StopAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.AppContainers.ContainerAppData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.AppContainers.ContainerAppData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } @@ -757,6 +798,7 @@ public ContainerAppRevisionData() { } public string ProvisioningError { get { throw null; } } public Azure.ResourceManager.AppContainers.Models.ContainerAppRevisionProvisioningState? ProvisioningState { get { throw null; } } public int? Replicas { get { throw null; } } + public Azure.ResourceManager.AppContainers.Models.RevisionRunningState? RunningState { get { throw null; } } public Azure.ResourceManager.AppContainers.Models.ContainerAppTemplate Template { get { throw null; } } public int? TrafficWeight { get { throw null; } } } @@ -885,15 +927,16 @@ public static partial class ArmAppContainersModelFactory public static Azure.ResourceManager.AppContainers.Models.ContainerAppEnvironmentAuthToken ContainerAppEnvironmentAuthToken(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string token = null, System.DateTimeOffset? expireOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.AppContainers.Models.ContainerAppIngressConfiguration ContainerAppIngressConfiguration(string fqdn = null, bool? external = default(bool?), int? targetPort = default(int?), int? exposedPort = default(int?), Azure.ResourceManager.AppContainers.Models.ContainerAppIngressTransportMethod? transport = default(Azure.ResourceManager.AppContainers.Models.ContainerAppIngressTransportMethod?), System.Collections.Generic.IEnumerable traffic = null, System.Collections.Generic.IEnumerable customDomains = null, bool? allowInsecure = default(bool?), System.Collections.Generic.IEnumerable ipSecurityRestrictions = null, Azure.ResourceManager.AppContainers.Models.Affinity? stickySessionsAffinity = default(Azure.ResourceManager.AppContainers.Models.Affinity?), Azure.ResourceManager.AppContainers.Models.ContainerAppIngressClientCertificateMode? clientCertificateMode = default(Azure.ResourceManager.AppContainers.Models.ContainerAppIngressClientCertificateMode?), Azure.ResourceManager.AppContainers.Models.ContainerAppCorsPolicy corsPolicy = null) { throw null; } public static Azure.ResourceManager.AppContainers.ContainerAppJobData ContainerAppJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.AppContainers.Models.ContainerAppJobProvisioningState? provisioningState = default(Azure.ResourceManager.AppContainers.Models.ContainerAppJobProvisioningState?), string environmentId = null, string workloadProfileName = null, Azure.ResourceManager.AppContainers.Models.ContainerAppJobConfiguration configuration = null, Azure.ResourceManager.AppContainers.Models.ContainerAppJobTemplate template = null, System.Collections.Generic.IEnumerable outboundIPAddresses = null, string eventStreamEndpoint = null) { throw null; } - public static Azure.ResourceManager.AppContainers.Models.ContainerAppJobExecution ContainerAppJobExecution(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppContainers.Models.JobExecutionRunningState? status = default(Azure.ResourceManager.AppContainers.Models.JobExecutionRunningState?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), Azure.ResourceManager.AppContainers.Models.ContainerAppJobExecutionTemplate template = null) { throw null; } - public static Azure.ResourceManager.AppContainers.Models.ContainerAppJobExecutions ContainerAppJobExecutions(System.Collections.Generic.IEnumerable value = null, string nextLink = null) { throw null; } + public static Azure.ResourceManager.AppContainers.Models.ContainerAppJobExecutionBase ContainerAppJobExecutionBase(string name = null, string id = null) { throw null; } + public static Azure.ResourceManager.AppContainers.ContainerAppJobExecutionData ContainerAppJobExecutionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppContainers.Models.JobExecutionRunningState? status = default(Azure.ResourceManager.AppContainers.Models.JobExecutionRunningState?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), Azure.ResourceManager.AppContainers.Models.ContainerAppJobExecutionTemplate template = null) { throw null; } + public static Azure.ResourceManager.AppContainers.Models.ContainerAppJobExecutions ContainerAppJobExecutions(System.Collections.Generic.IEnumerable value = null, string nextLink = null) { throw null; } public static Azure.ResourceManager.AppContainers.ContainerAppManagedCertificateData ContainerAppManagedCertificateData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.AppContainers.Models.ManagedCertificateProperties properties = null) { throw null; } - public static Azure.ResourceManager.AppContainers.ContainerAppManagedEnvironmentData ContainerAppManagedEnvironmentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string kind = null, Azure.ResourceManager.AppContainers.Models.ContainerAppEnvironmentProvisioningState? provisioningState = default(Azure.ResourceManager.AppContainers.Models.ContainerAppEnvironmentProvisioningState?), string daprAIInstrumentationKey = null, string daprAIConnectionString = null, Azure.ResourceManager.AppContainers.Models.ContainerAppVnetConfiguration vnetConfiguration = null, string deploymentErrors = null, string defaultDomain = null, System.Net.IPAddress staticIP = null, Azure.ResourceManager.AppContainers.Models.ContainerAppLogsConfiguration appLogsConfiguration = null, bool? isZoneRedundant = default(bool?), Azure.ResourceManager.AppContainers.Models.ContainerAppCustomDomainConfiguration customDomainConfiguration = null, string eventStreamEndpoint = null, System.Collections.Generic.IEnumerable workloadProfiles = null, string kedaVersion = null, string daprVersion = null, string infrastructureResourceGroup = null) { throw null; } + public static Azure.ResourceManager.AppContainers.ContainerAppManagedEnvironmentData ContainerAppManagedEnvironmentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string kind = null, Azure.ResourceManager.AppContainers.Models.ContainerAppEnvironmentProvisioningState? provisioningState = default(Azure.ResourceManager.AppContainers.Models.ContainerAppEnvironmentProvisioningState?), string daprAIInstrumentationKey = null, string daprAIConnectionString = null, Azure.ResourceManager.AppContainers.Models.ContainerAppVnetConfiguration vnetConfiguration = null, string deploymentErrors = null, string defaultDomain = null, System.Net.IPAddress staticIP = null, Azure.ResourceManager.AppContainers.Models.ContainerAppLogsConfiguration appLogsConfiguration = null, bool? isZoneRedundant = default(bool?), Azure.ResourceManager.AppContainers.Models.ContainerAppCustomDomainConfiguration customDomainConfiguration = null, string eventStreamEndpoint = null, System.Collections.Generic.IEnumerable workloadProfiles = null, string kedaVersion = null, string daprVersion = null, string infrastructureResourceGroup = null, bool? isMtlsEnabled = default(bool?)) { throw null; } public static Azure.ResourceManager.AppContainers.ContainerAppManagedEnvironmentStorageData ContainerAppManagedEnvironmentStorageData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppContainers.Models.ContainerAppAzureFileProperties managedEnvironmentStorageAzureFile = null) { throw null; } public static Azure.ResourceManager.AppContainers.Models.ContainerAppNameAvailabilityResult ContainerAppNameAvailabilityResult(bool? isNameAvailable = default(bool?), Azure.ResourceManager.AppContainers.Models.ContainerAppNameUnavailableReason? reason = default(Azure.ResourceManager.AppContainers.Models.ContainerAppNameUnavailableReason?), string message = null) { throw null; } - public static Azure.ResourceManager.AppContainers.Models.ContainerAppReplicaContainer ContainerAppReplicaContainer(string name = null, string containerId = null, bool? isReady = default(bool?), bool? isStarted = default(bool?), int? restartCount = default(int?), string logStreamEndpoint = null, string execEndpoint = null) { throw null; } - public static Azure.ResourceManager.AppContainers.ContainerAppReplicaData ContainerAppReplicaData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable containers = null) { throw null; } - public static Azure.ResourceManager.AppContainers.ContainerAppRevisionData ContainerAppRevisionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastActiveOn = default(System.DateTimeOffset?), string fqdn = null, Azure.ResourceManager.AppContainers.Models.ContainerAppTemplate template = null, bool? isActive = default(bool?), int? replicas = default(int?), int? trafficWeight = default(int?), string provisioningError = null, Azure.ResourceManager.AppContainers.Models.ContainerAppRevisionHealthState? healthState = default(Azure.ResourceManager.AppContainers.Models.ContainerAppRevisionHealthState?), Azure.ResourceManager.AppContainers.Models.ContainerAppRevisionProvisioningState? provisioningState = default(Azure.ResourceManager.AppContainers.Models.ContainerAppRevisionProvisioningState?)) { throw null; } + public static Azure.ResourceManager.AppContainers.Models.ContainerAppReplicaContainer ContainerAppReplicaContainer(string name = null, string containerId = null, bool? isReady = default(bool?), bool? isStarted = default(bool?), int? restartCount = default(int?), Azure.ResourceManager.AppContainers.Models.ContainerAppContainerRunningState? runningState = default(Azure.ResourceManager.AppContainers.Models.ContainerAppContainerRunningState?), string runningStateDetails = null, string logStreamEndpoint = null, string execEndpoint = null) { throw null; } + public static Azure.ResourceManager.AppContainers.ContainerAppReplicaData ContainerAppReplicaData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.AppContainers.Models.ContainerAppReplicaRunningState? runningState = default(Azure.ResourceManager.AppContainers.Models.ContainerAppReplicaRunningState?), string runningStateDetails = null, System.Collections.Generic.IEnumerable containers = null, System.Collections.Generic.IEnumerable initContainers = null) { throw null; } + public static Azure.ResourceManager.AppContainers.ContainerAppRevisionData ContainerAppRevisionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastActiveOn = default(System.DateTimeOffset?), string fqdn = null, Azure.ResourceManager.AppContainers.Models.ContainerAppTemplate template = null, bool? isActive = default(bool?), int? replicas = default(int?), int? trafficWeight = default(int?), string provisioningError = null, Azure.ResourceManager.AppContainers.Models.ContainerAppRevisionHealthState? healthState = default(Azure.ResourceManager.AppContainers.Models.ContainerAppRevisionHealthState?), Azure.ResourceManager.AppContainers.Models.ContainerAppRevisionProvisioningState? provisioningState = default(Azure.ResourceManager.AppContainers.Models.ContainerAppRevisionProvisioningState?), Azure.ResourceManager.AppContainers.Models.RevisionRunningState? runningState = default(Azure.ResourceManager.AppContainers.Models.RevisionRunningState?)) { throw null; } public static Azure.ResourceManager.AppContainers.Models.ContainerAppSecret ContainerAppSecret(string name = null, string value = null, string identity = null, System.Uri keyVaultUri = null) { throw null; } public static Azure.ResourceManager.AppContainers.ContainerAppSourceControlData ContainerAppSourceControlData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppContainers.Models.ContainerAppSourceControlOperationState? operationState = default(Azure.ResourceManager.AppContainers.Models.ContainerAppSourceControlOperationState?), System.Uri repoUri = null, string branch = null, Azure.ResourceManager.AppContainers.Models.ContainerAppGitHubActionConfiguration gitHubActionConfiguration = null) { throw null; } public static Azure.ResourceManager.AppContainers.Models.ContainerAppWorkloadProfileState ContainerAppWorkloadProfileState(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.AppContainers.Models.ContainerAppWorkloadProfileStateProperties properties = null) { throw null; } @@ -1149,6 +1192,7 @@ public ContainerAppConfiguration() { } public int? MaxInactiveRevisions { get { throw null; } set { } } public System.Collections.Generic.IList Registries { get { throw null; } } public System.Collections.Generic.IList Secrets { get { throw null; } } + public string ServiceType { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ContainerAppConnectedEnvironmentProvisioningState : System.IEquatable @@ -1179,6 +1223,25 @@ public partial class ContainerAppContainer : Azure.ResourceManager.AppContainers public ContainerAppContainer() { } public System.Collections.Generic.IList Probes { get { throw null; } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ContainerAppContainerRunningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ContainerAppContainerRunningState(string value) { throw null; } + public static Azure.ResourceManager.AppContainers.Models.ContainerAppContainerRunningState Running { get { throw null; } } + public static Azure.ResourceManager.AppContainers.Models.ContainerAppContainerRunningState Terminated { get { throw null; } } + public static Azure.ResourceManager.AppContainers.Models.ContainerAppContainerRunningState Waiting { get { throw null; } } + public bool Equals(Azure.ResourceManager.AppContainers.Models.ContainerAppContainerRunningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.AppContainers.Models.ContainerAppContainerRunningState left, Azure.ResourceManager.AppContainers.Models.ContainerAppContainerRunningState right) { throw null; } + public static implicit operator Azure.ResourceManager.AppContainers.Models.ContainerAppContainerRunningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.AppContainers.Models.ContainerAppContainerRunningState left, Azure.ResourceManager.AppContainers.Models.ContainerAppContainerRunningState right) { throw null; } + public override string ToString() { throw null; } + } public partial class ContainerAppCookieExpiration { public ContainerAppCookieExpiration() { } @@ -1205,6 +1268,7 @@ public partial class ContainerAppCredentials public ContainerAppCredentials() { } public string ClientId { get { throw null; } set { } } public string ClientSecret { get { throw null; } set { } } + public string Kind { get { throw null; } set { } } public string SubscriptionId { get { throw null; } set { } } public System.Guid? TenantId { get { throw null; } set { } } } @@ -1505,6 +1569,7 @@ public partial class ContainerAppGitHubActionConfiguration public ContainerAppGitHubActionConfiguration() { } public Azure.ResourceManager.AppContainers.Models.ContainerAppCredentials AzureCredentials { get { throw null; } set { } } public string ContextPath { get { throw null; } set { } } + public string GitHubPersonalAccessToken { get { throw null; } set { } } public string Image { get { throw null; } set { } } public string OS { get { throw null; } set { } } public string PublishType { get { throw null; } set { } } @@ -1680,6 +1745,7 @@ public ContainerAppIPSecurityRestrictionRule(string name, string ipAddressRange, public partial class ContainerAppJobConfiguration { public ContainerAppJobConfiguration(Azure.ResourceManager.AppContainers.Models.ContainerAppJobTriggerType triggerType, int replicaTimeout) { } + public Azure.ResourceManager.AppContainers.Models.JobConfigurationEventTriggerConfig EventTriggerConfig { get { throw null; } set { } } public Azure.ResourceManager.AppContainers.Models.JobConfigurationManualTriggerConfig ManualTriggerConfig { get { throw null; } set { } } public System.Collections.Generic.IList Registries { get { throw null; } } public int? ReplicaRetryLimit { get { throw null; } set { } } @@ -1688,25 +1754,17 @@ public ContainerAppJobConfiguration(Azure.ResourceManager.AppContainers.Models.C public System.Collections.Generic.IList Secrets { get { throw null; } } public Azure.ResourceManager.AppContainers.Models.ContainerAppJobTriggerType TriggerType { get { throw null; } set { } } } - public partial class ContainerAppJobExecution : Azure.ResourceManager.Models.ResourceData - { - internal ContainerAppJobExecution() { } - public System.DateTimeOffset? EndOn { get { throw null; } } - public System.DateTimeOffset? StartOn { get { throw null; } } - public Azure.ResourceManager.AppContainers.Models.JobExecutionRunningState? Status { get { throw null; } } - public Azure.ResourceManager.AppContainers.Models.ContainerAppJobExecutionTemplate Template { get { throw null; } } - } public partial class ContainerAppJobExecutionBase { - public ContainerAppJobExecutionBase() { } - public string Id { get { throw null; } set { } } - public string Name { get { throw null; } set { } } + internal ContainerAppJobExecutionBase() { } + public string Id { get { throw null; } } + public string Name { get { throw null; } } } public partial class ContainerAppJobExecutions { internal ContainerAppJobExecutions() { } public string NextLink { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Value { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Value { get { throw null; } } } public partial class ContainerAppJobExecutionTemplate { @@ -1766,7 +1824,7 @@ public ContainerAppJobTemplate() { } public ContainerAppJobTriggerType(string value) { throw null; } public static Azure.ResourceManager.AppContainers.Models.ContainerAppJobTriggerType Event { get { throw null; } } public static Azure.ResourceManager.AppContainers.Models.ContainerAppJobTriggerType Manual { get { throw null; } } - public static Azure.ResourceManager.AppContainers.Models.ContainerAppJobTriggerType Scheduled { get { throw null; } } + public static Azure.ResourceManager.AppContainers.Models.ContainerAppJobTriggerType Schedule { get { throw null; } } public bool Equals(Azure.ResourceManager.AppContainers.Models.ContainerAppJobTriggerType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } @@ -2029,6 +2087,27 @@ public ContainerAppReplicaContainer() { } public string LogStreamEndpoint { get { throw null; } } public string Name { get { throw null; } set { } } public int? RestartCount { get { throw null; } set { } } + public Azure.ResourceManager.AppContainers.Models.ContainerAppContainerRunningState? RunningState { get { throw null; } } + public string RunningStateDetails { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ContainerAppReplicaRunningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ContainerAppReplicaRunningState(string value) { throw null; } + public static Azure.ResourceManager.AppContainers.Models.ContainerAppReplicaRunningState NotRunning { get { throw null; } } + public static Azure.ResourceManager.AppContainers.Models.ContainerAppReplicaRunningState Running { get { throw null; } } + public static Azure.ResourceManager.AppContainers.Models.ContainerAppReplicaRunningState Unknown { get { throw null; } } + public bool Equals(Azure.ResourceManager.AppContainers.Models.ContainerAppReplicaRunningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.AppContainers.Models.ContainerAppReplicaRunningState left, Azure.ResourceManager.AppContainers.Models.ContainerAppReplicaRunningState right) { throw null; } + public static implicit operator Azure.ResourceManager.AppContainers.Models.ContainerAppReplicaRunningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.AppContainers.Models.ContainerAppReplicaRunningState left, Azure.ResourceManager.AppContainers.Models.ContainerAppReplicaRunningState right) { throw null; } + public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ContainerAppRevisionHealthState : System.IEquatable @@ -2166,6 +2245,8 @@ public ContainerAppTemplate() { } public System.Collections.Generic.IList InitContainers { get { throw null; } } public string RevisionSuffix { get { throw null; } set { } } public Azure.ResourceManager.AppContainers.Models.ContainerAppScale Scale { get { throw null; } set { } } + public System.Collections.Generic.IList ServiceBinds { get { throw null; } } + public long? TerminationGracePeriodSeconds { get { throw null; } set { } } public System.Collections.Generic.IList Volumes { get { throw null; } } } public partial class ContainerAppTwitterConfiguration @@ -2205,6 +2286,7 @@ public ContainerAppVnetConfiguration() { } public partial class ContainerAppVolume { public ContainerAppVolume() { } + public string MountOptions { get { throw null; } set { } } public string Name { get { throw null; } set { } } public System.Collections.Generic.IList Secrets { get { throw null; } } public string StorageName { get { throw null; } set { } } @@ -2214,6 +2296,7 @@ public partial class ContainerAppVolumeMount { public ContainerAppVolumeMount() { } public string MountPath { get { throw null; } set { } } + public string SubPath { get { throw null; } set { } } public string VolumeName { get { throw null; } set { } } } public partial class ContainerAppWorkloadProfile @@ -2249,6 +2332,13 @@ public ContainerAppWritableSecret() { } public string Name { get { throw null; } set { } } public string Value { get { throw null; } set { } } } + public partial class JobConfigurationEventTriggerConfig + { + public JobConfigurationEventTriggerConfig() { } + public int? Parallelism { get { throw null; } set { } } + public int? ReplicaCompletionCount { get { throw null; } set { } } + public Azure.ResourceManager.AppContainers.Models.JobScale Scale { get { throw null; } set { } } + } public partial class JobConfigurationManualTriggerConfig { public JobConfigurationManualTriggerConfig() { } @@ -2272,11 +2362,6 @@ public JobExecutionContainer() { } public string Name { get { throw null; } set { } } public Azure.ResourceManager.AppContainers.Models.AppContainerResources Resources { get { throw null; } set { } } } - public partial class JobExecutionNamesCollection - { - public JobExecutionNamesCollection(System.Collections.Generic.IEnumerable value) { } - public System.Collections.Generic.IList Value { get { throw null; } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct JobExecutionRunningState : System.IEquatable { @@ -2300,6 +2385,22 @@ public JobExecutionNamesCollection(System.Collections.Generic.IEnumerable Rules { get { throw null; } } + } + public partial class JobScaleRule + { + public JobScaleRule() { } + public System.Collections.Generic.IList Auth { get { throw null; } } + public string JobScaleRuleType { get { throw null; } set { } } + public System.BinaryData Metadata { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ManagedCertificateDomainControlValidation : System.IEquatable { @@ -2328,10 +2429,38 @@ public ManagedCertificateProperties() { } public string SubjectName { get { throw null; } set { } } public string ValidationToken { get { throw null; } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct RevisionRunningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public RevisionRunningState(string value) { throw null; } + public static Azure.ResourceManager.AppContainers.Models.RevisionRunningState Degraded { get { throw null; } } + public static Azure.ResourceManager.AppContainers.Models.RevisionRunningState Failed { get { throw null; } } + public static Azure.ResourceManager.AppContainers.Models.RevisionRunningState Processing { get { throw null; } } + public static Azure.ResourceManager.AppContainers.Models.RevisionRunningState Running { get { throw null; } } + public static Azure.ResourceManager.AppContainers.Models.RevisionRunningState Stopped { get { throw null; } } + public static Azure.ResourceManager.AppContainers.Models.RevisionRunningState Unknown { get { throw null; } } + public bool Equals(Azure.ResourceManager.AppContainers.Models.RevisionRunningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.AppContainers.Models.RevisionRunningState left, Azure.ResourceManager.AppContainers.Models.RevisionRunningState right) { throw null; } + public static implicit operator Azure.ResourceManager.AppContainers.Models.RevisionRunningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.AppContainers.Models.RevisionRunningState left, Azure.ResourceManager.AppContainers.Models.RevisionRunningState right) { throw null; } + public override string ToString() { throw null; } + } public partial class SecretVolumeItem { public SecretVolumeItem() { } public string Path { get { throw null; } set { } } public string SecretRef { get { throw null; } set { } } } + public partial class ServiceBind + { + public ServiceBind() { } + public string Name { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier ServiceId { get { throw null; } set { } } + } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppAuthConfigCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppAuthConfigCollection.cs index 86f60002adcc..ad11499986de 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppAuthConfigCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppAuthConfigCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppAuthConfigCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAuthConfigsByContainerApps() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/AuthConfigs_ListByContainer.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/AuthConfigs_ListByContainer.json // this example is just showing the usage of "ContainerAppsAuthConfigs_ListByContainerApp" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListAuthConfigsByContainerApps() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSAuthConfig() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/AuthConfigs_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/AuthConfigs_Get.json // this example is just showing the usage of "ContainerAppsAuthConfigs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetContainerAppSAuthConfig() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetContainerAppSAuthConfig() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/AuthConfigs_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/AuthConfigs_Get.json // this example is just showing the usage of "ContainerAppsAuthConfigs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetContainerAppSAuthConfig() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateContainerAppAuthConfig() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/AuthConfigs_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/AuthConfigs_CreateOrUpdate.json // this example is just showing the usage of "ContainerAppsAuthConfigs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppAuthConfigResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppAuthConfigResource.cs index b64449898f30..4d2f38307c3c 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppAuthConfigResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppAuthConfigResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppAuthConfigResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSAuthConfig() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/AuthConfigs_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/AuthConfigs_Get.json // this example is just showing the usage of "ContainerAppsAuthConfigs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetContainerAppSAuthConfig() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateContainerAppAuthConfig() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/AuthConfigs_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/AuthConfigs_CreateOrUpdate.json // this example is just showing the usage of "ContainerAppsAuthConfigs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -110,7 +110,7 @@ public async Task Update_CreateOrUpdateContainerAppAuthConfig() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteContainerAppAuthConfig() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/AuthConfigs_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/AuthConfigs_Delete.json // this example is just showing the usage of "ContainerAppsAuthConfigs_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppCollection.cs index 72bebd3a4b46..a80ec204fef0 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_ContainerAppCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListContainerAppsByResourceGroup() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_ListByResourceGroup.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_ListByResourceGroup.json // this example is just showing the usage of "ContainerApps_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListContainerAppsByResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerApp() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Get.json // this example is just showing the usage of "ContainerApps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Get_GetContainerApp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetContainerApp() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Get.json // this example is just showing the usage of "ContainerApps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -124,7 +124,7 @@ public async Task Exists_GetContainerApp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateContainerApp() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_CreateOrUpdate.json // this example is just showing the usage of "ContainerApps_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -219,6 +219,7 @@ public async Task CreateOrUpdate_CreateOrUpdateContainerApp() IsApiLoggingEnabled = true, }, MaxInactiveRevisions = 10, + ServiceType = "redis", }, Template = new ContainerAppTemplate() { @@ -288,6 +289,14 @@ public async Task CreateOrUpdate_CreateOrUpdateContainerApp() } }, }, + ServiceBinds = +{ +new ServiceBind() +{ +ServiceId = new ResourceIdentifier("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/redisService"), +Name = "redisService", +} +}, }, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, containerAppName, data); @@ -305,7 +314,7 @@ public async Task CreateOrUpdate_CreateOrUpdateContainerApp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateManagedByApp() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_ManagedBy_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_ManagedBy_CreateOrUpdate.json // this example is just showing the usage of "ContainerApps_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -403,7 +412,7 @@ public async Task CreateOrUpdate_CreateOrUpdateManagedByApp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateTcpApp() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_TcpApp_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_TcpApp_CreateOrUpdate.json // this example is just showing the usage of "ContainerApps_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCertificateCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCertificateCollection.cs index 93b59ffef6a7..b8a4375a79db 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCertificateCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCertificateCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppConnectedEnvironmentCertificateCollectio [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListCertificatesByConnectedEnvironment() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json // this example is just showing the usage of "ConnectedEnvironmentsCertificates_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListCertificatesByConnectedEnvironment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsCertificate_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsCertificate_Get.json // this example is just showing the usage of "ConnectedEnvironmentsCertificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsCertificate_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsCertificate_Get.json // this example is just showing the usage of "ConnectedEnvironmentsCertificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json // this example is just showing the usage of "ConnectedEnvironmentsCertificates_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCertificateResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCertificateResource.cs index f815135a0a8c..c4a41e7a0ea3 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCertificateResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCertificateResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppConnectedEnvironmentCertificateResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsCertificate_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsCertificate_Get.json // this example is just showing the usage of "ConnectedEnvironmentsCertificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsCertificate_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsCertificate_Delete.json // this example is just showing the usage of "ConnectedEnvironmentsCertificates_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Delete_DeleteCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PatchCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsCertificates_Patch.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsCertificates_Patch.json // this example is just showing the usage of "ConnectedEnvironmentsCertificates_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCollection.cs index 750a99d19783..92bbe763a2cd 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCollection.cs @@ -25,7 +25,7 @@ public partial class Sample_ContainerAppConnectedEnvironmentCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListEnvironmentsByResourceGroup() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironments_ListByResourceGroup.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironments_ListByResourceGroup.json // this example is just showing the usage of "ConnectedEnvironments_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task GetAll_ListEnvironmentsByResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetConnectedEnvironmentByConnectedEnvironmentName() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironments_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironments_Get.json // this example is just showing the usage of "ConnectedEnvironments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetConnectedEnvironmentByConnectedEnvironmentName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetConnectedEnvironmentByConnectedEnvironmentName() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironments_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironments_Get.json // this example is just showing the usage of "ConnectedEnvironments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task Exists_GetConnectedEnvironmentByConnectedEnvironmentName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateKubeEnvironments() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironments_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironments_CreateOrUpdate.json // this example is just showing the usage of "ConnectedEnvironments_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentDaprComponentCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentDaprComponentCollection.cs index 1c712048165e..6a7c852ba939 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentDaprComponentCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentDaprComponentCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppConnectedEnvironmentDaprComponentCollect [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListDaprComponents() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsDaprComponents_List.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsDaprComponents_List.json // this example is just showing the usage of "ConnectedEnvironmentsDaprComponents_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListDaprComponents() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDaprComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json // this example is just showing the usage of "ConnectedEnvironmentsDaprComponents_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetDaprComponent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetDaprComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json // this example is just showing the usage of "ConnectedEnvironmentsDaprComponents_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetDaprComponent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateDaprComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json // this example is just showing the usage of "ConnectedEnvironmentsDaprComponents_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentDaprComponentResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentDaprComponentResource.cs index b8fe19f389da..c2c676cb8b10 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentDaprComponentResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentDaprComponentResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppConnectedEnvironmentDaprComponentResourc [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDaprComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json // this example is just showing the usage of "ConnectedEnvironmentsDaprComponents_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetDaprComponent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateDaprComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json // this example is just showing the usage of "ConnectedEnvironmentsDaprComponents_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task Update_CreateOrUpdateDaprComponent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteDaprComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsDaprComponents_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsDaprComponents_Delete.json // this example is just showing the usage of "ConnectedEnvironmentsDaprComponents_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -155,7 +155,7 @@ public async Task Delete_DeleteDaprComponent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSecrets_ListContainerAppsSecrets() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json // this example is just showing the usage of "ConnectedEnvironmentsDaprComponents_ListSecrets" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentResource.cs index 5e16d904195b..6f40af16aca8 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentResource.cs @@ -24,7 +24,7 @@ public partial class Sample_ContainerAppConnectedEnvironmentResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetContainerAppConnectedEnvironments_ListConnectedEnvironmentsBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironments_ListBySubscription.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironments_ListBySubscription.json // this example is just showing the usage of "ConnectedEnvironments_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetContainerAppConnectedEnvironments_ListConnectedEnvironments [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetConnectedEnvironmentByConnectedEnvironmentName() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironments_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironments_Get.json // this example is just showing the usage of "ConnectedEnvironments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Get_GetConnectedEnvironmentByConnectedEnvironmentName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteConnectedEnvironmentByConnectedEnvironmentName() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironments_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironments_Delete.json // this example is just showing the usage of "ConnectedEnvironments_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Delete_DeleteConnectedEnvironmentByConnectedEnvironmentName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PatchManagedEnvironment() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironments_Patch.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironments_Patch.json // this example is just showing the usage of "ConnectedEnvironments_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -145,7 +145,7 @@ public async Task Update_PatchManagedEnvironment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckNameAvailability_CertificatesCheckNameAvailability() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json // this example is just showing the usage of "ConnectedEnvironments_CheckNameAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentStorageCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentStorageCollection.cs index fcaabb16076d..f8c2de92f06d 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentStorageCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentStorageCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppConnectedEnvironmentStorageCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListEnvironmentsStoragesBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsStorages_List.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsStorages_List.json // this example is just showing the usage of "ConnectedEnvironmentsStorages_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListEnvironmentsStoragesBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAEnvironmentsStoragePropertiesBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsStorages_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsStorages_Get.json // this example is just showing the usage of "ConnectedEnvironmentsStorages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetAEnvironmentsStoragePropertiesBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAEnvironmentsStoragePropertiesBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsStorages_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsStorages_Get.json // this example is just showing the usage of "ConnectedEnvironmentsStorages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetAEnvironmentsStoragePropertiesBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateEnvironmentsStorage() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json // this example is just showing the usage of "ConnectedEnvironmentsStorages_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentStorageResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentStorageResource.cs index cd1bb7ba0249..9f338852caaf 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentStorageResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentStorageResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppConnectedEnvironmentStorageResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAEnvironmentsStoragePropertiesBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsStorages_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsStorages_Get.json // this example is just showing the usage of "ConnectedEnvironmentsStorages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetAEnvironmentsStoragePropertiesBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateEnvironmentsStorage() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json // this example is just showing the usage of "ConnectedEnvironmentsStorages_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Update_CreateOrUpdateEnvironmentsStorage() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ListEnvironmentsStoragesBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ConnectedEnvironmentsStorages_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsStorages_Delete.json // this example is just showing the usage of "ConnectedEnvironmentsStorages_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorCollection.cs index 06f7424f2f35..eb3b545b4a02 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppDetectorCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetTheListOfAvailableDiagnosticsForAGivenContainerApp() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerAppsDiagnostics_List.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerAppsDiagnostics_List.json // this example is just showing the usage of "ContainerAppsDiagnostics_ListDetectors" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task GetAll_GetTheListOfAvailableDiagnosticsForAGivenContainerApp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSDiagnosticsInfo() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerAppsDiagnostics_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerAppsDiagnostics_Get.json // this example is just showing the usage of "ContainerAppsDiagnostics_GetDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_GetContainerAppSDiagnosticsInfo() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetContainerAppSDiagnosticsInfo() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerAppsDiagnostics_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerAppsDiagnostics_Get.json // this example is just showing the usage of "ContainerAppsDiagnostics_GetDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyResource.cs index 0e5191a27dd1..dc6116098a6e 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppDetectorPropertyResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerApp() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Get.json // this example is just showing the usage of "ContainerAppsDiagnostics_GetRoot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyRevisionCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyRevisionCollection.cs index 24da2be71167..dcf360274326 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyRevisionCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyRevisionCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppDetectorPropertyRevisionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListContainerAppSRevisions() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Revisions_List.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Revisions_List.json // this example is just showing the usage of "ContainerAppsDiagnostics_ListRevisions" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task GetAll_ListContainerAppSRevisions() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSRevision() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Revisions_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Revisions_Get.json // this example is just showing the usage of "ContainerAppsDiagnostics_GetRevision" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_GetContainerAppSRevision() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetContainerAppSRevision() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Revisions_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Revisions_Get.json // this example is just showing the usage of "ContainerAppsDiagnostics_GetRevision" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyRevisionResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyRevisionResource.cs index 84a877594e64..3e960813e9bf 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyRevisionResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyRevisionResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppDetectorPropertyRevisionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSRevision() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Revisions_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Revisions_Get.json // this example is just showing the usage of "ContainerAppsDiagnostics_GetRevision" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorResource.cs index 597311bf30f1..04939b04c796 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppDetectorResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSDiagnosticsInfo() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerAppsDiagnostics_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerAppsDiagnostics_Get.json // this example is just showing the usage of "ContainerAppsDiagnostics_GetDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobCollection.cs index f1ec9176438f..3dd1373bef06 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobCollection.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using System.Threading.Tasks; using Azure; using Azure.Core; @@ -24,7 +25,7 @@ public partial class Sample_ContainerAppJobCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListContainerAppsJobsByResourceGroup() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Jobs_ListByResourceGroup.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Jobs_ListByResourceGroup.json // this example is just showing the usage of "Jobs_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +61,7 @@ public async Task GetAll_ListContainerAppsJobsByResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppsJob() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Job_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Get.json // this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +95,7 @@ public async Task Get_GetContainerAppsJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetContainerAppsJob() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Job_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Get.json // this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -124,7 +125,7 @@ public async Task Exists_GetContainerAppsJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateContainerAppsJob() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Job_CreateorUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_CreateorUpdate.json // this example is just showing the usage of "Jobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -215,5 +216,102 @@ public async Task CreateOrUpdate_CreateOrUpdateContainerAppsJob() // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + + // Create or Update Container Apps Job With Event Driven Trigger + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_CreateOrUpdateContainerAppsJobWithEventDrivenTrigger() + { + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_CreateorUpdate_EventTrigger.json + // this example is just showing the usage of "Jobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; + string resourceGroupName = "rg"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this ContainerAppJobResource + ContainerAppJobCollection collection = resourceGroupResource.GetContainerAppJobs(); + + // invoke the operation + string jobName = "testcontainerAppsJob0"; + ContainerAppJobData data = new ContainerAppJobData(new AzureLocation("East US")) + { + EnvironmentId = "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + Configuration = new ContainerAppJobConfiguration(ContainerAppJobTriggerType.Event, 10) + { + ReplicaRetryLimit = 10, + EventTriggerConfig = new JobConfigurationEventTriggerConfig() + { + ReplicaCompletionCount = 1, + Parallelism = 4, + Scale = new JobScale() + { + PollingInterval = 40, + MinExecutions = 1, + MaxExecutions = 5, + Rules = +{ +new JobScaleRule() +{ +Name = "servicebuscalingrule", +JobScaleRuleType = "azure-servicebus", +Metadata = BinaryData.FromObjectAsJson(new Dictionary() +{ +["topicName"] = "my-topic"}), +} +}, + }, + }, + }, + Template = new ContainerAppJobTemplate() + { + InitContainers = +{ +new ContainerAppInitContainer() +{ +Image = "repo/testcontainerAppsJob0:v4", +Name = "testinitcontainerAppsJob0", +Command = +{ +"/bin/sh" +}, +Args = +{ +"-c","while true; do echo hello; sleep 10;done" +}, +Resources = new AppContainerResources() +{ +Cpu = 0.2, +Memory = "100Mi", +}, +} +}, + Containers = +{ +new ContainerAppContainer() +{ +Image = "repo/testcontainerAppsJob0:v1", +Name = "testcontainerAppsJob0", +} +}, + }, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, jobName, data); + ContainerAppJobResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ContainerAppJobData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobExecutionCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobExecutionCollection.cs new file mode 100644 index 000000000000..801362794003 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobExecutionCollection.cs @@ -0,0 +1,122 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.AppContainers; + +namespace Azure.ResourceManager.AppContainers.Samples +{ + public partial class Sample_ContainerAppJobExecutionCollection + { + // Get a Container Apps Job Executions + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_GetAContainerAppsJobExecutions() + { + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Executions_Get.json + // this example is just showing the usage of "JobsExecutions_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ContainerAppJobResource created on azure + // for more information of creating ContainerAppJobResource, please refer to the document of ContainerAppJobResource + string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; + string resourceGroupName = "rg"; + string jobName = "testcontainerAppsJob0"; + ResourceIdentifier containerAppJobResourceId = ContainerAppJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, jobName); + ContainerAppJobResource containerAppJob = client.GetContainerAppJobResource(containerAppJobResourceId); + + // get the collection of this ContainerAppJobExecutionResource + ContainerAppJobExecutionCollection collection = containerAppJob.GetContainerAppJobExecutions(); + + // invoke the operation and iterate over the result + await foreach (ContainerAppJobExecutionResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ContainerAppJobExecutionData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // Get a single Job Execution + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetASingleJobExecution() + { + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Execution_Get.json + // this example is just showing the usage of "JobExecution" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ContainerAppJobResource created on azure + // for more information of creating ContainerAppJobResource, please refer to the document of ContainerAppJobResource + string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; + string resourceGroupName = "rg"; + string jobName = "testcontainerAppsJob0"; + ResourceIdentifier containerAppJobResourceId = ContainerAppJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, jobName); + ContainerAppJobResource containerAppJob = client.GetContainerAppJobResource(containerAppJobResourceId); + + // get the collection of this ContainerAppJobExecutionResource + ContainerAppJobExecutionCollection collection = containerAppJob.GetContainerAppJobExecutions(); + + // invoke the operation + string jobExecutionName = "jobExecution1"; + ContainerAppJobExecutionResource result = await collection.GetAsync(jobExecutionName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ContainerAppJobExecutionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get a single Job Execution + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_GetASingleJobExecution() + { + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Execution_Get.json + // this example is just showing the usage of "JobExecution" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ContainerAppJobResource created on azure + // for more information of creating ContainerAppJobResource, please refer to the document of ContainerAppJobResource + string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; + string resourceGroupName = "rg"; + string jobName = "testcontainerAppsJob0"; + ResourceIdentifier containerAppJobResourceId = ContainerAppJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, jobName); + ContainerAppJobResource containerAppJob = client.GetContainerAppJobResource(containerAppJobResourceId); + + // get the collection of this ContainerAppJobExecutionResource + ContainerAppJobExecutionCollection collection = containerAppJob.GetContainerAppJobExecutions(); + + // invoke the operation + string jobExecutionName = "jobExecution1"; + bool result = await collection.ExistsAsync(jobExecutionName); + + Console.WriteLine($"Succeeded: {result}"); + } + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobExecutionResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobExecutionResource.cs new file mode 100644 index 000000000000..8d915560d2f7 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobExecutionResource.cs @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager; +using Azure.ResourceManager.AppContainers; + +namespace Azure.ResourceManager.AppContainers.Samples +{ + public partial class Sample_ContainerAppJobExecutionResource + { + // Terminate a Container Apps Job + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task StopExecutionJob_TerminateAContainerAppsJob() + { + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Stop_Execution.json + // this example is just showing the usage of "Jobs_StopExecution" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ContainerAppJobExecutionResource created on azure + // for more information of creating ContainerAppJobExecutionResource, please refer to the document of ContainerAppJobExecutionResource + string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; + string resourceGroupName = "rg"; + string jobName = "testcontainerAppsJob0"; + string jobExecutionName = "jobExecution1"; + ResourceIdentifier containerAppJobExecutionResourceId = ContainerAppJobExecutionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, jobName, jobExecutionName); + ContainerAppJobExecutionResource containerAppJobExecution = client.GetContainerAppJobExecutionResource(containerAppJobExecutionResourceId); + + // invoke the operation + await containerAppJobExecution.StopExecutionJobAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // Get a single Job Execution + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetASingleJobExecution() + { + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Execution_Get.json + // this example is just showing the usage of "JobExecution" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ContainerAppJobExecutionResource created on azure + // for more information of creating ContainerAppJobExecutionResource, please refer to the document of ContainerAppJobExecutionResource + string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; + string resourceGroupName = "rg"; + string jobName = "testcontainerAppsJob0"; + string jobExecutionName = "jobExecution1"; + ResourceIdentifier containerAppJobExecutionResourceId = ContainerAppJobExecutionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, jobName, jobExecutionName); + ContainerAppJobExecutionResource containerAppJobExecution = client.GetContainerAppJobExecutionResource(containerAppJobExecutionResourceId); + + // invoke the operation + ContainerAppJobExecutionResource result = await containerAppJobExecution.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ContainerAppJobExecutionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobResource.cs index 43f2e806c056..f1a1896549b1 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobResource.cs @@ -24,7 +24,7 @@ public partial class Sample_ContainerAppJobResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetContainerAppJobs_ListContainerAppsJobsBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Jobs_ListBySubscription.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Jobs_ListBySubscription.json // this example is just showing the usage of "Jobs_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetContainerAppJobs_ListContainerAppsJobsBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppsJob() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Job_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Get.json // this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Get_GetContainerAppsJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteContainerAppsJob() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Job_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Delete.json // this example is just showing the usage of "Jobs_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Delete_DeleteContainerAppsJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PatchContainerAppsJob() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Job_Patch.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Patch.json // this example is just showing the usage of "Jobs_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -210,7 +210,7 @@ public async Task Update_PatchContainerAppsJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Start_RunAContainerAppsJob() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Job_Start.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Start.json // this example is just showing the usage of "Jobs_Start" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -264,46 +264,18 @@ public async Task Start_RunAContainerAppsJob() } }, }; - ArmOperation lro = await containerAppJob.StartAsync(WaitUntil.Completed, template); + ArmOperation lro = await containerAppJob.StartAsync(WaitUntil.Completed, template: template); ContainerAppJobExecutionBase result = lro.Value; Console.WriteLine($"Succeeded: {result}"); } - // Terminate a Container Apps Job - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task StopExecution_TerminateAContainerAppsJob() - { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Job_Stop_Execution.json - // this example is just showing the usage of "Jobs_StopExecution" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ContainerAppJobResource created on azure - // for more information of creating ContainerAppJobResource, please refer to the document of ContainerAppJobResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "rg"; - string jobName = "testcontainerAppsJob0"; - ResourceIdentifier containerAppJobResourceId = ContainerAppJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, jobName); - ContainerAppJobResource containerAppJob = client.GetContainerAppJobResource(containerAppJobResourceId); - - // invoke the operation - string jobExecutionName = "jobExecution1"; - await containerAppJob.StopExecutionAsync(WaitUntil.Completed, jobExecutionName); - - Console.WriteLine($"Succeeded"); - } - // Terminate Multiple Container Apps Job [NUnit.Framework.Test] [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StopMultipleExecutions_TerminateMultipleContainerAppsJob() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Job_Stop_Multiple.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Stop_Multiple.json // this example is just showing the usage of "Jobs_StopMultipleExecutions" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -320,20 +292,7 @@ public async Task StopMultipleExecutions_TerminateMultipleContainerAppsJob() ContainerAppJobResource containerAppJob = client.GetContainerAppJobResource(containerAppJobResourceId); // invoke the operation - JobExecutionNamesCollection jobExecutionName = new JobExecutionNamesCollection(new ContainerAppJobExecutionBase[] - { -new ContainerAppJobExecutionBase() -{ -Name = "jobExecution-27944453", -},new ContainerAppJobExecutionBase() -{ -Name = "jobExecution-27944452", -},new ContainerAppJobExecutionBase() -{ -Name = "jobExecution-27944451", -} - }); - ArmOperation lro = await containerAppJob.StopMultipleExecutionsAsync(WaitUntil.Completed, jobExecutionName); + ArmOperation lro = await containerAppJob.StopMultipleExecutionsAsync(WaitUntil.Completed); ContainerAppJobExecutions result = lro.Value; Console.WriteLine($"Succeeded: {result}"); @@ -344,7 +303,7 @@ public async Task StopMultipleExecutions_TerminateMultipleContainerAppsJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSecrets_ListContainerAppsJobSecrets() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Job_ListSecrets.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_ListSecrets.json // this example is just showing the usage of "Jobs_ListSecrets" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -368,35 +327,5 @@ public async Task GetSecrets_ListContainerAppsJobSecrets() Console.WriteLine($"Succeeded"); } - - // Get a Container Apps Job Executions - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetJobsExecutions_GetAContainerAppsJobExecutions() - { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Job_Executions_Get.json - // this example is just showing the usage of "JobsExecutions_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ContainerAppJobResource created on azure - // for more information of creating ContainerAppJobResource, please refer to the document of ContainerAppJobResource - string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; - string resourceGroupName = "rg"; - string jobName = "testcontainerAppsJob0"; - ResourceIdentifier containerAppJobResourceId = ContainerAppJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, jobName); - ContainerAppJobResource containerAppJob = client.GetContainerAppJobResource(containerAppJobResourceId); - - // invoke the operation and iterate over the result - await foreach (ContainerAppJobExecution item in containerAppJob.GetJobsExecutionsAsync()) - { - Console.WriteLine($"Succeeded: {item}"); - } - - Console.WriteLine($"Succeeded"); - } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedCertificateCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedCertificateCollection.cs index 2f1dd60cd4c1..84eedc3aa1cc 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedCertificateCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedCertificateCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppManagedCertificateCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedCertificate_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedCertificate_Get.json // this example is just showing the usage of "ManagedCertificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedCertificate_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedCertificate_Get.json // this example is just showing the usage of "ManagedCertificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_GetCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedCertificate_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedCertificate_CreateOrUpdate.json // this example is just showing the usage of "ManagedCertificates_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -133,7 +133,7 @@ public async Task CreateOrUpdate_CreateOrUpdateCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListManagedCertificatesByManagedEnvironment() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedCertificates_ListByManagedEnvironment.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedCertificates_ListByManagedEnvironment.json // this example is just showing the usage of "ManagedCertificates_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedCertificateResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedCertificateResource.cs index 697a1b60e6b6..f40d99c11559 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedCertificateResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedCertificateResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppManagedCertificateResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedCertificate_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedCertificate_Get.json // this example is just showing the usage of "ManagedCertificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedCertificate_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedCertificate_Delete.json // this example is just showing the usage of "ManagedCertificates_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Delete_DeleteCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PatchManagedCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedCertificates_Patch.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedCertificates_Patch.json // this example is just showing the usage of "ManagedCertificates_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCertificateCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCertificateCollection.cs index 24440116c00e..6703b34903af 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCertificateCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCertificateCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppManagedEnvironmentCertificateCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListCertificatesByManagedEnvironment() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Certificates_ListByManagedEnvironment.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Certificates_ListByManagedEnvironment.json // this example is just showing the usage of "Certificates_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListCertificatesByManagedEnvironment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Certificate_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Certificate_Get.json // this example is just showing the usage of "Certificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Certificate_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Certificate_Get.json // this example is just showing the usage of "Certificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Certificate_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Certificate_CreateOrUpdate.json // this example is just showing the usage of "Certificates_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCertificateResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCertificateResource.cs index 7907368535c2..671705cbb03c 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCertificateResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCertificateResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppManagedEnvironmentCertificateResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Certificate_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Certificate_Get.json // this example is just showing the usage of "Certificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Certificate_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Certificate_Delete.json // this example is just showing the usage of "Certificates_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Delete_DeleteCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PatchCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Certificates_Patch.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Certificates_Patch.json // this example is just showing the usage of "Certificates_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCollection.cs index 10b0223ccf5e..4a5455aeccf8 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_ContainerAppManagedEnvironmentCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListEnvironmentsByResourceGroup() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json // this example is just showing the usage of "ManagedEnvironments_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListEnvironmentsByResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetEnvironmentsByName() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_Get.json // this example is just showing the usage of "ManagedEnvironments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Get_GetEnvironmentsByName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetEnvironmentsByName() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_Get.json // this example is just showing the usage of "ManagedEnvironments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -124,7 +124,7 @@ public async Task Exists_GetEnvironmentsByName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateEnvironmentWithCustomInfrastructureResourceGroup() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json // this example is just showing the usage of "ManagedEnvironments_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -199,7 +199,7 @@ public async Task CreateOrUpdate_CreateEnvironmentWithCustomInfrastructureResour [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateEnvironments() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json // this example is just showing the usage of "ManagedEnvironments_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -257,6 +257,7 @@ public async Task CreateOrUpdate_CreateEnvironments() MaximumNodeCount = 6, },new ContainerAppWorkloadProfile("My-consumption-01","Consumption") }, + IsMtlsEnabled = true, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, environmentName, data); ContainerAppManagedEnvironmentResource result = lro.Value; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDaprComponentCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDaprComponentCollection.cs index 1bc1f6d0f808..3b8f880d1915 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDaprComponentCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDaprComponentCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppManagedEnvironmentDaprComponentCollectio [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListDaprComponents() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/DaprComponents_List.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_List.json // this example is just showing the usage of "DaprComponents_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListDaprComponents() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDaprComponentWithSecretStoreComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/DaprComponents_Get_SecretStoreComponent.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_Get_SecretStoreComponent.json // this example is just showing the usage of "DaprComponents_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetDaprComponentWithSecretStoreComponent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetDaprComponentWithSecretStoreComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/DaprComponents_Get_SecretStoreComponent.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_Get_SecretStoreComponent.json // this example is just showing the usage of "DaprComponents_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetDaprComponentWithSecretStoreComponent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDaprComponentWithSecrets() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/DaprComponents_Get_Secrets.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_Get_Secrets.json // this example is just showing the usage of "DaprComponents_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -161,7 +161,7 @@ public async Task Get_GetDaprComponentWithSecrets() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetDaprComponentWithSecrets() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/DaprComponents_Get_Secrets.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_Get_Secrets.json // this example is just showing the usage of "DaprComponents_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -192,7 +192,7 @@ public async Task Exists_GetDaprComponentWithSecrets() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateDaprComponentWithSecretStoreComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json // this example is just showing the usage of "DaprComponents_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -260,7 +260,7 @@ public async Task CreateOrUpdate_CreateOrUpdateDaprComponentWithSecretStoreCompo [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateDaprComponentWithSecrets() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/DaprComponents_CreateOrUpdate_Secrets.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_CreateOrUpdate_Secrets.json // this example is just showing the usage of "DaprComponents_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDaprComponentResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDaprComponentResource.cs index b16e3ac29b5b..3755beac170b 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDaprComponentResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDaprComponentResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppManagedEnvironmentDaprComponentResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDaprComponentWithSecretStoreComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/DaprComponents_Get_SecretStoreComponent.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_Get_SecretStoreComponent.json // this example is just showing the usage of "DaprComponents_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetDaprComponentWithSecretStoreComponent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDaprComponentWithSecrets() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/DaprComponents_Get_Secrets.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_Get_Secrets.json // this example is just showing the usage of "DaprComponents_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Get_GetDaprComponentWithSecrets() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateDaprComponentWithSecretStoreComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json // this example is just showing the usage of "DaprComponents_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -152,7 +152,7 @@ public async Task Update_CreateOrUpdateDaprComponentWithSecretStoreComponent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateDaprComponentWithSecrets() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/DaprComponents_CreateOrUpdate_Secrets.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_CreateOrUpdate_Secrets.json // this example is just showing the usage of "DaprComponents_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -224,7 +224,7 @@ public async Task Update_CreateOrUpdateDaprComponentWithSecrets() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteDaprComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/DaprComponents_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_Delete.json // this example is just showing the usage of "DaprComponents_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -252,7 +252,7 @@ public async Task Delete_DeleteDaprComponent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSecrets_ListContainerAppsSecrets() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/DaprComponents_ListSecrets.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_ListSecrets.json // this example is just showing the usage of "DaprComponents_ListSecrets" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorCollection.cs index 9e0100118864..3d6f80cbf102 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppManagedEnvironmentDetectorCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetTheListOfAvailableDiagnosticDataForAManagedEnvironments() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironmentDiagnostics_List.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironmentDiagnostics_List.json // this example is just showing the usage of "ManagedEnvironmentDiagnostics_ListDetectors" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task GetAll_GetTheListOfAvailableDiagnosticDataForAManagedEnvironme [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDiagnosticDataForAManagedEnvironments() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironmentDiagnostics_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironmentDiagnostics_Get.json // this example is just showing the usage of "ManagedEnvironmentDiagnostics_GetDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_GetDiagnosticDataForAManagedEnvironments() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetDiagnosticDataForAManagedEnvironments() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironmentDiagnostics_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironmentDiagnostics_Get.json // this example is just showing the usage of "ManagedEnvironmentDiagnostics_GetDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorResource.cs index c4458e7381e5..e859a5acca05 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppManagedEnvironmentDetectorResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDiagnosticDataForAManagedEnvironments() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironmentDiagnostics_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironmentDiagnostics_Get.json // this example is just showing the usage of "ManagedEnvironmentDiagnostics_GetDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorResourcePropertyResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorResourcePropertyResource.cs index 24946683c4f8..e02c16f0374d 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorResourcePropertyResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorResourcePropertyResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppManagedEnvironmentDetectorResourceProper [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetEnvironmentsByName() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_Get.json // this example is just showing the usage of "ManagedEnvironmentsDiagnostics_GetRoot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentResource.cs index 7e57fa03e503..8e420fe9eca1 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentResource.cs @@ -24,7 +24,7 @@ public partial class Sample_ContainerAppManagedEnvironmentResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetContainerAppManagedEnvironments_ListEnvironmentsBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_ListBySubscription.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_ListBySubscription.json // this example is just showing the usage of "ManagedEnvironments_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetContainerAppManagedEnvironments_ListEnvironmentsBySubscript [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetEnvironmentsByName() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_Get.json // this example is just showing the usage of "ManagedEnvironments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Get_GetEnvironmentsByName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteEnvironmentByName() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_Delete.json // this example is just showing the usage of "ManagedEnvironments_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Delete_DeleteEnvironmentByName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PatchManagedEnvironment() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_Patch.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_Patch.json // this example is just showing the usage of "ManagedEnvironments_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -154,7 +154,7 @@ public async Task Update_PatchManagedEnvironment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAuthToken_GetManagedEnvironmentAuthToken() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_GetAuthToken.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_GetAuthToken.json // this example is just showing the usage of "ManagedEnvironments_GetAuthToken" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -181,7 +181,7 @@ public async Task GetAuthToken_GetManagedEnvironmentAuthToken() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetWorkloadProfileStates_ListEnvironmentsBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironments_ListWorkloadProfileStates.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_ListWorkloadProfileStates.json // this example is just showing the usage of "ManagedEnvironments_ListWorkloadProfileStates" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -211,7 +211,7 @@ public async Task GetWorkloadProfileStates_ListEnvironmentsBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckContainerAppNameAvailability_CertificatesCheckNameAvailability() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Certificates_CheckNameAvailability.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Certificates_CheckNameAvailability.json // this example is just showing the usage of "Namespaces_CheckNameAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -243,7 +243,7 @@ public async Task CheckContainerAppNameAvailability_CertificatesCheckNameAvailab [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckContainerAppNameAvailability_ContainerAppsCheckNameAvailability() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_CheckNameAvailability.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_CheckNameAvailability.json // this example is just showing the usage of "Namespaces_CheckNameAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentStorageCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentStorageCollection.cs index a5ecc9ef38a5..e22067458d17 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentStorageCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentStorageCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppManagedEnvironmentStorageCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListEnvironmentsStoragesBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironmentsStorages_List.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironmentsStorages_List.json // this example is just showing the usage of "ManagedEnvironmentsStorages_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListEnvironmentsStoragesBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAEnvironmentsStoragePropertiesBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironmentsStorages_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironmentsStorages_Get.json // this example is just showing the usage of "ManagedEnvironmentsStorages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetAEnvironmentsStoragePropertiesBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAEnvironmentsStoragePropertiesBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironmentsStorages_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironmentsStorages_Get.json // this example is just showing the usage of "ManagedEnvironmentsStorages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetAEnvironmentsStoragePropertiesBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateEnvironmentsStorage() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json // this example is just showing the usage of "ManagedEnvironmentsStorages_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentStorageResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentStorageResource.cs index 4c5fe1d48725..52ae63a108dd 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentStorageResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentStorageResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppManagedEnvironmentStorageResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAEnvironmentsStoragePropertiesBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironmentsStorages_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironmentsStorages_Get.json // this example is just showing the usage of "ManagedEnvironmentsStorages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetAEnvironmentsStoragePropertiesBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateEnvironmentsStorage() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json // this example is just showing the usage of "ManagedEnvironmentsStorages_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Update_CreateOrUpdateEnvironmentsStorage() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ListEnvironmentsStoragesBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ManagedEnvironmentsStorages_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironmentsStorages_Delete.json // this example is just showing the usage of "ManagedEnvironmentsStorages_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppReplicaCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppReplicaCollection.cs index 965b017d6d68..76467108c6be 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppReplicaCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppReplicaCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppReplicaCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSRevisionReplica() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Replicas_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Replicas_Get.json // this example is just showing the usage of "ContainerAppsRevisionReplicas_GetReplica" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetContainerAppSRevisionReplica() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetContainerAppSRevisionReplica() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Replicas_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Replicas_Get.json // this example is just showing the usage of "ContainerAppsRevisionReplicas_GetReplica" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_GetContainerAppSRevisionReplica() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListContainerAppSReplicas() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Replicas_List.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Replicas_List.json // this example is just showing the usage of "ContainerAppsRevisionReplicas_ListReplicas" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppReplicaResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppReplicaResource.cs index 8a5cf9328e92..496a1983fc48 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppReplicaResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppReplicaResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppReplicaResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSRevisionReplica() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Replicas_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Replicas_Get.json // this example is just showing the usage of "ContainerAppsRevisionReplicas_GetReplica" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppResource.cs index 16cb776aeed9..dd45409601d9 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppResource.cs @@ -24,7 +24,7 @@ public partial class Sample_ContainerAppResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetContainerApps_ListContainerAppsBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_ListBySubscription.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_ListBySubscription.json // this example is just showing the usage of "ContainerApps_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetContainerApps_ListContainerAppsBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerApp() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Get.json // this example is just showing the usage of "ContainerApps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Get_GetContainerApp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteContainerApp() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Delete.json // this example is just showing the usage of "ContainerApps_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Delete_DeleteContainerApp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PatchContainerApp() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_Patch.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Patch.json // this example is just showing the usage of "ContainerApps_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -183,6 +183,7 @@ public async Task Update_PatchContainerApp() IsApiLoggingEnabled = true, }, MaxInactiveRevisions = 10, + ServiceType = "redis", }, Template = new ContainerAppTemplate() { @@ -244,6 +245,14 @@ public async Task Update_PatchContainerApp() } }, }, + ServiceBinds = +{ +new ServiceBind() +{ +ServiceId = new ResourceIdentifier("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/service"), +Name = "service", +} +}, }, Tags = { @@ -266,7 +275,7 @@ public async Task Update_PatchContainerApp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetCustomHostNameAnalysis_AnalyzeCustomHostname() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json // this example is just showing the usage of "ContainerApps_ListCustomHostNameAnalysis" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -294,7 +303,7 @@ public async Task GetCustomHostNameAnalysis_AnalyzeCustomHostname() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSecrets_ListContainerAppsSecrets() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_ListSecrets.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_ListSecrets.json // this example is just showing the usage of "ContainerApps_ListSecrets" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -324,7 +333,7 @@ public async Task GetSecrets_ListContainerAppsSecrets() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAuthToken_GetContainerAppAuthToken() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/ContainerApps_GetAuthToken.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_GetAuthToken.json // this example is just showing the usage of "ContainerApps_GetAuthToken" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -345,5 +354,69 @@ public async Task GetAuthToken_GetContainerAppAuthToken() Console.WriteLine($"Succeeded: {result}"); } + + // Start Container App + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Start_StartContainerApp() + { + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json + // this example is just showing the usage of "ContainerApps_Start" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ContainerAppResource created on azure + // for more information of creating ContainerAppResource, please refer to the document of ContainerAppResource + string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; + string resourceGroupName = "rg"; + string containerAppName = "testWorkerApp0"; + ResourceIdentifier containerAppResourceId = ContainerAppResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, containerAppName); + ContainerAppResource containerApp = client.GetContainerAppResource(containerAppResourceId); + + // invoke the operation + ArmOperation lro = await containerApp.StartAsync(WaitUntil.Completed); + ContainerAppResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ContainerAppData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Stop Container App + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Stop_StopContainerApp() + { + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json + // this example is just showing the usage of "ContainerApps_Stop" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ContainerAppResource created on azure + // for more information of creating ContainerAppResource, please refer to the document of ContainerAppResource + string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; + string resourceGroupName = "rg"; + string containerAppName = "testWorkerApp0"; + ResourceIdentifier containerAppResourceId = ContainerAppResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, containerAppName); + ContainerAppResource containerApp = client.GetContainerAppResource(containerAppResourceId); + + // invoke the operation + ArmOperation lro = await containerApp.StopAsync(WaitUntil.Completed); + ContainerAppResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ContainerAppData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppRevisionCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppRevisionCollection.cs index e136ab0b073c..9e8fe6bb5aeb 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppRevisionCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppRevisionCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppRevisionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListContainerAppSRevisions() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Revisions_List.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Revisions_List.json // this example is just showing the usage of "ContainerAppsRevisions_ListRevisions" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task GetAll_ListContainerAppSRevisions() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSRevision() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Revisions_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Revisions_Get.json // this example is just showing the usage of "ContainerAppsRevisions_GetRevision" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_GetContainerAppSRevision() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetContainerAppSRevision() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Revisions_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Revisions_Get.json // this example is just showing the usage of "ContainerAppsRevisions_GetRevision" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppRevisionResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppRevisionResource.cs index e3ffdc017952..b31b2191d55b 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppRevisionResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppRevisionResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppRevisionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSRevision() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Revisions_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Revisions_Get.json // this example is just showing the usage of "ContainerAppsRevisions_GetRevision" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetContainerAppSRevision() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ActivateRevision_ActivateContainerAppSRevision() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Revisions_Activate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Revisions_Activate.json // this example is just showing the usage of "ContainerAppsRevisions_ActivateRevision" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -81,7 +81,7 @@ public async Task ActivateRevision_ActivateContainerAppSRevision() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task DeactivateRevision_DeactivateContainerAppSRevision() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Revisions_Deactivate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Revisions_Deactivate.json // this example is just showing the usage of "ContainerAppsRevisions_DeactivateRevision" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -109,7 +109,7 @@ public async Task DeactivateRevision_DeactivateContainerAppSRevision() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task RestartRevision_RestartContainerAppSRevision() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/Revisions_Restart.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Revisions_Restart.json // this example is just showing the usage of "ContainerAppsRevisions_RestartRevision" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppSourceControlCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppSourceControlCollection.cs index 66f648591794..62256763ba87 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppSourceControlCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppSourceControlCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppSourceControlCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAppSSourceControls() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/SourceControls_ListByContainer.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/SourceControls_ListByContainer.json // this example is just showing the usage of "ContainerAppsSourceControls_ListByContainerApp" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListAppSSourceControls() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSSourceControl() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/SourceControls_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/SourceControls_Get.json // this example is just showing the usage of "ContainerAppsSourceControls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetContainerAppSSourceControl() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetContainerAppSSourceControl() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/SourceControls_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/SourceControls_Get.json // this example is just showing the usage of "ContainerAppsSourceControls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetContainerAppSSourceControl() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateContainerAppSourceControl() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/SourceControls_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/SourceControls_CreateOrUpdate.json // this example is just showing the usage of "ContainerAppsSourceControls_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -155,8 +155,8 @@ public async Task CreateOrUpdate_CreateOrUpdateContainerAppSourceControl() { RegistryInfo = new ContainerAppRegistryInfo() { - RegistryServer = "xwang971reg.azurecr.io", - RegistryUserName = "xwang971reg", + RegistryServer = "test-registry.azurecr.io", + RegistryUserName = "test-registry", RegistryPassword = "", }, AzureCredentials = new ContainerAppCredentials() @@ -164,8 +164,10 @@ public async Task CreateOrUpdate_CreateOrUpdateContainerAppSourceControl() ClientId = "", ClientSecret = "", TenantId = Guid.Parse(""), + Kind = "feaderated", }, ContextPath = "./", + GitHubPersonalAccessToken = "test", Image = "image/tag", }, }; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppSourceControlResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppSourceControlResource.cs index d5b753b8627c..db53be0a0f21 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppSourceControlResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppSourceControlResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppSourceControlResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSSourceControl() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/SourceControls_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/SourceControls_Get.json // this example is just showing the usage of "ContainerAppsSourceControls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetContainerAppSSourceControl() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateContainerAppSourceControl() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/SourceControls_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/SourceControls_CreateOrUpdate.json // this example is just showing the usage of "ContainerAppsSourceControls_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -81,8 +81,8 @@ public async Task Update_CreateOrUpdateContainerAppSourceControl() { RegistryInfo = new ContainerAppRegistryInfo() { - RegistryServer = "xwang971reg.azurecr.io", - RegistryUserName = "xwang971reg", + RegistryServer = "test-registry.azurecr.io", + RegistryUserName = "test-registry", RegistryPassword = "", }, AzureCredentials = new ContainerAppCredentials() @@ -90,8 +90,10 @@ public async Task Update_CreateOrUpdateContainerAppSourceControl() ClientId = "", ClientSecret = "", TenantId = Guid.Parse(""), + Kind = "feaderated", }, ContextPath = "./", + GitHubPersonalAccessToken = "test", Image = "image/tag", }, }; @@ -110,7 +112,7 @@ public async Task Update_CreateOrUpdateContainerAppSourceControl() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteContainerAppSourceControl() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/SourceControls_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/SourceControls_Delete.json // this example is just showing the usage of "ContainerAppsSourceControls_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 6959c8e4a5b4..ecaf5d59686d 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -23,7 +23,7 @@ public partial class Sample_SubscriptionResourceExtensions [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableWorkloadProfiles_BillingMetersGet() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/AvailableWorkloadProfiles_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/AvailableWorkloadProfiles_Get.json // this example is just showing the usage of "AvailableWorkloadProfiles_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task GetAvailableWorkloadProfiles_BillingMetersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetBillingMeters_BillingMetersGet() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2022-11-01-preview/examples/BillingMeters_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/BillingMeters_Get.json // this example is just showing the usage of "BillingMeters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ArmAppContainersModelFactory.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ArmAppContainersModelFactory.cs index fd99491e941b..53396b6b2a3c 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ArmAppContainersModelFactory.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ArmAppContainersModelFactory.cs @@ -326,56 +326,6 @@ public static ContainerAppAuthToken ContainerAppAuthToken(ResourceIdentifier id return new ContainerAppAuthToken(id, name, resourceType, systemData, tags, location, token, expireOn); } - /// Initializes a new instance of ContainerAppJobData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// Managed identities needed by a container app job to interact with other Azure services to not maintain any secrets or credentials in code. - /// Provisioning state of the Container Apps Job. - /// Resource ID of environment. - /// Workload profile name to pin for container apps job execution. - /// Container Apps Job configuration properties. - /// Container Apps job definition. - /// Outbound IP Addresses of a container apps job. - /// The endpoint of the eventstream of the container apps job. - /// A new instance for mocking. - public static ContainerAppJobData ContainerAppJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, ContainerAppJobProvisioningState? provisioningState = null, string environmentId = null, string workloadProfileName = null, ContainerAppJobConfiguration configuration = null, ContainerAppJobTemplate template = null, IEnumerable outboundIPAddresses = null, string eventStreamEndpoint = null) - { - tags ??= new Dictionary(); - outboundIPAddresses ??= new List(); - - return new ContainerAppJobData(id, name, resourceType, systemData, tags, location, identity, provisioningState, environmentId, workloadProfileName, configuration, template, outboundIPAddresses?.ToList(), eventStreamEndpoint); - } - - /// Initializes a new instance of ContainerAppJobExecutions. - /// Collection of resources. - /// Link to next page of resources. - /// A new instance for mocking. - public static ContainerAppJobExecutions ContainerAppJobExecutions(IEnumerable value = null, string nextLink = null) - { - value ??= new List(); - - return new ContainerAppJobExecutions(value?.ToList(), nextLink); - } - - /// Initializes a new instance of ContainerAppJobExecution. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Current running State of the job. - /// Job execution start time. - /// Job execution start time. - /// Job's execution container. - /// A new instance for mocking. - public static ContainerAppJobExecution ContainerAppJobExecution(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, JobExecutionRunningState? status = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, ContainerAppJobExecutionTemplate template = null) - { - return new ContainerAppJobExecution(id, name, resourceType, systemData, status, startOn, endOn, template); - } - /// Initializes a new instance of ContainerAppRevisionData. /// The id. /// The name. @@ -398,10 +348,11 @@ public static ContainerAppJobExecution ContainerAppJobExecution(ResourceIdentifi /// Optional Field - Platform Error Message. /// Current health State of the revision. /// Current provisioning State of the revision. + /// Current running state of the revision. /// A new instance for mocking. - public static ContainerAppRevisionData ContainerAppRevisionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastActiveOn = null, string fqdn = null, ContainerAppTemplate template = null, bool? isActive = null, int? replicas = null, int? trafficWeight = null, string provisioningError = null, ContainerAppRevisionHealthState? healthState = null, ContainerAppRevisionProvisioningState? provisioningState = null) + public static ContainerAppRevisionData ContainerAppRevisionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastActiveOn = null, string fqdn = null, ContainerAppTemplate template = null, bool? isActive = null, int? replicas = null, int? trafficWeight = null, string provisioningError = null, ContainerAppRevisionHealthState? healthState = null, ContainerAppRevisionProvisioningState? provisioningState = null, RevisionRunningState? runningState = null) { - return new ContainerAppRevisionData(id, name, resourceType, systemData, createdOn, lastActiveOn, fqdn, template, isActive, replicas, trafficWeight, provisioningError, healthState, provisioningState); + return new ContainerAppRevisionData(id, name, resourceType, systemData, createdOn, lastActiveOn, fqdn, template, isActive, replicas, trafficWeight, provisioningError, healthState, provisioningState, runningState); } /// Initializes a new instance of ContainerAppReplicaData. @@ -410,13 +361,17 @@ public static ContainerAppRevisionData ContainerAppRevisionData(ResourceIdentifi /// The resourceType. /// The systemData. /// Timestamp describing when the pod was created by controller. + /// Current running state of the replica. + /// The details of replica current running state. /// The containers collection under a replica. + /// The init containers collection under a replica. /// A new instance for mocking. - public static ContainerAppReplicaData ContainerAppReplicaData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? createdOn = null, IEnumerable containers = null) + public static ContainerAppReplicaData ContainerAppReplicaData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? createdOn = null, ContainerAppReplicaRunningState? runningState = null, string runningStateDetails = null, IEnumerable containers = null, IEnumerable initContainers = null) { containers ??= new List(); + initContainers ??= new List(); - return new ContainerAppReplicaData(id, name, resourceType, systemData, createdOn, containers?.ToList()); + return new ContainerAppReplicaData(id, name, resourceType, systemData, createdOn, runningState, runningStateDetails, containers?.ToList(), initContainers?.ToList()); } /// Initializes a new instance of ContainerAppReplicaContainer. @@ -425,12 +380,14 @@ public static ContainerAppReplicaData ContainerAppReplicaData(ResourceIdentifier /// The container ready status. /// The container start status. /// The container restart count. + /// Current running state of the container. + /// The details of container current running state. /// Log Stream endpoint. /// Container exec endpoint. /// A new instance for mocking. - public static ContainerAppReplicaContainer ContainerAppReplicaContainer(string name = null, string containerId = null, bool? isReady = null, bool? isStarted = null, int? restartCount = null, string logStreamEndpoint = null, string execEndpoint = null) + public static ContainerAppReplicaContainer ContainerAppReplicaContainer(string name = null, string containerId = null, bool? isReady = null, bool? isStarted = null, int? restartCount = null, ContainerAppContainerRunningState? runningState = null, string runningStateDetails = null, string logStreamEndpoint = null, string execEndpoint = null) { - return new ContainerAppReplicaContainer(name, containerId, isReady, isStarted, restartCount, logStreamEndpoint, execEndpoint); + return new ContainerAppReplicaContainer(name, containerId, isReady, isStarted, restartCount, runningState, runningStateDetails, logStreamEndpoint, execEndpoint); } /// Initializes a new instance of ContainerAppDiagnosticData. @@ -501,13 +458,73 @@ public static ContainerAppDiagnosticSupportTopic ContainerAppDiagnosticSupportTo /// The configuration of Keda component. /// The configuration of Dapr component. /// Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. If a subnet ID is provided, this resource group will be created in the same subscription as the subnet. + /// Peer authentication settings for the Managed Environment. /// A new instance for mocking. - public static ContainerAppManagedEnvironmentData ContainerAppManagedEnvironmentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string kind = null, ContainerAppEnvironmentProvisioningState? provisioningState = null, string daprAIInstrumentationKey = null, string daprAIConnectionString = null, ContainerAppVnetConfiguration vnetConfiguration = null, string deploymentErrors = null, string defaultDomain = null, IPAddress staticIP = null, ContainerAppLogsConfiguration appLogsConfiguration = null, bool? isZoneRedundant = null, ContainerAppCustomDomainConfiguration customDomainConfiguration = null, string eventStreamEndpoint = null, IEnumerable workloadProfiles = null, string kedaVersion = null, string daprVersion = null, string infrastructureResourceGroup = null) + public static ContainerAppManagedEnvironmentData ContainerAppManagedEnvironmentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string kind = null, ContainerAppEnvironmentProvisioningState? provisioningState = null, string daprAIInstrumentationKey = null, string daprAIConnectionString = null, ContainerAppVnetConfiguration vnetConfiguration = null, string deploymentErrors = null, string defaultDomain = null, IPAddress staticIP = null, ContainerAppLogsConfiguration appLogsConfiguration = null, bool? isZoneRedundant = null, ContainerAppCustomDomainConfiguration customDomainConfiguration = null, string eventStreamEndpoint = null, IEnumerable workloadProfiles = null, string kedaVersion = null, string daprVersion = null, string infrastructureResourceGroup = null, bool? isMtlsEnabled = null) { tags ??= new Dictionary(); workloadProfiles ??= new List(); - return new ContainerAppManagedEnvironmentData(id, name, resourceType, systemData, tags, location, kind, provisioningState, daprAIInstrumentationKey, daprAIConnectionString, vnetConfiguration, deploymentErrors, defaultDomain, staticIP, appLogsConfiguration, isZoneRedundant, customDomainConfiguration, eventStreamEndpoint, workloadProfiles?.ToList(), kedaVersion != null ? new KedaConfiguration(kedaVersion) : null, daprVersion != null ? new DaprConfiguration(daprVersion) : null, infrastructureResourceGroup); + return new ContainerAppManagedEnvironmentData(id, name, resourceType, systemData, tags, location, kind, provisioningState, daprAIInstrumentationKey, daprAIConnectionString, vnetConfiguration, deploymentErrors, defaultDomain, staticIP, appLogsConfiguration, isZoneRedundant, customDomainConfiguration, eventStreamEndpoint, workloadProfiles?.ToList(), kedaVersion != null ? new KedaConfiguration(kedaVersion) : null, daprVersion != null ? new DaprConfiguration(daprVersion) : null, infrastructureResourceGroup, isMtlsEnabled != null ? new ManagedEnvironmentPropertiesPeerAuthentication(new Mtls(isMtlsEnabled)) : null); + } + + /// Initializes a new instance of ContainerAppJobData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Managed identities needed by a container app job to interact with other Azure services to not maintain any secrets or credentials in code. + /// Provisioning state of the Container Apps Job. + /// Resource ID of environment. + /// Workload profile name to pin for container apps job execution. + /// Container Apps Job configuration properties. + /// Container Apps job definition. + /// Outbound IP Addresses of a container apps job. + /// The endpoint of the eventstream of the container apps job. + /// A new instance for mocking. + public static ContainerAppJobData ContainerAppJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, ContainerAppJobProvisioningState? provisioningState = null, string environmentId = null, string workloadProfileName = null, ContainerAppJobConfiguration configuration = null, ContainerAppJobTemplate template = null, IEnumerable outboundIPAddresses = null, string eventStreamEndpoint = null) + { + tags ??= new Dictionary(); + outboundIPAddresses ??= new List(); + + return new ContainerAppJobData(id, name, resourceType, systemData, tags, location, identity, provisioningState, environmentId, workloadProfileName, configuration, template, outboundIPAddresses?.ToList(), eventStreamEndpoint); + } + + /// Initializes a new instance of ContainerAppJobExecutionBase. + /// Job execution name. + /// Job execution Id. + /// A new instance for mocking. + public static ContainerAppJobExecutionBase ContainerAppJobExecutionBase(string name = null, string id = null) + { + return new ContainerAppJobExecutionBase(name, id); + } + + /// Initializes a new instance of ContainerAppJobExecutions. + /// Collection of resources. + /// Link to next page of resources. + /// A new instance for mocking. + public static ContainerAppJobExecutions ContainerAppJobExecutions(IEnumerable value = null, string nextLink = null) + { + value ??= new List(); + + return new ContainerAppJobExecutions(value?.ToList(), nextLink); + } + + /// Initializes a new instance of ContainerAppJobExecutionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Current running State of the job. + /// Job execution start time. + /// Job execution end time. + /// Job's execution container. + /// A new instance for mocking. + public static ContainerAppJobExecutionData ContainerAppJobExecutionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, JobExecutionRunningState? status = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, ContainerAppJobExecutionTemplate template = null) + { + return new ContainerAppJobExecutionData(id, name, resourceType, systemData, status, startOn, endOn, template); } /// Initializes a new instance of ContainerAppManagedCertificateData. diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppJobCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppJobCollection.cs index 5d38b9213bec..d56f2f20ef78 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppJobCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppJobCollection.cs @@ -67,7 +67,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the Container Apps Job. + /// Job Name. /// Properties used to create a container apps job. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -108,7 +108,7 @@ public virtual async Task> CreateOrUpdateA /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Name of the Container Apps Job. + /// Job Name. /// Properties used to create a container apps job. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. @@ -148,7 +148,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa /// /// /// - /// Name of the Container Apps Job. + /// Job Name. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -185,7 +185,7 @@ public virtual async Task> GetAsync(string job /// /// /// - /// Name of the Container Apps Job. + /// Job Name. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -266,7 +266,7 @@ public virtual Pageable GetAll(CancellationToken cancel /// /// /// - /// Name of the Container Apps Job. + /// Job Name. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -301,7 +301,7 @@ public virtual async Task> ExistsAsync(string jobName, Cancellati /// /// /// - /// Name of the Container Apps Job. + /// Job Name. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppJobExecutionCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppJobExecutionCollection.cs new file mode 100644 index 000000000000..048bb67091ee --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppJobExecutionCollection.cs @@ -0,0 +1,265 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.AppContainers +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get a instance call the GetContainerAppJobExecutions method from an instance of . + /// + public partial class ContainerAppJobExecutionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _containerAppJobExecutionClientDiagnostics; + private readonly ContainerAppsAPIRestOperations _containerAppJobExecutionRestClient; + private readonly ClientDiagnostics _containerAppJobExecutionJobsExecutionsClientDiagnostics; + private readonly JobsExecutionsRestOperations _containerAppJobExecutionJobsExecutionsRestClient; + + /// Initializes a new instance of the class for mocking. + protected ContainerAppJobExecutionCollection() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the parent resource that is the target of operations. + internal ContainerAppJobExecutionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _containerAppJobExecutionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppContainers", ContainerAppJobExecutionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ContainerAppJobExecutionResource.ResourceType, out string containerAppJobExecutionApiVersion); + _containerAppJobExecutionRestClient = new ContainerAppsAPIRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, containerAppJobExecutionApiVersion); + _containerAppJobExecutionJobsExecutionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppContainers", ContainerAppJobExecutionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ContainerAppJobExecutionResource.ResourceType, out string containerAppJobExecutionJobsExecutionsApiVersion); + _containerAppJobExecutionJobsExecutionsRestClient = new JobsExecutionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, containerAppJobExecutionJobsExecutionsApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ContainerAppJobResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ContainerAppJobResource.ResourceType), nameof(id)); + } + + /// + /// Get details of a single job execution + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions/{jobExecutionName} + /// + /// + /// Operation Id + /// JobExecution + /// + /// + /// + /// Job execution name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string jobExecutionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(jobExecutionName, nameof(jobExecutionName)); + + using var scope = _containerAppJobExecutionClientDiagnostics.CreateScope("ContainerAppJobExecutionCollection.Get"); + scope.Start(); + try + { + var response = await _containerAppJobExecutionRestClient.JobExecutionAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobExecutionName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ContainerAppJobExecutionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get details of a single job execution + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions/{jobExecutionName} + /// + /// + /// Operation Id + /// JobExecution + /// + /// + /// + /// Job execution name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string jobExecutionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(jobExecutionName, nameof(jobExecutionName)); + + using var scope = _containerAppJobExecutionClientDiagnostics.CreateScope("ContainerAppJobExecutionCollection.Get"); + scope.Start(); + try + { + var response = _containerAppJobExecutionRestClient.JobExecution(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobExecutionName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ContainerAppJobExecutionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get a Container Apps Job's executions + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions + /// + /// + /// Operation Id + /// JobsExecutions_List + /// + /// + /// + /// The filter to apply on the operation. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string filter = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _containerAppJobExecutionJobsExecutionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _containerAppJobExecutionJobsExecutionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ContainerAppJobExecutionResource(Client, ContainerAppJobExecutionData.DeserializeContainerAppJobExecutionData(e)), _containerAppJobExecutionJobsExecutionsClientDiagnostics, Pipeline, "ContainerAppJobExecutionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Get a Container Apps Job's executions + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions + /// + /// + /// Operation Id + /// JobsExecutions_List + /// + /// + /// + /// The filter to apply on the operation. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string filter = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _containerAppJobExecutionJobsExecutionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _containerAppJobExecutionJobsExecutionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ContainerAppJobExecutionResource(Client, ContainerAppJobExecutionData.DeserializeContainerAppJobExecutionData(e)), _containerAppJobExecutionJobsExecutionsClientDiagnostics, Pipeline, "ContainerAppJobExecutionCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions/{jobExecutionName} + /// + /// + /// Operation Id + /// JobExecution + /// + /// + /// + /// Job execution name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string jobExecutionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(jobExecutionName, nameof(jobExecutionName)); + + using var scope = _containerAppJobExecutionClientDiagnostics.CreateScope("ContainerAppJobExecutionCollection.Exists"); + scope.Start(); + try + { + var response = await _containerAppJobExecutionRestClient.JobExecutionAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobExecutionName, cancellationToken: cancellationToken).ConfigureAwait(false); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions/{jobExecutionName} + /// + /// + /// Operation Id + /// JobExecution + /// + /// + /// + /// Job execution name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string jobExecutionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(jobExecutionName, nameof(jobExecutionName)); + + using var scope = _containerAppJobExecutionClientDiagnostics.CreateScope("ContainerAppJobExecutionCollection.Exists"); + scope.Start(); + try + { + var response = _containerAppJobExecutionRestClient.JobExecution(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobExecutionName, cancellationToken: cancellationToken); + return Response.FromValue(response.Value != null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetAll().GetEnumerator(); + } + + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + { + return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); + } + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecution.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppJobExecutionData.cs similarity index 61% rename from sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecution.cs rename to sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppJobExecutionData.cs index e6fa51d17214..0f6a9c40389b 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecution.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppJobExecutionData.cs @@ -7,28 +7,32 @@ using System; using Azure.Core; +using Azure.ResourceManager.AppContainers.Models; using Azure.ResourceManager.Models; -namespace Azure.ResourceManager.AppContainers.Models +namespace Azure.ResourceManager.AppContainers { - /// Container Apps Jobs execution. - public partial class ContainerAppJobExecution : ResourceData + /// + /// A class representing the ContainerAppJobExecution data model. + /// Container Apps Job execution. + /// + public partial class ContainerAppJobExecutionData : ResourceData { - /// Initializes a new instance of ContainerAppJobExecution. - internal ContainerAppJobExecution() + /// Initializes a new instance of ContainerAppJobExecutionData. + internal ContainerAppJobExecutionData() { } - /// Initializes a new instance of ContainerAppJobExecution. + /// Initializes a new instance of ContainerAppJobExecutionData. /// The id. /// The name. /// The resourceType. /// The systemData. /// Current running State of the job. /// Job execution start time. - /// Job execution start time. + /// Job execution end time. /// Job's execution container. - internal ContainerAppJobExecution(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, JobExecutionRunningState? status, DateTimeOffset? startOn, DateTimeOffset? endOn, ContainerAppJobExecutionTemplate template) : base(id, name, resourceType, systemData) + internal ContainerAppJobExecutionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, JobExecutionRunningState? status, DateTimeOffset? startOn, DateTimeOffset? endOn, ContainerAppJobExecutionTemplate template) : base(id, name, resourceType, systemData) { Status = status; StartOn = startOn; @@ -40,7 +44,7 @@ internal ContainerAppJobExecution(ResourceIdentifier id, string name, ResourceTy public JobExecutionRunningState? Status { get; } /// Job execution start time. public DateTimeOffset? StartOn { get; } - /// Job execution start time. + /// Job execution end time. public DateTimeOffset? EndOn { get; } /// Job's execution container. public ContainerAppJobExecutionTemplate Template { get; } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppJobExecutionResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppJobExecutionResource.cs new file mode 100644 index 000000000000..ed2c28069dea --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppJobExecutionResource.cs @@ -0,0 +1,226 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.AppContainers +{ + /// + /// A Class representing a ContainerAppJobExecution along with the instance operations that can be performed on it. + /// If you have a you can construct a + /// from an instance of using the GetContainerAppJobExecutionResource method. + /// Otherwise you can get one from its parent resource using the GetContainerAppJobExecution method. + /// + public partial class ContainerAppJobExecutionResource : ArmResource + { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string jobName, string jobExecutionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions/{jobExecutionName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _containerAppJobExecutionClientDiagnostics; + private readonly ContainerAppsAPIRestOperations _containerAppJobExecutionRestClient; + private readonly ClientDiagnostics _containerAppJobJobsClientDiagnostics; + private readonly JobsRestOperations _containerAppJobJobsRestClient; + private readonly ContainerAppJobExecutionData _data; + + /// Initializes a new instance of the class for mocking. + protected ContainerAppJobExecutionResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal ContainerAppJobExecutionResource(ArmClient client, ContainerAppJobExecutionData data) : this(client, data.Id) + { + HasData = true; + _data = data; + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The identifier of the resource that is the target of operations. + internal ContainerAppJobExecutionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _containerAppJobExecutionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppContainers", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string containerAppJobExecutionApiVersion); + _containerAppJobExecutionRestClient = new ContainerAppsAPIRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, containerAppJobExecutionApiVersion); + _containerAppJobJobsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppContainers", ContainerAppJobResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ContainerAppJobResource.ResourceType, out string containerAppJobJobsApiVersion); + _containerAppJobJobsRestClient = new JobsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, containerAppJobJobsApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.App/jobs/executions"; + + /// Gets whether or not the current instance has data. + public virtual bool HasData { get; } + + /// Gets the data representing this Feature. + /// Throws if there is no data loaded in the current instance. + public virtual ContainerAppJobExecutionData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Get details of a single job execution + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions/{jobExecutionName} + /// + /// + /// Operation Id + /// JobExecution + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _containerAppJobExecutionClientDiagnostics.CreateScope("ContainerAppJobExecutionResource.Get"); + scope.Start(); + try + { + var response = await _containerAppJobExecutionRestClient.JobExecutionAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ContainerAppJobExecutionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get details of a single job execution + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions/{jobExecutionName} + /// + /// + /// Operation Id + /// JobExecution + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _containerAppJobExecutionClientDiagnostics.CreateScope("ContainerAppJobExecutionResource.Get"); + scope.Start(); + try + { + var response = _containerAppJobExecutionRestClient.JobExecution(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ContainerAppJobExecutionResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Terminates execution of a running container apps job + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions/{jobExecutionName}/stop + /// + /// + /// Operation Id + /// Jobs_StopExecution + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task StopExecutionJobAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _containerAppJobJobsClientDiagnostics.CreateScope("ContainerAppJobExecutionResource.StopExecutionJob"); + scope.Start(); + try + { + var response = await _containerAppJobJobsRestClient.StopExecutionAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new AppContainersArmOperation(_containerAppJobJobsClientDiagnostics, Pipeline, _containerAppJobJobsRestClient.CreateStopExecutionRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Terminates execution of a running container apps job + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions/{jobExecutionName}/stop + /// + /// + /// Operation Id + /// Jobs_StopExecution + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation StopExecutionJob(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _containerAppJobJobsClientDiagnostics.CreateScope("ContainerAppJobExecutionResource.StopExecutionJob"); + scope.Start(); + try + { + var response = _containerAppJobJobsRestClient.StopExecution(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new AppContainersArmOperation(_containerAppJobJobsClientDiagnostics, Pipeline, _containerAppJobJobsRestClient.CreateStopExecutionRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppJobResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppJobResource.cs index ad32c92e8bc4..d6b16cdc8cd8 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppJobResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppJobResource.cs @@ -36,8 +36,6 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, private readonly ClientDiagnostics _containerAppJobJobsClientDiagnostics; private readonly JobsRestOperations _containerAppJobJobsRestClient; - private readonly ClientDiagnostics _jobsExecutionsClientDiagnostics; - private readonly JobsExecutionsRestOperations _jobsExecutionsRestClient; private readonly ContainerAppJobData _data; /// Initializes a new instance of the class for mocking. @@ -62,8 +60,6 @@ internal ContainerAppJobResource(ArmClient client, ResourceIdentifier id) : base _containerAppJobJobsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppContainers", ResourceType.Namespace, Diagnostics); TryGetApiVersion(ResourceType, out string containerAppJobJobsApiVersion); _containerAppJobJobsRestClient = new JobsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, containerAppJobJobsApiVersion); - _jobsExecutionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.AppContainers", ProviderConstants.DefaultProviderNamespace, Diagnostics); - _jobsExecutionsRestClient = new JobsExecutionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); #if DEBUG ValidateResourceId(Id); #endif @@ -93,6 +89,59 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } + /// Gets a collection of ContainerAppJobExecutionResources in the ContainerAppJob. + /// An object representing collection of ContainerAppJobExecutionResources and their operations over a ContainerAppJobExecutionResource. + public virtual ContainerAppJobExecutionCollection GetContainerAppJobExecutions() + { + return GetCachedClient(Client => new ContainerAppJobExecutionCollection(Client, Id)); + } + + /// + /// Get details of a single job execution + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions/{jobExecutionName} + /// + /// + /// Operation Id + /// JobExecution + /// + /// + /// + /// Job execution name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual async Task> GetContainerAppJobExecutionAsync(string jobExecutionName, CancellationToken cancellationToken = default) + { + return await GetContainerAppJobExecutions().GetAsync(jobExecutionName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get details of a single job execution + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions/{jobExecutionName} + /// + /// + /// Operation Id + /// JobExecution + /// + /// + /// + /// Job execution name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + [ForwardsClientCalls] + public virtual Response GetContainerAppJobExecution(string jobExecutionName, CancellationToken cancellationToken = default) + { + return GetContainerAppJobExecutions().Get(jobExecutionName, cancellationToken); + } + /// /// Get the properties of a Container Apps Job. /// @@ -315,13 +364,10 @@ public virtual ArmOperation Update(WaitUntil waitUntil, /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Properties used to start a job instance. + /// Properties used to start a job execution. /// The cancellation token to use. - /// is null. - public virtual async Task> StartAsync(WaitUntil waitUntil, ContainerAppJobExecutionTemplate template, CancellationToken cancellationToken = default) + public virtual async Task> StartAsync(WaitUntil waitUntil, ContainerAppJobExecutionTemplate template = null, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(template, nameof(template)); - using var scope = _containerAppJobJobsClientDiagnostics.CreateScope("ContainerAppJobResource.Start"); scope.Start(); try @@ -353,13 +399,10 @@ public virtual async Task> StartAsync /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Properties used to start a job instance. + /// Properties used to start a job execution. /// The cancellation token to use. - /// is null. - public virtual ArmOperation Start(WaitUntil waitUntil, ContainerAppJobExecutionTemplate template, CancellationToken cancellationToken = default) + public virtual ArmOperation Start(WaitUntil waitUntil, ContainerAppJobExecutionTemplate template = null, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(template, nameof(template)); - using var scope = _containerAppJobJobsClientDiagnostics.CreateScope("ContainerAppJobResource.Start"); scope.Start(); try @@ -377,84 +420,6 @@ public virtual ArmOperation Start(WaitUntil waitUn } } - /// - /// Terminates execution of a running container apps job - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions/{jobExecutionName}/stop - /// - /// - /// Operation Id - /// Jobs_StopExecution - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Job execution name. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task StopExecutionAsync(WaitUntil waitUntil, string jobExecutionName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(jobExecutionName, nameof(jobExecutionName)); - - using var scope = _containerAppJobJobsClientDiagnostics.CreateScope("ContainerAppJobResource.StopExecution"); - scope.Start(); - try - { - var response = await _containerAppJobJobsRestClient.StopExecutionAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobExecutionName, cancellationToken).ConfigureAwait(false); - var operation = new AppContainersArmOperation(_containerAppJobJobsClientDiagnostics, Pipeline, _containerAppJobJobsRestClient.CreateStopExecutionRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobExecutionName).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Terminates execution of a running container apps job - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions/{jobExecutionName}/stop - /// - /// - /// Operation Id - /// Jobs_StopExecution - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Job execution name. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual ArmOperation StopExecution(WaitUntil waitUntil, string jobExecutionName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(jobExecutionName, nameof(jobExecutionName)); - - using var scope = _containerAppJobJobsClientDiagnostics.CreateScope("ContainerAppJobResource.StopExecution"); - scope.Start(); - try - { - var response = _containerAppJobJobsRestClient.StopExecution(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobExecutionName, cancellationToken); - var operation = new AppContainersArmOperation(_containerAppJobJobsClientDiagnostics, Pipeline, _containerAppJobJobsRestClient.CreateStopExecutionRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobExecutionName).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - /// /// Terminates execution of a running container apps job /// @@ -469,19 +434,15 @@ public virtual ArmOperation StopExecution(WaitUntil waitUntil, string jobExecuti /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// List of all job executions that should be stopped. /// The cancellation token to use. - /// is null. - public virtual async Task> StopMultipleExecutionsAsync(WaitUntil waitUntil, JobExecutionNamesCollection jobExecutionName, CancellationToken cancellationToken = default) + public virtual async Task> StopMultipleExecutionsAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(jobExecutionName, nameof(jobExecutionName)); - using var scope = _containerAppJobJobsClientDiagnostics.CreateScope("ContainerAppJobResource.StopMultipleExecutions"); scope.Start(); try { - var response = await _containerAppJobJobsRestClient.StopMultipleExecutionsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobExecutionName, cancellationToken).ConfigureAwait(false); - var operation = new AppContainersArmOperation(new ContainerAppJobExecutionsOperationSource(), _containerAppJobJobsClientDiagnostics, Pipeline, _containerAppJobJobsRestClient.CreateStopMultipleExecutionsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobExecutionName).Request, response, OperationFinalStateVia.Location); + var response = await _containerAppJobJobsRestClient.StopMultipleExecutionsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new AppContainersArmOperation(new ContainerAppJobExecutionsOperationSource(), _containerAppJobJobsClientDiagnostics, Pipeline, _containerAppJobJobsRestClient.CreateStopMultipleExecutionsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -507,19 +468,15 @@ public virtual async Task> StopMultipleE /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// List of all job executions that should be stopped. /// The cancellation token to use. - /// is null. - public virtual ArmOperation StopMultipleExecutions(WaitUntil waitUntil, JobExecutionNamesCollection jobExecutionName, CancellationToken cancellationToken = default) + public virtual ArmOperation StopMultipleExecutions(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(jobExecutionName, nameof(jobExecutionName)); - using var scope = _containerAppJobJobsClientDiagnostics.CreateScope("ContainerAppJobResource.StopMultipleExecutions"); scope.Start(); try { - var response = _containerAppJobJobsRestClient.StopMultipleExecutions(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobExecutionName, cancellationToken); - var operation = new AppContainersArmOperation(new ContainerAppJobExecutionsOperationSource(), _containerAppJobJobsClientDiagnostics, Pipeline, _containerAppJobJobsRestClient.CreateStopMultipleExecutionsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobExecutionName).Request, response, OperationFinalStateVia.Location); + var response = _containerAppJobJobsRestClient.StopMultipleExecutions(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var operation = new AppContainersArmOperation(new ContainerAppJobExecutionsOperationSource(), _containerAppJobJobsClientDiagnostics, Pipeline, _containerAppJobJobsRestClient.CreateStopMultipleExecutionsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -573,52 +530,6 @@ public virtual Pageable GetSecrets(CancellationToken return PageableHelpers.CreatePageable(FirstPageRequest, null, ContainerAppWritableSecret.DeserializeContainerAppWritableSecret, _containerAppJobJobsClientDiagnostics, Pipeline, "ContainerAppJobResource.GetSecrets", "value", null, cancellationToken); } - /// - /// Get a Container Apps Job's executions - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions - /// - /// - /// Operation Id - /// JobsExecutions_List - /// - /// - /// - /// The filter to apply on the operation. - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetJobsExecutionsAsync(string filter = null, CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _jobsExecutionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _jobsExecutionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter); - return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, ContainerAppJobExecution.DeserializeContainerAppJobExecution, _jobsExecutionsClientDiagnostics, Pipeline, "ContainerAppJobResource.GetJobsExecutions", "value", "nextLink", cancellationToken); - } - - /// - /// Get a Container Apps Job's executions - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/executions - /// - /// - /// Operation Id - /// JobsExecutions_List - /// - /// - /// - /// The filter to apply on the operation. - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetJobsExecutions(string filter = null, CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _jobsExecutionsRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _jobsExecutionsRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter); - return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, ContainerAppJobExecution.DeserializeContainerAppJobExecution, _jobsExecutionsClientDiagnostics, Pipeline, "ContainerAppJobResource.GetJobsExecutions", "value", "nextLink", cancellationToken); - } - /// /// Add a tag to the current resource. /// diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentData.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentData.cs index 75cebd78197b..9230f149f70e 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentData.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppManagedEnvironmentData.cs @@ -53,7 +53,8 @@ public ContainerAppManagedEnvironmentData(AzureLocation location) : base(locatio /// The configuration of Keda component. /// The configuration of Dapr component. /// Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. If a subnet ID is provided, this resource group will be created in the same subscription as the subnet. - internal ContainerAppManagedEnvironmentData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string kind, ContainerAppEnvironmentProvisioningState? provisioningState, string daprAIInstrumentationKey, string daprAIConnectionString, ContainerAppVnetConfiguration vnetConfiguration, string deploymentErrors, string defaultDomain, IPAddress staticIP, ContainerAppLogsConfiguration appLogsConfiguration, bool? isZoneRedundant, ContainerAppCustomDomainConfiguration customDomainConfiguration, string eventStreamEndpoint, IList workloadProfiles, KedaConfiguration kedaConfiguration, DaprConfiguration daprConfiguration, string infrastructureResourceGroup) : base(id, name, resourceType, systemData, tags, location) + /// Peer authentication settings for the Managed Environment. + internal ContainerAppManagedEnvironmentData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string kind, ContainerAppEnvironmentProvisioningState? provisioningState, string daprAIInstrumentationKey, string daprAIConnectionString, ContainerAppVnetConfiguration vnetConfiguration, string deploymentErrors, string defaultDomain, IPAddress staticIP, ContainerAppLogsConfiguration appLogsConfiguration, bool? isZoneRedundant, ContainerAppCustomDomainConfiguration customDomainConfiguration, string eventStreamEndpoint, IList workloadProfiles, KedaConfiguration kedaConfiguration, DaprConfiguration daprConfiguration, string infrastructureResourceGroup, ManagedEnvironmentPropertiesPeerAuthentication peerAuthentication) : base(id, name, resourceType, systemData, tags, location) { Kind = kind; ProvisioningState = provisioningState; @@ -71,6 +72,7 @@ internal ContainerAppManagedEnvironmentData(ResourceIdentifier id, string name, KedaConfiguration = kedaConfiguration; DaprConfiguration = daprConfiguration; InfrastructureResourceGroup = infrastructureResourceGroup; + PeerAuthentication = peerAuthentication; } /// Kind of the Environment. @@ -121,5 +123,18 @@ public string DaprVersion /// Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. If a subnet ID is provided, this resource group will be created in the same subscription as the subnet. public string InfrastructureResourceGroup { get; set; } + /// Peer authentication settings for the Managed Environment. + internal ManagedEnvironmentPropertiesPeerAuthentication PeerAuthentication { get; set; } + /// Boolean indicating whether the mutual TLS authentication is enabled. + public bool? IsMtlsEnabled + { + get => PeerAuthentication is null ? default : PeerAuthentication.IsMtlsEnabled; + set + { + if (PeerAuthentication is null) + PeerAuthentication = new ManagedEnvironmentPropertiesPeerAuthentication(); + PeerAuthentication.IsMtlsEnabled = value; + } + } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppReplicaData.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppReplicaData.cs index f3024755188a..46c1ac891475 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppReplicaData.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppReplicaData.cs @@ -23,6 +23,7 @@ public partial class ContainerAppReplicaData : ResourceData public ContainerAppReplicaData() { Containers = new ChangeTrackingList(); + InitContainers = new ChangeTrackingList(); } /// Initializes a new instance of ContainerAppReplicaData. @@ -31,16 +32,28 @@ public ContainerAppReplicaData() /// The resourceType. /// The systemData. /// Timestamp describing when the pod was created by controller. + /// Current running state of the replica. + /// The details of replica current running state. /// The containers collection under a replica. - internal ContainerAppReplicaData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DateTimeOffset? createdOn, IList containers) : base(id, name, resourceType, systemData) + /// The init containers collection under a replica. + internal ContainerAppReplicaData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DateTimeOffset? createdOn, ContainerAppReplicaRunningState? runningState, string runningStateDetails, IList containers, IList initContainers) : base(id, name, resourceType, systemData) { CreatedOn = createdOn; + RunningState = runningState; + RunningStateDetails = runningStateDetails; Containers = containers; + InitContainers = initContainers; } /// Timestamp describing when the pod was created by controller. public DateTimeOffset? CreatedOn { get; } + /// Current running state of the replica. + public ContainerAppReplicaRunningState? RunningState { get; } + /// The details of replica current running state. + public string RunningStateDetails { get; } /// The containers collection under a replica. public IList Containers { get; } + /// The init containers collection under a replica. + public IList InitContainers { get; } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppResource.cs index 63039c6a0136..57d5f497ea56 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppResource.cs @@ -733,6 +733,142 @@ public virtual Response GetAuthToken(CancellationToken ca } } + /// + /// Start a container app + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/start + /// + /// + /// Operation Id + /// ContainerApps_Start + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task> StartAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _containerAppClientDiagnostics.CreateScope("ContainerAppResource.Start"); + scope.Start(); + try + { + var response = await _containerAppRestClient.StartAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new AppContainersArmOperation(new ContainerAppOperationSource(Client), _containerAppClientDiagnostics, Pipeline, _containerAppRestClient.CreateStartRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Start a container app + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/start + /// + /// + /// Operation Id + /// ContainerApps_Start + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Start(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _containerAppClientDiagnostics.CreateScope("ContainerAppResource.Start"); + scope.Start(); + try + { + var response = _containerAppRestClient.Start(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var operation = new AppContainersArmOperation(new ContainerAppOperationSource(Client), _containerAppClientDiagnostics, Pipeline, _containerAppRestClient.CreateStartRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Stop a container app + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/stop + /// + /// + /// Operation Id + /// ContainerApps_Stop + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual async Task> StopAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _containerAppClientDiagnostics.CreateScope("ContainerAppResource.Stop"); + scope.Start(); + try + { + var response = await _containerAppRestClient.StopAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new AppContainersArmOperation(new ContainerAppOperationSource(Client), _containerAppClientDiagnostics, Pipeline, _containerAppRestClient.CreateStopRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Stop a container app + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/stop + /// + /// + /// Operation Id + /// ContainerApps_Stop + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cancellation token to use. + public virtual ArmOperation Stop(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _containerAppClientDiagnostics.CreateScope("ContainerAppResource.Stop"); + scope.Start(); + try + { + var response = _containerAppRestClient.Stop(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var operation = new AppContainersArmOperation(new ContainerAppOperationSource(Client), _containerAppClientDiagnostics, Pipeline, _containerAppRestClient.CreateStopRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Add a tag to the current resource. /// diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppRevisionData.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppRevisionData.cs index 8b2e47894a81..e178af9231f2 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppRevisionData.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/ContainerAppRevisionData.cs @@ -45,7 +45,8 @@ public ContainerAppRevisionData() /// Optional Field - Platform Error Message. /// Current health State of the revision. /// Current provisioning State of the revision. - internal ContainerAppRevisionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DateTimeOffset? createdOn, DateTimeOffset? lastActiveOn, string fqdn, ContainerAppTemplate template, bool? isActive, int? replicas, int? trafficWeight, string provisioningError, ContainerAppRevisionHealthState? healthState, ContainerAppRevisionProvisioningState? provisioningState) : base(id, name, resourceType, systemData) + /// Current running state of the revision. + internal ContainerAppRevisionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DateTimeOffset? createdOn, DateTimeOffset? lastActiveOn, string fqdn, ContainerAppTemplate template, bool? isActive, int? replicas, int? trafficWeight, string provisioningError, ContainerAppRevisionHealthState? healthState, ContainerAppRevisionProvisioningState? provisioningState, RevisionRunningState? runningState) : base(id, name, resourceType, systemData) { CreatedOn = createdOn; LastActiveOn = lastActiveOn; @@ -57,6 +58,7 @@ internal ContainerAppRevisionData(ResourceIdentifier id, string name, ResourceTy ProvisioningError = provisioningError; HealthState = healthState; ProvisioningState = provisioningState; + RunningState = runningState; } /// @@ -86,5 +88,7 @@ internal ContainerAppRevisionData(ResourceIdentifier id, string name, ResourceTy public ContainerAppRevisionHealthState? HealthState { get; } /// Current provisioning State of the revision. public ContainerAppRevisionProvisioningState? ProvisioningState { get; } + /// Current running state of the revision. + public RevisionRunningState? RunningState { get; } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Extensions/AppContainersExtensions.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Extensions/AppContainersExtensions.cs index e25fa4c2b30d..d13aae243be1 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Extensions/AppContainersExtensions.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Extensions/AppContainersExtensions.cs @@ -221,25 +221,6 @@ public static ContainerAppDetectorPropertyResource GetContainerAppDetectorProper } #endregion - #region ContainerAppJobResource - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// Returns a object. - public static ContainerAppJobResource GetContainerAppJobResource(this ArmClient client, ResourceIdentifier id) - { - return client.GetResourceClient(() => - { - ContainerAppJobResource.ValidateResourceId(id); - return new ContainerAppJobResource(client, id); - } - ); - } - #endregion - #region ContainerAppRevisionResource /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. @@ -373,6 +354,44 @@ public static ContainerAppManagedEnvironmentResource GetContainerAppManagedEnvir } #endregion + #region ContainerAppJobResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static ContainerAppJobResource GetContainerAppJobResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + ContainerAppJobResource.ValidateResourceId(id); + return new ContainerAppJobResource(client, id); + } + ); + } + #endregion + + #region ContainerAppJobExecutionResource + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// Returns a object. + public static ContainerAppJobExecutionResource GetContainerAppJobExecutionResource(this ArmClient client, ResourceIdentifier id) + { + return client.GetResourceClient(() => + { + ContainerAppJobExecutionResource.ValidateResourceId(id); + return new ContainerAppJobExecutionResource(client, id); + } + ); + } + #endregion + #region ContainerAppManagedCertificateResource /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. @@ -542,116 +561,116 @@ public static Response GetContainerApp(this ResourceGroupR return resourceGroupResource.GetContainerApps().Get(containerAppName, cancellationToken); } - /// Gets a collection of ContainerAppJobResources in the ResourceGroupResource. + /// Gets a collection of ContainerAppManagedEnvironmentResources in the ResourceGroupResource. /// The instance the method will execute against. - /// An object representing collection of ContainerAppJobResources and their operations over a ContainerAppJobResource. - public static ContainerAppJobCollection GetContainerAppJobs(this ResourceGroupResource resourceGroupResource) + /// An object representing collection of ContainerAppManagedEnvironmentResources and their operations over a ContainerAppManagedEnvironmentResource. + public static ContainerAppManagedEnvironmentCollection GetContainerAppManagedEnvironments(this ResourceGroupResource resourceGroupResource) { - return GetResourceGroupResourceExtensionClient(resourceGroupResource).GetContainerAppJobs(); + return GetResourceGroupResourceExtensionClient(resourceGroupResource).GetContainerAppManagedEnvironments(); } /// - /// Get the properties of a Container Apps Job. + /// Get the properties of a Managed Environment used to host container apps. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName} /// /// /// Operation Id - /// Jobs_Get + /// ManagedEnvironments_Get /// /// /// /// The instance the method will execute against. - /// Name of the Container Apps Job. + /// Name of the Environment. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public static async Task> GetContainerAppJobAsync(this ResourceGroupResource resourceGroupResource, string jobName, CancellationToken cancellationToken = default) + public static async Task> GetContainerAppManagedEnvironmentAsync(this ResourceGroupResource resourceGroupResource, string environmentName, CancellationToken cancellationToken = default) { - return await resourceGroupResource.GetContainerAppJobs().GetAsync(jobName, cancellationToken).ConfigureAwait(false); + return await resourceGroupResource.GetContainerAppManagedEnvironments().GetAsync(environmentName, cancellationToken).ConfigureAwait(false); } /// - /// Get the properties of a Container Apps Job. + /// Get the properties of a Managed Environment used to host container apps. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName} /// /// /// Operation Id - /// Jobs_Get + /// ManagedEnvironments_Get /// /// /// /// The instance the method will execute against. - /// Name of the Container Apps Job. + /// Name of the Environment. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public static Response GetContainerAppJob(this ResourceGroupResource resourceGroupResource, string jobName, CancellationToken cancellationToken = default) + public static Response GetContainerAppManagedEnvironment(this ResourceGroupResource resourceGroupResource, string environmentName, CancellationToken cancellationToken = default) { - return resourceGroupResource.GetContainerAppJobs().Get(jobName, cancellationToken); + return resourceGroupResource.GetContainerAppManagedEnvironments().Get(environmentName, cancellationToken); } - /// Gets a collection of ContainerAppManagedEnvironmentResources in the ResourceGroupResource. + /// Gets a collection of ContainerAppJobResources in the ResourceGroupResource. /// The instance the method will execute against. - /// An object representing collection of ContainerAppManagedEnvironmentResources and their operations over a ContainerAppManagedEnvironmentResource. - public static ContainerAppManagedEnvironmentCollection GetContainerAppManagedEnvironments(this ResourceGroupResource resourceGroupResource) + /// An object representing collection of ContainerAppJobResources and their operations over a ContainerAppJobResource. + public static ContainerAppJobCollection GetContainerAppJobs(this ResourceGroupResource resourceGroupResource) { - return GetResourceGroupResourceExtensionClient(resourceGroupResource).GetContainerAppManagedEnvironments(); + return GetResourceGroupResourceExtensionClient(resourceGroupResource).GetContainerAppJobs(); } /// - /// Get the properties of a Managed Environment used to host container apps. + /// Get the properties of a Container Apps Job. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName} /// /// /// Operation Id - /// ManagedEnvironments_Get + /// Jobs_Get /// /// /// /// The instance the method will execute against. - /// Name of the Environment. + /// Job Name. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public static async Task> GetContainerAppManagedEnvironmentAsync(this ResourceGroupResource resourceGroupResource, string environmentName, CancellationToken cancellationToken = default) + public static async Task> GetContainerAppJobAsync(this ResourceGroupResource resourceGroupResource, string jobName, CancellationToken cancellationToken = default) { - return await resourceGroupResource.GetContainerAppManagedEnvironments().GetAsync(environmentName, cancellationToken).ConfigureAwait(false); + return await resourceGroupResource.GetContainerAppJobs().GetAsync(jobName, cancellationToken).ConfigureAwait(false); } /// - /// Get the properties of a Managed Environment used to host container apps. + /// Get the properties of a Container Apps Job. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName} /// /// /// Operation Id - /// ManagedEnvironments_Get + /// Jobs_Get /// /// /// /// The instance the method will execute against. - /// Name of the Environment. + /// Job Name. /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. + /// is an empty string, and was expected to be non-empty. + /// is null. [ForwardsClientCalls] - public static Response GetContainerAppManagedEnvironment(this ResourceGroupResource resourceGroupResource, string environmentName, CancellationToken cancellationToken = default) + public static Response GetContainerAppJob(this ResourceGroupResource resourceGroupResource, string jobName, CancellationToken cancellationToken = default) { - return resourceGroupResource.GetContainerAppManagedEnvironments().Get(environmentName, cancellationToken); + return resourceGroupResource.GetContainerAppJobs().Get(jobName, cancellationToken); } /// diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs index 9e0f9540380d..58a4ecb3e499 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Extensions/ResourceGroupResourceExtensionClient.cs @@ -45,18 +45,18 @@ public virtual ContainerAppCollection GetContainerApps() return GetCachedClient(Client => new ContainerAppCollection(Client, Id)); } - /// Gets a collection of ContainerAppJobResources in the ResourceGroupResource. - /// An object representing collection of ContainerAppJobResources and their operations over a ContainerAppJobResource. - public virtual ContainerAppJobCollection GetContainerAppJobs() - { - return GetCachedClient(Client => new ContainerAppJobCollection(Client, Id)); - } - /// Gets a collection of ContainerAppManagedEnvironmentResources in the ResourceGroupResource. /// An object representing collection of ContainerAppManagedEnvironmentResources and their operations over a ContainerAppManagedEnvironmentResource. public virtual ContainerAppManagedEnvironmentCollection GetContainerAppManagedEnvironments() { return GetCachedClient(Client => new ContainerAppManagedEnvironmentCollection(Client, Id)); } + + /// Gets a collection of ContainerAppJobResources in the ResourceGroupResource. + /// An object representing collection of ContainerAppJobResources and their operations over a ContainerAppJobResource. + public virtual ContainerAppJobCollection GetContainerAppJobs() + { + return GetCachedClient(Client => new ContainerAppJobCollection(Client, Id)); + } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConfiguration.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConfiguration.Serialization.cs index 242ba40f60d7..d114dc9bb794 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConfiguration.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConfiguration.Serialization.cs @@ -56,6 +56,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("maxInactiveRevisions"u8); writer.WriteNumberValue(MaxInactiveRevisions.Value); } + if (Optional.IsDefined(Service)) + { + writer.WritePropertyName("service"u8); + writer.WriteObjectValue(Service); + } writer.WriteEndObject(); } @@ -71,6 +76,7 @@ internal static ContainerAppConfiguration DeserializeContainerAppConfiguration(J Optional> registries = default; Optional dapr = default; Optional maxInactiveRevisions = default; + Optional service = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("secrets"u8)) @@ -137,8 +143,17 @@ internal static ContainerAppConfiguration DeserializeContainerAppConfiguration(J maxInactiveRevisions = property.Value.GetInt32(); continue; } + if (property.NameEquals("service"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + service = Service.DeserializeService(property.Value); + continue; + } } - return new ContainerAppConfiguration(Optional.ToList(secrets), Optional.ToNullable(activeRevisionsMode), ingress.Value, Optional.ToList(registries), dapr.Value, Optional.ToNullable(maxInactiveRevisions)); + return new ContainerAppConfiguration(Optional.ToList(secrets), Optional.ToNullable(activeRevisionsMode), ingress.Value, Optional.ToList(registries), dapr.Value, Optional.ToNullable(maxInactiveRevisions), service.Value); } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConfiguration.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConfiguration.cs index 0f882a0a1aed..dfb76aed9b36 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConfiguration.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppConfiguration.cs @@ -30,7 +30,8 @@ public ContainerAppConfiguration() /// Collection of private container registry credentials for containers used by the Container app. /// Dapr configuration for the Container App. /// Optional. Max inactive revisions a Container App can have. - internal ContainerAppConfiguration(IList secrets, ContainerAppActiveRevisionsMode? activeRevisionsMode, ContainerAppIngressConfiguration ingress, IList registries, ContainerAppDaprConfiguration dapr, int? maxInactiveRevisions) + /// Container App to be a dev Container App Service. + internal ContainerAppConfiguration(IList secrets, ContainerAppActiveRevisionsMode? activeRevisionsMode, ContainerAppIngressConfiguration ingress, IList registries, ContainerAppDaprConfiguration dapr, int? maxInactiveRevisions, Service service) { Secrets = secrets; ActiveRevisionsMode = activeRevisionsMode; @@ -38,6 +39,7 @@ internal ContainerAppConfiguration(IList secrets, Co Registries = registries; Dapr = dapr; MaxInactiveRevisions = maxInactiveRevisions; + Service = service; } /// Collection of secrets used by a Container app. @@ -55,5 +57,13 @@ internal ContainerAppConfiguration(IList secrets, Co public ContainerAppDaprConfiguration Dapr { get; set; } /// Optional. Max inactive revisions a Container App can have. public int? MaxInactiveRevisions { get; set; } + /// Container App to be a dev Container App Service. + internal Service Service { get; set; } + /// Dev ContainerApp service type. + public string ServiceType + { + get => Service is null ? default : Service.ServiceType; + set => Service = new Service(value); + } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppContainerRunningState.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppContainerRunningState.cs new file mode 100644 index 000000000000..eaa96ba0095a --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppContainerRunningState.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.AppContainers.Models +{ + /// Current running state of the container. + public readonly partial struct ContainerAppContainerRunningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ContainerAppContainerRunningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string RunningValue = "Running"; + private const string TerminatedValue = "Terminated"; + private const string WaitingValue = "Waiting"; + + /// Running. + public static ContainerAppContainerRunningState Running { get; } = new ContainerAppContainerRunningState(RunningValue); + /// Terminated. + public static ContainerAppContainerRunningState Terminated { get; } = new ContainerAppContainerRunningState(TerminatedValue); + /// Waiting. + public static ContainerAppContainerRunningState Waiting { get; } = new ContainerAppContainerRunningState(WaitingValue); + /// Determines if two values are the same. + public static bool operator ==(ContainerAppContainerRunningState left, ContainerAppContainerRunningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ContainerAppContainerRunningState left, ContainerAppContainerRunningState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ContainerAppContainerRunningState(string value) => new ContainerAppContainerRunningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ContainerAppContainerRunningState other && Equals(other); + /// + public bool Equals(ContainerAppContainerRunningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCredentials.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCredentials.Serialization.cs index b917de92b683..555a64a56418 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCredentials.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCredentials.Serialization.cs @@ -31,6 +31,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("tenantId"u8); writer.WriteStringValue(TenantId.Value); } + if (Optional.IsDefined(Kind)) + { + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(Kind); + } if (Optional.IsDefined(SubscriptionId)) { writer.WritePropertyName("subscriptionId"u8); @@ -48,6 +53,7 @@ internal static ContainerAppCredentials DeserializeContainerAppCredentials(JsonE Optional clientId = default; Optional clientSecret = default; Optional tenantId = default; + Optional kind = default; Optional subscriptionId = default; foreach (var property in element.EnumerateObject()) { @@ -70,13 +76,18 @@ internal static ContainerAppCredentials DeserializeContainerAppCredentials(JsonE tenantId = property.Value.GetGuid(); continue; } + if (property.NameEquals("kind"u8)) + { + kind = property.Value.GetString(); + continue; + } if (property.NameEquals("subscriptionId"u8)) { subscriptionId = property.Value.GetString(); continue; } } - return new ContainerAppCredentials(clientId.Value, clientSecret.Value, Optional.ToNullable(tenantId), subscriptionId.Value); + return new ContainerAppCredentials(clientId.Value, clientSecret.Value, Optional.ToNullable(tenantId), kind.Value, subscriptionId.Value); } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCredentials.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCredentials.cs index 586c1e47a3c0..5d9e4c11257f 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCredentials.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppCredentials.cs @@ -21,12 +21,14 @@ public ContainerAppCredentials() /// Client Id. /// Client Secret. /// Tenant Id. + /// Kind of auth github does for deploying the template. /// Subscription Id. - internal ContainerAppCredentials(string clientId, string clientSecret, Guid? tenantId, string subscriptionId) + internal ContainerAppCredentials(string clientId, string clientSecret, Guid? tenantId, string kind, string subscriptionId) { ClientId = clientId; ClientSecret = clientSecret; TenantId = tenantId; + Kind = kind; SubscriptionId = subscriptionId; } @@ -36,6 +38,8 @@ internal ContainerAppCredentials(string clientId, string clientSecret, Guid? ten public string ClientSecret { get; set; } /// Tenant Id. public Guid? TenantId { get; set; } + /// Kind of auth github does for deploying the template. + public string Kind { get; set; } /// Subscription Id. public string SubscriptionId { get; set; } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppGitHubActionConfiguration.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppGitHubActionConfiguration.Serialization.cs index 67536bb6691f..9c943b2bde27 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppGitHubActionConfiguration.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppGitHubActionConfiguration.Serialization.cs @@ -30,6 +30,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("contextPath"u8); writer.WriteStringValue(ContextPath); } + if (Optional.IsDefined(GitHubPersonalAccessToken)) + { + writer.WritePropertyName("githubPersonalAccessToken"u8); + writer.WriteStringValue(GitHubPersonalAccessToken); + } if (Optional.IsDefined(Image)) { writer.WritePropertyName("image"u8); @@ -67,6 +72,7 @@ internal static ContainerAppGitHubActionConfiguration DeserializeContainerAppGit Optional registryInfo = default; Optional azureCredentials = default; Optional contextPath = default; + Optional gitHubPersonalAccessToken = default; Optional image = default; Optional publishType = default; Optional os = default; @@ -97,6 +103,11 @@ internal static ContainerAppGitHubActionConfiguration DeserializeContainerAppGit contextPath = property.Value.GetString(); continue; } + if (property.NameEquals("githubPersonalAccessToken"u8)) + { + gitHubPersonalAccessToken = property.Value.GetString(); + continue; + } if (property.NameEquals("image"u8)) { image = property.Value.GetString(); @@ -123,7 +134,7 @@ internal static ContainerAppGitHubActionConfiguration DeserializeContainerAppGit continue; } } - return new ContainerAppGitHubActionConfiguration(registryInfo.Value, azureCredentials.Value, contextPath.Value, image.Value, publishType.Value, os.Value, runtimeStack.Value, runtimeVersion.Value); + return new ContainerAppGitHubActionConfiguration(registryInfo.Value, azureCredentials.Value, contextPath.Value, gitHubPersonalAccessToken.Value, image.Value, publishType.Value, os.Value, runtimeStack.Value, runtimeVersion.Value); } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppGitHubActionConfiguration.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppGitHubActionConfiguration.cs index 696c316b0bdd..cfee2f7f44d6 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppGitHubActionConfiguration.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppGitHubActionConfiguration.cs @@ -19,16 +19,18 @@ public ContainerAppGitHubActionConfiguration() /// Registry configurations. /// AzureCredentials configurations. /// Context path. + /// One time Github PAT to configure github environment. /// Image name. /// Code or Image. /// Operation system. /// Runtime stack. /// Runtime version. - internal ContainerAppGitHubActionConfiguration(ContainerAppRegistryInfo registryInfo, ContainerAppCredentials azureCredentials, string contextPath, string image, string publishType, string os, string runtimeStack, string runtimeVersion) + internal ContainerAppGitHubActionConfiguration(ContainerAppRegistryInfo registryInfo, ContainerAppCredentials azureCredentials, string contextPath, string gitHubPersonalAccessToken, string image, string publishType, string os, string runtimeStack, string runtimeVersion) { RegistryInfo = registryInfo; AzureCredentials = azureCredentials; ContextPath = contextPath; + GitHubPersonalAccessToken = gitHubPersonalAccessToken; Image = image; PublishType = publishType; OS = os; @@ -42,6 +44,8 @@ internal ContainerAppGitHubActionConfiguration(ContainerAppRegistryInfo registry public ContainerAppCredentials AzureCredentials { get; set; } /// Context path. public string ContextPath { get; set; } + /// One time Github PAT to configure github environment. + public string GitHubPersonalAccessToken { get; set; } /// Image name. public string Image { get; set; } /// Code or Image. diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.Serialization.cs index 8c0816db4101..e09d020631dc 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.Serialization.cs @@ -45,6 +45,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("scheduleTriggerConfig"u8); writer.WriteObjectValue(ScheduleTriggerConfig); } + if (Optional.IsDefined(EventTriggerConfig)) + { + writer.WritePropertyName("eventTriggerConfig"u8); + writer.WriteObjectValue(EventTriggerConfig); + } if (Optional.IsCollectionDefined(Registries)) { writer.WritePropertyName("registries"u8); @@ -70,6 +75,7 @@ internal static ContainerAppJobConfiguration DeserializeContainerAppJobConfigura Optional replicaRetryLimit = default; Optional manualTriggerConfig = default; Optional scheduleTriggerConfig = default; + Optional eventTriggerConfig = default; Optional> registries = default; foreach (var property in element.EnumerateObject()) { @@ -124,6 +130,15 @@ internal static ContainerAppJobConfiguration DeserializeContainerAppJobConfigura scheduleTriggerConfig = JobConfigurationScheduleTriggerConfig.DeserializeJobConfigurationScheduleTriggerConfig(property.Value); continue; } + if (property.NameEquals("eventTriggerConfig"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + eventTriggerConfig = JobConfigurationEventTriggerConfig.DeserializeJobConfigurationEventTriggerConfig(property.Value); + continue; + } if (property.NameEquals("registries"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -139,7 +154,7 @@ internal static ContainerAppJobConfiguration DeserializeContainerAppJobConfigura continue; } } - return new ContainerAppJobConfiguration(Optional.ToList(secrets), triggerType, replicaTimeout, Optional.ToNullable(replicaRetryLimit), manualTriggerConfig.Value, scheduleTriggerConfig.Value, Optional.ToList(registries)); + return new ContainerAppJobConfiguration(Optional.ToList(secrets), triggerType, replicaTimeout, Optional.ToNullable(replicaRetryLimit), manualTriggerConfig.Value, scheduleTriggerConfig.Value, eventTriggerConfig.Value, Optional.ToList(registries)); } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.cs index d92c48888200..55ff424af4ad 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.cs @@ -31,8 +31,9 @@ public ContainerAppJobConfiguration(ContainerAppJobTriggerType triggerType, int /// Maximum number of retries before failing the job. /// Manual trigger configuration for a single execution job. Properties replicaCompletionCount and parallelism would be set to 1 by default. /// Cron formatted repeating trigger schedule ("* * * * *") for cronjobs. Properties completions and parallelism would be set to 1 by default. + /// Trigger configuration of an event driven job. /// Collection of private container registry credentials used by a Container apps job. - internal ContainerAppJobConfiguration(IList secrets, ContainerAppJobTriggerType triggerType, int replicaTimeout, int? replicaRetryLimit, JobConfigurationManualTriggerConfig manualTriggerConfig, JobConfigurationScheduleTriggerConfig scheduleTriggerConfig, IList registries) + internal ContainerAppJobConfiguration(IList secrets, ContainerAppJobTriggerType triggerType, int replicaTimeout, int? replicaRetryLimit, JobConfigurationManualTriggerConfig manualTriggerConfig, JobConfigurationScheduleTriggerConfig scheduleTriggerConfig, JobConfigurationEventTriggerConfig eventTriggerConfig, IList registries) { Secrets = secrets; TriggerType = triggerType; @@ -40,6 +41,7 @@ internal ContainerAppJobConfiguration(IList secrets, ReplicaRetryLimit = replicaRetryLimit; ManualTriggerConfig = manualTriggerConfig; ScheduleTriggerConfig = scheduleTriggerConfig; + EventTriggerConfig = eventTriggerConfig; Registries = registries; } @@ -55,6 +57,8 @@ internal ContainerAppJobConfiguration(IList secrets, public JobConfigurationManualTriggerConfig ManualTriggerConfig { get; set; } /// Cron formatted repeating trigger schedule ("* * * * *") for cronjobs. Properties completions and parallelism would be set to 1 by default. public JobConfigurationScheduleTriggerConfig ScheduleTriggerConfig { get; set; } + /// Trigger configuration of an event driven job. + public JobConfigurationEventTriggerConfig EventTriggerConfig { get; set; } /// Collection of private container registry credentials used by a Container apps job. public IList Registries { get; } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutionBase.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutionBase.Serialization.cs index 64c91f7bb429..a2dc8e963063 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutionBase.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutionBase.Serialization.cs @@ -10,24 +10,8 @@ namespace Azure.ResourceManager.AppContainers.Models { - public partial class ContainerAppJobExecutionBase : IUtf8JsonSerializable + public partial class ContainerAppJobExecutionBase { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(Name)) - { - writer.WritePropertyName("name"u8); - writer.WriteStringValue(Name); - } - if (Optional.IsDefined(Id)) - { - writer.WritePropertyName("id"u8); - writer.WriteStringValue(Id); - } - writer.WriteEndObject(); - } - internal static ContainerAppJobExecutionBase DeserializeContainerAppJobExecutionBase(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutionBase.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutionBase.cs index 531fd5087a59..7ee237cd42b6 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutionBase.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutionBase.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.AppContainers.Models public partial class ContainerAppJobExecutionBase { /// Initializes a new instance of ContainerAppJobExecutionBase. - public ContainerAppJobExecutionBase() + internal ContainerAppJobExecutionBase() { } @@ -25,8 +25,8 @@ internal ContainerAppJobExecutionBase(string name, string id) } /// Job execution name. - public string Name { get; set; } + public string Name { get; } /// Job execution Id. - public string Id { get; set; } + public string Id { get; } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecution.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutionData.Serialization.cs similarity index 87% rename from sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecution.Serialization.cs rename to sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutionData.Serialization.cs index aa943909d283..04032dab973c 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecution.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutionData.Serialization.cs @@ -8,13 +8,14 @@ using System; using System.Text.Json; using Azure.Core; +using Azure.ResourceManager.AppContainers.Models; using Azure.ResourceManager.Models; -namespace Azure.ResourceManager.AppContainers.Models +namespace Azure.ResourceManager.AppContainers { - public partial class ContainerAppJobExecution + public partial class ContainerAppJobExecutionData { - internal static ContainerAppJobExecution DeserializeContainerAppJobExecution(JsonElement element) + internal static ContainerAppJobExecutionData DeserializeContainerAppJobExecutionData(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -91,7 +92,7 @@ internal static ContainerAppJobExecution DeserializeContainerAppJobExecution(Jso continue; } } - return new ContainerAppJobExecution(id, name, type, systemData.Value, Optional.ToNullable(status), Optional.ToNullable(startTime), Optional.ToNullable(endTime), template.Value); + return new ContainerAppJobExecutionData(id, name, type, systemData.Value, Optional.ToNullable(status), Optional.ToNullable(startTime), Optional.ToNullable(endTime), template.Value); } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutions.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutions.Serialization.cs index c23dc0153c1c..16d4867f7074 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutions.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutions.Serialization.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { @@ -19,16 +20,16 @@ internal static ContainerAppJobExecutions DeserializeContainerAppJobExecutions(J { return null; } - IReadOnlyList value = default; + IReadOnlyList value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ContainerAppJobExecution.DeserializeContainerAppJobExecution(item)); + array.Add(ContainerAppJobExecutionData.DeserializeContainerAppJobExecutionData(item)); } value = array; continue; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutions.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutions.cs index e4188f3548c5..6aacdf4a2337 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutions.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobExecutions.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Core; +using Azure.ResourceManager.AppContainers; namespace Azure.ResourceManager.AppContainers.Models { @@ -18,7 +19,7 @@ public partial class ContainerAppJobExecutions /// Initializes a new instance of ContainerAppJobExecutions. /// Collection of resources. /// is null. - internal ContainerAppJobExecutions(IEnumerable value) + internal ContainerAppJobExecutions(IEnumerable value) { Argument.AssertNotNull(value, nameof(value)); @@ -28,14 +29,14 @@ internal ContainerAppJobExecutions(IEnumerable value) /// Initializes a new instance of ContainerAppJobExecutions. /// Collection of resources. /// Link to next page of resources. - internal ContainerAppJobExecutions(IReadOnlyList value, string nextLink) + internal ContainerAppJobExecutions(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// Collection of resources. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// Link to next page of resources. public string NextLink { get; } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobTriggerType.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobTriggerType.cs index 2299a5b853ff..7da68c8cebec 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobTriggerType.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobTriggerType.cs @@ -22,12 +22,12 @@ public ContainerAppJobTriggerType(string value) _value = value ?? throw new ArgumentNullException(nameof(value)); } - private const string ScheduledValue = "Scheduled"; + private const string ScheduleValue = "Schedule"; private const string EventValue = "Event"; private const string ManualValue = "Manual"; - /// Scheduled. - public static ContainerAppJobTriggerType Scheduled { get; } = new ContainerAppJobTriggerType(ScheduledValue); + /// Schedule. + public static ContainerAppJobTriggerType Schedule { get; } = new ContainerAppJobTriggerType(ScheduleValue); /// Event. public static ContainerAppJobTriggerType Event { get; } = new ContainerAppJobTriggerType(EventValue); /// Manual. diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppLogAnalyticsConfiguration.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppLogAnalyticsConfiguration.cs index 2e207bd996f1..c60645e3d931 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppLogAnalyticsConfiguration.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppLogAnalyticsConfiguration.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.AppContainers.Models { - /// Log analytics configuration. + /// Log Analytics configuration, must only be provided when destination is configured as 'log-analytics'. public partial class ContainerAppLogAnalyticsConfiguration { /// Initializes a new instance of ContainerAppLogAnalyticsConfiguration. diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppLogsConfiguration.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppLogsConfiguration.cs index 9c360dac6dbe..8d1d08f85df3 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppLogsConfiguration.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppLogsConfiguration.cs @@ -16,17 +16,17 @@ public ContainerAppLogsConfiguration() } /// Initializes a new instance of ContainerAppLogsConfiguration. - /// Logs destination. - /// Log Analytics configuration. + /// Logs destination, can be 'log-analytics', 'azure-monitor' or 'none'. + /// Log Analytics configuration, must only be provided when destination is configured as 'log-analytics'. internal ContainerAppLogsConfiguration(string destination, ContainerAppLogAnalyticsConfiguration logAnalyticsConfiguration) { Destination = destination; LogAnalyticsConfiguration = logAnalyticsConfiguration; } - /// Logs destination. + /// Logs destination, can be 'log-analytics', 'azure-monitor' or 'none'. public string Destination { get; set; } - /// Log Analytics configuration. + /// Log Analytics configuration, must only be provided when destination is configured as 'log-analytics'. public ContainerAppLogAnalyticsConfiguration LogAnalyticsConfiguration { get; set; } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedEnvironmentData.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedEnvironmentData.Serialization.cs index 0c20a522a492..e3283cae239c 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedEnvironmentData.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppManagedEnvironmentData.Serialization.cs @@ -94,6 +94,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("infrastructureResourceGroup"u8); writer.WriteStringValue(InfrastructureResourceGroup); } + if (Optional.IsDefined(PeerAuthentication)) + { + writer.WritePropertyName("peerAuthentication"u8); + writer.WriteObjectValue(PeerAuthentication); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -126,6 +131,7 @@ internal static ContainerAppManagedEnvironmentData DeserializeContainerAppManage Optional kedaConfiguration = default; Optional daprConfiguration = default; Optional infrastructureResourceGroup = default; + Optional peerAuthentication = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("kind"u8)) @@ -301,11 +307,20 @@ internal static ContainerAppManagedEnvironmentData DeserializeContainerAppManage infrastructureResourceGroup = property0.Value.GetString(); continue; } + if (property0.NameEquals("peerAuthentication"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + peerAuthentication = ManagedEnvironmentPropertiesPeerAuthentication.DeserializeManagedEnvironmentPropertiesPeerAuthentication(property0.Value); + continue; + } } continue; } } - return new ContainerAppManagedEnvironmentData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, kind.Value, Optional.ToNullable(provisioningState), daprAIInstrumentationKey.Value, daprAIConnectionString.Value, vnetConfiguration.Value, deploymentErrors.Value, defaultDomain.Value, staticIP.Value, appLogsConfiguration.Value, Optional.ToNullable(zoneRedundant), customDomainConfiguration.Value, eventStreamEndpoint.Value, Optional.ToList(workloadProfiles), kedaConfiguration.Value, daprConfiguration.Value, infrastructureResourceGroup.Value); + return new ContainerAppManagedEnvironmentData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, kind.Value, Optional.ToNullable(provisioningState), daprAIInstrumentationKey.Value, daprAIConnectionString.Value, vnetConfiguration.Value, deploymentErrors.Value, defaultDomain.Value, staticIP.Value, appLogsConfiguration.Value, Optional.ToNullable(zoneRedundant), customDomainConfiguration.Value, eventStreamEndpoint.Value, Optional.ToList(workloadProfiles), kedaConfiguration.Value, daprConfiguration.Value, infrastructureResourceGroup.Value, peerAuthentication.Value); } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppReplicaContainer.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppReplicaContainer.Serialization.cs index c69dd7972f7f..a18bc071060c 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppReplicaContainer.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppReplicaContainer.Serialization.cs @@ -54,6 +54,8 @@ internal static ContainerAppReplicaContainer DeserializeContainerAppReplicaConta Optional ready = default; Optional started = default; Optional restartCount = default; + Optional runningState = default; + Optional runningStateDetails = default; Optional logStreamEndpoint = default; Optional execEndpoint = default; foreach (var property in element.EnumerateObject()) @@ -95,6 +97,20 @@ internal static ContainerAppReplicaContainer DeserializeContainerAppReplicaConta restartCount = property.Value.GetInt32(); continue; } + if (property.NameEquals("runningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + runningState = new ContainerAppContainerRunningState(property.Value.GetString()); + continue; + } + if (property.NameEquals("runningStateDetails"u8)) + { + runningStateDetails = property.Value.GetString(); + continue; + } if (property.NameEquals("logStreamEndpoint"u8)) { logStreamEndpoint = property.Value.GetString(); @@ -106,7 +122,7 @@ internal static ContainerAppReplicaContainer DeserializeContainerAppReplicaConta continue; } } - return new ContainerAppReplicaContainer(name.Value, containerId.Value, Optional.ToNullable(ready), Optional.ToNullable(started), Optional.ToNullable(restartCount), logStreamEndpoint.Value, execEndpoint.Value); + return new ContainerAppReplicaContainer(name.Value, containerId.Value, Optional.ToNullable(ready), Optional.ToNullable(started), Optional.ToNullable(restartCount), Optional.ToNullable(runningState), runningStateDetails.Value, logStreamEndpoint.Value, execEndpoint.Value); } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppReplicaContainer.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppReplicaContainer.cs index e83ce5199ea3..7ad01e82c03f 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppReplicaContainer.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppReplicaContainer.cs @@ -21,15 +21,19 @@ public ContainerAppReplicaContainer() /// The container ready status. /// The container start status. /// The container restart count. + /// Current running state of the container. + /// The details of container current running state. /// Log Stream endpoint. /// Container exec endpoint. - internal ContainerAppReplicaContainer(string name, string containerId, bool? isReady, bool? isStarted, int? restartCount, string logStreamEndpoint, string execEndpoint) + internal ContainerAppReplicaContainer(string name, string containerId, bool? isReady, bool? isStarted, int? restartCount, ContainerAppContainerRunningState? runningState, string runningStateDetails, string logStreamEndpoint, string execEndpoint) { Name = name; ContainerId = containerId; IsReady = isReady; IsStarted = isStarted; RestartCount = restartCount; + RunningState = runningState; + RunningStateDetails = runningStateDetails; LogStreamEndpoint = logStreamEndpoint; ExecEndpoint = execEndpoint; } @@ -44,6 +48,10 @@ internal ContainerAppReplicaContainer(string name, string containerId, bool? isR public bool? IsStarted { get; set; } /// The container restart count. public int? RestartCount { get; set; } + /// Current running state of the container. + public ContainerAppContainerRunningState? RunningState { get; } + /// The details of container current running state. + public string RunningStateDetails { get; } /// Log Stream endpoint. public string LogStreamEndpoint { get; } /// Container exec endpoint. diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppReplicaData.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppReplicaData.Serialization.cs index abcd1ed72bef..d5ac6c17498d 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppReplicaData.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppReplicaData.Serialization.cs @@ -31,6 +31,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } + if (Optional.IsCollectionDefined(InitContainers)) + { + writer.WritePropertyName("initContainers"u8); + writer.WriteStartArray(); + foreach (var item in InitContainers) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -46,7 +56,10 @@ internal static ContainerAppReplicaData DeserializeContainerAppReplicaData(JsonE ResourceType type = default; Optional systemData = default; Optional createdTime = default; + Optional runningState = default; + Optional runningStateDetails = default; Optional> containers = default; + Optional> initContainers = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id"u8)) @@ -91,6 +104,20 @@ internal static ContainerAppReplicaData DeserializeContainerAppReplicaData(JsonE createdTime = property0.Value.GetDateTimeOffset("O"); continue; } + if (property0.NameEquals("runningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + runningState = new ContainerAppReplicaRunningState(property0.Value.GetString()); + continue; + } + if (property0.NameEquals("runningStateDetails"u8)) + { + runningStateDetails = property0.Value.GetString(); + continue; + } if (property0.NameEquals("containers"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -105,11 +132,25 @@ internal static ContainerAppReplicaData DeserializeContainerAppReplicaData(JsonE containers = array; continue; } + if (property0.NameEquals("initContainers"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(ContainerAppReplicaContainer.DeserializeContainerAppReplicaContainer(item)); + } + initContainers = array; + continue; + } } continue; } } - return new ContainerAppReplicaData(id, name, type, systemData.Value, Optional.ToNullable(createdTime), Optional.ToList(containers)); + return new ContainerAppReplicaData(id, name, type, systemData.Value, Optional.ToNullable(createdTime), Optional.ToNullable(runningState), runningStateDetails.Value, Optional.ToList(containers), Optional.ToList(initContainers)); } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppReplicaRunningState.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppReplicaRunningState.cs new file mode 100644 index 000000000000..e161682bd48a --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppReplicaRunningState.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.AppContainers.Models +{ + /// Current running state of the replica. + public readonly partial struct ContainerAppReplicaRunningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ContainerAppReplicaRunningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string RunningValue = "Running"; + private const string NotRunningValue = "NotRunning"; + private const string UnknownValue = "Unknown"; + + /// Running. + public static ContainerAppReplicaRunningState Running { get; } = new ContainerAppReplicaRunningState(RunningValue); + /// NotRunning. + public static ContainerAppReplicaRunningState NotRunning { get; } = new ContainerAppReplicaRunningState(NotRunningValue); + /// Unknown. + public static ContainerAppReplicaRunningState Unknown { get; } = new ContainerAppReplicaRunningState(UnknownValue); + /// Determines if two values are the same. + public static bool operator ==(ContainerAppReplicaRunningState left, ContainerAppReplicaRunningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ContainerAppReplicaRunningState left, ContainerAppReplicaRunningState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ContainerAppReplicaRunningState(string value) => new ContainerAppReplicaRunningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ContainerAppReplicaRunningState other && Equals(other); + /// + public bool Equals(ContainerAppReplicaRunningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppRevisionData.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppRevisionData.Serialization.cs index a9044d6e4db2..92ac2b06bc92 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppRevisionData.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppRevisionData.Serialization.cs @@ -44,6 +44,7 @@ internal static ContainerAppRevisionData DeserializeContainerAppRevisionData(Jso Optional provisioningError = default; Optional healthState = default; Optional provisioningState = default; + Optional runningState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id"u8)) @@ -161,11 +162,20 @@ internal static ContainerAppRevisionData DeserializeContainerAppRevisionData(Jso provisioningState = new ContainerAppRevisionProvisioningState(property0.Value.GetString()); continue; } + if (property0.NameEquals("runningState"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + runningState = new RevisionRunningState(property0.Value.GetString()); + continue; + } } continue; } } - return new ContainerAppRevisionData(id, name, type, systemData.Value, Optional.ToNullable(createdTime), Optional.ToNullable(lastActiveTime), fqdn.Value, template.Value, Optional.ToNullable(active), Optional.ToNullable(replicas), Optional.ToNullable(trafficWeight), provisioningError.Value, Optional.ToNullable(healthState), Optional.ToNullable(provisioningState)); + return new ContainerAppRevisionData(id, name, type, systemData.Value, Optional.ToNullable(createdTime), Optional.ToNullable(lastActiveTime), fqdn.Value, template.Value, Optional.ToNullable(active), Optional.ToNullable(replicas), Optional.ToNullable(trafficWeight), provisioningError.Value, Optional.ToNullable(healthState), Optional.ToNullable(provisioningState), Optional.ToNullable(runningState)); } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppScaleRuleAuth.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppScaleRuleAuth.cs index f970b3ad0c02..9c7c05a20fe5 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppScaleRuleAuth.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppScaleRuleAuth.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.AppContainers.Models { - /// Auth Secrets for Container App Scale Rule. + /// Auth Secrets for Scale Rule. public partial class ContainerAppScaleRuleAuth { /// Initializes a new instance of ContainerAppScaleRuleAuth. @@ -16,7 +16,7 @@ public ContainerAppScaleRuleAuth() } /// Initializes a new instance of ContainerAppScaleRuleAuth. - /// Name of the Container App secret from which to pull the auth params. + /// Name of the secret from which to pull the auth params. /// Trigger Parameter that uses the secret. internal ContainerAppScaleRuleAuth(string secretRef, string triggerParameter) { @@ -24,7 +24,7 @@ internal ContainerAppScaleRuleAuth(string secretRef, string triggerParameter) TriggerParameter = triggerParameter; } - /// Name of the Container App secret from which to pull the auth params. + /// Name of the secret from which to pull the auth params. public string SecretRef { get; set; } /// Trigger Parameter that uses the secret. public string TriggerParameter { get; set; } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTemplate.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTemplate.Serialization.cs index 6950e9d520d4..1f08d8bebaee 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTemplate.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTemplate.Serialization.cs @@ -21,6 +21,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("revisionSuffix"u8); writer.WriteStringValue(RevisionSuffix); } + if (Optional.IsDefined(TerminationGracePeriodSeconds)) + { + writer.WritePropertyName("terminationGracePeriodSeconds"u8); + writer.WriteNumberValue(TerminationGracePeriodSeconds.Value); + } if (Optional.IsCollectionDefined(InitContainers)) { writer.WritePropertyName("initContainers"u8); @@ -56,6 +61,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } + if (Optional.IsCollectionDefined(ServiceBinds)) + { + writer.WritePropertyName("serviceBinds"u8); + writer.WriteStartArray(); + foreach (var item in ServiceBinds) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } writer.WriteEndObject(); } @@ -66,10 +81,12 @@ internal static ContainerAppTemplate DeserializeContainerAppTemplate(JsonElement return null; } Optional revisionSuffix = default; + Optional terminationGracePeriodSeconds = default; Optional> initContainers = default; Optional> containers = default; Optional scale = default; Optional> volumes = default; + Optional> serviceBinds = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("revisionSuffix"u8)) @@ -77,6 +94,15 @@ internal static ContainerAppTemplate DeserializeContainerAppTemplate(JsonElement revisionSuffix = property.Value.GetString(); continue; } + if (property.NameEquals("terminationGracePeriodSeconds"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + terminationGracePeriodSeconds = property.Value.GetInt64(); + continue; + } if (property.NameEquals("initContainers"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -128,8 +154,22 @@ internal static ContainerAppTemplate DeserializeContainerAppTemplate(JsonElement volumes = array; continue; } + if (property.NameEquals("serviceBinds"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ServiceBind.DeserializeServiceBind(item)); + } + serviceBinds = array; + continue; + } } - return new ContainerAppTemplate(revisionSuffix.Value, Optional.ToList(initContainers), Optional.ToList(containers), scale.Value, Optional.ToList(volumes)); + return new ContainerAppTemplate(revisionSuffix.Value, Optional.ToNullable(terminationGracePeriodSeconds), Optional.ToList(initContainers), Optional.ToList(containers), scale.Value, Optional.ToList(volumes), Optional.ToList(serviceBinds)); } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTemplate.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTemplate.cs index d28165a976d1..a5d5ff9bb836 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTemplate.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTemplate.cs @@ -23,25 +23,32 @@ public ContainerAppTemplate() InitContainers = new ChangeTrackingList(); Containers = new ChangeTrackingList(); Volumes = new ChangeTrackingList(); + ServiceBinds = new ChangeTrackingList(); } /// Initializes a new instance of ContainerAppTemplate. /// User friendly suffix that is appended to the revision name. + /// Optional duration in seconds the Container App Instance needs to terminate gracefully. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. /// List of specialized containers that run before app containers. /// List of container definitions for the Container App. /// Scaling properties for the Container App. /// List of volume definitions for the Container App. - internal ContainerAppTemplate(string revisionSuffix, IList initContainers, IList containers, ContainerAppScale scale, IList volumes) + /// List of container app services bound to the app. + internal ContainerAppTemplate(string revisionSuffix, long? terminationGracePeriodSeconds, IList initContainers, IList containers, ContainerAppScale scale, IList volumes, IList serviceBinds) { RevisionSuffix = revisionSuffix; + TerminationGracePeriodSeconds = terminationGracePeriodSeconds; InitContainers = initContainers; Containers = containers; Scale = scale; Volumes = volumes; + ServiceBinds = serviceBinds; } /// User friendly suffix that is appended to the revision name. public string RevisionSuffix { get; set; } + /// Optional duration in seconds the Container App Instance needs to terminate gracefully. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + public long? TerminationGracePeriodSeconds { get; set; } /// List of specialized containers that run before app containers. public IList InitContainers { get; } /// List of container definitions for the Container App. @@ -50,5 +57,7 @@ internal ContainerAppTemplate(string revisionSuffix, IList List of volume definitions for the Container App. public IList Volumes { get; } + /// List of container app services bound to the app. + public IList ServiceBinds { get; } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppVolume.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppVolume.Serialization.cs index c1ae6e483bf1..0fdb9d2438a9 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppVolume.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppVolume.Serialization.cs @@ -41,6 +41,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } + if (Optional.IsDefined(MountOptions)) + { + writer.WritePropertyName("mountOptions"u8); + writer.WriteStringValue(MountOptions); + } writer.WriteEndObject(); } @@ -54,6 +59,7 @@ internal static ContainerAppVolume DeserializeContainerAppVolume(JsonElement ele Optional storageType = default; Optional storageName = default; Optional> secrets = default; + Optional mountOptions = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("name"u8)) @@ -89,8 +95,13 @@ internal static ContainerAppVolume DeserializeContainerAppVolume(JsonElement ele secrets = array; continue; } + if (property.NameEquals("mountOptions"u8)) + { + mountOptions = property.Value.GetString(); + continue; + } } - return new ContainerAppVolume(name.Value, Optional.ToNullable(storageType), storageName.Value, Optional.ToList(secrets)); + return new ContainerAppVolume(name.Value, Optional.ToNullable(storageType), storageName.Value, Optional.ToList(secrets), mountOptions.Value); } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppVolume.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppVolume.cs index 27cb3375e09d..5b74a7943fb6 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppVolume.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppVolume.cs @@ -24,12 +24,14 @@ public ContainerAppVolume() /// Storage type for the volume. If not provided, use EmptyDir. /// Name of storage resource. No need to provide for EmptyDir and Secret. /// List of secrets to be added in volume. If no secrets are provided, all secrets in collection will be added to volume. - internal ContainerAppVolume(string name, ContainerAppStorageType? storageType, string storageName, IList secrets) + /// Mount options used while mounting the AzureFile. Must be a comma-separated string. + internal ContainerAppVolume(string name, ContainerAppStorageType? storageType, string storageName, IList secrets, string mountOptions) { Name = name; StorageType = storageType; StorageName = storageName; Secrets = secrets; + MountOptions = mountOptions; } /// Volume name. @@ -40,5 +42,7 @@ internal ContainerAppVolume(string name, ContainerAppStorageType? storageType, s public string StorageName { get; set; } /// List of secrets to be added in volume. If no secrets are provided, all secrets in collection will be added to volume. public IList Secrets { get; } + /// Mount options used while mounting the AzureFile. Must be a comma-separated string. + public string MountOptions { get; set; } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppVolumeMount.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppVolumeMount.Serialization.cs index 4c2c7c5a6327..8de3f38dbbcc 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppVolumeMount.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppVolumeMount.Serialization.cs @@ -25,6 +25,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("mountPath"u8); writer.WriteStringValue(MountPath); } + if (Optional.IsDefined(SubPath)) + { + writer.WritePropertyName("subPath"u8); + writer.WriteStringValue(SubPath); + } writer.WriteEndObject(); } @@ -36,6 +41,7 @@ internal static ContainerAppVolumeMount DeserializeContainerAppVolumeMount(JsonE } Optional volumeName = default; Optional mountPath = default; + Optional subPath = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("volumeName"u8)) @@ -48,8 +54,13 @@ internal static ContainerAppVolumeMount DeserializeContainerAppVolumeMount(JsonE mountPath = property.Value.GetString(); continue; } + if (property.NameEquals("subPath"u8)) + { + subPath = property.Value.GetString(); + continue; + } } - return new ContainerAppVolumeMount(volumeName.Value, mountPath.Value); + return new ContainerAppVolumeMount(volumeName.Value, mountPath.Value, subPath.Value); } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppVolumeMount.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppVolumeMount.cs index 7071bc88db32..e893573a3bfd 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppVolumeMount.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppVolumeMount.cs @@ -18,15 +18,19 @@ public ContainerAppVolumeMount() /// Initializes a new instance of ContainerAppVolumeMount. /// This must match the Name of a Volume. /// Path within the container at which the volume should be mounted.Must not contain ':'. - internal ContainerAppVolumeMount(string volumeName, string mountPath) + /// Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + internal ContainerAppVolumeMount(string volumeName, string mountPath, string subPath) { VolumeName = volumeName; MountPath = mountPath; + SubPath = subPath; } /// This must match the Name of a Volume. public string VolumeName { get; set; } /// Path within the container at which the volume should be mounted.Must not contain ':'. public string MountPath { get; set; } + /// Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + public string SubPath { get; set; } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobConfigurationEventTriggerConfig.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobConfigurationEventTriggerConfig.Serialization.cs new file mode 100644 index 000000000000..61f6340390fe --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobConfigurationEventTriggerConfig.Serialization.cs @@ -0,0 +1,78 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.AppContainers.Models +{ + public partial class JobConfigurationEventTriggerConfig : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ReplicaCompletionCount)) + { + writer.WritePropertyName("replicaCompletionCount"u8); + writer.WriteNumberValue(ReplicaCompletionCount.Value); + } + if (Optional.IsDefined(Parallelism)) + { + writer.WritePropertyName("parallelism"u8); + writer.WriteNumberValue(Parallelism.Value); + } + if (Optional.IsDefined(Scale)) + { + writer.WritePropertyName("scale"u8); + writer.WriteObjectValue(Scale); + } + writer.WriteEndObject(); + } + + internal static JobConfigurationEventTriggerConfig DeserializeJobConfigurationEventTriggerConfig(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional replicaCompletionCount = default; + Optional parallelism = default; + Optional scale = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("replicaCompletionCount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + replicaCompletionCount = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("parallelism"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + parallelism = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("scale"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + scale = JobScale.DeserializeJobScale(property.Value); + continue; + } + } + return new JobConfigurationEventTriggerConfig(Optional.ToNullable(replicaCompletionCount), Optional.ToNullable(parallelism), scale.Value); + } + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobConfigurationEventTriggerConfig.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobConfigurationEventTriggerConfig.cs new file mode 100644 index 000000000000..ff7e36b4c513 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobConfigurationEventTriggerConfig.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.AppContainers.Models +{ + /// Trigger configuration of an event driven job. + public partial class JobConfigurationEventTriggerConfig + { + /// Initializes a new instance of JobConfigurationEventTriggerConfig. + public JobConfigurationEventTriggerConfig() + { + } + + /// Initializes a new instance of JobConfigurationEventTriggerConfig. + /// Minimum number of successful replica completions before overall job completion. + /// Number of parallel replicas of a job that can run at a given time. + /// Scaling configurations for event driven jobs. + internal JobConfigurationEventTriggerConfig(int? replicaCompletionCount, int? parallelism, JobScale scale) + { + ReplicaCompletionCount = replicaCompletionCount; + Parallelism = parallelism; + Scale = scale; + } + + /// Minimum number of successful replica completions before overall job completion. + public int? ReplicaCompletionCount { get; set; } + /// Number of parallel replicas of a job that can run at a given time. + public int? Parallelism { get; set; } + /// Scaling configurations for event driven jobs. + public JobScale Scale { get; set; } + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobExecutionNamesCollection.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobExecutionNamesCollection.Serialization.cs deleted file mode 100644 index 0fe213e099df..000000000000 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobExecutionNamesCollection.Serialization.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.AppContainers.Models -{ - public partial class JobExecutionNamesCollection : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item); - } - writer.WriteEndArray(); - writer.WriteEndObject(); - } - } -} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobExecutionNamesCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobExecutionNamesCollection.cs deleted file mode 100644 index b568b55fba22..000000000000 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobExecutionNamesCollection.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Linq; -using Azure.Core; - -namespace Azure.ResourceManager.AppContainers.Models -{ - /// Container App executions names list. - public partial class JobExecutionNamesCollection - { - /// Initializes a new instance of JobExecutionNamesCollection. - /// Collection of resources. - /// is null. - public JobExecutionNamesCollection(IEnumerable value) - { - Argument.AssertNotNull(value, nameof(value)); - - Value = value.ToList(); - } - - /// Collection of resources. - public IList Value { get; } - } -} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScale.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScale.Serialization.cs new file mode 100644 index 000000000000..3fd09748768d --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScale.Serialization.cs @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.AppContainers.Models +{ + public partial class JobScale : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(PollingInterval)) + { + writer.WritePropertyName("pollingInterval"u8); + writer.WriteNumberValue(PollingInterval.Value); + } + if (Optional.IsDefined(MinExecutions)) + { + writer.WritePropertyName("minExecutions"u8); + writer.WriteNumberValue(MinExecutions.Value); + } + if (Optional.IsDefined(MaxExecutions)) + { + writer.WritePropertyName("maxExecutions"u8); + writer.WriteNumberValue(MaxExecutions.Value); + } + if (Optional.IsCollectionDefined(Rules)) + { + writer.WritePropertyName("rules"u8); + writer.WriteStartArray(); + foreach (var item in Rules) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static JobScale DeserializeJobScale(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional pollingInterval = default; + Optional minExecutions = default; + Optional maxExecutions = default; + Optional> rules = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("pollingInterval"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + pollingInterval = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("minExecutions"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + minExecutions = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("maxExecutions"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + maxExecutions = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("rules"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(JobScaleRule.DeserializeJobScaleRule(item)); + } + rules = array; + continue; + } + } + return new JobScale(Optional.ToNullable(pollingInterval), Optional.ToNullable(minExecutions), Optional.ToNullable(maxExecutions), Optional.ToList(rules)); + } + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScale.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScale.cs new file mode 100644 index 000000000000..84588972913d --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScale.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.AppContainers.Models +{ + /// Scaling configurations for event driven jobs. + public partial class JobScale + { + /// Initializes a new instance of JobScale. + public JobScale() + { + Rules = new ChangeTrackingList(); + } + + /// Initializes a new instance of JobScale. + /// Interval to check each event source in seconds. Defaults to 30s. + /// Minimum number of job executions that are created for a trigger, default 0. + /// Maximum number of job executions that are created for a trigger, default 100. + /// Scaling rules. + internal JobScale(int? pollingInterval, int? minExecutions, int? maxExecutions, IList rules) + { + PollingInterval = pollingInterval; + MinExecutions = minExecutions; + MaxExecutions = maxExecutions; + Rules = rules; + } + + /// Interval to check each event source in seconds. Defaults to 30s. + public int? PollingInterval { get; set; } + /// Minimum number of job executions that are created for a trigger, default 0. + public int? MinExecutions { get; set; } + /// Maximum number of job executions that are created for a trigger, default 100. + public int? MaxExecutions { get; set; } + /// Scaling rules. + public IList Rules { get; } + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScaleRule.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScaleRule.Serialization.cs new file mode 100644 index 000000000000..70d9ba062a43 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScaleRule.Serialization.cs @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.AppContainers.Models +{ + public partial class JobScaleRule : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (Optional.IsDefined(JobScaleRuleType)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(JobScaleRuleType); + } + if (Optional.IsDefined(Metadata)) + { + writer.WritePropertyName("metadata"u8); +#if NET6_0_OR_GREATER + writer.WriteRawValue(Metadata); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(Metadata.ToString()).RootElement); +#endif + } + if (Optional.IsCollectionDefined(Auth)) + { + writer.WritePropertyName("auth"u8); + writer.WriteStartArray(); + foreach (var item in Auth) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static JobScaleRule DeserializeJobScaleRule(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional name = default; + Optional type = default; + Optional metadata = default; + Optional> auth = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("metadata"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + metadata = BinaryData.FromString(property.Value.GetRawText()); + continue; + } + if (property.NameEquals("auth"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ContainerAppScaleRuleAuth.DeserializeContainerAppScaleRuleAuth(item)); + } + auth = array; + continue; + } + } + return new JobScaleRule(name.Value, type.Value, metadata.Value, Optional.ToList(auth)); + } + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScaleRule.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScaleRule.cs new file mode 100644 index 000000000000..506337ee2ef2 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScaleRule.cs @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.AppContainers.Models +{ + /// Scaling rule. + public partial class JobScaleRule + { + /// Initializes a new instance of JobScaleRule. + public JobScaleRule() + { + Auth = new ChangeTrackingList(); + } + + /// Initializes a new instance of JobScaleRule. + /// Scale Rule Name. + /// + /// Type of the scale rule + /// eg: azure-servicebus, redis etc. + /// + /// Metadata properties to describe the scale rule. + /// Authentication secrets for the scale rule. + internal JobScaleRule(string name, string jobScaleRuleType, BinaryData metadata, IList auth) + { + Name = name; + JobScaleRuleType = jobScaleRuleType; + Metadata = metadata; + Auth = auth; + } + + /// Scale Rule Name. + public string Name { get; set; } + /// + /// Type of the scale rule + /// eg: azure-servicebus, redis etc. + /// + public string JobScaleRuleType { get; set; } + /// + /// Metadata properties to describe the scale rule. + /// + /// To assign an object to this property use . + /// + /// + /// To assign an already formated json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + public BinaryData Metadata { get; set; } + /// Authentication secrets for the scale rule. + public IList Auth { get; } + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ManagedEnvironmentPropertiesPeerAuthentication.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ManagedEnvironmentPropertiesPeerAuthentication.Serialization.cs new file mode 100644 index 000000000000..3c77dadd019c --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ManagedEnvironmentPropertiesPeerAuthentication.Serialization.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.AppContainers.Models +{ + internal partial class ManagedEnvironmentPropertiesPeerAuthentication : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(Mtls)) + { + writer.WritePropertyName("mtls"u8); + writer.WriteObjectValue(Mtls); + } + writer.WriteEndObject(); + } + + internal static ManagedEnvironmentPropertiesPeerAuthentication DeserializeManagedEnvironmentPropertiesPeerAuthentication(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional mtls = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("mtls"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mtls = Mtls.DeserializeMtls(property.Value); + continue; + } + } + return new ManagedEnvironmentPropertiesPeerAuthentication(mtls.Value); + } + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ManagedEnvironmentPropertiesPeerAuthentication.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ManagedEnvironmentPropertiesPeerAuthentication.cs new file mode 100644 index 000000000000..16b52fb8fd42 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ManagedEnvironmentPropertiesPeerAuthentication.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.AppContainers.Models +{ + /// Peer authentication settings for the Managed Environment. + internal partial class ManagedEnvironmentPropertiesPeerAuthentication + { + /// Initializes a new instance of ManagedEnvironmentPropertiesPeerAuthentication. + public ManagedEnvironmentPropertiesPeerAuthentication() + { + } + + /// Initializes a new instance of ManagedEnvironmentPropertiesPeerAuthentication. + /// Mutual TLS authentication settings for the Managed Environment. + internal ManagedEnvironmentPropertiesPeerAuthentication(Mtls mtls) + { + Mtls = mtls; + } + + /// Mutual TLS authentication settings for the Managed Environment. + internal Mtls Mtls { get; set; } + /// Boolean indicating whether the mutual TLS authentication is enabled. + public bool? IsMtlsEnabled + { + get => Mtls is null ? default : Mtls.IsMtlsEnabled; + set + { + if (Mtls is null) + Mtls = new Mtls(); + Mtls.IsMtlsEnabled = value; + } + } + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/Mtls.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/Mtls.Serialization.cs new file mode 100644 index 000000000000..b91b8cb401a5 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/Mtls.Serialization.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.AppContainers.Models +{ + internal partial class Mtls : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(IsMtlsEnabled)) + { + writer.WritePropertyName("enabled"u8); + writer.WriteBooleanValue(IsMtlsEnabled.Value); + } + writer.WriteEndObject(); + } + + internal static Mtls DeserializeMtls(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional enabled = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("enabled"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enabled = property.Value.GetBoolean(); + continue; + } + } + return new Mtls(Optional.ToNullable(enabled)); + } + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/Mtls.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/Mtls.cs new file mode 100644 index 000000000000..1bedc483f137 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/Mtls.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.AppContainers.Models +{ + /// Configuration properties for mutual TLS authentication. + internal partial class Mtls + { + /// Initializes a new instance of Mtls. + public Mtls() + { + } + + /// Initializes a new instance of Mtls. + /// Boolean indicating whether the mutual TLS authentication is enabled. + internal Mtls(bool? isMtlsEnabled) + { + IsMtlsEnabled = isMtlsEnabled; + } + + /// Boolean indicating whether the mutual TLS authentication is enabled. + public bool? IsMtlsEnabled { get; set; } + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/RevisionRunningState.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/RevisionRunningState.cs new file mode 100644 index 000000000000..80409d855211 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/RevisionRunningState.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.AppContainers.Models +{ + /// Current running state of the revision. + public readonly partial struct RevisionRunningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public RevisionRunningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string RunningValue = "Running"; + private const string ProcessingValue = "Processing"; + private const string StoppedValue = "Stopped"; + private const string DegradedValue = "Degraded"; + private const string FailedValue = "Failed"; + private const string UnknownValue = "Unknown"; + + /// Running. + public static RevisionRunningState Running { get; } = new RevisionRunningState(RunningValue); + /// Processing. + public static RevisionRunningState Processing { get; } = new RevisionRunningState(ProcessingValue); + /// Stopped. + public static RevisionRunningState Stopped { get; } = new RevisionRunningState(StoppedValue); + /// Degraded. + public static RevisionRunningState Degraded { get; } = new RevisionRunningState(DegradedValue); + /// Failed. + public static RevisionRunningState Failed { get; } = new RevisionRunningState(FailedValue); + /// Unknown. + public static RevisionRunningState Unknown { get; } = new RevisionRunningState(UnknownValue); + /// Determines if two values are the same. + public static bool operator ==(RevisionRunningState left, RevisionRunningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(RevisionRunningState left, RevisionRunningState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator RevisionRunningState(string value) => new RevisionRunningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is RevisionRunningState other && Equals(other); + /// + public bool Equals(RevisionRunningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/Service.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/Service.Serialization.cs new file mode 100644 index 000000000000..ff025e3b058b --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/Service.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.AppContainers.Models +{ + internal partial class Service : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"u8); + writer.WriteStringValue(ServiceType); + writer.WriteEndObject(); + } + + internal static Service DeserializeService(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string type = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + } + return new Service(type); + } + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/Service.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/Service.cs new file mode 100644 index 000000000000..0fcba3493801 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/Service.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.AppContainers.Models +{ + /// Container App to be a dev service. + internal partial class Service + { + /// Initializes a new instance of Service. + /// Dev ContainerApp service type. + /// is null. + public Service(string serviceType) + { + Argument.AssertNotNull(serviceType, nameof(serviceType)); + + ServiceType = serviceType; + } + + /// Dev ContainerApp service type. + public string ServiceType { get; set; } + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ServiceBind.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ServiceBind.Serialization.cs new file mode 100644 index 000000000000..84af1bb026a3 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ServiceBind.Serialization.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.AppContainers.Models +{ + public partial class ServiceBind : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ServiceId)) + { + writer.WritePropertyName("serviceId"u8); + writer.WriteStringValue(ServiceId); + } + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + writer.WriteEndObject(); + } + + internal static ServiceBind DeserializeServiceBind(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional serviceId = default; + Optional name = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("serviceId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + serviceId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + } + return new ServiceBind(serviceId.Value, name.Value); + } + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ServiceBind.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ServiceBind.cs new file mode 100644 index 000000000000..6becb006be94 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ServiceBind.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core; + +namespace Azure.ResourceManager.AppContainers.Models +{ + /// Configuration to bind a ContainerApp to a dev ContainerApp Service. + public partial class ServiceBind + { + /// Initializes a new instance of ServiceBind. + public ServiceBind() + { + } + + /// Initializes a new instance of ServiceBind. + /// Resource id of the target service. + /// Name of the service bind. + internal ServiceBind(ResourceIdentifier serviceId, string name) + { + ServiceId = serviceId; + Name = name; + } + + /// Resource id of the target service. + public ResourceIdentifier ServiceId { get; set; } + /// Name of the service bind. + public string Name { get; set; } + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/AvailableWorkloadProfilesRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/AvailableWorkloadProfilesRestOperations.cs index 754b29db127b..67ff8d4817e5 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/AvailableWorkloadProfilesRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/AvailableWorkloadProfilesRestOperations.cs @@ -33,7 +33,7 @@ public AvailableWorkloadProfilesRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01-preview"; + _apiVersion = apiVersion ?? "2023-04-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/BillingMetersRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/BillingMetersRestOperations.cs index 320450f6f735..3b3aea9b9fac 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/BillingMetersRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/BillingMetersRestOperations.cs @@ -33,7 +33,7 @@ public BillingMetersRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01-preview"; + _apiVersion = apiVersion ?? "2023-04-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/CertificatesRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/CertificatesRestOperations.cs index 43214aa45faa..d419639afbf0 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/CertificatesRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/CertificatesRestOperations.cs @@ -33,7 +33,7 @@ public CertificatesRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01-preview"; + _apiVersion = apiVersion ?? "2023-04-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsCertificatesRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsCertificatesRestOperations.cs index 0fc106fb3fc8..34099e118dce 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsCertificatesRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsCertificatesRestOperations.cs @@ -33,7 +33,7 @@ public ConnectedEnvironmentsCertificatesRestOperations(HttpPipeline pipeline, st { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01-preview"; + _apiVersion = apiVersion ?? "2023-04-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsDaprComponentsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsDaprComponentsRestOperations.cs index a4fe62f243eb..48f9a1ce3284 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsDaprComponentsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsDaprComponentsRestOperations.cs @@ -33,7 +33,7 @@ public ConnectedEnvironmentsDaprComponentsRestOperations(HttpPipeline pipeline, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01-preview"; + _apiVersion = apiVersion ?? "2023-04-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsRestOperations.cs index 282bd6842918..189f83f57a44 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsRestOperations.cs @@ -33,7 +33,7 @@ public ConnectedEnvironmentsRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01-preview"; + _apiVersion = apiVersion ?? "2023-04-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsStoragesRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsStoragesRestOperations.cs index abffaaaee4a2..d32c7c5b1f87 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsStoragesRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsStoragesRestOperations.cs @@ -33,7 +33,7 @@ public ConnectedEnvironmentsStoragesRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01-preview"; + _apiVersion = apiVersion ?? "2023-04-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAPIRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAPIRestOperations.cs new file mode 100644 index 000000000000..7d72eff8e164 --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAPIRestOperations.cs @@ -0,0 +1,127 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.ResourceManager.AppContainers +{ + internal partial class ContainerAppsAPIRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of ContainerAppsAPIRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public ContainerAppsAPIRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-04-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateJobExecutionRequest(string subscriptionId, string resourceGroupName, string jobName, string jobExecutionName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/jobs/", false); + uri.AppendPath(jobName, true); + uri.AppendPath("/executions/", false); + uri.AppendPath(jobExecutionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get details of a single job execution. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Job Name. + /// Job execution name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> JobExecutionAsync(string subscriptionId, string resourceGroupName, string jobName, string jobExecutionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); + Argument.AssertNotNullOrEmpty(jobExecutionName, nameof(jobExecutionName)); + + using var message = CreateJobExecutionRequest(subscriptionId, resourceGroupName, jobName, jobExecutionName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ContainerAppJobExecutionData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ContainerAppJobExecutionData.DeserializeContainerAppJobExecutionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((ContainerAppJobExecutionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get details of a single job execution. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Job Name. + /// Job execution name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response JobExecution(string subscriptionId, string resourceGroupName, string jobName, string jobExecutionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); + Argument.AssertNotNullOrEmpty(jobExecutionName, nameof(jobExecutionName)); + + using var message = CreateJobExecutionRequest(subscriptionId, resourceGroupName, jobName, jobExecutionName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ContainerAppJobExecutionData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ContainerAppJobExecutionData.DeserializeContainerAppJobExecutionData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((ContainerAppJobExecutionData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAuthConfigsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAuthConfigsRestOperations.cs index e992e00b2f87..22ee79b725b8 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAuthConfigsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAuthConfigsRestOperations.cs @@ -33,7 +33,7 @@ public ContainerAppsAuthConfigsRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01-preview"; + _apiVersion = apiVersion ?? "2023-04-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsDiagnosticsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsDiagnosticsRestOperations.cs index 58fd68e7c812..8768e4a1d67f 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsDiagnosticsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsDiagnosticsRestOperations.cs @@ -33,7 +33,7 @@ public ContainerAppsDiagnosticsRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01-preview"; + _apiVersion = apiVersion ?? "2023-04-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRestOperations.cs index 934a7f994c51..5240ea014492 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRestOperations.cs @@ -33,7 +33,7 @@ public ContainerAppsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01-preview"; + _apiVersion = apiVersion ?? "2023-04-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -730,6 +730,148 @@ public Response GetAuthToken(string subscriptionId, strin } } + internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGroupName, string containerAppName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/start", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Start a container app. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of the Container App. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task StartAsync(string subscriptionId, string resourceGroupName, string containerAppName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(containerAppName, nameof(containerAppName)); + + using var message = CreateStartRequest(subscriptionId, resourceGroupName, containerAppName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Start a container app. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of the Container App. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Start(string subscriptionId, string resourceGroupName, string containerAppName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(containerAppName, nameof(containerAppName)); + + using var message = CreateStartRequest(subscriptionId, resourceGroupName, containerAppName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGroupName, string containerAppName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.App/containerApps/", false); + uri.AppendPath(containerAppName, true); + uri.AppendPath("/stop", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Stop a container app. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of the Container App. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task StopAsync(string subscriptionId, string resourceGroupName, string containerAppName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(containerAppName, nameof(containerAppName)); + + using var message = CreateStopRequest(subscriptionId, resourceGroupName, containerAppName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Stop a container app. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of the Container App. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Stop(string subscriptionId, string resourceGroupName, string containerAppName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(containerAppName, nameof(containerAppName)); + + using var message = CreateStopRequest(subscriptionId, resourceGroupName, containerAppName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, string subscriptionId) { var message = _pipeline.CreateMessage(); diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionReplicasRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionReplicasRestOperations.cs index 30b8e1534bf4..e186d1e560c7 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionReplicasRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionReplicasRestOperations.cs @@ -33,7 +33,7 @@ public ContainerAppsRevisionReplicasRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01-preview"; + _apiVersion = apiVersion ?? "2023-04-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionsRestOperations.cs index e702832231b9..7714df3e6998 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionsRestOperations.cs @@ -33,7 +33,7 @@ public ContainerAppsRevisionsRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01-preview"; + _apiVersion = apiVersion ?? "2023-04-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsSourceControlsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsSourceControlsRestOperations.cs index 88473ae9669d..fd7bdf4d934a 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsSourceControlsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsSourceControlsRestOperations.cs @@ -33,7 +33,7 @@ public ContainerAppsSourceControlsRestOperations(HttpPipeline pipeline, string a { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01-preview"; + _apiVersion = apiVersion ?? "2023-04-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/DaprComponentsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/DaprComponentsRestOperations.cs index 64fb6e68b979..00d02306716f 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/DaprComponentsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/DaprComponentsRestOperations.cs @@ -33,7 +33,7 @@ public DaprComponentsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01-preview"; + _apiVersion = apiVersion ?? "2023-04-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsExecutionsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsExecutionsRestOperations.cs index 27fbc4523499..7fbe65a6a6e7 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsExecutionsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsExecutionsRestOperations.cs @@ -33,7 +33,7 @@ public JobsExecutionsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01-preview"; + _apiVersion = apiVersion ?? "2023-04-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -65,7 +65,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro /// Get a Container Apps Job's executions. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Name of the Container Apps Job. + /// Job Name. /// The filter to apply on the operation. /// The cancellation token to use. /// , or is null. @@ -95,7 +95,7 @@ public async Task> ListAsync(string subscrip /// Get a Container Apps Job's executions. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Name of the Container Apps Job. + /// Job Name. /// The filter to apply on the operation. /// The cancellation token to use. /// , or is null. @@ -140,7 +140,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Name of the Container Apps Job. + /// Job Name. /// The filter to apply on the operation. /// The cancellation token to use. /// , , or is null. @@ -172,7 +172,7 @@ public async Task> ListNextPageAsync(string /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Name of the Container Apps Job. + /// Job Name. /// The filter to apply on the operation. /// The cancellation token to use. /// , , or is null. diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsRestOperations.cs index 17b0f1a342d6..99211dac946b 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsRestOperations.cs @@ -33,7 +33,7 @@ public JobsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01-preview"; + _apiVersion = apiVersion ?? "2023-04-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -200,7 +200,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// Get the properties of a Container Apps Job. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Name of the Container Apps Job. + /// Job Name. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -231,7 +231,7 @@ public async Task> GetAsync(string subscriptionId, /// Get the properties of a Container Apps Job. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Name of the Container Apps Job. + /// Job Name. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -286,7 +286,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// Create or Update a Container Apps Job. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Name of the Container Apps Job. + /// Job Name. /// Properties used to create a container apps job. /// The cancellation token to use. /// , , or is null. @@ -313,7 +313,7 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re /// Create or Update a Container Apps Job. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Name of the Container Apps Job. + /// Job Name. /// Properties used to create a container apps job. /// The cancellation token to use. /// , , or is null. @@ -360,7 +360,7 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG /// Delete a Container Apps Job. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Name of the Container Apps Job. + /// Job Name. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -386,7 +386,7 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr /// Delete a Container Apps Job. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Name of the Container Apps Job. + /// Job Name. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -436,7 +436,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// Patches a Container Apps Job using JSON Merge Patch. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Name of the Container Apps Job. + /// Job Name. /// Properties used to create a container apps job. /// The cancellation token to use. /// , , or is null. @@ -463,7 +463,7 @@ public async Task UpdateAsync(string subscriptionId, string resourceGr /// Patches a Container Apps Job using JSON Merge Patch. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Name of the Container Apps Job. + /// Job Name. /// Properties used to create a container apps job. /// The cancellation token to use. /// , , or is null. @@ -504,10 +504,13 @@ internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGr uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(template); - request.Content = content; + if (template != null) + { + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(template); + request.Content = content; + } _userAgent.Apply(message); return message; } @@ -515,17 +518,16 @@ internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGr /// Start a Container Apps Job. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Name of the Container Apps Job. - /// Properties used to start a job instance. + /// Job Name. + /// Properties used to start a job execution. /// The cancellation token to use. - /// , , or is null. + /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task StartAsync(string subscriptionId, string resourceGroupName, string jobName, ContainerAppJobExecutionTemplate template, CancellationToken cancellationToken = default) + public async Task StartAsync(string subscriptionId, string resourceGroupName, string jobName, ContainerAppJobExecutionTemplate template = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); - Argument.AssertNotNull(template, nameof(template)); using var message = CreateStartRequest(subscriptionId, resourceGroupName, jobName, template); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); @@ -542,17 +544,16 @@ public async Task StartAsync(string subscriptionId, string resourceGro /// Start a Container Apps Job. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Name of the Container Apps Job. - /// Properties used to start a job instance. + /// Job Name. + /// Properties used to start a job execution. /// The cancellation token to use. - /// , , or is null. + /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Start(string subscriptionId, string resourceGroupName, string jobName, ContainerAppJobExecutionTemplate template, CancellationToken cancellationToken = default) + public Response Start(string subscriptionId, string resourceGroupName, string jobName, ContainerAppJobExecutionTemplate template = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); - Argument.AssertNotNull(template, nameof(template)); using var message = CreateStartRequest(subscriptionId, resourceGroupName, jobName, template); _pipeline.Send(message, cancellationToken); @@ -592,7 +593,7 @@ internal HttpMessage CreateStopExecutionRequest(string subscriptionId, string re /// Terminates execution of a running container apps job. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Name of the Container Apps Job. + /// Job Name. /// Job execution name. /// The cancellation token to use. /// , , or is null. @@ -619,7 +620,7 @@ public async Task StopExecutionAsync(string subscriptionId, string res /// Terminates execution of a running container apps job. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Name of the Container Apps Job. + /// Job Name. /// Job execution name. /// The cancellation token to use. /// , , or is null. @@ -643,7 +644,7 @@ public Response StopExecution(string subscriptionId, string resourceGroupName, s } } - internal HttpMessage CreateStopMultipleExecutionsRequest(string subscriptionId, string resourceGroupName, string jobName, JobExecutionNamesCollection jobExecutionName) + internal HttpMessage CreateStopMultipleExecutionsRequest(string subscriptionId, string resourceGroupName, string jobName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -660,10 +661,6 @@ internal HttpMessage CreateStopMultipleExecutionsRequest(string subscriptionId, uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(jobExecutionName); - request.Content = content; _userAgent.Apply(message); return message; } @@ -671,19 +668,17 @@ internal HttpMessage CreateStopMultipleExecutionsRequest(string subscriptionId, /// Terminates execution of a running container apps job. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Name of the Container Apps Job. - /// List of all job executions that should be stopped. + /// Job Name. /// The cancellation token to use. - /// , , or is null. + /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task StopMultipleExecutionsAsync(string subscriptionId, string resourceGroupName, string jobName, JobExecutionNamesCollection jobExecutionName, CancellationToken cancellationToken = default) + public async Task StopMultipleExecutionsAsync(string subscriptionId, string resourceGroupName, string jobName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); - Argument.AssertNotNull(jobExecutionName, nameof(jobExecutionName)); - using var message = CreateStopMultipleExecutionsRequest(subscriptionId, resourceGroupName, jobName, jobExecutionName); + using var message = CreateStopMultipleExecutionsRequest(subscriptionId, resourceGroupName, jobName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -698,19 +693,17 @@ public async Task StopMultipleExecutionsAsync(string subscriptionId, s /// Terminates execution of a running container apps job. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Name of the Container Apps Job. - /// List of all job executions that should be stopped. + /// Job Name. /// The cancellation token to use. - /// , , or is null. + /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response StopMultipleExecutions(string subscriptionId, string resourceGroupName, string jobName, JobExecutionNamesCollection jobExecutionName, CancellationToken cancellationToken = default) + public Response StopMultipleExecutions(string subscriptionId, string resourceGroupName, string jobName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); - Argument.AssertNotNull(jobExecutionName, nameof(jobExecutionName)); - using var message = CreateStopMultipleExecutionsRequest(subscriptionId, resourceGroupName, jobName, jobExecutionName); + using var message = CreateStopMultipleExecutionsRequest(subscriptionId, resourceGroupName, jobName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -746,7 +739,7 @@ internal HttpMessage CreateListSecretsRequest(string subscriptionId, string reso /// List secrets for a container apps job. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Name of the Container Apps Job. + /// Job Name. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -775,7 +768,7 @@ public async Task> ListSecretsAsync(string subscr /// List secrets for a container apps job. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// Name of the Container Apps Job. + /// Job Name. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedCertificatesRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedCertificatesRestOperations.cs index e19472fae914..b494bc255af3 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedCertificatesRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedCertificatesRestOperations.cs @@ -33,7 +33,7 @@ public ManagedCertificatesRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01-preview"; + _apiVersion = apiVersion ?? "2023-04-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentDiagnosticsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentDiagnosticsRestOperations.cs index a476446e0ed2..c4b5ee69d960 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentDiagnosticsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentDiagnosticsRestOperations.cs @@ -33,7 +33,7 @@ public ManagedEnvironmentDiagnosticsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01-preview"; + _apiVersion = apiVersion ?? "2023-04-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsDiagnosticsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsDiagnosticsRestOperations.cs index 169b9ea61a33..6ed221267ac2 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsDiagnosticsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsDiagnosticsRestOperations.cs @@ -32,7 +32,7 @@ public ManagedEnvironmentsDiagnosticsRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01-preview"; + _apiVersion = apiVersion ?? "2023-04-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsRestOperations.cs index 68a850901d65..a48884d28955 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsRestOperations.cs @@ -33,7 +33,7 @@ public ManagedEnvironmentsRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01-preview"; + _apiVersion = apiVersion ?? "2023-04-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsStoragesRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsStoragesRestOperations.cs index d07829b0fad6..be01f0d89a5b 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsStoragesRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsStoragesRestOperations.cs @@ -33,7 +33,7 @@ public ManagedEnvironmentsStoragesRestOperations(HttpPipeline pipeline, string a { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01-preview"; + _apiVersion = apiVersion ?? "2023-04-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/NamespacesRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/NamespacesRestOperations.cs index b06d9448aee3..0acdb60f6798 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/NamespacesRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/NamespacesRestOperations.cs @@ -33,7 +33,7 @@ public NamespacesRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-11-01-preview"; + _apiVersion = apiVersion ?? "2023-04-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/autorest.md b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/autorest.md index 643a7ea07a56..9a40873f4006 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/autorest.md +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/autorest.md @@ -7,7 +7,7 @@ azure-arm: true csharp: true library-name: AppContainers namespace: Azure.ResourceManager.AppContainers -require: https://github.com/Azure/azure-rest-api-specs/blob/905a9ad794ea9a1565ebe3857497b3a24872d553/specification/app/resource-manager/readme.md +require: https://github.com/Azure/azure-rest-api-specs/blob/6b0792baeaa1e26ebb9fe61dfc77297fc95325af/specification/app/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true @@ -217,6 +217,7 @@ rename-mapping: Job: ContainerAppJob JobsCollection: ContainerAppJobsCollection ManagedCertificate: ContainerAppManagedCertificate + Mtls.enabled: IsMtlsEnabled request-path-to-resource-name: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}: ContainerAppConnectedEnvironmentCertificate @@ -231,7 +232,7 @@ override-operation-name: Namespaces_CheckNameAvailability: CheckContainerAppNameAvailability # mgmt-debug: -# show-serialized-names: true +# show-serialized-names: true directive: - from: swagger-document @@ -239,4 +240,8 @@ directive: transform: > if ($['type'] === 'boolean') $['x-ms-client-name'] = 'IsEnabled' + # Change type to ResourceIdentifier + - from: CommonDefinitions.json + where: $.definitions.ServiceBind.properties.serviceId + transform: $['x-ms-format'] = 'arm-id' ``` From 403a3e25fbdcd1c0fa625b6dd62ba6ef733eef29 Mon Sep 17 00:00:00 2001 From: Juliehzl Date: Fri, 4 Aug 2023 13:16:27 +0800 Subject: [PATCH 40/54] update --- .../Sample_ContainerAppAuthConfigCollection.cs | 8 ++++---- .../Sample_ContainerAppAuthConfigResource.cs | 6 +++--- .../Samples/Sample_ContainerAppCollection.cs | 12 ++++++------ ...onnectedEnvironmentCertificateCollection.cs | 8 ++++---- ...pConnectedEnvironmentCertificateResource.cs | 6 +++--- ...ntainerAppConnectedEnvironmentCollection.cs | 8 ++++---- ...nectedEnvironmentDaprComponentCollection.cs | 8 ++++---- ...onnectedEnvironmentDaprComponentResource.cs | 8 ++++---- ...ContainerAppConnectedEnvironmentResource.cs | 10 +++++----- ...AppConnectedEnvironmentStorageCollection.cs | 8 ++++---- ...erAppConnectedEnvironmentStorageResource.cs | 6 +++--- .../Sample_ContainerAppDetectorCollection.cs | 6 +++--- ...ple_ContainerAppDetectorPropertyResource.cs | 2 +- ...nerAppDetectorPropertyRevisionCollection.cs | 6 +++--- ...ainerAppDetectorPropertyRevisionResource.cs | 2 +- .../Sample_ContainerAppDetectorResource.cs | 2 +- .../Sample_ContainerAppJobCollection.cs | 10 +++++----- ...ample_ContainerAppJobExecutionCollection.cs | 6 +++--- .../Sample_ContainerAppJobExecutionResource.cs | 4 ++-- .../Samples/Sample_ContainerAppJobResource.cs | 14 +++++++------- ...ContainerAppManagedCertificateCollection.cs | 8 ++++---- ...e_ContainerAppManagedCertificateResource.cs | 6 +++--- ...pManagedEnvironmentCertificateCollection.cs | 8 ++++---- ...AppManagedEnvironmentCertificateResource.cs | 6 +++--- ...ContainerAppManagedEnvironmentCollection.cs | 10 +++++----- ...anagedEnvironmentDaprComponentCollection.cs | 14 +++++++------- ...pManagedEnvironmentDaprComponentResource.cs | 12 ++++++------ ...rAppManagedEnvironmentDetectorCollection.cs | 6 +++--- ...nerAppManagedEnvironmentDetectorResource.cs | 2 +- ...ironmentDetectorResourcePropertyResource.cs | 2 +- ...e_ContainerAppManagedEnvironmentResource.cs | 16 ++++++++-------- ...erAppManagedEnvironmentStorageCollection.cs | 8 ++++---- ...inerAppManagedEnvironmentStorageResource.cs | 6 +++--- .../Sample_ContainerAppReplicaCollection.cs | 6 +++--- .../Sample_ContainerAppReplicaResource.cs | 2 +- .../Samples/Sample_ContainerAppResource.cs | 18 +++++++++--------- .../Sample_ContainerAppRevisionCollection.cs | 6 +++--- .../Sample_ContainerAppRevisionResource.cs | 8 ++++---- ...mple_ContainerAppSourceControlCollection.cs | 8 ++++---- ...Sample_ContainerAppSourceControlResource.cs | 6 +++--- .../Sample_SubscriptionResourceExtensions.cs | 4 ++-- .../AvailableWorkloadProfilesRestOperations.cs | 2 +- .../BillingMetersRestOperations.cs | 2 +- .../CertificatesRestOperations.cs | 2 +- ...edEnvironmentsCertificatesRestOperations.cs | 2 +- ...EnvironmentsDaprComponentsRestOperations.cs | 2 +- .../ConnectedEnvironmentsRestOperations.cs | 2 +- ...nectedEnvironmentsStoragesRestOperations.cs | 2 +- .../ContainerAppsAPIRestOperations.cs | 2 +- .../ContainerAppsAuthConfigsRestOperations.cs | 2 +- .../ContainerAppsDiagnosticsRestOperations.cs | 2 +- .../ContainerAppsRestOperations.cs | 2 +- ...tainerAppsRevisionReplicasRestOperations.cs | 2 +- .../ContainerAppsRevisionsRestOperations.cs | 2 +- ...ontainerAppsSourceControlsRestOperations.cs | 2 +- .../DaprComponentsRestOperations.cs | 2 +- .../JobsExecutionsRestOperations.cs | 2 +- .../RestOperations/JobsRestOperations.cs | 2 +- .../ManagedCertificatesRestOperations.cs | 2 +- ...agedEnvironmentDiagnosticsRestOperations.cs | 2 +- ...gedEnvironmentsDiagnosticsRestOperations.cs | 2 +- .../ManagedEnvironmentsRestOperations.cs | 2 +- ...anagedEnvironmentsStoragesRestOperations.cs | 2 +- .../RestOperations/NamespacesRestOperations.cs | 2 +- .../src/autorest.md | 2 +- 65 files changed, 175 insertions(+), 175 deletions(-) diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppAuthConfigCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppAuthConfigCollection.cs index ad11499986de..b9382c10ee18 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppAuthConfigCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppAuthConfigCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppAuthConfigCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAuthConfigsByContainerApps() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/AuthConfigs_ListByContainer.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/AuthConfigs_ListByContainer.json // this example is just showing the usage of "ContainerAppsAuthConfigs_ListByContainerApp" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListAuthConfigsByContainerApps() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSAuthConfig() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/AuthConfigs_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/AuthConfigs_Get.json // this example is just showing the usage of "ContainerAppsAuthConfigs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetContainerAppSAuthConfig() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetContainerAppSAuthConfig() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/AuthConfigs_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/AuthConfigs_Get.json // this example is just showing the usage of "ContainerAppsAuthConfigs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetContainerAppSAuthConfig() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateContainerAppAuthConfig() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/AuthConfigs_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/AuthConfigs_CreateOrUpdate.json // this example is just showing the usage of "ContainerAppsAuthConfigs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppAuthConfigResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppAuthConfigResource.cs index 4d2f38307c3c..c4dabfa0e625 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppAuthConfigResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppAuthConfigResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppAuthConfigResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSAuthConfig() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/AuthConfigs_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/AuthConfigs_Get.json // this example is just showing the usage of "ContainerAppsAuthConfigs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetContainerAppSAuthConfig() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateContainerAppAuthConfig() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/AuthConfigs_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/AuthConfigs_CreateOrUpdate.json // this example is just showing the usage of "ContainerAppsAuthConfigs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -110,7 +110,7 @@ public async Task Update_CreateOrUpdateContainerAppAuthConfig() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteContainerAppAuthConfig() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/AuthConfigs_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/AuthConfigs_Delete.json // this example is just showing the usage of "ContainerAppsAuthConfigs_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppCollection.cs index a80ec204fef0..b4e578bbfdef 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_ContainerAppCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListContainerAppsByResourceGroup() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_ListByResourceGroup.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ContainerApps_ListByResourceGroup.json // this example is just showing the usage of "ContainerApps_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListContainerAppsByResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerApp() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ContainerApps_Get.json // this example is just showing the usage of "ContainerApps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Get_GetContainerApp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetContainerApp() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ContainerApps_Get.json // this example is just showing the usage of "ContainerApps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -124,7 +124,7 @@ public async Task Exists_GetContainerApp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateContainerApp() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ContainerApps_CreateOrUpdate.json // this example is just showing the usage of "ContainerApps_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -314,7 +314,7 @@ public async Task CreateOrUpdate_CreateOrUpdateContainerApp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateManagedByApp() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_ManagedBy_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ContainerApps_ManagedBy_CreateOrUpdate.json // this example is just showing the usage of "ContainerApps_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -412,7 +412,7 @@ public async Task CreateOrUpdate_CreateOrUpdateManagedByApp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateTcpApp() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_TcpApp_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ContainerApps_TcpApp_CreateOrUpdate.json // this example is just showing the usage of "ContainerApps_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCertificateCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCertificateCollection.cs index b8a4375a79db..886d675c8f58 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCertificateCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCertificateCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppConnectedEnvironmentCertificateCollectio [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListCertificatesByConnectedEnvironment() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsCertificates_ListByConnectedEnvironment.json // this example is just showing the usage of "ConnectedEnvironmentsCertificates_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListCertificatesByConnectedEnvironment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsCertificate_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsCertificate_Get.json // this example is just showing the usage of "ConnectedEnvironmentsCertificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsCertificate_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsCertificate_Get.json // this example is just showing the usage of "ConnectedEnvironmentsCertificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsCertificate_CreateOrUpdate.json // this example is just showing the usage of "ConnectedEnvironmentsCertificates_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCertificateResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCertificateResource.cs index c4a41e7a0ea3..8da57d8ba09e 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCertificateResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCertificateResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppConnectedEnvironmentCertificateResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsCertificate_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsCertificate_Get.json // this example is just showing the usage of "ConnectedEnvironmentsCertificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsCertificate_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsCertificate_Delete.json // this example is just showing the usage of "ConnectedEnvironmentsCertificates_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Delete_DeleteCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PatchCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsCertificates_Patch.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsCertificates_Patch.json // this example is just showing the usage of "ConnectedEnvironmentsCertificates_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCollection.cs index 92bbe763a2cd..efafbe23c2f6 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentCollection.cs @@ -25,7 +25,7 @@ public partial class Sample_ContainerAppConnectedEnvironmentCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListEnvironmentsByResourceGroup() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironments_ListByResourceGroup.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironments_ListByResourceGroup.json // this example is just showing the usage of "ConnectedEnvironments_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task GetAll_ListEnvironmentsByResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetConnectedEnvironmentByConnectedEnvironmentName() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironments_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironments_Get.json // this example is just showing the usage of "ConnectedEnvironments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetConnectedEnvironmentByConnectedEnvironmentName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetConnectedEnvironmentByConnectedEnvironmentName() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironments_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironments_Get.json // this example is just showing the usage of "ConnectedEnvironments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task Exists_GetConnectedEnvironmentByConnectedEnvironmentName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateKubeEnvironments() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironments_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironments_CreateOrUpdate.json // this example is just showing the usage of "ConnectedEnvironments_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentDaprComponentCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentDaprComponentCollection.cs index 6a7c852ba939..9d6ee8a55d0e 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentDaprComponentCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentDaprComponentCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppConnectedEnvironmentDaprComponentCollect [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListDaprComponents() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsDaprComponents_List.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsDaprComponents_List.json // this example is just showing the usage of "ConnectedEnvironmentsDaprComponents_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListDaprComponents() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDaprComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsDaprComponents_Get.json // this example is just showing the usage of "ConnectedEnvironmentsDaprComponents_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetDaprComponent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetDaprComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsDaprComponents_Get.json // this example is just showing the usage of "ConnectedEnvironmentsDaprComponents_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetDaprComponent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateDaprComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json // this example is just showing the usage of "ConnectedEnvironmentsDaprComponents_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentDaprComponentResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentDaprComponentResource.cs index c2c676cb8b10..fb7989079d96 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentDaprComponentResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentDaprComponentResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppConnectedEnvironmentDaprComponentResourc [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDaprComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsDaprComponents_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsDaprComponents_Get.json // this example is just showing the usage of "ConnectedEnvironmentsDaprComponents_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetDaprComponent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateDaprComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsDaprComponents_CreateOrUpdate.json // this example is just showing the usage of "ConnectedEnvironmentsDaprComponents_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task Update_CreateOrUpdateDaprComponent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteDaprComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsDaprComponents_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsDaprComponents_Delete.json // this example is just showing the usage of "ConnectedEnvironmentsDaprComponents_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -155,7 +155,7 @@ public async Task Delete_DeleteDaprComponent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSecrets_ListContainerAppsSecrets() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsDaprComponents_ListSecrets.json // this example is just showing the usage of "ConnectedEnvironmentsDaprComponents_ListSecrets" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentResource.cs index 6f40af16aca8..c269af1b8d0b 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentResource.cs @@ -24,7 +24,7 @@ public partial class Sample_ContainerAppConnectedEnvironmentResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetContainerAppConnectedEnvironments_ListConnectedEnvironmentsBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironments_ListBySubscription.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironments_ListBySubscription.json // this example is just showing the usage of "ConnectedEnvironments_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetContainerAppConnectedEnvironments_ListConnectedEnvironments [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetConnectedEnvironmentByConnectedEnvironmentName() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironments_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironments_Get.json // this example is just showing the usage of "ConnectedEnvironments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Get_GetConnectedEnvironmentByConnectedEnvironmentName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteConnectedEnvironmentByConnectedEnvironmentName() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironments_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironments_Delete.json // this example is just showing the usage of "ConnectedEnvironments_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Delete_DeleteConnectedEnvironmentByConnectedEnvironmentName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PatchManagedEnvironment() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironments_Patch.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironments_Patch.json // this example is just showing the usage of "ConnectedEnvironments_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -145,7 +145,7 @@ public async Task Update_PatchManagedEnvironment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckNameAvailability_CertificatesCheckNameAvailability() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsCertificates_CheckNameAvailability.json // this example is just showing the usage of "ConnectedEnvironments_CheckNameAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentStorageCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentStorageCollection.cs index f8c2de92f06d..3cf28a5db5d6 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentStorageCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentStorageCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppConnectedEnvironmentStorageCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListEnvironmentsStoragesBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsStorages_List.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsStorages_List.json // this example is just showing the usage of "ConnectedEnvironmentsStorages_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListEnvironmentsStoragesBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAEnvironmentsStoragePropertiesBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsStorages_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsStorages_Get.json // this example is just showing the usage of "ConnectedEnvironmentsStorages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetAEnvironmentsStoragePropertiesBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAEnvironmentsStoragePropertiesBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsStorages_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsStorages_Get.json // this example is just showing the usage of "ConnectedEnvironmentsStorages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetAEnvironmentsStoragePropertiesBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateEnvironmentsStorage() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json // this example is just showing the usage of "ConnectedEnvironmentsStorages_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentStorageResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentStorageResource.cs index 9f338852caaf..3a48d0e22ca9 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentStorageResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppConnectedEnvironmentStorageResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppConnectedEnvironmentStorageResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAEnvironmentsStoragePropertiesBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsStorages_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsStorages_Get.json // this example is just showing the usage of "ConnectedEnvironmentsStorages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetAEnvironmentsStoragePropertiesBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateEnvironmentsStorage() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsStorages_CreateOrUpdate.json // this example is just showing the usage of "ConnectedEnvironmentsStorages_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Update_CreateOrUpdateEnvironmentsStorage() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ListEnvironmentsStoragesBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ConnectedEnvironmentsStorages_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ConnectedEnvironmentsStorages_Delete.json // this example is just showing the usage of "ConnectedEnvironmentsStorages_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorCollection.cs index eb3b545b4a02..de09c39be0da 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppDetectorCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetTheListOfAvailableDiagnosticsForAGivenContainerApp() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerAppsDiagnostics_List.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ContainerAppsDiagnostics_List.json // this example is just showing the usage of "ContainerAppsDiagnostics_ListDetectors" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task GetAll_GetTheListOfAvailableDiagnosticsForAGivenContainerApp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSDiagnosticsInfo() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerAppsDiagnostics_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ContainerAppsDiagnostics_Get.json // this example is just showing the usage of "ContainerAppsDiagnostics_GetDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_GetContainerAppSDiagnosticsInfo() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetContainerAppSDiagnosticsInfo() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerAppsDiagnostics_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ContainerAppsDiagnostics_Get.json // this example is just showing the usage of "ContainerAppsDiagnostics_GetDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyResource.cs index dc6116098a6e..8f20b0b1be2e 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppDetectorPropertyResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerApp() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ContainerApps_Get.json // this example is just showing the usage of "ContainerAppsDiagnostics_GetRoot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyRevisionCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyRevisionCollection.cs index dcf360274326..75cdd2c94195 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyRevisionCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyRevisionCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppDetectorPropertyRevisionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListContainerAppSRevisions() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Revisions_List.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Revisions_List.json // this example is just showing the usage of "ContainerAppsDiagnostics_ListRevisions" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task GetAll_ListContainerAppSRevisions() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSRevision() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Revisions_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Revisions_Get.json // this example is just showing the usage of "ContainerAppsDiagnostics_GetRevision" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_GetContainerAppSRevision() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetContainerAppSRevision() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Revisions_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Revisions_Get.json // this example is just showing the usage of "ContainerAppsDiagnostics_GetRevision" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyRevisionResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyRevisionResource.cs index 3e960813e9bf..48466d20e449 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyRevisionResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorPropertyRevisionResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppDetectorPropertyRevisionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSRevision() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Revisions_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Revisions_Get.json // this example is just showing the usage of "ContainerAppsDiagnostics_GetRevision" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorResource.cs index 04939b04c796..03618b0a53b2 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppDetectorResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppDetectorResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSDiagnosticsInfo() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerAppsDiagnostics_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ContainerAppsDiagnostics_Get.json // this example is just showing the usage of "ContainerAppsDiagnostics_GetDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobCollection.cs index 3dd1373bef06..b0d01f5fc161 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobCollection.cs @@ -25,7 +25,7 @@ public partial class Sample_ContainerAppJobCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListContainerAppsJobsByResourceGroup() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Jobs_ListByResourceGroup.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Jobs_ListByResourceGroup.json // this example is just showing the usage of "Jobs_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -61,7 +61,7 @@ public async Task GetAll_ListContainerAppsJobsByResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppsJob() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Job_Get.json // this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetContainerAppsJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetContainerAppsJob() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Job_Get.json // this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task Exists_GetContainerAppsJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateContainerAppsJob() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_CreateorUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Job_CreateorUpdate.json // this example is just showing the usage of "Jobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -222,7 +222,7 @@ public async Task CreateOrUpdate_CreateOrUpdateContainerAppsJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateContainerAppsJobWithEventDrivenTrigger() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_CreateorUpdate_EventTrigger.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Job_CreateorUpdate_EventTrigger.json // this example is just showing the usage of "Jobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobExecutionCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobExecutionCollection.cs index 801362794003..be9747748fbf 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobExecutionCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobExecutionCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppJobExecutionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetAContainerAppsJobExecutions() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Executions_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Job_Executions_Get.json // this example is just showing the usage of "JobsExecutions_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task GetAll_GetAContainerAppsJobExecutions() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetASingleJobExecution() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Execution_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Job_Execution_Get.json // this example is just showing the usage of "JobExecution" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_GetASingleJobExecution() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetASingleJobExecution() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Execution_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Job_Execution_Get.json // this example is just showing the usage of "JobExecution" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobExecutionResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobExecutionResource.cs index 8d915560d2f7..0452dd5efdb0 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobExecutionResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobExecutionResource.cs @@ -22,7 +22,7 @@ public partial class Sample_ContainerAppJobExecutionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StopExecutionJob_TerminateAContainerAppsJob() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Stop_Execution.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Job_Stop_Execution.json // this example is just showing the usage of "Jobs_StopExecution" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task StopExecutionJob_TerminateAContainerAppsJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetASingleJobExecution() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Execution_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Job_Execution_Get.json // this example is just showing the usage of "JobExecution" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobResource.cs index f1a1896549b1..9a564a209f09 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobResource.cs @@ -24,7 +24,7 @@ public partial class Sample_ContainerAppJobResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetContainerAppJobs_ListContainerAppsJobsBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Jobs_ListBySubscription.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Jobs_ListBySubscription.json // this example is just showing the usage of "Jobs_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetContainerAppJobs_ListContainerAppsJobsBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppsJob() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Job_Get.json // this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Get_GetContainerAppsJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteContainerAppsJob() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Job_Delete.json // this example is just showing the usage of "Jobs_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Delete_DeleteContainerAppsJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PatchContainerAppsJob() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Patch.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Job_Patch.json // this example is just showing the usage of "Jobs_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -210,7 +210,7 @@ public async Task Update_PatchContainerAppsJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Start_RunAContainerAppsJob() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Start.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Job_Start.json // this example is just showing the usage of "Jobs_Start" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -275,7 +275,7 @@ public async Task Start_RunAContainerAppsJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task StopMultipleExecutions_TerminateMultipleContainerAppsJob() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_Stop_Multiple.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Job_Stop_Multiple.json // this example is just showing the usage of "Jobs_StopMultipleExecutions" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -303,7 +303,7 @@ public async Task StopMultipleExecutions_TerminateMultipleContainerAppsJob() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSecrets_ListContainerAppsJobSecrets() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Job_ListSecrets.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Job_ListSecrets.json // this example is just showing the usage of "Jobs_ListSecrets" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedCertificateCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedCertificateCollection.cs index 84eedc3aa1cc..1adc45fda96a 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedCertificateCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedCertificateCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppManagedCertificateCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedCertificate_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedCertificate_Get.json // this example is just showing the usage of "ManagedCertificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedCertificate_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedCertificate_Get.json // this example is just showing the usage of "ManagedCertificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_GetCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedCertificate_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedCertificate_CreateOrUpdate.json // this example is just showing the usage of "ManagedCertificates_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -133,7 +133,7 @@ public async Task CreateOrUpdate_CreateOrUpdateCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListManagedCertificatesByManagedEnvironment() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedCertificates_ListByManagedEnvironment.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedCertificates_ListByManagedEnvironment.json // this example is just showing the usage of "ManagedCertificates_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedCertificateResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedCertificateResource.cs index f40d99c11559..c1ac14fa5097 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedCertificateResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedCertificateResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppManagedCertificateResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedCertificate_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedCertificate_Get.json // this example is just showing the usage of "ManagedCertificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedCertificate_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedCertificate_Delete.json // this example is just showing the usage of "ManagedCertificates_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Delete_DeleteCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PatchManagedCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedCertificates_Patch.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedCertificates_Patch.json // this example is just showing the usage of "ManagedCertificates_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCertificateCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCertificateCollection.cs index 6703b34903af..89d20ae6b30a 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCertificateCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCertificateCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppManagedEnvironmentCertificateCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListCertificatesByManagedEnvironment() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Certificates_ListByManagedEnvironment.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Certificates_ListByManagedEnvironment.json // this example is just showing the usage of "Certificates_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListCertificatesByManagedEnvironment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Certificate_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Certificate_Get.json // this example is just showing the usage of "Certificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Certificate_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Certificate_Get.json // this example is just showing the usage of "Certificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Certificate_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Certificate_CreateOrUpdate.json // this example is just showing the usage of "Certificates_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCertificateResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCertificateResource.cs index 671705cbb03c..06b3a1543919 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCertificateResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCertificateResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppManagedEnvironmentCertificateResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Certificate_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Certificate_Get.json // this example is just showing the usage of "Certificates_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Certificate_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Certificate_Delete.json // this example is just showing the usage of "Certificates_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Delete_DeleteCertificate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PatchCertificate() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Certificates_Patch.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Certificates_Patch.json // this example is just showing the usage of "Certificates_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCollection.cs index 4a5455aeccf8..3016c6a594e7 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentCollection.cs @@ -24,7 +24,7 @@ public partial class Sample_ContainerAppManagedEnvironmentCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListEnvironmentsByResourceGroup() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironments_ListByResourceGroup.json // this example is just showing the usage of "ManagedEnvironments_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListEnvironmentsByResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetEnvironmentsByName() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironments_Get.json // this example is just showing the usage of "ManagedEnvironments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Get_GetEnvironmentsByName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetEnvironmentsByName() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironments_Get.json // this example is just showing the usage of "ManagedEnvironments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -124,7 +124,7 @@ public async Task Exists_GetEnvironmentsByName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateEnvironmentWithCustomInfrastructureResourceGroup() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironments_CustomInfrastructureResourceGroup_Create.json // this example is just showing the usage of "ManagedEnvironments_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -199,7 +199,7 @@ public async Task CreateOrUpdate_CreateEnvironmentWithCustomInfrastructureResour [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateEnvironments() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironments_CreateOrUpdate.json // this example is just showing the usage of "ManagedEnvironments_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDaprComponentCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDaprComponentCollection.cs index 3b8f880d1915..0ab0e5f02854 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDaprComponentCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDaprComponentCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppManagedEnvironmentDaprComponentCollectio [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListDaprComponents() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_List.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/DaprComponents_List.json // this example is just showing the usage of "DaprComponents_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListDaprComponents() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDaprComponentWithSecretStoreComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_Get_SecretStoreComponent.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/DaprComponents_Get_SecretStoreComponent.json // this example is just showing the usage of "DaprComponents_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetDaprComponentWithSecretStoreComponent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetDaprComponentWithSecretStoreComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_Get_SecretStoreComponent.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/DaprComponents_Get_SecretStoreComponent.json // this example is just showing the usage of "DaprComponents_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetDaprComponentWithSecretStoreComponent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDaprComponentWithSecrets() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_Get_Secrets.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/DaprComponents_Get_Secrets.json // this example is just showing the usage of "DaprComponents_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -161,7 +161,7 @@ public async Task Get_GetDaprComponentWithSecrets() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetDaprComponentWithSecrets() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_Get_Secrets.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/DaprComponents_Get_Secrets.json // this example is just showing the usage of "DaprComponents_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -192,7 +192,7 @@ public async Task Exists_GetDaprComponentWithSecrets() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateDaprComponentWithSecretStoreComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json // this example is just showing the usage of "DaprComponents_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -260,7 +260,7 @@ public async Task CreateOrUpdate_CreateOrUpdateDaprComponentWithSecretStoreCompo [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateDaprComponentWithSecrets() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_CreateOrUpdate_Secrets.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/DaprComponents_CreateOrUpdate_Secrets.json // this example is just showing the usage of "DaprComponents_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDaprComponentResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDaprComponentResource.cs index 3755beac170b..b630c9f3e332 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDaprComponentResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDaprComponentResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppManagedEnvironmentDaprComponentResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDaprComponentWithSecretStoreComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_Get_SecretStoreComponent.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/DaprComponents_Get_SecretStoreComponent.json // this example is just showing the usage of "DaprComponents_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetDaprComponentWithSecretStoreComponent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDaprComponentWithSecrets() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_Get_Secrets.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/DaprComponents_Get_Secrets.json // this example is just showing the usage of "DaprComponents_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Get_GetDaprComponentWithSecrets() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateDaprComponentWithSecretStoreComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/DaprComponents_CreateOrUpdate_SecretStoreComponent.json // this example is just showing the usage of "DaprComponents_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -152,7 +152,7 @@ public async Task Update_CreateOrUpdateDaprComponentWithSecretStoreComponent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateDaprComponentWithSecrets() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_CreateOrUpdate_Secrets.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/DaprComponents_CreateOrUpdate_Secrets.json // this example is just showing the usage of "DaprComponents_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -224,7 +224,7 @@ public async Task Update_CreateOrUpdateDaprComponentWithSecrets() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteDaprComponent() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/DaprComponents_Delete.json // this example is just showing the usage of "DaprComponents_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -252,7 +252,7 @@ public async Task Delete_DeleteDaprComponent() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSecrets_ListContainerAppsSecrets() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/DaprComponents_ListSecrets.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/DaprComponents_ListSecrets.json // this example is just showing the usage of "DaprComponents_ListSecrets" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorCollection.cs index 3d6f80cbf102..c73bb72a7ca1 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppManagedEnvironmentDetectorCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetTheListOfAvailableDiagnosticDataForAManagedEnvironments() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironmentDiagnostics_List.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironmentDiagnostics_List.json // this example is just showing the usage of "ManagedEnvironmentDiagnostics_ListDetectors" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task GetAll_GetTheListOfAvailableDiagnosticDataForAManagedEnvironme [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDiagnosticDataForAManagedEnvironments() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironmentDiagnostics_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironmentDiagnostics_Get.json // this example is just showing the usage of "ManagedEnvironmentDiagnostics_GetDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_GetDiagnosticDataForAManagedEnvironments() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetDiagnosticDataForAManagedEnvironments() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironmentDiagnostics_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironmentDiagnostics_Get.json // this example is just showing the usage of "ManagedEnvironmentDiagnostics_GetDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorResource.cs index e859a5acca05..34045db681fd 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppManagedEnvironmentDetectorResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDiagnosticDataForAManagedEnvironments() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironmentDiagnostics_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironmentDiagnostics_Get.json // this example is just showing the usage of "ManagedEnvironmentDiagnostics_GetDetector" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorResourcePropertyResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorResourcePropertyResource.cs index e02c16f0374d..397b42d54e39 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorResourcePropertyResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentDetectorResourcePropertyResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppManagedEnvironmentDetectorResourceProper [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetEnvironmentsByName() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironments_Get.json // this example is just showing the usage of "ManagedEnvironmentsDiagnostics_GetRoot" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentResource.cs index 8e420fe9eca1..2b492ec5021f 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentResource.cs @@ -24,7 +24,7 @@ public partial class Sample_ContainerAppManagedEnvironmentResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetContainerAppManagedEnvironments_ListEnvironmentsBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_ListBySubscription.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironments_ListBySubscription.json // this example is just showing the usage of "ManagedEnvironments_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetContainerAppManagedEnvironments_ListEnvironmentsBySubscript [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetEnvironmentsByName() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironments_Get.json // this example is just showing the usage of "ManagedEnvironments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Get_GetEnvironmentsByName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteEnvironmentByName() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironments_Delete.json // this example is just showing the usage of "ManagedEnvironments_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Delete_DeleteEnvironmentByName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PatchManagedEnvironment() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_Patch.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironments_Patch.json // this example is just showing the usage of "ManagedEnvironments_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -154,7 +154,7 @@ public async Task Update_PatchManagedEnvironment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAuthToken_GetManagedEnvironmentAuthToken() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_GetAuthToken.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironments_GetAuthToken.json // this example is just showing the usage of "ManagedEnvironments_GetAuthToken" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -181,7 +181,7 @@ public async Task GetAuthToken_GetManagedEnvironmentAuthToken() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetWorkloadProfileStates_ListEnvironmentsBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironments_ListWorkloadProfileStates.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironments_ListWorkloadProfileStates.json // this example is just showing the usage of "ManagedEnvironments_ListWorkloadProfileStates" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -211,7 +211,7 @@ public async Task GetWorkloadProfileStates_ListEnvironmentsBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckContainerAppNameAvailability_CertificatesCheckNameAvailability() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Certificates_CheckNameAvailability.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Certificates_CheckNameAvailability.json // this example is just showing the usage of "Namespaces_CheckNameAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -243,7 +243,7 @@ public async Task CheckContainerAppNameAvailability_CertificatesCheckNameAvailab [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckContainerAppNameAvailability_ContainerAppsCheckNameAvailability() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_CheckNameAvailability.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ContainerApps_CheckNameAvailability.json // this example is just showing the usage of "Namespaces_CheckNameAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentStorageCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentStorageCollection.cs index e22067458d17..870e91a0245e 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentStorageCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentStorageCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppManagedEnvironmentStorageCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListEnvironmentsStoragesBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironmentsStorages_List.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironmentsStorages_List.json // this example is just showing the usage of "ManagedEnvironmentsStorages_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListEnvironmentsStoragesBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAEnvironmentsStoragePropertiesBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironmentsStorages_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironmentsStorages_Get.json // this example is just showing the usage of "ManagedEnvironmentsStorages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetAEnvironmentsStoragePropertiesBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAEnvironmentsStoragePropertiesBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironmentsStorages_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironmentsStorages_Get.json // this example is just showing the usage of "ManagedEnvironmentsStorages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetAEnvironmentsStoragePropertiesBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateEnvironmentsStorage() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json // this example is just showing the usage of "ManagedEnvironmentsStorages_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentStorageResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentStorageResource.cs index 52ae63a108dd..1146c62f6b5d 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentStorageResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppManagedEnvironmentStorageResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppManagedEnvironmentStorageResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAEnvironmentsStoragePropertiesBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironmentsStorages_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironmentsStorages_Get.json // this example is just showing the usage of "ManagedEnvironmentsStorages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetAEnvironmentsStoragePropertiesBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateEnvironmentsStorage() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironmentsStorages_CreateOrUpdate.json // this example is just showing the usage of "ManagedEnvironmentsStorages_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Update_CreateOrUpdateEnvironmentsStorage() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ListEnvironmentsStoragesBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ManagedEnvironmentsStorages_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ManagedEnvironmentsStorages_Delete.json // this example is just showing the usage of "ManagedEnvironmentsStorages_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppReplicaCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppReplicaCollection.cs index 76467108c6be..c7738b8846da 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppReplicaCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppReplicaCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppReplicaCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSRevisionReplica() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Replicas_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Replicas_Get.json // this example is just showing the usage of "ContainerAppsRevisionReplicas_GetReplica" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task Get_GetContainerAppSRevisionReplica() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetContainerAppSRevisionReplica() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Replicas_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Replicas_Get.json // this example is just showing the usage of "ContainerAppsRevisionReplicas_GetReplica" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_GetContainerAppSRevisionReplica() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListContainerAppSReplicas() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Replicas_List.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Replicas_List.json // this example is just showing the usage of "ContainerAppsRevisionReplicas_ListReplicas" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppReplicaResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppReplicaResource.cs index 496a1983fc48..f67ebcde734b 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppReplicaResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppReplicaResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppReplicaResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSRevisionReplica() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Replicas_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Replicas_Get.json // this example is just showing the usage of "ContainerAppsRevisionReplicas_GetReplica" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppResource.cs index dd45409601d9..f314501b27c6 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppResource.cs @@ -24,7 +24,7 @@ public partial class Sample_ContainerAppResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetContainerApps_ListContainerAppsBySubscription() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_ListBySubscription.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ContainerApps_ListBySubscription.json // this example is just showing the usage of "ContainerApps_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetContainerApps_ListContainerAppsBySubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerApp() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ContainerApps_Get.json // this example is just showing the usage of "ContainerApps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task Get_GetContainerApp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteContainerApp() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ContainerApps_Delete.json // this example is just showing the usage of "ContainerApps_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Delete_DeleteContainerApp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PatchContainerApp() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Patch.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ContainerApps_Patch.json // this example is just showing the usage of "ContainerApps_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -275,7 +275,7 @@ public async Task Update_PatchContainerApp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetCustomHostNameAnalysis_AnalyzeCustomHostname() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_ListCustomHostNameAnalysis.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ContainerApps_ListCustomHostNameAnalysis.json // this example is just showing the usage of "ContainerApps_ListCustomHostNameAnalysis" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -303,7 +303,7 @@ public async Task GetCustomHostNameAnalysis_AnalyzeCustomHostname() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetSecrets_ListContainerAppsSecrets() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_ListSecrets.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ContainerApps_ListSecrets.json // this example is just showing the usage of "ContainerApps_ListSecrets" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -333,7 +333,7 @@ public async Task GetSecrets_ListContainerAppsSecrets() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAuthToken_GetContainerAppAuthToken() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_GetAuthToken.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ContainerApps_GetAuthToken.json // this example is just showing the usage of "ContainerApps_GetAuthToken" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -360,7 +360,7 @@ public async Task GetAuthToken_GetContainerAppAuthToken() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Start_StartContainerApp() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Start.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ContainerApps_Start.json // this example is just showing the usage of "ContainerApps_Start" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -392,7 +392,7 @@ public async Task Start_StartContainerApp() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Stop_StopContainerApp() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Stop.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/ContainerApps_Stop.json // this example is just showing the usage of "ContainerApps_Stop" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppRevisionCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppRevisionCollection.cs index 9e8fe6bb5aeb..bef303bada46 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppRevisionCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppRevisionCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppRevisionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListContainerAppSRevisions() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Revisions_List.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Revisions_List.json // this example is just showing the usage of "ContainerAppsRevisions_ListRevisions" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task GetAll_ListContainerAppSRevisions() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSRevision() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Revisions_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Revisions_Get.json // this example is just showing the usage of "ContainerAppsRevisions_GetRevision" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_GetContainerAppSRevision() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetContainerAppSRevision() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Revisions_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Revisions_Get.json // this example is just showing the usage of "ContainerAppsRevisions_GetRevision" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppRevisionResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppRevisionResource.cs index b31b2191d55b..1d07c331a130 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppRevisionResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppRevisionResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ContainerAppRevisionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSRevision() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Revisions_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Revisions_Get.json // this example is just showing the usage of "ContainerAppsRevisions_GetRevision" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetContainerAppSRevision() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ActivateRevision_ActivateContainerAppSRevision() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Revisions_Activate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Revisions_Activate.json // this example is just showing the usage of "ContainerAppsRevisions_ActivateRevision" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -81,7 +81,7 @@ public async Task ActivateRevision_ActivateContainerAppSRevision() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task DeactivateRevision_DeactivateContainerAppSRevision() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Revisions_Deactivate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Revisions_Deactivate.json // this example is just showing the usage of "ContainerAppsRevisions_DeactivateRevision" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -109,7 +109,7 @@ public async Task DeactivateRevision_DeactivateContainerAppSRevision() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task RestartRevision_RestartContainerAppSRevision() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/Revisions_Restart.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/Revisions_Restart.json // this example is just showing the usage of "ContainerAppsRevisions_RestartRevision" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppSourceControlCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppSourceControlCollection.cs index 62256763ba87..9a245e062d16 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppSourceControlCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppSourceControlCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppSourceControlCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAppSSourceControls() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/SourceControls_ListByContainer.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/SourceControls_ListByContainer.json // this example is just showing the usage of "ContainerAppsSourceControls_ListByContainerApp" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListAppSSourceControls() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSSourceControl() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/SourceControls_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/SourceControls_Get.json // this example is just showing the usage of "ContainerAppsSourceControls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetContainerAppSSourceControl() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetContainerAppSSourceControl() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/SourceControls_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/SourceControls_Get.json // this example is just showing the usage of "ContainerAppsSourceControls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetContainerAppSSourceControl() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateContainerAppSourceControl() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/SourceControls_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/SourceControls_CreateOrUpdate.json // this example is just showing the usage of "ContainerAppsSourceControls_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppSourceControlResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppSourceControlResource.cs index db53be0a0f21..a65a02b7717e 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppSourceControlResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppSourceControlResource.cs @@ -23,7 +23,7 @@ public partial class Sample_ContainerAppSourceControlResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetContainerAppSSourceControl() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/SourceControls_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/SourceControls_Get.json // this example is just showing the usage of "ContainerAppsSourceControls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetContainerAppSSourceControl() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateContainerAppSourceControl() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/SourceControls_CreateOrUpdate.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/SourceControls_CreateOrUpdate.json // this example is just showing the usage of "ContainerAppsSourceControls_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -112,7 +112,7 @@ public async Task Update_CreateOrUpdateContainerAppSourceControl() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteContainerAppSourceControl() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/SourceControls_Delete.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/SourceControls_Delete.json // this example is just showing the usage of "ContainerAppsSourceControls_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index ecaf5d59686d..4aa09c8d9a69 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -23,7 +23,7 @@ public partial class Sample_SubscriptionResourceExtensions [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableWorkloadProfiles_BillingMetersGet() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/AvailableWorkloadProfiles_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/AvailableWorkloadProfiles_Get.json // this example is just showing the usage of "AvailableWorkloadProfiles_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task GetAvailableWorkloadProfiles_BillingMetersGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetBillingMeters_BillingMetersGet() { - // Generated from example definition: specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/BillingMeters_Get.json + // Generated from example definition: specification/app/resource-manager/Microsoft.App/stable/2023-05-01/examples/BillingMeters_Get.json // this example is just showing the usage of "BillingMeters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/AvailableWorkloadProfilesRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/AvailableWorkloadProfilesRestOperations.cs index 67ff8d4817e5..c767f4eabd24 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/AvailableWorkloadProfilesRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/AvailableWorkloadProfilesRestOperations.cs @@ -33,7 +33,7 @@ public AvailableWorkloadProfilesRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/BillingMetersRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/BillingMetersRestOperations.cs index 3b3aea9b9fac..5a959d1ea51d 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/BillingMetersRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/BillingMetersRestOperations.cs @@ -33,7 +33,7 @@ public BillingMetersRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/CertificatesRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/CertificatesRestOperations.cs index d419639afbf0..e86971ec4a29 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/CertificatesRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/CertificatesRestOperations.cs @@ -33,7 +33,7 @@ public CertificatesRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsCertificatesRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsCertificatesRestOperations.cs index 34099e118dce..663ae2164d2b 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsCertificatesRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsCertificatesRestOperations.cs @@ -33,7 +33,7 @@ public ConnectedEnvironmentsCertificatesRestOperations(HttpPipeline pipeline, st { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsDaprComponentsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsDaprComponentsRestOperations.cs index 48f9a1ce3284..500be90c33bd 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsDaprComponentsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsDaprComponentsRestOperations.cs @@ -33,7 +33,7 @@ public ConnectedEnvironmentsDaprComponentsRestOperations(HttpPipeline pipeline, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsRestOperations.cs index 189f83f57a44..44986f2136ff 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsRestOperations.cs @@ -33,7 +33,7 @@ public ConnectedEnvironmentsRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsStoragesRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsStoragesRestOperations.cs index d32c7c5b1f87..930a7c8dd99d 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsStoragesRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ConnectedEnvironmentsStoragesRestOperations.cs @@ -33,7 +33,7 @@ public ConnectedEnvironmentsStoragesRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAPIRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAPIRestOperations.cs index 7d72eff8e164..6afc13fd10a6 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAPIRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAPIRestOperations.cs @@ -32,7 +32,7 @@ public ContainerAppsAPIRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAuthConfigsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAuthConfigsRestOperations.cs index 22ee79b725b8..82e501d5868d 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAuthConfigsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsAuthConfigsRestOperations.cs @@ -33,7 +33,7 @@ public ContainerAppsAuthConfigsRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsDiagnosticsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsDiagnosticsRestOperations.cs index 8768e4a1d67f..64a6577306e0 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsDiagnosticsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsDiagnosticsRestOperations.cs @@ -33,7 +33,7 @@ public ContainerAppsDiagnosticsRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRestOperations.cs index 5240ea014492..89b0b5b8abeb 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRestOperations.cs @@ -33,7 +33,7 @@ public ContainerAppsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionReplicasRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionReplicasRestOperations.cs index e186d1e560c7..74f1567616ad 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionReplicasRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionReplicasRestOperations.cs @@ -33,7 +33,7 @@ public ContainerAppsRevisionReplicasRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionsRestOperations.cs index 7714df3e6998..86b679184e5c 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsRevisionsRestOperations.cs @@ -33,7 +33,7 @@ public ContainerAppsRevisionsRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsSourceControlsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsSourceControlsRestOperations.cs index fd7bdf4d934a..d908cf817ede 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsSourceControlsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ContainerAppsSourceControlsRestOperations.cs @@ -33,7 +33,7 @@ public ContainerAppsSourceControlsRestOperations(HttpPipeline pipeline, string a { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/DaprComponentsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/DaprComponentsRestOperations.cs index 00d02306716f..4dc10ca5dafd 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/DaprComponentsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/DaprComponentsRestOperations.cs @@ -33,7 +33,7 @@ public DaprComponentsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsExecutionsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsExecutionsRestOperations.cs index 7fbe65a6a6e7..0c2ee61dd233 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsExecutionsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsExecutionsRestOperations.cs @@ -33,7 +33,7 @@ public JobsExecutionsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsRestOperations.cs index 99211dac946b..7e266b191f0b 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/JobsRestOperations.cs @@ -33,7 +33,7 @@ public JobsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedCertificatesRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedCertificatesRestOperations.cs index b494bc255af3..838cfe9e69bf 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedCertificatesRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedCertificatesRestOperations.cs @@ -33,7 +33,7 @@ public ManagedCertificatesRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentDiagnosticsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentDiagnosticsRestOperations.cs index c4b5ee69d960..f53018d43bb7 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentDiagnosticsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentDiagnosticsRestOperations.cs @@ -33,7 +33,7 @@ public ManagedEnvironmentDiagnosticsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsDiagnosticsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsDiagnosticsRestOperations.cs index 6ed221267ac2..db9d98ccfee8 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsDiagnosticsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsDiagnosticsRestOperations.cs @@ -32,7 +32,7 @@ public ManagedEnvironmentsDiagnosticsRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsRestOperations.cs index a48884d28955..f9a5f61153b2 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsRestOperations.cs @@ -33,7 +33,7 @@ public ManagedEnvironmentsRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsStoragesRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsStoragesRestOperations.cs index be01f0d89a5b..a2cc6236cca5 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsStoragesRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/ManagedEnvironmentsStoragesRestOperations.cs @@ -33,7 +33,7 @@ public ManagedEnvironmentsStoragesRestOperations(HttpPipeline pipeline, string a { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/NamespacesRestOperations.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/NamespacesRestOperations.cs index 0acdb60f6798..a1ea94abd4b3 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/NamespacesRestOperations.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/RestOperations/NamespacesRestOperations.cs @@ -33,7 +33,7 @@ public NamespacesRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-04-01-preview"; + _apiVersion = apiVersion ?? "2023-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/autorest.md b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/autorest.md index 9a40873f4006..5e7147907d27 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/autorest.md +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/autorest.md @@ -7,7 +7,7 @@ azure-arm: true csharp: true library-name: AppContainers namespace: Azure.ResourceManager.AppContainers -require: https://github.com/Azure/azure-rest-api-specs/blob/6b0792baeaa1e26ebb9fe61dfc77297fc95325af/specification/app/resource-manager/readme.md +require: https://github.com/Azure/azure-rest-api-specs/blob/68332bd340f87049bddfa3bd5c4c700568a7a08c/specification/app/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true From e8f203346cbc8135aac9ce250853fd4cbed9d75d Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Fri, 4 Aug 2023 03:19:01 -0700 Subject: [PATCH 41/54] Update AutoRest C# version to 3.0.0-beta.20230804.1 (#38029) Co-authored-by: Arcturus Zhang --- eng/Packages.Data.props | 2 +- eng/emitter-package.json | 2 +- .../Custom/Extensions/FlexibleServersExtensions.cs | 14 ++++++++++++++ .../src/Custom/Extensions/NgfwExtensions.cs | 14 ++++++++++++++ .../Custom/Extensions/FlexibleServersExtensions.cs | 14 ++++++++++++++ .../src/Resources/Custom/Models/ResourcesSku.cs | 14 ++++++++++++++ 6 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Custom/Extensions/FlexibleServersExtensions.cs create mode 100644 sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Custom/Extensions/NgfwExtensions.cs create mode 100644 sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Custom/Extensions/FlexibleServersExtensions.cs create mode 100644 sdk/resourcemanager/Azure.ResourceManager/src/Resources/Custom/Models/ResourcesSku.cs diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 50796941cc33..525fad0f892f 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -174,7 +174,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 469365b81783..6ddd13c54595 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,6 +1,6 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20230803.1" + "@azure-tools/typespec-csharp": "0.2.0-beta.20230804.1" } } diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Custom/Extensions/FlexibleServersExtensions.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Custom/Extensions/FlexibleServersExtensions.cs new file mode 100644 index 000000000000..0bd12f3f4edb --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Custom/Extensions/FlexibleServersExtensions.cs @@ -0,0 +1,14 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using Azure.Core; + +namespace Azure.ResourceManager.MySql.FlexibleServers +{ + [CodeGenType("MySqlFlexibleServersExtensions")] + public static partial class FlexibleServersExtensions + { + } +} diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Custom/Extensions/NgfwExtensions.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Custom/Extensions/NgfwExtensions.cs new file mode 100644 index 000000000000..ee0e3adbde02 --- /dev/null +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Custom/Extensions/NgfwExtensions.cs @@ -0,0 +1,14 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using Azure.Core; + +namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw +{ + [CodeGenType("PaloAltoNetworksNgfwExtensions")] + public static partial class NgfwExtensions + { + } +} diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Custom/Extensions/FlexibleServersExtensions.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Custom/Extensions/FlexibleServersExtensions.cs new file mode 100644 index 000000000000..d1822c00116a --- /dev/null +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Custom/Extensions/FlexibleServersExtensions.cs @@ -0,0 +1,14 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using Azure.Core; + +namespace Azure.ResourceManager.PostgreSql.FlexibleServers +{ + [CodeGenType("PostgreSqlFlexibleServersExtensions")] + public static partial class FlexibleServersExtensions + { + } +} diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Custom/Models/ResourcesSku.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Custom/Models/ResourcesSku.cs new file mode 100644 index 000000000000..41b1f3e925c1 --- /dev/null +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Custom/Models/ResourcesSku.cs @@ -0,0 +1,14 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using Azure.Core; + +namespace Azure.ResourceManager.Resources.Models +{ + [CodeGenType("ResourceManagerSku")] + public partial class ResourcesSku + { + } +} From dc05fbcbbdc1e29212668b47cfbaa2d15d4af290 Mon Sep 17 00:00:00 2001 From: Juliehzl Date: Fri, 4 Aug 2023 19:49:01 +0800 Subject: [PATCH 42/54] add test --- .../Scenario/ContainerAppCollectionTests.cs | 119 ++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 sdk/containerapps/Azure.ResourceManager.AppContainers/tests/Scenario/ContainerAppCollectionTests.cs diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/tests/Scenario/ContainerAppCollectionTests.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/tests/Scenario/ContainerAppCollectionTests.cs new file mode 100644 index 000000000000..64250d52e5bc --- /dev/null +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/tests/Scenario/ContainerAppCollectionTests.cs @@ -0,0 +1,119 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Threading.Tasks; +using Azure.Core.TestFramework; +using Azure.Core; +using Azure.ResourceManager.Resources; +using NUnit.Framework; +using Azure.ResourceManager.AppContainers.Models; + +namespace Azure.ResourceManager.AppContainers.Tests +{ + public class ContainerAppCollectionTests: AppContainersManagementTestBase + { + public ContainerAppCollectionTests(bool isAsync) + : base(isAsync)//, RecordedTestMode.Record) + { + } + + [TestCase] + [RecordedTest] + public async Task CreateOrUpdate() + { + SubscriptionResource subscription = await Client.GetDefaultSubscriptionAsync(); + ResourceGroupResource rg = await CreateResourceGroup(subscription, "testRg", AzureLocation.WestUS); + string envName = Recording.GenerateAssetName("env"); + ContainerAppManagedEnvironmentData data = new ContainerAppManagedEnvironmentData(AzureLocation.WestUS) + { + WorkloadProfiles = + { + new ContainerAppWorkloadProfile("Consumption", "Consumption"), + new ContainerAppWorkloadProfile("gp1", "D4") + { + MinimumCount = 1, + MaximumCount = 3 + } + } + }; + + var containerAppManagedEnvironmentCollection = rg.GetContainerAppManagedEnvironments(); + var envResource = await containerAppManagedEnvironmentCollection.CreateOrUpdateAsync(WaitUntil.Completed, envName, data); + Assert.AreEqual(envName, envResource.Value.Data.Name); + + string resourceName = Recording.GenerateAssetName("resource"); + ContainerAppData appData = new ContainerAppData(AzureLocation.WestUS) + { + WorkloadProfileName = "gp1", + ManagedEnvironmentId = new ResourceIdentifier(envResource.Value.Data.Id), + Configuration = new ContainerAppConfiguration + { + Ingress = new ContainerAppIngressConfiguration + { + External = true, + TargetPort = 3000 + }, + }, + Template = new ContainerAppTemplate + { + Containers = + { + new ContainerAppContainer + { + Image = $"mcr.microsoft.com/k8se/quickstart-jobs:latest", + Name = "appcontainer", + Resources = new AppContainerResources + { + Cpu = 0.25, + Memory = "0.5Gi" + } + } + }, + Scale = new ContainerAppScale + { + MinReplicas = 1, + MaxReplicas = 5, + Rules = + { + new ContainerAppScaleRule + { + Name = "httpscale", + Custom = new ContainerAppCustomScaleRule + { + CustomScaleRuleType = "http", + Metadata = + { + { "concurrentRequests", "50" } + } + } + } + } + }, + } + }; + + // Create + var ContainerAppCollection = rg.GetContainerApps(); + var resource = await ContainerAppCollection.CreateOrUpdateAsync(WaitUntil.Completed, resourceName, appData); + Assert.AreEqual(resourceName, resource.Value.Data.Name); + + // Exists + var result = await ContainerAppCollection.ExistsAsync(resourceName); + Assert.IsTrue(result); + + // Get + var getResult = await ContainerAppCollection.GetAsync(resourceName); + Assert.AreEqual(resourceName, getResult.Value.Data.Name); + + // List + var listResult = await ContainerAppCollection.GetAllAsync().ToEnumerableAsync(); + Assert.IsNotEmpty(listResult); + Assert.AreEqual(listResult[0].Data.Name, resourceName); + + // Delete + await resource.Value.DeleteAsync(WaitUntil.Completed); + result = await ContainerAppCollection.ExistsAsync(resourceName); + Assert.IsFalse(result); + } + } +} From 2d24f5f4c40fcee0804ce6624a499cf4d36c6c65 Mon Sep 17 00:00:00 2001 From: Jesse Squire Date: Fri, 4 Aug 2023 15:06:50 -0400 Subject: [PATCH 43/54] Update AuthenticationEventMetadataTests.cs (#38038) Fixing a string that, while local only to the test instance, contains a secret that is causing security alerts. --- .../tests/Framework/AuthenticationEventMetadataTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/AuthenticationEventMetadataTests.cs b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/AuthenticationEventMetadataTests.cs index f0645e276048..217fb16fc211 100644 --- a/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/AuthenticationEventMetadataTests.cs +++ b/sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/tests/Framework/AuthenticationEventMetadataTests.cs @@ -15,11 +15,12 @@ public class AuthenticationEventMetadataTests { [Test] [TestCaseSource(nameof(TestScenarios))] + [Ignore("Test needs to be refactored to remove the secret, even though non-impactful.")] public void TestRequestCreateInstance(object testObject, string message, bool success, string exceptionMessage) { string payload = testObject.ToString(); AuthenticationEventMetadata eventMetadata = AuthenticationEventMetadataLoader.GetEventMetadata(payload); - HttpRequestMessage requestMessage = new HttpRequestMessage(HttpMethod.Post, $"http://localhost:7278/runtime/webhooks/customauthenticationextension?code=opVsbQul8-MsRuM9x6yVoghE2Xda5G-MeV_Ybv1MdEfuAzFuVtpEpg==&functionName=onTokenIssuanceStart"); + HttpRequestMessage requestMessage = new HttpRequestMessage(HttpMethod.Post,"<< REDACTED: FIX ME >>"); if (success == false) { From c54b343abb8097b52b4d9a9dd23fba1b6171677e Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Fri, 4 Aug 2023 12:57:42 -0700 Subject: [PATCH 44/54] Fix MessageLockLost event test (#38021) * Fix MessageLockLost event test * wrap in try/finally --- .../tests/Processor/ProcessorLiveTests.cs | 35 ++++++++++++++----- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Processor/ProcessorLiveTests.cs b/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Processor/ProcessorLiveTests.cs index 7d0de86c60b4..dca8fae14c7c 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Processor/ProcessorLiveTests.cs +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Processor/ProcessorLiveTests.cs @@ -1491,10 +1491,16 @@ async Task ProcessMessage(ProcessMessageEventArgs args) }; await args.CompleteMessageAsync(args.Message); await Task.Delay(lockDuration.Add(lockDuration)); - Assert.IsTrue(messageLockLostRaised); - Assert.IsTrue(args.MessageLockCancellationToken.IsCancellationRequested); - Assert.IsFalse(args.CancellationToken.IsCancellationRequested); - tcs.SetResult(true); + try + { + Assert.IsTrue(messageLockLostRaised); + Assert.IsTrue(args.MessageLockCancellationToken.IsCancellationRequested); + Assert.IsFalse(args.CancellationToken.IsCancellationRequested); + } + finally + { + tcs.SetResult(true); + } } processor.ProcessMessageAsync += ProcessMessage; processor.ProcessErrorAsync += ServiceBusTestUtilities.ExceptionHandler; @@ -1505,8 +1511,13 @@ async Task ProcessMessage(ProcessMessageEventArgs args) } } + /// + /// Because the message lock renewal occurs on the mgmt link, even when the connection drops, message lock renewal continues + /// successfully. This is in contrast to session messages where the lock renewal requires the session to be locked, + /// so when the connection drops, the session is lost and the lock renewal fails. + /// [Test] - public async Task MessageLockLostEventRaisedAfterConnectionDropped() + public async Task MessageLockLostEventNotRaisedAfterConnectionDropped() { var lockDuration = TimeSpan.FromSeconds(30); await using (var scope = await ServiceBusScope.CreateWithQueue(enablePartitioning: false, enableSession: false, lockDuration: lockDuration)) @@ -1534,10 +1545,16 @@ async Task ProcessMessage(ProcessMessageEventArgs args) }; SimulateNetworkFailure(client); await Task.Delay(lockDuration.Add(lockDuration)); - Assert.IsTrue(messageLockLostRaised); - Assert.IsTrue(args.MessageLockCancellationToken.IsCancellationRequested); - Assert.IsFalse(args.CancellationToken.IsCancellationRequested); - tcs.SetResult(true); + try + { + Assert.IsFalse(messageLockLostRaised); + Assert.IsFalse(args.MessageLockCancellationToken.IsCancellationRequested); + Assert.IsFalse(args.CancellationToken.IsCancellationRequested); + } + finally + { + tcs.SetResult(true); + } } processor.ProcessMessageAsync += ProcessMessage; processor.ProcessErrorAsync += ServiceBusTestUtilities.ExceptionHandler; From 7e1e046960094ce147a4e8a51d0b3bb096ec0a23 Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Fri, 4 Aug 2023 17:12:15 -0700 Subject: [PATCH 45/54] Don't close the receiver/processor when StopAsync is called (#38035) --- .../src/Listeners/ServiceBusListener.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/sdk/servicebus/Microsoft.Azure.WebJobs.Extensions.ServiceBus/src/Listeners/ServiceBusListener.cs b/sdk/servicebus/Microsoft.Azure.WebJobs.Extensions.ServiceBus/src/Listeners/ServiceBusListener.cs index 66a04bf0535b..da891766c114 100644 --- a/sdk/servicebus/Microsoft.Azure.WebJobs.Extensions.ServiceBus/src/Listeners/ServiceBusListener.cs +++ b/sdk/servicebus/Microsoft.Azure.WebJobs.Extensions.ServiceBus/src/Listeners/ServiceBusListener.cs @@ -233,11 +233,11 @@ public async Task StopAsync(CancellationToken cancellationToken) { if (_isSessionsEnabled) { - await _sessionMessageProcessor.Value.Processor.CloseAsync(cancellationToken).ConfigureAwait(false); + await _sessionMessageProcessor.Value.Processor.StopProcessingAsync(cancellationToken).ConfigureAwait(false); } else { - await _messageProcessor.Value.Processor.CloseAsync(cancellationToken).ConfigureAwait(false); + await _messageProcessor.Value.Processor.StopProcessingAsync(cancellationToken).ConfigureAwait(false); } } else @@ -254,8 +254,6 @@ public async Task StopAsync(CancellationToken cancellationToken) // Try to dispatch any already received messages. await DispatchRemainingMessages(_monitoringCycleReceiver, _monitoringCycleMessageActions, _monitoringCycleReceiveActions, cancellationToken).ConfigureAwait(false); - - await _batchReceiver.Value.CloseAsync(cancellationToken).ConfigureAwait(false); } Started = false; @@ -308,6 +306,13 @@ public void Dispose() #pragma warning restore AZC0102 // Do not use GetAwaiter().GetResult(). } + if (_sessionMessageProcessor.IsValueCreated) + { +#pragma warning disable AZC0102 // Do not use GetAwaiter().GetResult(). + _sessionMessageProcessor.Value.Processor.CloseAsync(CancellationToken.None).GetAwaiter().GetResult(); +#pragma warning restore AZC0102 // Do not use GetAwaiter().GetResult(). + } + if (_client.IsValueCreated) { #pragma warning disable AZC0102 // Do not use GetAwaiter().GetResult(). From 17d68f9b0f94cae1e2976523c03b88cc834f145a Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Sat, 5 Aug 2023 06:19:14 -0700 Subject: [PATCH 46/54] Enable Server Busy test (#38043) --- .../tests/Receiver/ReceiverLiveTests.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Receiver/ReceiverLiveTests.cs b/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Receiver/ReceiverLiveTests.cs index 936e3892a26d..f7ac8a53d48a 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Receiver/ReceiverLiveTests.cs +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Receiver/ReceiverLiveTests.cs @@ -495,7 +495,6 @@ public async Task CompleteMessages() } [Test] - [Ignore("Waiting for service fix for https://github.com/Azure/azure-sdk-for-net/issues/25275")] public async Task ServerBusyRespected() { await using (var scope = await ServiceBusScope.CreateWithQueue(enablePartitioning: false, enableSession: false)) From e7e1955d42eba2a7bcbdfb41b442e68d3162dac8 Mon Sep 17 00:00:00 2001 From: Sean McCullough <44180881+seanmcc-msft@users.noreply.github.com> Date: Mon, 7 Aug 2023 13:04:00 -0500 Subject: [PATCH 47/54] STG 90 Release Prep (#38059) --- sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md | 2 +- sdk/storage/Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md | 2 +- sdk/storage/Azure.Storage.Blobs/CHANGELOG.md | 2 +- sdk/storage/Azure.Storage.Common/CHANGELOG.md | 2 +- sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md | 2 +- sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md | 2 +- sdk/storage/Azure.Storage.Queues/CHANGELOG.md | 2 +- sdk/storage/platform-matrix-all-versions.json | 4 +++- 8 files changed, 10 insertions(+), 8 deletions(-) diff --git a/sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md b/sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md index b847b16fb0fb..406c31e30e3e 100644 --- a/sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Blobs.Batch/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 12.15.0-beta.1 (Unreleased) +## 12.15.0-beta.1 (2023-08-08) - Added support for service version 2023-05-03 and 2023-08-03. ## 12.14.0 (2023-07-11) diff --git a/sdk/storage/Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md b/sdk/storage/Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md index 92f4d37e7f83..50a6bf716624 100644 --- a/sdk/storage/Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Blobs.ChangeFeed/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 12.0.0-preview.37 (Unreleased) +## 12.0.0-preview.37 (2023-08-08) - Added support for service version 2023-05-03 and 2023-08-03. ## 12.0.0-preview.36 (2023-07-11) diff --git a/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md b/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md index ba6b5695a66e..e6bfc9a51791 100644 --- a/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 12.18.0-beta.1 (Unreleased) +## 12.18.0-beta.1 (2023-08-08) - Added support for service version 2023-05-03 and 2023-08-03. - Added RehydratePendingToCold value to ArchiveStatus enum. diff --git a/sdk/storage/Azure.Storage.Common/CHANGELOG.md b/sdk/storage/Azure.Storage.Common/CHANGELOG.md index 28fd9423e05b..082d261aaa67 100644 --- a/sdk/storage/Azure.Storage.Common/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Common/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 12.17.0-beta.1 (Unreleased) +## 12.17.0-beta.1 (2023-08-08) - This release contains bug fixes to improve quality. ## 12.16.0 (2023-07-11) diff --git a/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md b/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md index 1c17b1d87354..6c0dcfc4e756 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 12.16.0-beta.1 (Unreleased) +## 12.16.0-beta.1 (2023-08-08) - Added support for service version 2023-05-03 and 2023-08-03. - Added support for paginated directory delete when using AAD authentication. Note that this feature only applies to HNS storage accounts. diff --git a/sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md b/sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md index 331369a5af31..1c6845e297cc 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Files.Shares/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 12.16.0-beta.1 (Unreleased) +## 12.16.0-beta.1 (2023-08-08) - Added support for service version 2023-05-03 and 2023-08-03. ## 12.15.0 (2023-07-23) diff --git a/sdk/storage/Azure.Storage.Queues/CHANGELOG.md b/sdk/storage/Azure.Storage.Queues/CHANGELOG.md index 688f697766ef..ca2950597134 100644 --- a/sdk/storage/Azure.Storage.Queues/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Queues/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 12.16.0-beta.1 (Unreleased) +## 12.16.0-beta.1 (2023-08-08) - This release contains bug fixes to improve quality. ## 12.15.0 (2023-07-11) diff --git a/sdk/storage/platform-matrix-all-versions.json b/sdk/storage/platform-matrix-all-versions.json index af7156158189..fb36f9ce3d42 100644 --- a/sdk/storage/platform-matrix-all-versions.json +++ b/sdk/storage/platform-matrix-all-versions.json @@ -36,7 +36,9 @@ "V2021-10-04", "V2021-12-02", "V2022-11-02", - "V2023-01-03" + "V2023-01-03", + "V2023-05-03", + "V2023-08-03" ] } } From f666cb9628fe9aab716ff359db203f82e143ddc2 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 7 Aug 2023 11:46:51 -0700 Subject: [PATCH 48/54] Increment package version after release of Azure.Search.Documents (#38061) --- sdk/search/Azure.Search.Documents/CHANGELOG.md | 10 ++++++++++ .../src/Azure.Search.Documents.csproj | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/search/Azure.Search.Documents/CHANGELOG.md b/sdk/search/Azure.Search.Documents/CHANGELOG.md index f0a577dea7ae..850894609bb4 100644 --- a/sdk/search/Azure.Search.Documents/CHANGELOG.md +++ b/sdk/search/Azure.Search.Documents/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 11.5.0-beta.5 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 11.5.0-beta.4 (2023-08-07) ### Features Added diff --git a/sdk/search/Azure.Search.Documents/src/Azure.Search.Documents.csproj b/sdk/search/Azure.Search.Documents/src/Azure.Search.Documents.csproj index 7d6ea2623912..64bf3ea4377a 100644 --- a/sdk/search/Azure.Search.Documents/src/Azure.Search.Documents.csproj +++ b/sdk/search/Azure.Search.Documents/src/Azure.Search.Documents.csproj @@ -1,7 +1,7 @@ Microsoft Azure.Search.Documents client library - 11.5.0-beta.4 + 11.5.0-beta.5 11.4.0 From 923fd0e5d9e79d12a9869d8f86958aac33a7fdac Mon Sep 17 00:00:00 2001 From: Amanda Nguyen <48961492+amnguye@users.noreply.github.com> Date: Mon, 7 Aug 2023 12:31:04 -0700 Subject: [PATCH 49/54] [Storage] [DataMovement] Consolidated StorageResourceSingle methods parameters to option bags (#38006) * Moved position parameter from StorageResourceSingle.WriteFromStreamAsync to options bag * Made parameter `completeLength` from `StorageResourceSingle.CopyBlockFromUriAsync` mandatory. * Removed extra dash in changelog --- .../CHANGELOG.md | 2 ++ ...Azure.Storage.DataMovement.Blobs.net6.0.cs | 12 +++---- ...orage.DataMovement.Blobs.netstandard2.0.cs | 12 +++---- .../src/AppendBlobStorageResource.cs | 21 ++++++----- .../src/BlockBlobStorageResource.cs | 21 ++++++----- .../src/PageBlobStorageResource.cs | 22 ++++++------ .../Azure.Storage.DataMovement/CHANGELOG.md | 2 ++ .../api/Azure.Storage.DataMovement.net6.0.cs | 9 ++--- ...ure.Storage.DataMovement.netstandard2.0.cs | 9 ++--- .../src/LocalFileStorageResource.cs | 19 +++++----- .../src/StorageResourceCopyFromUriOptions.cs | 2 +- .../src/StorageResourceItem.cs | 10 ++---- .../StorageResourceWriteToOffsetOptions.cs | 7 +++- .../src/StreamToUriJobPart.cs | 14 ++++---- .../src/UriToStreamJobPart.cs | 6 ++-- .../tests/AppendBlobStorageResourceTests.cs | 26 ++++++++++---- .../tests/BlockBlobStorageResourceTests.cs | 36 +++++++++++-------- .../tests/LocalFileStorageResourceTests.cs | 10 ++++-- .../tests/MockStorageResource.cs | 2 +- .../tests/PageBlobStorageResourceTests.cs | 18 +++++----- 20 files changed, 149 insertions(+), 111 deletions(-) diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/CHANGELOG.md b/sdk/storage/Azure.Storage.DataMovement.Blobs/CHANGELOG.md index 78511803539c..33b75e4efc06 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/CHANGELOG.md @@ -25,6 +25,8 @@ - [BREAKING CHANGE] Renamed `BlobStorageResourceContainerOptions.DirectoryPrefix` to `BlobDirectoryPrefix` - [BREAKING CHANGE] Renamed `BlobStorageResourceContainerOptions.ResourceOptions` to `BlobOptions` - [BREAKING CHANGE] Moved `BlobContainerClientTransferOptions` to the `Azure.Storage.DataMovement.Blobs` namespace +- [BREAKING CHANGE] Removed `position` parameter from `*BlobStorageResource.WriteFromStreamAsync`. Use `StorageResourceWriteToOffsetOptions.Position` instead. +- [BREAKING CHANGE] Made parameter `completeLength` from `*BlobStorageResource.CopyBlockFromUriAsync` mandatory. ### Bugs Fixed diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.net6.0.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.net6.0.cs index 7ea896a45d81..2c2298cc63ae 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.net6.0.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.net6.0.cs @@ -21,8 +21,8 @@ public AppendBlobStorageResource(Azure.Storage.Blobs.Specialized.AppendBlobClien protected override Azure.Storage.DataMovement.DataTransferOrder TransferType { get { throw null; } } public override System.Uri Uri { get { throw null; } } protected override System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -92,8 +92,8 @@ public BlockBlobStorageResource(Azure.Storage.Blobs.Specialized.BlockBlobClient protected override Azure.Storage.DataMovement.DataTransferOrder TransferType { get { throw null; } } public override System.Uri Uri { get { throw null; } } protected override System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -117,8 +117,8 @@ public PageBlobStorageResource(Azure.Storage.Blobs.Specialized.PageBlobClient bl protected override Azure.Storage.DataMovement.DataTransferOrder TransferType { get { throw null; } } public override System.Uri Uri { get { throw null; } } protected override System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.netstandard2.0.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.netstandard2.0.cs index 7ea896a45d81..2c2298cc63ae 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.netstandard2.0.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/api/Azure.Storage.DataMovement.Blobs.netstandard2.0.cs @@ -21,8 +21,8 @@ public AppendBlobStorageResource(Azure.Storage.Blobs.Specialized.AppendBlobClien protected override Azure.Storage.DataMovement.DataTransferOrder TransferType { get { throw null; } } public override System.Uri Uri { get { throw null; } } protected override System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -92,8 +92,8 @@ public BlockBlobStorageResource(Azure.Storage.Blobs.Specialized.BlockBlobClient protected override Azure.Storage.DataMovement.DataTransferOrder TransferType { get { throw null; } } public override System.Uri Uri { get { throw null; } } protected override System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -117,8 +117,8 @@ public PageBlobStorageResource(Azure.Storage.Blobs.Specialized.PageBlobClient bl protected override Azure.Storage.DataMovement.DataTransferOrder TransferType { get { throw null; } } public override System.Uri Uri { get { throw null; } } protected override System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected override System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/AppendBlobStorageResource.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/AppendBlobStorageResource.cs index c1d8c26d278a..7080e3121dad 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/AppendBlobStorageResource.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/AppendBlobStorageResource.cs @@ -118,18 +118,21 @@ protected override async Task ReadStreamAsync( /// /// Consumes the readable stream to upload. /// - /// The offset at which which the stream will be copied to. Default value is 0. - /// - /// If set to true, will overwrite the blob if it currently exists. + /// + /// The stream containing the data to be consumed and uploaded. /// /// /// The length of the content stream. /// + /// + /// If set to true, will overwrite the blob if it currently exists. + /// /// - /// The expected complete length of the blob. + /// The expected complete length of the resource item. + /// + /// + /// Options for the storage resource. See . /// - /// The stream containing the data to be consumed and uploaded. - /// Options for the storage resource. See . /// /// Optional to propagate /// notifications that the operation should be cancelled. @@ -139,11 +142,11 @@ protected override async Task CopyFromStreamAsync( Stream stream, long streamLength, bool overwrite, - long position = 0, - long completeLength = 0, + long completeLength, StorageResourceWriteToOffsetOptions options = default, CancellationToken cancellationToken = default) { + long position = options?.Position != default ? options.Position.Value : 0; if (position == 0) { await BlobClient.CreateAsync( @@ -222,7 +225,7 @@ protected override async Task CopyBlockFromUriAsync( StorageResourceItem sourceResource, HttpRange range, bool overwrite, - long completeLength = 0, + long completeLength, StorageResourceCopyFromUriOptions options = default, CancellationToken cancellationToken = default) { diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlockBlobStorageResource.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlockBlobStorageResource.cs index 6a26817faf98..2fe20b34f8e7 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlockBlobStorageResource.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/BlockBlobStorageResource.cs @@ -136,18 +136,21 @@ await BlobClient.DownloadStreamingAsync( /// /// Consumes the readable stream to upload. /// - /// The offset at which which the stream will be copied to. Default value is 0. - /// - /// If set to true, will overwrite the blob if it currently exists. + /// + /// The stream containing the data to be consumed and uploaded. /// /// /// The length of the content stream. /// + /// + /// If set to true, will overwrite the blob if it currently exists. + /// /// - /// The expected complete length of the blob. + /// The expected complete length of the resource item. + /// + /// + /// Options for the storage resource. See . /// - /// The stream containing the data to be consumed and uploaded. - /// Options for the storage resource. See . /// /// Optional to propagate /// notifications that the operation should be cancelled. @@ -157,13 +160,13 @@ protected override async Task CopyFromStreamAsync( Stream stream, long streamLength, bool overwrite, - long position = 0, - long completeLength = 0, + long completeLength, StorageResourceWriteToOffsetOptions options = default, CancellationToken cancellationToken = default) { CancellationHelper.ThrowIfCancellationRequested(cancellationToken); + long position = options?.Position != default ? options.Position.Value : 0; if ((streamLength == completeLength) && position == 0) { // Default to Upload @@ -242,7 +245,7 @@ protected override async Task CopyBlockFromUriAsync( StorageResourceItem sourceResource, HttpRange range, bool overwrite, - long completeLength = 0, + long completeLength, StorageResourceCopyFromUriOptions options = default, CancellationToken cancellationToken = default) { diff --git a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/PageBlobStorageResource.cs b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/PageBlobStorageResource.cs index 05c0f49aba99..2b474788e80d 100644 --- a/sdk/storage/Azure.Storage.DataMovement.Blobs/src/PageBlobStorageResource.cs +++ b/sdk/storage/Azure.Storage.DataMovement.Blobs/src/PageBlobStorageResource.cs @@ -117,20 +117,20 @@ protected override async Task ReadStreamAsync( /// /// Consumes the readable stream to upload. /// - /// - /// The offset at which which the stream will be copied to. Default value is 0. - /// - /// - /// If set to true, will overwrite the blob if it currently exists. + /// + /// The stream containing the data to be consumed and uploaded. /// /// /// The length of the content stream. /// + /// + /// If set to true, will overwrite the blob if it currently exists. + /// /// - /// The expected complete length of the blob. + /// The expected complete length of the resource item. /// - /// The stream containing the data to be consumed and uploaded. - /// Options for the storage resource. See . + /// + /// Options for the storage resource. See . /// /// Optional to propagate /// notifications that the operation should be cancelled. @@ -140,12 +140,12 @@ protected override async Task CopyFromStreamAsync( Stream stream, long streamLength, bool overwrite, - long position = 0, - long completeLength = 0, + long completeLength, StorageResourceWriteToOffsetOptions options = default, CancellationToken cancellationToken = default) { // Create the blob first before uploading the pages + long position = options?.Position != default ? options.Position.Value : 0; if (position == 0) { await BlobClient.CreateAsync( @@ -228,7 +228,7 @@ protected override async Task CopyBlockFromUriAsync( StorageResourceItem sourceResource, HttpRange range, bool overwrite, - long completeLength = 0, + long completeLength, StorageResourceCopyFromUriOptions options = default, CancellationToken cancellationToken = default) { diff --git a/sdk/storage/Azure.Storage.DataMovement/CHANGELOG.md b/sdk/storage/Azure.Storage.DataMovement/CHANGELOG.md index 909a1e040a7f..53fca88d5bdc 100644 --- a/sdk/storage/Azure.Storage.DataMovement/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.DataMovement/CHANGELOG.md @@ -58,6 +58,8 @@ - [BREAKING CHANGE] Changed `StorageTransferProgress` constructor from `public` to `protected internal`. - [BREAKING CHANGE] Renamed `StorageTransferProgress` to `DataTransferProgress`. - [BREAKING CHANGE] Renamed `StorageTransferEventArgs` to `DataTransferEventArgs`. +- [BREAKING CHANGE] Removed `position` parameter from `StorageResourceSingle.WriteFromStreamAsync`. Use `StorageResourceWriteToOffsetOptions.Position` instead. +- [BREAKING CHANGE] Made parameter `completeLength` from `StorageResourceSingle.CopyBlockFromUriAsync` mandatory. ### Bugs Fixed diff --git a/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.net6.0.cs b/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.net6.0.cs index 41323160e7bb..3993cc7cb4d3 100644 --- a/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.net6.0.cs +++ b/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.net6.0.cs @@ -103,8 +103,8 @@ public LocalFileStorageResource(string path) { } protected internal override Azure.Storage.DataMovement.DataTransferOrder TransferType { get { throw null; } } public override System.Uri Uri { get { throw null; } } protected internal override System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected internal override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected internal override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected internal override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected internal override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected internal override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected internal override System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected internal override System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -161,8 +161,8 @@ protected StorageResourceItem() { } protected internal abstract string ResourceId { get; } protected internal abstract Azure.Storage.DataMovement.DataTransferOrder TransferType { get; } protected internal abstract System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - protected internal abstract System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - protected internal abstract System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + protected internal abstract System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + protected internal abstract System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); protected internal abstract System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); protected internal abstract System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); protected internal abstract System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); @@ -187,6 +187,7 @@ public partial class StorageResourceWriteToOffsetOptions { public StorageResourceWriteToOffsetOptions() { } public string BlockId { get { throw null; } } + public long? Position { get { throw null; } } } public partial class TransferCheckpointStoreOptions { diff --git a/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.netstandard2.0.cs b/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.netstandard2.0.cs index 41323160e7bb..3993cc7cb4d3 100644 --- a/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.netstandard2.0.cs +++ b/sdk/storage/Azure.Storage.DataMovement/api/Azure.Storage.DataMovement.netstandard2.0.cs @@ -103,8 +103,8 @@ public LocalFileStorageResource(string path) { } protected internal override Azure.Storage.DataMovement.DataTransferOrder TransferType { get { throw null; } } public override System.Uri Uri { get { throw null; } } protected internal override System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected internal override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - protected internal override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected internal override System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected internal override System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected internal override System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected internal override System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } protected internal override System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -161,8 +161,8 @@ protected StorageResourceItem() { } protected internal abstract string ResourceId { get; } protected internal abstract Azure.Storage.DataMovement.DataTransferOrder TransferType { get; } protected internal abstract System.Threading.Tasks.Task CompleteTransferAsync(bool overwrite, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - protected internal abstract System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - protected internal abstract System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long position = (long)0, long completeLength = (long)0, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + protected internal abstract System.Threading.Tasks.Task CopyBlockFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + protected internal abstract System.Threading.Tasks.Task CopyFromStreamAsync(System.IO.Stream stream, long streamLength, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceWriteToOffsetOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); protected internal abstract System.Threading.Tasks.Task CopyFromUriAsync(Azure.Storage.DataMovement.StorageResourceItem sourceResource, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); protected internal abstract System.Threading.Tasks.Task DeleteIfExistsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); protected internal abstract System.Threading.Tasks.Task GetCopyAuthorizationHeaderAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); @@ -187,6 +187,7 @@ public partial class StorageResourceWriteToOffsetOptions { public StorageResourceWriteToOffsetOptions() { } public string BlockId { get { throw null; } } + public long? Position { get { throw null; } } } public partial class TransferCheckpointStoreOptions { diff --git a/sdk/storage/Azure.Storage.DataMovement/src/LocalFileStorageResource.cs b/sdk/storage/Azure.Storage.DataMovement/src/LocalFileStorageResource.cs index d2fbc61deb0d..2b2993057c0c 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/LocalFileStorageResource.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/LocalFileStorageResource.cs @@ -106,17 +106,16 @@ internal Task CreateAsync(bool overwrite) /// /// Consumes the readable stream to upload /// - /// - /// - /// If set to true, will overwrite the blob if exists. - /// + /// /// /// The length of the stream. /// + /// + /// If set to true, will overwrite the blob if exists. + /// /// - /// The expected complete length of the blob. + /// The expected complete length of the resource item. /// - /// /// /// /// @@ -124,18 +123,18 @@ protected internal override async Task CopyFromStreamAsync( Stream stream, long streamLength, bool overwrite, - long position = 0, - long completeLength = 0, + long completeLength, StorageResourceWriteToOffsetOptions options = default, CancellationToken cancellationToken = default) { CancellationHelper.ThrowIfCancellationRequested(cancellationToken); + long position = options?.Position != default ? options.Position.Value : 0; if (position == 0) { await CreateAsync(overwrite).ConfigureAwait(false); } - if (completeLength > 0) + if (streamLength > 0) { // Appends incoming stream to the local file resource using (FileStream fileStream = new FileStream( @@ -197,7 +196,7 @@ protected internal override Task CopyBlockFromUriAsync( StorageResourceItem sourceResource, HttpRange range, bool overwrite, - long completeLength = 0, + long completeLength, StorageResourceCopyFromUriOptions options = default, CancellationToken cancellationToken = default) { diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceCopyFromUriOptions.cs b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceCopyFromUriOptions.cs index e2ddb71c2892..31d5bb8f15ce 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceCopyFromUriOptions.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceCopyFromUriOptions.cs @@ -7,7 +7,7 @@ namespace Azure.Storage.DataMovement { /// - /// Options for + /// Options for /// public class StorageResourceCopyFromUriOptions { diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceItem.cs b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceItem.cs index 1bbc9f69feec..dc8744473d22 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceItem.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceItem.cs @@ -66,9 +66,6 @@ protected internal abstract Task ReadStreamAsyn /// /// Consumes the readable stream to upload /// - /// - /// The offset which the stream will be copied to. - /// /// /// If set to true, will overwrite the blob if exists. /// @@ -76,7 +73,7 @@ protected internal abstract Task ReadStreamAsyn /// The length of the stream. /// /// - /// The expected complete length of the blob. + /// The expected complete length of the resource item. /// /// /// @@ -89,8 +86,7 @@ protected internal abstract Task CopyFromStreamAsync( Stream stream, long streamLength, bool overwrite, - long position = 0, - long completeLength = 0, + long completeLength, StorageResourceWriteToOffsetOptions options = default, CancellationToken cancellationToken = default); @@ -138,7 +134,7 @@ protected internal abstract Task CopyBlockFromUriAsync( StorageResourceItem sourceResource, HttpRange range, bool overwrite, - long completeLength = 0, + long completeLength, StorageResourceCopyFromUriOptions options = default, CancellationToken cancellationToken = default); diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceWriteToOffsetOptions.cs b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceWriteToOffsetOptions.cs index 12717964c781..3f4d199bb61c 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceWriteToOffsetOptions.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/StorageResourceWriteToOffsetOptions.cs @@ -7,7 +7,7 @@ namespace Azure.Storage.DataMovement { /// - /// Options for + /// Options for /// public class StorageResourceWriteToOffsetOptions { @@ -18,5 +18,10 @@ public class StorageResourceWriteToOffsetOptions /// Applies only to block blobs. /// public string BlockId { get; internal set; } + + /// + /// Optional. Specifies the position to write to. Will default to 0 if not specified. + /// + public long? Position { get; internal set; } } } diff --git a/sdk/storage/Azure.Storage.DataMovement/src/StreamToUriJobPart.cs b/sdk/storage/Azure.Storage.DataMovement/src/StreamToUriJobPart.cs index 9055e4f601b2..31dd0358f7f3 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/StreamToUriJobPart.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/StreamToUriJobPart.cs @@ -242,10 +242,8 @@ private async Task InitialUploadCall(long blockSize, long expectedLength, bool s await _destinationResource.CopyFromStreamAsync( stream: stream, overwrite: _createMode == StorageResourceCreationPreference.OverwriteIfExists, - position: 0, streamLength: blockSize, completeLength: expectedLength, - options: default, cancellationToken: _cancellationToken).ConfigureAwait(false); // Report bytes written before completion @@ -273,10 +271,8 @@ await _destinationResource.CopyFromStreamAsync( stream: slicedStream, streamLength: blockSize, overwrite: _createMode == StorageResourceCreationPreference.OverwriteIfExists, - position: 0, completeLength: expectedLength, - default, - _cancellationToken).ConfigureAwait(false); + cancellationToken: _cancellationToken).ConfigureAwait(false); } ReportBytesWritten(blockSize); @@ -345,10 +341,12 @@ await _destinationResource.CopyFromStreamAsync( stream: slicedStream, streamLength: blockLength, overwrite: _createMode == StorageResourceCreationPreference.OverwriteIfExists, - position: offset, completeLength: completeLength, - default, - _cancellationToken).ConfigureAwait(false); + options: new StorageResourceWriteToOffsetOptions() + { + Position = offset, + }, + cancellationToken: _cancellationToken).ConfigureAwait(false); } // Invoke event handler to keep track of all the stage blocks await _commitBlockHandler.InvokeEvent( diff --git a/sdk/storage/Azure.Storage.DataMovement/src/UriToStreamJobPart.cs b/sdk/storage/Azure.Storage.DataMovement/src/UriToStreamJobPart.cs index 747b830145d0..30258ce5f67e 100644 --- a/sdk/storage/Azure.Storage.DataMovement/src/UriToStreamJobPart.cs +++ b/sdk/storage/Azure.Storage.DataMovement/src/UriToStreamJobPart.cs @@ -404,10 +404,12 @@ public async Task CopyToStreamInternal( await _destinationResource.CopyFromStreamAsync( stream: source, overwrite: _createMode == StorageResourceCreationPreference.OverwriteIfExists, - position: offset, streamLength: sourceLength, completeLength: expectedLength, - options: default, + options: new StorageResourceWriteToOffsetOptions() + { + Position = offset, + }, cancellationToken: _cancellationToken).ConfigureAwait(false); return true; } diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/AppendBlobStorageResourceTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/AppendBlobStorageResourceTests.cs index 2f2c752151d3..53e4482e66b6 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/AppendBlobStorageResourceTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/AppendBlobStorageResourceTests.cs @@ -146,7 +146,11 @@ public async Task WriteFromStreamAsync() using (var stream = new MemoryStream(data)) { // Act - await storageResource.CopyFromStreamAsync(stream, length, false); + await storageResource.CopyFromStreamAsync( + stream: stream, + streamLength: length, + overwrite: false, + completeLength: length); } BlobDownloadStreamingResult result = await blobClient.DownloadStreamingAsync(); @@ -179,7 +183,8 @@ await storageResource.CopyFromStreamAsync( stream: stream, streamLength: length, overwrite: false, - position: readPosition - 1); + completeLength: length, + options: new StorageResourceWriteToOffsetOptions() { Position = readPosition - 1 }); } BlobDownloadStreamingResult result = await blobClient.DownloadStreamingAsync( @@ -212,7 +217,12 @@ public async Task WriteFromStreamAsync_Error() { // Act await TestHelper.AssertExpectedExceptionAsync( - storageResource.CopyFromStreamAsync(stream, streamLength: length, false, position: position), + storageResource.CopyFromStreamAsync( + stream: stream, + streamLength: length, + overwrite: false, + completeLength: length, + options: new StorageResourceWriteToOffsetOptions(){ Position = position }), e => { Assert.AreEqual(e.ErrorCode, "BlobAlreadyExists"); @@ -380,7 +390,8 @@ public async Task CopyBlockFromUriAsync() await destinationResource.CopyBlockFromUriAsync( sourceResource: sourceResource, overwrite: false, - range: new HttpRange(0, blockLength)); + range: new HttpRange(0, blockLength), + completeLength: length); // Commit the block await destinationResource.CompleteTransferAsync(false); @@ -428,6 +439,7 @@ await destinationResource.CopyBlockFromUriAsync( sourceResource: sourceResource, overwrite: false, range: new HttpRange(0, blockLength), + completeLength: length, options: options); await destinationResource.CompleteTransferAsync(false); @@ -476,6 +488,7 @@ await destinationResource.CopyBlockFromUriAsync( sourceResource: sourceResource, overwrite: false, range: new HttpRange(0, blockLength), + completeLength: length, options: options); await destinationResource.CompleteTransferAsync(false); @@ -523,6 +536,7 @@ await destinationResource.CopyBlockFromUriAsync( sourceResource: sourceResource, overwrite: false, range: new HttpRange(0, blockLength), + completeLength: length, options: options); await destinationResource.CompleteTransferAsync(false); @@ -549,7 +563,7 @@ public async Task CopyBlockFromUriAsync_Error() // Act await TestHelper.AssertExpectedExceptionAsync( - destinationResource.CopyBlockFromUriAsync(sourceResource, new HttpRange(0, Constants.KB), false), + destinationResource.CopyBlockFromUriAsync(sourceResource, new HttpRange(0, Constants.KB), false, Constants.KB), e => { Assert.AreEqual(e.ErrorCode, "CannotVerifyCopySource"); @@ -616,7 +630,7 @@ await storageResource.CopyFromStreamAsync( stream: stream, streamLength: length, overwrite: false, - position: 0); + completeLength: length); } // Act diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/BlockBlobStorageResourceTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/BlockBlobStorageResourceTests.cs index 56bce91bd4e6..9296225ce6b6 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/BlockBlobStorageResourceTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/BlockBlobStorageResourceTests.cs @@ -145,8 +145,8 @@ public async Task WriteFromStreamAsync() await storageResource.CopyFromStreamAsync( stream: stream, streamLength: length, - completeLength: length, - overwrite: false); + overwrite: false, + completeLength: length); } BlobDownloadStreamingResult result = await blobClient.DownloadStreamingAsync(); @@ -173,7 +173,8 @@ await storageResource.CopyFromStreamAsync( stream: stream, streamLength: length, overwrite: false, - position: position); + completeLength: length, + options: new StorageResourceWriteToOffsetOptions() { Position = position }); } await storageResource.CompleteTransferAsync(false); @@ -195,7 +196,6 @@ public async Task WriteFromStreamAsync_Error() BlockBlobStorageResource storageResource = new BlockBlobStorageResource(blobClient); // Act without creating the blob - int position = 0; int length = Constants.KB; var data = GetRandomBuffer(length); using (var stream = new MemoryStream(data)) @@ -204,7 +204,7 @@ await storageResource.CopyFromStreamAsync( stream: stream, streamLength: length, overwrite: false, - position: position); + completeLength: 0); } using (var stream = new MemoryStream(data)) { @@ -214,7 +214,7 @@ await TestHelper.AssertExpectedExceptionAsync( stream: stream, streamLength: length, overwrite: false, - position: position), + completeLength: 0), e => { Assert.IsTrue(e.Message.Contains("Cannot Stage Block to the specific offset")); @@ -366,7 +366,8 @@ public async Task CopyBlockFromUriAsync() BlockBlobClient sourceClient = testContainer.Container.GetBlockBlobClient(GetNewBlobName()); BlockBlobClient destinationClient = testContainer.Container.GetBlockBlobClient(GetNewBlobName()); - var data = GetRandomBuffer(4 * Constants.KB); + var length = 4 * Constants.KB; + var data = GetRandomBuffer(length); var blockLength = Constants.KB; using (var stream = new MemoryStream(data)) { @@ -381,7 +382,8 @@ await sourceClient.UploadAsync( await destinationResource.CopyBlockFromUriAsync( sourceResource: sourceResource, overwrite: false, - range: new HttpRange(0, blockLength)); + range: new HttpRange(0, blockLength), + completeLength: length); // Commit the block await destinationResource.CompleteTransferAsync(false); @@ -403,7 +405,8 @@ public async Task CopyBlockFromUriAsync_OAuth() BlockBlobClient sourceClient = testContainer.Container.GetBlockBlobClient(GetNewBlobName()); BlockBlobClient destinationClient = testContainer.Container.GetBlockBlobClient(GetNewBlobName()); - var data = GetRandomBuffer(4 * Constants.KB); + var length = 4 * Constants.KB; + var data = GetRandomBuffer(length); var blockLength = Constants.KB; using (var stream = new MemoryStream(data)) { @@ -426,6 +429,7 @@ await destinationResource.CopyBlockFromUriAsync( sourceResource: sourceResource, overwrite: false, range: new HttpRange(0, blockLength), + completeLength: length, options: options); await destinationResource.CompleteTransferAsync(false); @@ -446,7 +450,8 @@ public async Task CopyBlockFromUriAsync_OAuth_Token() BlockBlobClient sourceClient = testContainer.Container.GetBlockBlobClient(GetNewBlobName()); BlockBlobClient destinationClient = testContainer.Container.GetBlockBlobClient(GetNewBlobName()); - var data = GetRandomBuffer(4 * Constants.KB); + var length = 4 * Constants.KB; + var data = GetRandomBuffer(length); var blockLength = Constants.KB; using (var stream = new MemoryStream(data)) { @@ -473,6 +478,7 @@ await destinationResource.CopyBlockFromUriAsync( sourceResource: sourceResource, overwrite: false, range: new HttpRange(0, blockLength), + completeLength: length, options: options); await destinationResource.CompleteTransferAsync(false); @@ -496,7 +502,8 @@ public async Task CopyBlockFromUriAsync_HttpAuthorization() BlockBlobClient sourceClient = test.Container.GetBlockBlobClient(GetNewBlobName()); BlockBlobClient destinationClient = test.Container.GetBlockBlobClient(GetNewBlobName()); - var data = GetRandomBuffer(4 * Constants.KB); + var length = 4 * Constants.KB; + var data = GetRandomBuffer(length); var blockLength = Constants.KB; using (var stream = new MemoryStream(data)) { @@ -518,6 +525,7 @@ await destinationResource.CopyBlockFromUriAsync( sourceResource: sourceResource, overwrite: false, range: new HttpRange(0, blockLength), + completeLength: length, options: options); await destinationResource.CompleteTransferAsync(false); @@ -543,7 +551,7 @@ public async Task CopyBlockFromUriAsync_Error() // Act await TestHelper.AssertExpectedExceptionAsync( - destinationResource.CopyBlockFromUriAsync(sourceResource, new HttpRange(0, Constants.KB), overwrite: false), + destinationResource.CopyBlockFromUriAsync(sourceResource, new HttpRange(0, Constants.KB), overwrite: false, completeLength: Constants.KB), e => { Assert.AreEqual(e.ErrorCode, "CannotVerifyCopySource"); @@ -609,7 +617,7 @@ await storageResource.CopyFromStreamAsync( stream: stream, streamLength: length, overwrite: false, - position: 0); + completeLength: 0); } // Act @@ -645,7 +653,7 @@ await storageResource.CopyFromStreamAsync( stream: stream, streamLength: length, overwrite: overwrite, - position: 0); + completeLength: 0); } // Act diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/LocalFileStorageResourceTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/LocalFileStorageResourceTests.cs index 8f55986a03fe..0d0129e9c319 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/LocalFileStorageResourceTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/LocalFileStorageResourceTests.cs @@ -196,8 +196,8 @@ await storageResource.CopyFromStreamAsync( stream, streamLength: length, overwrite: false, - position: writePosition, - completeLength: length); + completeLength: length, + options: new StorageResourceWriteToOffsetOptions() { Position = writePosition }); } // Assert @@ -220,7 +220,11 @@ public async Task WriteStreamAsync_Error() { using (var stream = new MemoryStream(data)) { - await storageResource.CopyFromStreamAsync(stream, length, false); + await storageResource.CopyFromStreamAsync( + stream: stream, + streamLength: length, + overwrite: false, + completeLength: length); } } catch (IOException ex) diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/MockStorageResource.cs b/sdk/storage/Azure.Storage.DataMovement/tests/MockStorageResource.cs index 09911de1f596..1ac07432972b 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/MockStorageResource.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/MockStorageResource.cs @@ -90,7 +90,7 @@ protected internal override Task ReadStreamAsyn return Task.FromResult(new StorageResourceReadStreamResult(_readStream)); } - protected internal override async Task CopyFromStreamAsync(Stream stream, long streamLength, bool overwrite, long position = 0, long completeLength = 0, StorageResourceWriteToOffsetOptions options = null, CancellationToken cancellationToken = default) + protected internal override async Task CopyFromStreamAsync(Stream stream, long streamLength, bool overwrite, long completeLength, StorageResourceWriteToOffsetOptions options = null, CancellationToken cancellationToken = default) { await stream.CopyToAsync(Stream.Null); } diff --git a/sdk/storage/Azure.Storage.DataMovement/tests/PageBlobStorageResourceTests.cs b/sdk/storage/Azure.Storage.DataMovement/tests/PageBlobStorageResourceTests.cs index 3f5443ac0d97..68f7889c2e31 100644 --- a/sdk/storage/Azure.Storage.DataMovement/tests/PageBlobStorageResourceTests.cs +++ b/sdk/storage/Azure.Storage.DataMovement/tests/PageBlobStorageResourceTests.cs @@ -155,8 +155,8 @@ public async Task WriteFromStreamAsync() await storageResource.CopyFromStreamAsync( stream: stream, streamLength: length, - completeLength: length, - overwrite: false); + overwrite: false, + completeLength: length); } BlobDownloadStreamingResult result = await blobClient.DownloadStreamingAsync(); @@ -189,8 +189,8 @@ await storageResource.CopyFromStreamAsync( stream: stream, streamLength: length, overwrite: false, - position: readPosition, - completeLength: length*2); + completeLength: length * 2, + options: new StorageResourceWriteToOffsetOptions() { Position = readPosition }); } BlobDownloadStreamingResult result = await blobClient.DownloadStreamingAsync( @@ -224,9 +224,10 @@ public async Task WriteFromStreamAsync_Error() await TestHelper.AssertExpectedExceptionAsync( storageResource.CopyFromStreamAsync( stream: stream, + streamLength: length, overwrite: false, - position: position, - streamLength: length), + completeLength: length, + options: new StorageResourceWriteToOffsetOptions() { Position = position }), e => { Assert.AreEqual(e.ErrorCode, "InvalidHeaderValue"); @@ -578,7 +579,7 @@ public async Task CopyBlockFromUriAsync_Error() // Act await TestHelper.AssertExpectedExceptionAsync( - destinationResource.CopyBlockFromUriAsync(sourceResource, new HttpRange(0, Constants.KB), false), + destinationResource.CopyBlockFromUriAsync(sourceResource, new HttpRange(0, Constants.KB), false, 0), e => { Assert.AreEqual(e.ErrorCode, "CannotVerifyCopySource"); @@ -647,8 +648,7 @@ await storageResource.CopyFromStreamAsync( stream: stream, streamLength: length, completeLength: length, - overwrite: false, - position: 0); + overwrite: false); } // Act From 2684d2c215c68f6cfa6c8992124eaf1b78826395 Mon Sep 17 00:00:00 2001 From: Anne Thompson Date: Mon, 7 Aug 2023 14:34:13 -0700 Subject: [PATCH 50/54] Preparation for Azure.Core.Experimental release 0.1.0-preview.29 (#38060) * Prepare Azure.Core.Experimental release * update * for Krzysztof * Export API * fix * fix --- sdk/core/Azure.Core.Experimental/CHANGELOG.md | 10 +++------- .../api/Azure.Core.Experimental.net461.cs | 2 +- .../api/Azure.Core.Experimental.net6.0.cs | 2 +- .../api/Azure.Core.Experimental.netstandard2.0.cs | 2 +- sdk/core/Azure.Core.Experimental/src/CloudMachine.cs | 2 +- .../Azure.Core.Experimental/tests/CloudMachineTests.cs | 4 ++-- 6 files changed, 9 insertions(+), 13 deletions(-) diff --git a/sdk/core/Azure.Core.Experimental/CHANGELOG.md b/sdk/core/Azure.Core.Experimental/CHANGELOG.md index 1234fed0a45b..b0010a6bb799 100644 --- a/sdk/core/Azure.Core.Experimental/CHANGELOG.md +++ b/sdk/core/Azure.Core.Experimental/CHANGELOG.md @@ -1,14 +1,10 @@ # Release History -## 0.1.0-preview.29 (Unreleased) +## 0.1.0-preview.29 (2023-08-07) ### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +- Added SchemaValidator and LruCache types for use with Azure.Data.SchemaRegistry preview library. +- Added CloudMachine and ProvisionableTemplateAttribute types for use with CloudMachine. ## 0.1.0-preview.28 (2023-07-11) diff --git a/sdk/core/Azure.Core.Experimental/api/Azure.Core.Experimental.net461.cs b/sdk/core/Azure.Core.Experimental/api/Azure.Core.Experimental.net461.cs index 8252fe7e3e82..c1de657c10e9 100644 --- a/sdk/core/Azure.Core.Experimental/api/Azure.Core.Experimental.net461.cs +++ b/sdk/core/Azure.Core.Experimental/api/Azure.Core.Experimental.net461.cs @@ -3,7 +3,7 @@ namespace Azure public partial class CloudMachine { public CloudMachine(System.IO.Stream configurationContent) { } - public CloudMachine(string configurationFile = "cloudconfig.json") { } + public CloudMachine(string configurationFile = "cloudmachine.json") { } public string DisplayName { get { throw null; } set { } } public string Id { get { throw null; } } public string Region { get { throw null; } } diff --git a/sdk/core/Azure.Core.Experimental/api/Azure.Core.Experimental.net6.0.cs b/sdk/core/Azure.Core.Experimental/api/Azure.Core.Experimental.net6.0.cs index 8252fe7e3e82..c1de657c10e9 100644 --- a/sdk/core/Azure.Core.Experimental/api/Azure.Core.Experimental.net6.0.cs +++ b/sdk/core/Azure.Core.Experimental/api/Azure.Core.Experimental.net6.0.cs @@ -3,7 +3,7 @@ namespace Azure public partial class CloudMachine { public CloudMachine(System.IO.Stream configurationContent) { } - public CloudMachine(string configurationFile = "cloudconfig.json") { } + public CloudMachine(string configurationFile = "cloudmachine.json") { } public string DisplayName { get { throw null; } set { } } public string Id { get { throw null; } } public string Region { get { throw null; } } diff --git a/sdk/core/Azure.Core.Experimental/api/Azure.Core.Experimental.netstandard2.0.cs b/sdk/core/Azure.Core.Experimental/api/Azure.Core.Experimental.netstandard2.0.cs index 8252fe7e3e82..c1de657c10e9 100644 --- a/sdk/core/Azure.Core.Experimental/api/Azure.Core.Experimental.netstandard2.0.cs +++ b/sdk/core/Azure.Core.Experimental/api/Azure.Core.Experimental.netstandard2.0.cs @@ -3,7 +3,7 @@ namespace Azure public partial class CloudMachine { public CloudMachine(System.IO.Stream configurationContent) { } - public CloudMachine(string configurationFile = "cloudconfig.json") { } + public CloudMachine(string configurationFile = "cloudmachine.json") { } public string DisplayName { get { throw null; } set { } } public string Id { get { throw null; } } public string Region { get { throw null; } } diff --git a/sdk/core/Azure.Core.Experimental/src/CloudMachine.cs b/sdk/core/Azure.Core.Experimental/src/CloudMachine.cs index 8b4ddd942b6a..2a9b7a4ee629 100644 --- a/sdk/core/Azure.Core.Experimental/src/CloudMachine.cs +++ b/sdk/core/Azure.Core.Experimental/src/CloudMachine.cs @@ -58,7 +58,7 @@ public static CloudMachine Create(string subscriptionId, string region) /// /// /// - public CloudMachine(string configurationFile = "cloudconfig.json") + public CloudMachine(string configurationFile = "cloudmachine.json") { try { diff --git a/sdk/core/Azure.Core.Experimental/tests/CloudMachineTests.cs b/sdk/core/Azure.Core.Experimental/tests/CloudMachineTests.cs index 09c43d155dcc..369ac50e5c07 100644 --- a/sdk/core/Azure.Core.Experimental/tests/CloudMachineTests.cs +++ b/sdk/core/Azure.Core.Experimental/tests/CloudMachineTests.cs @@ -30,7 +30,7 @@ public void DefaultCtor() try { var cm = CloudMachine.Create(Guid.NewGuid().ToString(), "westus2"); - cm.Save("cloudconfig.json"); + cm.Save("cloudmachine.json"); var deserialized = new CloudMachine(); Assert.AreEqual(cm.Id, deserialized.Id); Assert.AreEqual(cm.DisplayName, deserialized.DisplayName); @@ -39,7 +39,7 @@ public void DefaultCtor() } finally { - File.Delete("cloudconfig.json"); + File.Delete("cloudmachine.json"); } } } From 95fefe6adb49be05989502ae5de6dba67bbde5c2 Mon Sep 17 00:00:00 2001 From: Arthur Ma Date: Tue, 8 Aug 2023 17:00:11 +0800 Subject: [PATCH 51/54] Prepare to release AppContainers 1.1.0-beta.3 (#38071) --- .../Azure.ResourceManager.AppContainers/CHANGELOG.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md b/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md index 53fbce62b588..ae2043ff57af 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.1.0-beta.3 (Unreleased) +## 1.1.0-beta.3 (2023-08-08) ### Features Added @@ -15,12 +15,6 @@ - Add `EventTriggerConfig` for JobConfiguration - Rename `ContainerAppJobTriggerType` value from `Scheduled` to `Schedule` -### Breaking Changes - -### Bugs Fixed - -### Other Changes - ## 1.1.0-beta.2 (2023-05-29) ### Features Added From f0b834595d984588a8c2ba92d0e1af5eea5ff8c0 Mon Sep 17 00:00:00 2001 From: Arthur Ma Date: Tue, 8 Aug 2023 17:32:19 +0800 Subject: [PATCH 52/54] update --- ...rceManager.AppContainers.netstandard2.0.cs | 54 +++++++++---------- .../assets.json | 2 +- .../Samples/Sample_ContainerAppCollection.cs | 2 +- .../Sample_ContainerAppJobCollection.cs | 8 +-- .../Samples/Sample_ContainerAppResource.cs | 2 +- ...tainerAppJobConfiguration.Serialization.cs | 4 +- .../Models/ContainerAppJobConfiguration.cs | 4 +- ... => ContainerAppJobScale.Serialization.cs} | 16 +++--- .../{JobScale.cs => ContainerAppJobScale.cs} | 20 +++---- ...ContainerAppJobScaleRule.Serialization.cs} | 6 +-- ...aleRule.cs => ContainerAppJobScaleRule.cs} | 10 ++-- ... ContainerAppServiceBind.Serialization.cs} | 6 +-- ...viceBind.cs => ContainerAppServiceBind.cs} | 10 ++-- .../ContainerAppTemplate.Serialization.cs | 6 +-- .../Generated/Models/ContainerAppTemplate.cs | 6 +-- ...ventTriggerConfiguration.Serialization.cs} | 10 ++-- ...Config.cs => EventTriggerConfiguration.cs} | 12 ++--- .../src/autorest.md | 11 +++- 18 files changed, 99 insertions(+), 90 deletions(-) rename sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/{JobScale.Serialization.cs => ContainerAppJobScale.Serialization.cs} (80%) rename sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/{JobScale.cs => ContainerAppJobScale.cs} (61%) rename sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/{JobScaleRule.Serialization.cs => ContainerAppJobScaleRule.Serialization.cs} (91%) rename sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/{JobScaleRule.cs => ContainerAppJobScaleRule.cs} (86%) rename sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/{ServiceBind.Serialization.cs => ContainerAppServiceBind.Serialization.cs} (86%) rename sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/{ServiceBind.cs => ContainerAppServiceBind.cs} (69%) rename sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/{JobConfigurationEventTriggerConfig.Serialization.cs => EventTriggerConfiguration.Serialization.cs} (82%) rename sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/{JobConfigurationEventTriggerConfig.cs => EventTriggerConfiguration.cs} (71%) diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/api/Azure.ResourceManager.AppContainers.netstandard2.0.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/api/Azure.ResourceManager.AppContainers.netstandard2.0.cs index 49c43730de77..48b33c415f3a 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/api/Azure.ResourceManager.AppContainers.netstandard2.0.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/api/Azure.ResourceManager.AppContainers.netstandard2.0.cs @@ -1745,7 +1745,7 @@ public ContainerAppIPSecurityRestrictionRule(string name, string ipAddressRange, public partial class ContainerAppJobConfiguration { public ContainerAppJobConfiguration(Azure.ResourceManager.AppContainers.Models.ContainerAppJobTriggerType triggerType, int replicaTimeout) { } - public Azure.ResourceManager.AppContainers.Models.JobConfigurationEventTriggerConfig EventTriggerConfig { get { throw null; } set { } } + public Azure.ResourceManager.AppContainers.Models.EventTriggerConfiguration EventTriggerConfig { get { throw null; } set { } } public Azure.ResourceManager.AppContainers.Models.JobConfigurationManualTriggerConfig ManualTriggerConfig { get { throw null; } set { } } public System.Collections.Generic.IList Registries { get { throw null; } } public int? ReplicaRetryLimit { get { throw null; } set { } } @@ -1809,6 +1809,22 @@ public ContainerAppJobPatchProperties() { } public static bool operator !=(Azure.ResourceManager.AppContainers.Models.ContainerAppJobProvisioningState left, Azure.ResourceManager.AppContainers.Models.ContainerAppJobProvisioningState right) { throw null; } public override string ToString() { throw null; } } + public partial class ContainerAppJobScale + { + public ContainerAppJobScale() { } + public int? MaxExecutions { get { throw null; } set { } } + public int? MinExecutions { get { throw null; } set { } } + public int? PollingIntervalInSeconds { get { throw null; } set { } } + public System.Collections.Generic.IList Rules { get { throw null; } } + } + public partial class ContainerAppJobScaleRule + { + public ContainerAppJobScaleRule() { } + public System.Collections.Generic.IList Auth { get { throw null; } } + public string JobScaleRuleType { get { throw null; } set { } } + public System.BinaryData Metadata { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + } public partial class ContainerAppJobTemplate { public ContainerAppJobTemplate() { } @@ -2187,6 +2203,12 @@ internal ContainerAppSecret() { } public string Name { get { throw null; } } public string Value { get { throw null; } } } + public partial class ContainerAppServiceBind + { + public ContainerAppServiceBind() { } + public string Name { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier ServiceId { get { throw null; } set { } } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ContainerAppSourceControlOperationState : System.IEquatable { @@ -2245,7 +2267,7 @@ public ContainerAppTemplate() { } public System.Collections.Generic.IList InitContainers { get { throw null; } } public string RevisionSuffix { get { throw null; } set { } } public Azure.ResourceManager.AppContainers.Models.ContainerAppScale Scale { get { throw null; } set { } } - public System.Collections.Generic.IList ServiceBinds { get { throw null; } } + public System.Collections.Generic.IList ServiceBinds { get { throw null; } } public long? TerminationGracePeriodSeconds { get { throw null; } set { } } public System.Collections.Generic.IList Volumes { get { throw null; } } } @@ -2332,12 +2354,12 @@ public ContainerAppWritableSecret() { } public string Name { get { throw null; } set { } } public string Value { get { throw null; } set { } } } - public partial class JobConfigurationEventTriggerConfig + public partial class EventTriggerConfiguration { - public JobConfigurationEventTriggerConfig() { } + public EventTriggerConfiguration() { } public int? Parallelism { get { throw null; } set { } } public int? ReplicaCompletionCount { get { throw null; } set { } } - public Azure.ResourceManager.AppContainers.Models.JobScale Scale { get { throw null; } set { } } + public Azure.ResourceManager.AppContainers.Models.ContainerAppJobScale Scale { get { throw null; } set { } } } public partial class JobConfigurationManualTriggerConfig { @@ -2385,22 +2407,6 @@ public JobExecutionContainer() { } public static bool operator !=(Azure.ResourceManager.AppContainers.Models.JobExecutionRunningState left, Azure.ResourceManager.AppContainers.Models.JobExecutionRunningState right) { throw null; } public override string ToString() { throw null; } } - public partial class JobScale - { - public JobScale() { } - public int? MaxExecutions { get { throw null; } set { } } - public int? MinExecutions { get { throw null; } set { } } - public int? PollingInterval { get { throw null; } set { } } - public System.Collections.Generic.IList Rules { get { throw null; } } - } - public partial class JobScaleRule - { - public JobScaleRule() { } - public System.Collections.Generic.IList Auth { get { throw null; } } - public string JobScaleRuleType { get { throw null; } set { } } - public System.BinaryData Metadata { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ManagedCertificateDomainControlValidation : System.IEquatable { @@ -2457,10 +2463,4 @@ public SecretVolumeItem() { } public string Path { get { throw null; } set { } } public string SecretRef { get { throw null; } set { } } } - public partial class ServiceBind - { - public ServiceBind() { } - public string Name { get { throw null; } set { } } - public Azure.Core.ResourceIdentifier ServiceId { get { throw null; } set { } } - } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/assets.json b/sdk/containerapps/Azure.ResourceManager.AppContainers/assets.json index aa143c7be73a..cf74ab2c9b49 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/assets.json +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "net", "TagPrefix": "net/containerapps/Azure.ResourceManager.AppContainers", - "Tag": "" + "Tag": "net/containerapps/Azure.ResourceManager.AppContainers_9600c74039" } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppCollection.cs index b4e578bbfdef..2682d0bbdc69 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppCollection.cs @@ -291,7 +291,7 @@ public async Task CreateOrUpdate_CreateOrUpdateContainerApp() }, ServiceBinds = { -new ServiceBind() +new ContainerAppServiceBind() { ServiceId = new ResourceIdentifier("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/redisService"), Name = "redisService", diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobCollection.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobCollection.cs index b0d01f5fc161..6dff7acf5942 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobCollection.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppJobCollection.cs @@ -248,18 +248,18 @@ public async Task CreateOrUpdate_CreateOrUpdateContainerAppsJobWithEventDrivenTr Configuration = new ContainerAppJobConfiguration(ContainerAppJobTriggerType.Event, 10) { ReplicaRetryLimit = 10, - EventTriggerConfig = new JobConfigurationEventTriggerConfig() + EventTriggerConfig = new EventTriggerConfiguration() { ReplicaCompletionCount = 1, Parallelism = 4, - Scale = new JobScale() + Scale = new ContainerAppJobScale() { - PollingInterval = 40, + PollingIntervalInSeconds = 40, MinExecutions = 1, MaxExecutions = 5, Rules = { -new JobScaleRule() +new ContainerAppJobScaleRule() { Name = "servicebuscalingrule", JobScaleRuleType = "azure-servicebus", diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppResource.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppResource.cs index f314501b27c6..a2547bf68f9a 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppResource.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/samples/Generated/Samples/Sample_ContainerAppResource.cs @@ -247,7 +247,7 @@ public async Task Update_PatchContainerApp() }, ServiceBinds = { -new ServiceBind() +new ContainerAppServiceBind() { ServiceId = new ResourceIdentifier("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/service"), Name = "service", diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.Serialization.cs index e09d020631dc..146e23a98b5e 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.Serialization.cs @@ -75,7 +75,7 @@ internal static ContainerAppJobConfiguration DeserializeContainerAppJobConfigura Optional replicaRetryLimit = default; Optional manualTriggerConfig = default; Optional scheduleTriggerConfig = default; - Optional eventTriggerConfig = default; + Optional eventTriggerConfig = default; Optional> registries = default; foreach (var property in element.EnumerateObject()) { @@ -136,7 +136,7 @@ internal static ContainerAppJobConfiguration DeserializeContainerAppJobConfigura { continue; } - eventTriggerConfig = JobConfigurationEventTriggerConfig.DeserializeJobConfigurationEventTriggerConfig(property.Value); + eventTriggerConfig = EventTriggerConfiguration.DeserializeEventTriggerConfiguration(property.Value); continue; } if (property.NameEquals("registries"u8)) diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.cs index 55ff424af4ad..1087b3707a74 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobConfiguration.cs @@ -33,7 +33,7 @@ public ContainerAppJobConfiguration(ContainerAppJobTriggerType triggerType, int /// Cron formatted repeating trigger schedule ("* * * * *") for cronjobs. Properties completions and parallelism would be set to 1 by default. /// Trigger configuration of an event driven job. /// Collection of private container registry credentials used by a Container apps job. - internal ContainerAppJobConfiguration(IList secrets, ContainerAppJobTriggerType triggerType, int replicaTimeout, int? replicaRetryLimit, JobConfigurationManualTriggerConfig manualTriggerConfig, JobConfigurationScheduleTriggerConfig scheduleTriggerConfig, JobConfigurationEventTriggerConfig eventTriggerConfig, IList registries) + internal ContainerAppJobConfiguration(IList secrets, ContainerAppJobTriggerType triggerType, int replicaTimeout, int? replicaRetryLimit, JobConfigurationManualTriggerConfig manualTriggerConfig, JobConfigurationScheduleTriggerConfig scheduleTriggerConfig, EventTriggerConfiguration eventTriggerConfig, IList registries) { Secrets = secrets; TriggerType = triggerType; @@ -58,7 +58,7 @@ internal ContainerAppJobConfiguration(IList secrets, /// Cron formatted repeating trigger schedule ("* * * * *") for cronjobs. Properties completions and parallelism would be set to 1 by default. public JobConfigurationScheduleTriggerConfig ScheduleTriggerConfig { get; set; } /// Trigger configuration of an event driven job. - public JobConfigurationEventTriggerConfig EventTriggerConfig { get; set; } + public EventTriggerConfiguration EventTriggerConfig { get; set; } /// Collection of private container registry credentials used by a Container apps job. public IList Registries { get; } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScale.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobScale.Serialization.cs similarity index 80% rename from sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScale.Serialization.cs rename to sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobScale.Serialization.cs index 3fd09748768d..1a100b2f14b4 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScale.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobScale.Serialization.cs @@ -11,15 +11,15 @@ namespace Azure.ResourceManager.AppContainers.Models { - public partial class JobScale : IUtf8JsonSerializable + public partial class ContainerAppJobScale : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(PollingInterval)) + if (Optional.IsDefined(PollingIntervalInSeconds)) { writer.WritePropertyName("pollingInterval"u8); - writer.WriteNumberValue(PollingInterval.Value); + writer.WriteNumberValue(PollingIntervalInSeconds.Value); } if (Optional.IsDefined(MinExecutions)) { @@ -44,7 +44,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static JobScale DeserializeJobScale(JsonElement element) + internal static ContainerAppJobScale DeserializeContainerAppJobScale(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -53,7 +53,7 @@ internal static JobScale DeserializeJobScale(JsonElement element) Optional pollingInterval = default; Optional minExecutions = default; Optional maxExecutions = default; - Optional> rules = default; + Optional> rules = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("pollingInterval"u8)) @@ -89,16 +89,16 @@ internal static JobScale DeserializeJobScale(JsonElement element) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(JobScaleRule.DeserializeJobScaleRule(item)); + array.Add(ContainerAppJobScaleRule.DeserializeContainerAppJobScaleRule(item)); } rules = array; continue; } } - return new JobScale(Optional.ToNullable(pollingInterval), Optional.ToNullable(minExecutions), Optional.ToNullable(maxExecutions), Optional.ToList(rules)); + return new ContainerAppJobScale(Optional.ToNullable(pollingInterval), Optional.ToNullable(minExecutions), Optional.ToNullable(maxExecutions), Optional.ToList(rules)); } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScale.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobScale.cs similarity index 61% rename from sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScale.cs rename to sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobScale.cs index 84588972913d..2638146b384d 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScale.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobScale.cs @@ -11,34 +11,34 @@ namespace Azure.ResourceManager.AppContainers.Models { /// Scaling configurations for event driven jobs. - public partial class JobScale + public partial class ContainerAppJobScale { - /// Initializes a new instance of JobScale. - public JobScale() + /// Initializes a new instance of ContainerAppJobScale. + public ContainerAppJobScale() { - Rules = new ChangeTrackingList(); + Rules = new ChangeTrackingList(); } - /// Initializes a new instance of JobScale. - /// Interval to check each event source in seconds. Defaults to 30s. + /// Initializes a new instance of ContainerAppJobScale. + /// Interval to check each event source in seconds. Defaults to 30s. /// Minimum number of job executions that are created for a trigger, default 0. /// Maximum number of job executions that are created for a trigger, default 100. /// Scaling rules. - internal JobScale(int? pollingInterval, int? minExecutions, int? maxExecutions, IList rules) + internal ContainerAppJobScale(int? pollingIntervalInSeconds, int? minExecutions, int? maxExecutions, IList rules) { - PollingInterval = pollingInterval; + PollingIntervalInSeconds = pollingIntervalInSeconds; MinExecutions = minExecutions; MaxExecutions = maxExecutions; Rules = rules; } /// Interval to check each event source in seconds. Defaults to 30s. - public int? PollingInterval { get; set; } + public int? PollingIntervalInSeconds { get; set; } /// Minimum number of job executions that are created for a trigger, default 0. public int? MinExecutions { get; set; } /// Maximum number of job executions that are created for a trigger, default 100. public int? MaxExecutions { get; set; } /// Scaling rules. - public IList Rules { get; } + public IList Rules { get; } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScaleRule.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobScaleRule.Serialization.cs similarity index 91% rename from sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScaleRule.Serialization.cs rename to sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobScaleRule.Serialization.cs index 70d9ba062a43..de405bfe34ab 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScaleRule.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobScaleRule.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.AppContainers.Models { - public partial class JobScaleRule : IUtf8JsonSerializable + public partial class ContainerAppJobScaleRule : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -49,7 +49,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static JobScaleRule DeserializeJobScaleRule(JsonElement element) + internal static ContainerAppJobScaleRule DeserializeContainerAppJobScaleRule(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -95,7 +95,7 @@ internal static JobScaleRule DeserializeJobScaleRule(JsonElement element) continue; } } - return new JobScaleRule(name.Value, type.Value, metadata.Value, Optional.ToList(auth)); + return new ContainerAppJobScaleRule(name.Value, type.Value, metadata.Value, Optional.ToList(auth)); } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScaleRule.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobScaleRule.cs similarity index 86% rename from sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScaleRule.cs rename to sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobScaleRule.cs index 506337ee2ef2..966637e816bc 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobScaleRule.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppJobScaleRule.cs @@ -12,15 +12,15 @@ namespace Azure.ResourceManager.AppContainers.Models { /// Scaling rule. - public partial class JobScaleRule + public partial class ContainerAppJobScaleRule { - /// Initializes a new instance of JobScaleRule. - public JobScaleRule() + /// Initializes a new instance of ContainerAppJobScaleRule. + public ContainerAppJobScaleRule() { Auth = new ChangeTrackingList(); } - /// Initializes a new instance of JobScaleRule. + /// Initializes a new instance of ContainerAppJobScaleRule. /// Scale Rule Name. /// /// Type of the scale rule @@ -28,7 +28,7 @@ public JobScaleRule() /// /// Metadata properties to describe the scale rule. /// Authentication secrets for the scale rule. - internal JobScaleRule(string name, string jobScaleRuleType, BinaryData metadata, IList auth) + internal ContainerAppJobScaleRule(string name, string jobScaleRuleType, BinaryData metadata, IList auth) { Name = name; JobScaleRuleType = jobScaleRuleType; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ServiceBind.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppServiceBind.Serialization.cs similarity index 86% rename from sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ServiceBind.Serialization.cs rename to sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppServiceBind.Serialization.cs index 84af1bb026a3..785026d00f02 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ServiceBind.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppServiceBind.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.AppContainers.Models { - public partial class ServiceBind : IUtf8JsonSerializable + public partial class ContainerAppServiceBind : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -28,7 +28,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ServiceBind DeserializeServiceBind(JsonElement element) + internal static ContainerAppServiceBind DeserializeContainerAppServiceBind(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -53,7 +53,7 @@ internal static ServiceBind DeserializeServiceBind(JsonElement element) continue; } } - return new ServiceBind(serviceId.Value, name.Value); + return new ContainerAppServiceBind(serviceId.Value, name.Value); } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ServiceBind.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppServiceBind.cs similarity index 69% rename from sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ServiceBind.cs rename to sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppServiceBind.cs index 6becb006be94..e797bbdd27bb 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ServiceBind.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppServiceBind.cs @@ -10,17 +10,17 @@ namespace Azure.ResourceManager.AppContainers.Models { /// Configuration to bind a ContainerApp to a dev ContainerApp Service. - public partial class ServiceBind + public partial class ContainerAppServiceBind { - /// Initializes a new instance of ServiceBind. - public ServiceBind() + /// Initializes a new instance of ContainerAppServiceBind. + public ContainerAppServiceBind() { } - /// Initializes a new instance of ServiceBind. + /// Initializes a new instance of ContainerAppServiceBind. /// Resource id of the target service. /// Name of the service bind. - internal ServiceBind(ResourceIdentifier serviceId, string name) + internal ContainerAppServiceBind(ResourceIdentifier serviceId, string name) { ServiceId = serviceId; Name = name; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTemplate.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTemplate.Serialization.cs index 1f08d8bebaee..b526fcbaeb98 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTemplate.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTemplate.Serialization.cs @@ -86,7 +86,7 @@ internal static ContainerAppTemplate DeserializeContainerAppTemplate(JsonElement Optional> containers = default; Optional scale = default; Optional> volumes = default; - Optional> serviceBinds = default; + Optional> serviceBinds = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("revisionSuffix"u8)) @@ -160,10 +160,10 @@ internal static ContainerAppTemplate DeserializeContainerAppTemplate(JsonElement { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ServiceBind.DeserializeServiceBind(item)); + array.Add(ContainerAppServiceBind.DeserializeContainerAppServiceBind(item)); } serviceBinds = array; continue; diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTemplate.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTemplate.cs index a5d5ff9bb836..61021bb91358 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTemplate.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/ContainerAppTemplate.cs @@ -23,7 +23,7 @@ public ContainerAppTemplate() InitContainers = new ChangeTrackingList(); Containers = new ChangeTrackingList(); Volumes = new ChangeTrackingList(); - ServiceBinds = new ChangeTrackingList(); + ServiceBinds = new ChangeTrackingList(); } /// Initializes a new instance of ContainerAppTemplate. @@ -34,7 +34,7 @@ public ContainerAppTemplate() /// Scaling properties for the Container App. /// List of volume definitions for the Container App. /// List of container app services bound to the app. - internal ContainerAppTemplate(string revisionSuffix, long? terminationGracePeriodSeconds, IList initContainers, IList containers, ContainerAppScale scale, IList volumes, IList serviceBinds) + internal ContainerAppTemplate(string revisionSuffix, long? terminationGracePeriodSeconds, IList initContainers, IList containers, ContainerAppScale scale, IList volumes, IList serviceBinds) { RevisionSuffix = revisionSuffix; TerminationGracePeriodSeconds = terminationGracePeriodSeconds; @@ -58,6 +58,6 @@ internal ContainerAppTemplate(string revisionSuffix, long? terminationGracePerio /// List of volume definitions for the Container App. public IList Volumes { get; } /// List of container app services bound to the app. - public IList ServiceBinds { get; } + public IList ServiceBinds { get; } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobConfigurationEventTriggerConfig.Serialization.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/EventTriggerConfiguration.Serialization.cs similarity index 82% rename from sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobConfigurationEventTriggerConfig.Serialization.cs rename to sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/EventTriggerConfiguration.Serialization.cs index 61f6340390fe..748fedb6271b 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobConfigurationEventTriggerConfig.Serialization.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/EventTriggerConfiguration.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.AppContainers.Models { - public partial class JobConfigurationEventTriggerConfig : IUtf8JsonSerializable + public partial class EventTriggerConfiguration : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -33,7 +33,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static JobConfigurationEventTriggerConfig DeserializeJobConfigurationEventTriggerConfig(JsonElement element) + internal static EventTriggerConfiguration DeserializeEventTriggerConfiguration(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -41,7 +41,7 @@ internal static JobConfigurationEventTriggerConfig DeserializeJobConfigurationEv } Optional replicaCompletionCount = default; Optional parallelism = default; - Optional scale = default; + Optional scale = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("replicaCompletionCount"u8)) @@ -68,11 +68,11 @@ internal static JobConfigurationEventTriggerConfig DeserializeJobConfigurationEv { continue; } - scale = JobScale.DeserializeJobScale(property.Value); + scale = ContainerAppJobScale.DeserializeContainerAppJobScale(property.Value); continue; } } - return new JobConfigurationEventTriggerConfig(Optional.ToNullable(replicaCompletionCount), Optional.ToNullable(parallelism), scale.Value); + return new EventTriggerConfiguration(Optional.ToNullable(replicaCompletionCount), Optional.ToNullable(parallelism), scale.Value); } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobConfigurationEventTriggerConfig.cs b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/EventTriggerConfiguration.cs similarity index 71% rename from sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobConfigurationEventTriggerConfig.cs rename to sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/EventTriggerConfiguration.cs index ff7e36b4c513..f639f8a14377 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/JobConfigurationEventTriggerConfig.cs +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Generated/Models/EventTriggerConfiguration.cs @@ -8,18 +8,18 @@ namespace Azure.ResourceManager.AppContainers.Models { /// Trigger configuration of an event driven job. - public partial class JobConfigurationEventTriggerConfig + public partial class EventTriggerConfiguration { - /// Initializes a new instance of JobConfigurationEventTriggerConfig. - public JobConfigurationEventTriggerConfig() + /// Initializes a new instance of EventTriggerConfiguration. + public EventTriggerConfiguration() { } - /// Initializes a new instance of JobConfigurationEventTriggerConfig. + /// Initializes a new instance of EventTriggerConfiguration. /// Minimum number of successful replica completions before overall job completion. /// Number of parallel replicas of a job that can run at a given time. /// Scaling configurations for event driven jobs. - internal JobConfigurationEventTriggerConfig(int? replicaCompletionCount, int? parallelism, JobScale scale) + internal EventTriggerConfiguration(int? replicaCompletionCount, int? parallelism, ContainerAppJobScale scale) { ReplicaCompletionCount = replicaCompletionCount; Parallelism = parallelism; @@ -31,6 +31,6 @@ internal JobConfigurationEventTriggerConfig(int? replicaCompletionCount, int? pa /// Number of parallel replicas of a job that can run at a given time. public int? Parallelism { get; set; } /// Scaling configurations for event driven jobs. - public JobScale Scale { get; set; } + public ContainerAppJobScale Scale { get; set; } } } diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/autorest.md b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/autorest.md index 5e7147907d27..ab79f3c3289c 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/autorest.md +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/autorest.md @@ -7,13 +7,17 @@ azure-arm: true csharp: true library-name: AppContainers namespace: Azure.ResourceManager.AppContainers -require: https://github.com/Azure/azure-rest-api-specs/blob/68332bd340f87049bddfa3bd5c4c700568a7a08c/specification/app/resource-manager/readme.md +require: https://github.com/Azure/azure-rest-api-specs/blob/ad997e99eccc15b7ab4cd66ae3f1f9534a1e2628/specification/app/resource-manager/readme.md +# tag: package-2023-05 output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true modelerfour: flatten-payloads: false +#mgmt-debug: +# show-serialized-names: true + format-by-name-rules: 'tenantId': 'uuid' 'etag': 'etag' @@ -218,6 +222,11 @@ rename-mapping: JobsCollection: ContainerAppJobsCollection ManagedCertificate: ContainerAppManagedCertificate Mtls.enabled: IsMtlsEnabled + ServiceBind: ContainerAppServiceBind + JobScale: ContainerAppJobScale + JobScale.pollingInterval: PollingIntervalInSeconds + JobScaleRule: ContainerAppJobScaleRule + JobConfigurationEventTriggerConfig: EventTriggerConfiguration request-path-to-resource-name: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/connectedEnvironments/{connectedEnvironmentName}/certificates/{certificateName}: ContainerAppConnectedEnvironmentCertificate From 231133e21e806875a4b37573ae848e17c6ff7c7e Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 8 Aug 2023 03:40:03 -0700 Subject: [PATCH 53/54] Increment package version after release of Azure.ResourceManager.AppContainers (#38073) --- .../Azure.ResourceManager.AppContainers/CHANGELOG.md | 10 ++++++++++ .../src/Azure.ResourceManager.AppContainers.csproj | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md b/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md index ae2043ff57af..11e74c196f0b 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.0-beta.4 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.1.0-beta.3 (2023-08-08) ### Features Added diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Azure.ResourceManager.AppContainers.csproj b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Azure.ResourceManager.AppContainers.csproj index 15ffc71be59c..ec24b5720cbc 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Azure.ResourceManager.AppContainers.csproj +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Azure.ResourceManager.AppContainers.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.3 + 1.1.0-beta.4 1.0.3 Azure.ResourceManager.AppContainers From e66d223f41feb47bffdf93d208f8a0d94139fcc4 Mon Sep 17 00:00:00 2001 From: Arthur Ma Date: Tue, 8 Aug 2023 18:44:45 +0800 Subject: [PATCH 54/54] update --- .../CHANGELOG.md | 16 ++++++++++------ .../Azure.ResourceManager.AppContainers.csproj | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md b/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md index 11e74c196f0b..256454a1fecf 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/CHANGELOG.md @@ -1,15 +1,18 @@ # Release History -## 1.1.0-beta.4 (Unreleased) +## 1.1.0 (2023-08-11) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Upgraded api-version tag from 'package-2022-10' to 'package-2023-05'. Tag detail available at https://github.com/Azure/azure-rest-api-specs/blob/ad997e99eccc15b7ab4cd66ae3f1f9534a1e2628/specification/app/resource-manager/readme.md ### Other Changes +- Upgraded Azure.Core from 1.30.0 to 1.34.0 +- Upgraded Azure.ResourceManager from 1.4.0 to 1.7.0 +- Obsoleted property 'ContainerAppManagedEnvironmentOutboundSettings OutboundSettings' in type Azure.ResourceManager.AppContainers.Models.ContainerAppVnetConfiguration +- Obsoleted property 'String RuntimeSubnetId' in type Azure.ResourceManager.AppContainers.Models.ContainerAppVnetConfiguration + ## 1.1.0-beta.3 (2023-08-08) ### Features Added @@ -39,6 +42,7 @@ ## 1.1.0-beta.1 (2023-05-15) ### Features Added + - Upgrade to 2022-11-01-preview api version - Add API to start, stop and executions for ContainerAppJobs - Support keyvault for container app secret @@ -50,6 +54,7 @@ - Add Friendly workload profile name support ### Bugs Fixed + - Fix certifaicte password format for environment custom domain ### Other Changes @@ -114,5 +119,4 @@ This package follows the [new Azure SDK guidelines](https://azure.github.io/azur This package is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). -> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). - +> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). \ No newline at end of file diff --git a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Azure.ResourceManager.AppContainers.csproj b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Azure.ResourceManager.AppContainers.csproj index ec24b5720cbc..f2fb643c8f11 100644 --- a/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Azure.ResourceManager.AppContainers.csproj +++ b/sdk/containerapps/Azure.ResourceManager.AppContainers/src/Azure.ResourceManager.AppContainers.csproj @@ -1,6 +1,6 @@ - 1.1.0-beta.4 + 1.1.0 1.0.3 Azure.ResourceManager.AppContainers