Exemplo n.º 1
0
 /// <summary>
 /// Gets a privateLinkHub
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateLinkHubName'>
 /// The name of the privateLinkHub
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <PrivateLinkHub> GetAsync(this IPrivateLinkHubsOperations operations, string resourceGroupName, string privateLinkHubName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, privateLinkHubName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Returns a list of privateLinkHubs in a subscription
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <PrivateLinkHub> > ListNextAsync(this IPrivateLinkHubsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     BigDataPools                                = new BigDataPoolsOperations(this);
     Operations                                  = new Operations(this);
     IpFirewallRules                             = new IpFirewallRulesOperations(this);
     SqlPools                                    = new SqlPoolsOperations(this);
     SqlPoolMetadataSyncConfigs                  = new SqlPoolMetadataSyncConfigsOperations(this);
     SqlPoolOperationResults                     = new SqlPoolOperationResultsOperations(this);
     SqlPoolGeoBackupPolicies                    = new SqlPoolGeoBackupPoliciesOperations(this);
     SqlPoolDataWarehouseUserActivities          = new SqlPoolDataWarehouseUserActivitiesOperations(this);
     SqlPoolRestorePoints                        = new SqlPoolRestorePointsOperations(this);
     SqlPoolReplicationLinks                     = new SqlPoolReplicationLinksOperations(this);
     SqlPoolTransparentDataEncryptions           = new SqlPoolTransparentDataEncryptionsOperations(this);
     SqlPoolBlobAuditingPolicies                 = new SqlPoolBlobAuditingPoliciesOperations(this);
     SqlPoolOperations                           = new SqlPoolOperations(this);
     SqlPoolUsages                               = new SqlPoolUsagesOperations(this);
     SqlPoolSensitivityLabels                    = new SqlPoolSensitivityLabelsOperations(this);
     SqlPoolSchemas                              = new SqlPoolSchemasOperations(this);
     SqlPoolTables                               = new SqlPoolTablesOperations(this);
     SqlPoolTableColumns                         = new SqlPoolTableColumnsOperations(this);
     SqlPoolConnectionPolicies                   = new SqlPoolConnectionPoliciesOperations(this);
     SqlPoolVulnerabilityAssessments             = new SqlPoolVulnerabilityAssessmentsOperations(this);
     SqlPoolVulnerabilityAssessmentScans         = new SqlPoolVulnerabilityAssessmentScansOperations(this);
     SqlPoolSecurityAlertPolicies                = new SqlPoolSecurityAlertPoliciesOperations(this);
     SqlPoolVulnerabilityAssessmentRuleBaselines = new SqlPoolVulnerabilityAssessmentRuleBaselinesOperations(this);
     Workspaces                                  = new WorkspacesOperations(this);
     WorkspaceAadAdmins                          = new WorkspaceAadAdminsOperations(this);
     WorkspaceManagedIdentitySqlControlSettings  = new WorkspaceManagedIdentitySqlControlSettingsOperations(this);
     IntegrationRuntimes                         = new IntegrationRuntimesOperations(this);
     IntegrationRuntimeNodeIpAddress             = new IntegrationRuntimeNodeIpAddressOperations(this);
     IntegrationRuntimeObjectMetadata            = new IntegrationRuntimeObjectMetadataOperations(this);
     IntegrationRuntimeNodes                     = new IntegrationRuntimeNodesOperations(this);
     IntegrationRuntimeCredentials               = new IntegrationRuntimeCredentialsOperations(this);
     IntegrationRuntimeConnectionInfos           = new IntegrationRuntimeConnectionInfosOperations(this);
     IntegrationRuntimeAuthKeys                  = new IntegrationRuntimeAuthKeysOperations(this);
     IntegrationRuntimeMonitoringData            = new IntegrationRuntimeMonitoringDataOperations(this);
     IntegrationRuntimeStatus                    = new IntegrationRuntimeStatusOperations(this);
     PrivateLinkResources                        = new PrivateLinkResourcesOperations(this);
     PrivateEndpointConnections                  = new PrivateEndpointConnectionsOperations(this);
     PrivateLinkHubs                             = new PrivateLinkHubsOperations(this);
     BaseUri        = new System.Uri("https://management.azure.com");
     ApiVersion     = "2019-06-01-preview";
     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()
         }
     };
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <IntegrationRuntime>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <IntegrationRuntime>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <CustomSetupBase>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <CustomSetupBase>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <SecretBase>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <SecretBase>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <LinkedIntegrationRuntimeType>("authorizationType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <LinkedIntegrationRuntimeType>("authorizationType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <IntegrationRuntimeStatus>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <IntegrationRuntimeStatus>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <SsisObjectMetadata>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <SsisObjectMetadata>("type"));
     CustomInitialize();
     DeserializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }
Exemplo n.º 4
0
 /// <summary>
 /// Gets a privateLinkHub
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateLinkHubName'>
 /// The name of the privateLinkHub
 /// </param>
 public static PrivateLinkHub Get(this IPrivateLinkHubsOperations operations, string resourceGroupName, string privateLinkHubName)
 {
     return(operations.GetAsync(resourceGroupName, privateLinkHubName).GetAwaiter().GetResult());
 }
Exemplo n.º 5
0
 /// <summary>
 /// Returns a list of privateLinkHubs in a resource group
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 public static IPage <PrivateLinkHub> ListByResourceGroup(this IPrivateLinkHubsOperations operations, string resourceGroupName)
 {
     return(operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult());
 }
Exemplo n.º 6
0
 /// <summary>
 /// Returns a list of privateLinkHubs in a subscription
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <PrivateLinkHub> ListNext(this IPrivateLinkHubsOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Exemplo n.º 7
0
 /// <summary>
 /// Returns a list of privateLinkHubs in a subscription
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <PrivateLinkHub> List(this IPrivateLinkHubsOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }
Exemplo n.º 8
0
 /// <summary>
 /// Deletes a privateLinkHub
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateLinkHubName'>
 /// The name of the privateLinkHub
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IPrivateLinkHubsOperations operations, string resourceGroupName, string privateLinkHubName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, privateLinkHubName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Exemplo n.º 9
0
 /// <summary>
 /// Deletes a privateLinkHub
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateLinkHubName'>
 /// The name of the privateLinkHub
 /// </param>
 public static void Delete(this IPrivateLinkHubsOperations operations, string resourceGroupName, string privateLinkHubName)
 {
     operations.DeleteAsync(resourceGroupName, privateLinkHubName).GetAwaiter().GetResult();
 }
Exemplo n.º 10
0
 /// <summary>
 /// Creates or updates a privateLinkHub
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateLinkHubName'>
 /// The name of the privateLinkHub
 /// </param>
 /// <param name='privateLinkHubInfo'>
 /// PrivateLinkHub create or update request properties
 /// </param>
 public static PrivateLinkHub CreateOrUpdate(this IPrivateLinkHubsOperations operations, string resourceGroupName, string privateLinkHubName, PrivateLinkHub privateLinkHubInfo)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, privateLinkHubName, privateLinkHubInfo).GetAwaiter().GetResult());
 }
Exemplo n.º 11
0
 /// <summary>
 /// Updates a privateLinkHub
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='privateLinkHubPatchInfo'>
 /// PrivateLinkHub patch request properties
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateLinkHubName'>
 /// Name of the privateLinkHub
 /// </param>
 public static PrivateLinkHub Update(this IPrivateLinkHubsOperations operations, PrivateLinkHubPatchInfo privateLinkHubPatchInfo, string resourceGroupName, string privateLinkHubName)
 {
     return(operations.UpdateAsync(privateLinkHubPatchInfo, resourceGroupName, privateLinkHubName).GetAwaiter().GetResult());
 }