/// <summary> /// Deletes a workspace key /// </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='workspaceName'> /// The name of the workspace /// </param> /// <param name='keyName'> /// The name of the workspace key /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Key> DeleteAsync(this IKeysOperations operations, string resourceGroupName, string workspaceName, string keyName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, keyName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Creates the first version of a new key if it does not exist. If it already /// exists, then the existing key is returned without any write operations /// being performed. This API does not create subsequent versions, and does not /// update existing keys. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group which contains the specified key vault. /// </param> /// <param name='vaultName'> /// The name of the key vault which contains the key to be created. /// </param> /// <param name='keyName'> /// The name of the key to be created. /// </param> /// <param name='parameters'> /// The parameters used to create the specified key. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Key> CreateIfNotExistAsync(this IKeysOperations operations, string resourceGroupName, string vaultName, string keyName, KeyCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateIfNotExistWithHttpMessagesAsync(resourceGroupName, vaultName, keyName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists the versions of the specified key in the specified key vault. /// </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 <Key> > ListVersionsNextAsync(this IKeysOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListVersionsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists the versions of the specified key in the specified key vault. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group which contains the specified key vault. /// </param> /// <param name='vaultName'> /// The name of the vault which contains the key versions to be retrieved. /// </param> /// <param name='keyName'> /// The name of the key versions to be retrieved. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <Key> > ListVersionsAsync(this IKeysOperations operations, string resourceGroupName, string vaultName, string keyName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListVersionsWithHttpMessagesAsync(resourceGroupName, vaultName, keyName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Retrieve the automation keys for an account. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of an Azure Resource group. /// </param> /// <param name='automationAccountName'> /// The name of the automation account. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <KeyListResult> ListByAutomationAccountAsync(this IKeysOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the current version of the specified key from the specified key vault. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group which contains the specified key vault. /// </param> /// <param name='vaultName'> /// The name of the vault which contains the key to be retrieved. /// </param> /// <param name='keyName'> /// The name of the key to be retrieved. /// </param> public static Key Get(this IKeysOperations operations, string resourceGroupName, string vaultName, string keyName) { return(operations.GetAsync(resourceGroupName, vaultName, keyName).GetAwaiter().GetResult()); }
/// <summary> /// Creates the first version of a new key if it does not exist. If it already /// exists, then the existing key is returned without any write operations /// being performed. This API does not create subsequent versions, and does not /// update existing keys. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group which contains the specified key vault. /// </param> /// <param name='vaultName'> /// The name of the key vault which contains the key to be created. /// </param> /// <param name='keyName'> /// The name of the key to be created. /// </param> /// <param name='parameters'> /// The parameters used to create the specified key. /// </param> public static Key CreateIfNotExist(this IKeysOperations operations, string resourceGroupName, string vaultName, string keyName, KeyCreateParameters parameters) { return(operations.CreateIfNotExistAsync(resourceGroupName, vaultName, keyName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Lists the versions of the specified key in the specified key vault. /// </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 <Key> ListVersionsNext(this IKeysOperations operations, string nextPageLink) { return(operations.ListVersionsNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Lists the versions of the specified key in the specified key vault. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group which contains the specified key vault. /// </param> /// <param name='vaultName'> /// The name of the vault which contains the key versions to be retrieved. /// </param> /// <param name='keyName'> /// The name of the key versions to be retrieved. /// </param> public static IPage <Key> ListVersions(this IKeysOperations operations, string resourceGroupName, string vaultName, string keyName) { return(operations.ListVersionsAsync(resourceGroupName, vaultName, keyName).GetAwaiter().GetResult()); }
/// <summary> /// Returns a list of keys in a workspace /// </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='workspaceName'> /// The name of the workspace /// </param> public static IPage <Key> ListByWorkspace(this IKeysOperations operations, string resourceGroupName, string workspaceName) { return(operations.ListByWorkspaceAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult()); }
/// <summary> /// Deletes a workspace key /// </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='workspaceName'> /// The name of the workspace /// </param> /// <param name='keyName'> /// The name of the workspace key /// </param> public static Key Delete(this IKeysOperations operations, string resourceGroupName, string workspaceName, string keyName) { return(operations.DeleteAsync(resourceGroupName, workspaceName, keyName).GetAwaiter().GetResult()); }
/// <summary> /// Creates or updates a workspace key /// </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='workspaceName'> /// The name of the workspace /// </param> /// <param name='keyName'> /// The name of the workspace key /// </param> /// <param name='keyProperties'> /// Key put request properties /// </param> public static Key CreateOrUpdate(this IKeysOperations operations, string resourceGroupName, string workspaceName, string keyName, Key keyProperties) { return(operations.CreateOrUpdateAsync(resourceGroupName, workspaceName, keyName, keyProperties).GetAwaiter().GetResult()); }
/// <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); ExtendedSqlPoolBlobAuditingPolicies = new ExtendedSqlPoolBlobAuditingPoliciesOperations(this); DataMaskingPolicies = new DataMaskingPoliciesOperations(this); DataMaskingRules = new DataMaskingRulesOperations(this); SqlPoolColumns = new SqlPoolColumnsOperations(this); SqlPoolWorkloadGroup = new SqlPoolWorkloadGroupOperations(this); SqlPoolWorkloadClassifier = new SqlPoolWorkloadClassifierOperations(this); Workspaces = new WorkspacesOperations(this); WorkspaceAadAdmins = new WorkspaceAadAdminsOperations(this); WorkspaceSqlAadAdmins = new WorkspaceSqlAadAdminsOperations(this); WorkspaceManagedIdentitySqlControlSettings = new WorkspaceManagedIdentitySqlControlSettingsOperations(this); RestorableDroppedSqlPools = new RestorableDroppedSqlPoolsOperations(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); PrivateEndpointConnectionsPrivateLinkHub = new PrivateEndpointConnectionsPrivateLinkHubOperations(this); WorkspaceManagedSqlServerBlobAuditingPolicies = new WorkspaceManagedSqlServerBlobAuditingPoliciesOperations(this); WorkspaceManagedSqlServerExtendedBlobAuditingPolicies = new WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesOperations(this); WorkspaceManagedSqlServerSecurityAlertPolicy = new WorkspaceManagedSqlServerSecurityAlertPolicyOperations(this); WorkspaceManagedSqlServerVulnerabilityAssessments = new WorkspaceManagedSqlServerVulnerabilityAssessmentsOperations(this); WorkspaceManagedSqlServerUsages = new WorkspaceManagedSqlServerUsagesOperations(this); WorkspaceManagedSqlServerRecoverableSqlpools = new WorkspaceManagedSqlServerRecoverableSqlpoolsOperations(this); Keys = new KeysOperations(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()); }
/// <summary> /// Retrieve the automation keys for an account. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of an Azure Resource group. /// </param> /// <param name='automationAccountName'> /// The name of the automation account. /// </param> public static KeyListResult ListByAutomationAccount(this IKeysOperations operations, string resourceGroupName, string automationAccountName) { return(operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult()); }