Esempio n. 1
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     ApplicationGateways = new ApplicationGatewaysOperations(this);
     ExpressRouteCircuitAuthorizations = new ExpressRouteCircuitAuthorizationsOperations(this);
     ExpressRouteCircuitPeerings = new ExpressRouteCircuitPeeringsOperations(this);
     ExpressRouteCircuits = new ExpressRouteCircuitsOperations(this);
     ExpressRouteServiceProviders = new ExpressRouteServiceProvidersOperations(this);
     LoadBalancers = new LoadBalancersOperations(this);
     NetworkInterfaces = new NetworkInterfacesOperations(this);
     NetworkSecurityGroups = new NetworkSecurityGroupsOperations(this);
     SecurityRules = new SecurityRulesOperations(this);
     NetworkWatchers = new NetworkWatchersOperations(this);
     PacketCaptures = new PacketCapturesOperations(this);
     PublicIPAddresses = new PublicIPAddressesOperations(this);
     RouteFilters = new RouteFiltersOperations(this);
     RouteFilterRules = new RouteFilterRulesOperations(this);
     RouteTables = new RouteTablesOperations(this);
     Routes = new RoutesOperations(this);
     BgpServiceCommunities = new BgpServiceCommunitiesOperations(this);
     Usages = new UsagesOperations(this);
     VirtualNetworks = new VirtualNetworksOperations(this);
     Subnets = new SubnetsOperations(this);
     VirtualNetworkPeerings = new VirtualNetworkPeeringsOperations(this);
     VirtualNetworkGateways = new VirtualNetworkGatewaysOperations(this);
     VirtualNetworkGatewayConnections = new VirtualNetworkGatewayConnectionsOperations(this);
     LocalNetworkGateways = new LocalNetworkGatewaysOperations(this);
     BaseUri = new System.Uri("https://management.azure.com");
     AcceptLanguage = "en-US";
     LongRunningOperationRetryTimeout = 30;
     GenerateClientRequestId = true;
     SerializationSettings = new JsonSerializerSettings
     {
         Formatting = Newtonsoft.Json.Formatting.Indented,
         DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver = new ReadOnlyJsonContractResolver(),
         Converters = new List<JsonConverter>
             {
                 new Iso8601TimeSpanConverter()
             }
     };
     SerializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings = new JsonSerializerSettings
     {
         DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver = new ReadOnlyJsonContractResolver(),
         Converters = new List<JsonConverter>
             {
                 new Iso8601TimeSpanConverter()
             }
     };
     CustomInitialize();
     DeserializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 protected override void Initialize()
 {
     ApplicationGateways               = new ApplicationGatewaysOperations(this);
     ApplicationSecurityGroups         = new ApplicationSecurityGroupsOperations(this);
     AvailableDelegations              = new AvailableDelegationsOperations(this);
     AvailableResourceGroupDelegations = new AvailableResourceGroupDelegationsOperations(this);
     AzureFirewalls                       = new AzureFirewallsOperations(this);
     AzureFirewallFqdnTags                = new AzureFirewallFqdnTagsOperations(this);
     BastionHosts                         = new BastionHostsOperations(this);
     DdosCustomPolicies                   = new DdosCustomPoliciesOperations(this);
     DdosProtectionPlans                  = new DdosProtectionPlansOperations(this);
     AvailableEndpointServices            = new AvailableEndpointServicesOperations(this);
     ExpressRouteCircuitAuthorizations    = new ExpressRouteCircuitAuthorizationsOperations(this);
     ExpressRouteCircuitPeerings          = new ExpressRouteCircuitPeeringsOperations(this);
     ExpressRouteCircuitConnections       = new ExpressRouteCircuitConnectionsOperations(this);
     PeerExpressRouteCircuitConnections   = new PeerExpressRouteCircuitConnectionsOperations(this);
     ExpressRouteCircuits                 = new ExpressRouteCircuitsOperations(this);
     ExpressRouteServiceProviders         = new ExpressRouteServiceProvidersOperations(this);
     ExpressRouteCrossConnections         = new ExpressRouteCrossConnectionsOperations(this);
     ExpressRouteCrossConnectionPeerings  = new ExpressRouteCrossConnectionPeeringsOperations(this);
     ExpressRouteGateways                 = new ExpressRouteGatewaysOperations(this);
     ExpressRouteConnections              = new ExpressRouteConnectionsOperations(this);
     ExpressRoutePortsLocations           = new ExpressRoutePortsLocationsOperations(this);
     ExpressRoutePorts                    = new ExpressRoutePortsOperations(this);
     ExpressRouteLinks                    = new ExpressRouteLinksOperations(this);
     LoadBalancers                        = new LoadBalancersOperations(this);
     LoadBalancerBackendAddressPools      = new LoadBalancerBackendAddressPoolsOperations(this);
     LoadBalancerFrontendIPConfigurations = new LoadBalancerFrontendIPConfigurationsOperations(this);
     InboundNatRules                      = new InboundNatRulesOperations(this);
     LoadBalancerLoadBalancingRules       = new LoadBalancerLoadBalancingRulesOperations(this);
     LoadBalancerOutboundRules            = new LoadBalancerOutboundRulesOperations(this);
     LoadBalancerNetworkInterfaces        = new LoadBalancerNetworkInterfacesOperations(this);
     LoadBalancerProbes                   = new LoadBalancerProbesOperations(this);
     NatGateways       = new NatGatewaysOperations(this);
     NetworkInterfaces = new NetworkInterfacesOperations(this);
     NetworkInterfaceIPConfigurations  = new NetworkInterfaceIPConfigurationsOperations(this);
     NetworkInterfaceLoadBalancers     = new NetworkInterfaceLoadBalancersOperations(this);
     NetworkInterfaceTapConfigurations = new NetworkInterfaceTapConfigurationsOperations(this);
     NetworkProfiles               = new NetworkProfilesOperations(this);
     NetworkSecurityGroups         = new NetworkSecurityGroupsOperations(this);
     SecurityRules                 = new SecurityRulesOperations(this);
     DefaultSecurityRules          = new DefaultSecurityRulesOperations(this);
     NetworkWatchers               = new NetworkWatchersOperations(this);
     PacketCaptures                = new PacketCapturesOperations(this);
     ConnectionMonitors            = new ConnectionMonitorsOperations(this);
     Operations                    = new Operations(this);
     PrivateEndpoints              = new PrivateEndpointsOperations(this);
     AvailablePrivateEndpointTypes = new AvailablePrivateEndpointTypesOperations(this);
     PrivateLinkServices           = new PrivateLinkServicesOperations(this);
     PublicIPAddresses             = new PublicIPAddressesOperations(this);
     PublicIPPrefixes              = new PublicIPPrefixesOperations(this);
     RouteFilters                  = new RouteFiltersOperations(this);
     RouteFilterRules              = new RouteFilterRulesOperations(this);
     RouteTables                   = new RouteTablesOperations(this);
     Routes = new RoutesOperations(this);
     BgpServiceCommunities            = new BgpServiceCommunitiesOperations(this);
     ServiceEndpointPolicies          = new ServiceEndpointPoliciesOperations(this);
     ServiceEndpointPolicyDefinitions = new ServiceEndpointPolicyDefinitionsOperations(this);
     ServiceTags                      = new ServiceTagsOperations(this);
     Usages                           = new UsagesOperations(this);
     VirtualNetworks                  = new VirtualNetworksOperations(this);
     Subnets                          = new SubnetsOperations(this);
     ResourceNavigationLinks          = new ResourceNavigationLinksOperations(this);
     ServiceAssociationLinks          = new ServiceAssociationLinksOperations(this);
     VirtualNetworkPeerings           = new VirtualNetworkPeeringsOperations(this);
     VirtualNetworkGateways           = new VirtualNetworkGatewaysOperations(this);
     VirtualNetworkGatewayConnections = new VirtualNetworkGatewayConnectionsOperations(this);
     LocalNetworkGateways             = new LocalNetworkGatewaysOperations(this);
     VirtualNetworkTaps               = new VirtualNetworkTapsOperations(this);
     VirtualWans                      = new VirtualWansOperations(this);
     VpnSites                         = new VpnSitesOperations(this);
     VpnSiteLinks                     = new VpnSiteLinksOperations(this);
     VpnSitesConfiguration            = new VpnSitesConfigurationOperations(this);
     VirtualHubs                      = new VirtualHubsOperations(this);
     HubVirtualNetworkConnections     = new HubVirtualNetworkConnectionsOperations(this);
     VpnGateways                      = new VpnGatewaysOperations(this);
     VpnConnections                   = new VpnConnectionsOperations(this);
     VpnSiteLinkConnections           = new VpnSiteLinkConnectionsOperations(this);
     VpnLinkConnections               = new VpnLinkConnectionsOperations(this);
     P2sVpnServerConfigurations       = new P2sVpnServerConfigurationsOperations(this);
     P2sVpnGateways                   = new P2sVpnGatewaysOperations(this);
     WebApplicationFirewallPolicies   = new WebApplicationFirewallPoliciesOperations(this);
     BaseUri                          = new System.Uri("https://management.azure.com");
     AcceptLanguage                   = "en-US";
     LongRunningOperationRetryTimeout = 30;
     GenerateClientRequestId          = true;
     SerializationSettings            = new JsonSerializerSettings
     {
         Formatting            = Newtonsoft.Json.Formatting.Indented,
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     SerializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings = new JsonSerializerSettings
     {
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     CustomInitialize();
     DeserializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }