class Azure::Synapse::Mgmt::V2019_06_01_preview::SynapseManagementClient
A service client - single point of access to the REST API.
Attributes
@return [String] The preferred language for the response.
@return [String] The API version to use for this operation.
@return [String] the base URI of the service.
@return [BigDataPools] big_data_pools
@return Credentials needed for the client to connect to Azure
.
@return [DataMaskingPolicies] data_masking_policies
@return [DataMaskingRules] data_masking_rules
@return [ExtendedSqlPoolBlobAuditingPolicies] extended_sql_pool_blob_auditing_policies
@return [Boolean] Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
@return [IntegrationRuntimeAuthKeysOperations] integration_runtime_auth_keys_operations
@return [IntegrationRuntimeConnectionInfos] integration_runtime_connection_infos
@return [IntegrationRuntimeCredentials] integration_runtime_credentials
@return [IntegrationRuntimeMonitoringDataOperations] integration_runtime_monitoring_data_operations
@return [IntegrationRuntimeNodeIpAddressOperations] integration_runtime_node_ip_address_operations
@return [IntegrationRuntimeNodes] integration_runtime_nodes
@return [IntegrationRuntimeObjectMetadata] integration_runtime_object_metadata
@return [IntegrationRuntimeStatusOperations] integration_runtime_status_operations
@return [IntegrationRuntimes] integration_runtimes
@return [IpFirewallRules] ip_firewall_rules
@return [Keys] keys
@return [Integer] The retry timeout in seconds for Long Running Operations
. Default value is 30.
@return [Operations] operations
@return [PrivateEndpointConnections] private_endpoint_connections
@return [PrivateEndpointConnectionsPrivateLinkHub] private_endpoint_connections_private_link_hub
@return [PrivateLinkHubs] private_link_hubs
@return [PrivateLinkResources] private_link_resources
@return [RestorableDroppedSqlPools] restorable_dropped_sql_pools
@return [SqlPoolBlobAuditingPolicies] sql_pool_blob_auditing_policies
@return [SqlPoolColumns] sql_pool_columns
@return [SqlPoolConnectionPolicies] sql_pool_connection_policies
@return [SqlPoolDataWarehouseUserActivities] sql_pool_data_warehouse_user_activities
@return [SqlPoolGeoBackupPolicies] sql_pool_geo_backup_policies
@return [SqlPoolMetadataSyncConfigs] sql_pool_metadata_sync_configs
@return [SqlPoolOperationResults] sql_pool_operation_results
@return [SqlPoolOperations] sql_pool_operations
@return [SqlPoolReplicationLinks] sql_pool_replication_links
@return [SqlPoolRestorePoints] sql_pool_restore_points
@return [SqlPoolSchemas] sql_pool_schemas
@return [SqlPoolSecurityAlertPolicies] sql_pool_security_alert_policies
@return [SqlPoolSensitivityLabels] sql_pool_sensitivity_labels
@return [SqlPoolTableColumns] sql_pool_table_columns
@return [SqlPoolTables] sql_pool_tables
@return [SqlPoolTransparentDataEncryptions] sql_pool_transparent_data_encryptions
@return [SqlPoolUsages] sql_pool_usages
@return [SqlPoolVulnerabilityAssessmentRuleBaselines] sql_pool_vulnerability_assessment_rule_baselines
@return [SqlPoolVulnerabilityAssessmentScans] sql_pool_vulnerability_assessment_scans
@return [SqlPoolVulnerabilityAssessments] sql_pool_vulnerability_assessments
@return [SqlPoolWorkloadClassifier] sql_pool_workload_classifier
@return [SqlPoolWorkloadGroup] sql_pool_workload_group
@return [SqlPools] sql_pools
@return [String] The ID of the target subscription.
@return [WorkspaceAadAdmins] workspace_aad_admins
@return [WorkspaceManagedIdentitySqlControlSettings] workspace_managed_identity_sql_control_settings
@return [WorkspaceManagedSqlServerBlobAuditingPolicies] workspace_managed_sql_server_blob_auditing_policies
@return [WorkspaceManagedSqlServerExtendedBlobAuditingPolicies] workspace_managed_sql_server_extended_blob_auditing_policies
@return [WorkspaceManagedSqlServerRecoverableSqlpools] workspace_managed_sql_server_recoverable_sqlpools
@return [WorkspaceManagedSqlServerSecurityAlertPolicy] workspace_managed_sql_server_security_alert_policy
@return [WorkspaceManagedSqlServerUsages] workspace_managed_sql_server_usages
@return [WorkspaceManagedSqlServerVulnerabilityAssessments] workspace_managed_sql_server_vulnerability_assessments
@return [WorkspaceSqlAadAdmins] workspace_sql_aad_admins
@return [Workspaces] workspaces
Public Class Methods
Creates initializes a new instance of the SynapseManagementClient
class. @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client. @param base_url
[String] the base URI of the service. @param options [Array] filters to be applied to the HTTP requests.
# File lib/2019-06-01-preview/generated/azure_mgmt_synapse/synapse_management_client.rb, line 226 def initialize(credentials = nil, base_url = nil, options = nil) super(credentials, options) @base_url = base_url || 'https://management.azure.com' fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil? @credentials = credentials @big_data_pools = BigDataPools.new(self) @operations = Operations.new(self) @ip_firewall_rules = IpFirewallRules.new(self) @sql_pools = SqlPools.new(self) @sql_pool_metadata_sync_configs = SqlPoolMetadataSyncConfigs.new(self) @sql_pool_operation_results = SqlPoolOperationResults.new(self) @sql_pool_geo_backup_policies = SqlPoolGeoBackupPolicies.new(self) @sql_pool_data_warehouse_user_activities = SqlPoolDataWarehouseUserActivities.new(self) @sql_pool_restore_points = SqlPoolRestorePoints.new(self) @sql_pool_replication_links = SqlPoolReplicationLinks.new(self) @sql_pool_transparent_data_encryptions = SqlPoolTransparentDataEncryptions.new(self) @sql_pool_blob_auditing_policies = SqlPoolBlobAuditingPolicies.new(self) @sql_pool_operations = SqlPoolOperations.new(self) @sql_pool_usages = SqlPoolUsages.new(self) @sql_pool_sensitivity_labels = SqlPoolSensitivityLabels.new(self) @sql_pool_schemas = SqlPoolSchemas.new(self) @sql_pool_tables = SqlPoolTables.new(self) @sql_pool_table_columns = SqlPoolTableColumns.new(self) @sql_pool_connection_policies = SqlPoolConnectionPolicies.new(self) @sql_pool_vulnerability_assessments = SqlPoolVulnerabilityAssessments.new(self) @sql_pool_vulnerability_assessment_scans = SqlPoolVulnerabilityAssessmentScans.new(self) @sql_pool_security_alert_policies = SqlPoolSecurityAlertPolicies.new(self) @sql_pool_vulnerability_assessment_rule_baselines = SqlPoolVulnerabilityAssessmentRuleBaselines.new(self) @extended_sql_pool_blob_auditing_policies = ExtendedSqlPoolBlobAuditingPolicies.new(self) @data_masking_policies = DataMaskingPolicies.new(self) @data_masking_rules = DataMaskingRules.new(self) @sql_pool_columns = SqlPoolColumns.new(self) @sql_pool_workload_group = SqlPoolWorkloadGroup.new(self) @sql_pool_workload_classifier = SqlPoolWorkloadClassifier.new(self) @workspaces = Workspaces.new(self) @workspace_aad_admins = WorkspaceAadAdmins.new(self) @workspace_sql_aad_admins = WorkspaceSqlAadAdmins.new(self) @workspace_managed_identity_sql_control_settings = WorkspaceManagedIdentitySqlControlSettings.new(self) @restorable_dropped_sql_pools = RestorableDroppedSqlPools.new(self) @integration_runtimes = IntegrationRuntimes.new(self) @integration_runtime_node_ip_address_operations = IntegrationRuntimeNodeIpAddressOperations.new(self) @integration_runtime_object_metadata = IntegrationRuntimeObjectMetadata.new(self) @integration_runtime_nodes = IntegrationRuntimeNodes.new(self) @integration_runtime_credentials = IntegrationRuntimeCredentials.new(self) @integration_runtime_connection_infos = IntegrationRuntimeConnectionInfos.new(self) @integration_runtime_auth_keys_operations = IntegrationRuntimeAuthKeysOperations.new(self) @integration_runtime_monitoring_data_operations = IntegrationRuntimeMonitoringDataOperations.new(self) @integration_runtime_status_operations = IntegrationRuntimeStatusOperations.new(self) @private_link_resources = PrivateLinkResources.new(self) @private_endpoint_connections = PrivateEndpointConnections.new(self) @private_link_hubs = PrivateLinkHubs.new(self) @private_endpoint_connections_private_link_hub = PrivateEndpointConnectionsPrivateLinkHub.new(self) @workspace_managed_sql_server_blob_auditing_policies = WorkspaceManagedSqlServerBlobAuditingPolicies.new(self) @workspace_managed_sql_server_extended_blob_auditing_policies = WorkspaceManagedSqlServerExtendedBlobAuditingPolicies.new(self) @workspace_managed_sql_server_security_alert_policy = WorkspaceManagedSqlServerSecurityAlertPolicy.new(self) @workspace_managed_sql_server_vulnerability_assessments = WorkspaceManagedSqlServerVulnerabilityAssessments.new(self) @workspace_managed_sql_server_usages = WorkspaceManagedSqlServerUsages.new(self) @workspace_managed_sql_server_recoverable_sqlpools = WorkspaceManagedSqlServerRecoverableSqlpools.new(self) @keys = Keys.new(self) @api_version = '2019-06-01-preview' @accept_language = 'en-US' @long_running_operation_retry_timeout = 30 @generate_client_request_id = true add_telemetry end
Public Instance Methods
Makes a request and returns the body of the response. @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete. @param path [String] the path, relative to {base_url}. @param options [Hash{String=>String}] specifying any request options like :body. @return [Hash{String=>String}] containing the body of the response. Example:
request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}" path = "/path" options = { body: request_content, query_params: {'api-version' => '2016-02-01'} } result = @client.make_request(:put, path, options)
# File lib/2019-06-01-preview/generated/azure_mgmt_synapse/synapse_management_client.rb, line 310 def make_request(method, path, options = {}) result = make_request_with_http_info(method, path, options) result.body unless result.nil? end
Makes a request asynchronously. @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete. @param path [String] the path, relative to {base_url}. @param options [Hash{String=>String}] specifying any request options like :body. @return [Concurrent::Promise] Promise object which holds the HTTP response.
# File lib/2019-06-01-preview/generated/azure_mgmt_synapse/synapse_management_client.rb, line 335 def make_request_async(method, path, options = {}) fail ArgumentError, 'method is nil' if method.nil? fail ArgumentError, 'path is nil' if path.nil? request_url = options[:base_url] || @base_url if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?) @request_headers['Content-Type'] = options[:headers]['Content-Type'] end request_headers = @request_headers request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil? options.merge!({headers: request_headers.merge(options[:headers] || {})}) options.merge!({credentials: @credentials}) unless @credentials.nil? super(request_url, method, path, options) end
Makes a request and returns the operation response. @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete. @param path [String] the path, relative to {base_url}. @param options [Hash{String=>String}] specifying any request options like :body. @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
# File lib/2019-06-01-preview/generated/azure_mgmt_synapse/synapse_management_client.rb, line 322 def make_request_with_http_info(method, path, options = {}) result = make_request_async(method, path, options).value! result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body) result end
Private Instance Methods
Adds telemetry information.
# File lib/2019-06-01-preview/generated/azure_mgmt_synapse/synapse_management_client.rb, line 357 def add_telemetry sdk_information = 'azure_mgmt_synapse' sdk_information = "#{sdk_information}/0.17.4" add_user_agent_information(sdk_information) end