azure_mgmt_synapse 0.17.1 → 0.17.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse.rb +124 -37
  3. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_auth_keys_operations.rb +263 -0
  4. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_connection_infos.rb +137 -0
  5. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_credentials.rb +138 -0
  6. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_monitoring_data_operations.rb +137 -0
  7. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_node_ip_address_operations.rb +141 -0
  8. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_nodes.rb +379 -0
  9. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_object_metadata.rb +262 -0
  10. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtime_status_operations.rb +137 -0
  11. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/integration_runtimes.rb +1053 -0
  12. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/ip_firewall_rules.rb +106 -0
  13. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/big_data_pool_resource_info.rb +0 -4
  14. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/cmdkey_setup.rb +86 -0
  15. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/component_setup.rb +75 -0
  16. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/custom_setup_base.rb +48 -0
  17. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/data_flow_compute_type.rb +17 -0
  18. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/entity_reference.rb +59 -0
  19. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/environment_variable_setup.rb +72 -0
  20. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/get_ssis_object_metadata_request.rb +46 -0
  21. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime.rb +78 -0
  22. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_auth_key_name.rb +16 -0
  23. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_auth_keys.rb +57 -0
  24. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_auto_update.rb +16 -0
  25. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_compute_properties.rb +135 -0
  26. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_connection_info.rb +130 -0
  27. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_custom_setup_script_properties.rb +61 -0
  28. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_data_flow_properties.rb +94 -0
  29. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_data_proxy_properties.rb +72 -0
  30. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_edition.rb +16 -0
  31. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_entity_reference_type.rb +16 -0
  32. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_internal_channel_encryption_mode.rb +17 -0
  33. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_license_type.rb +16 -0
  34. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_list_response.rb +100 -0
  35. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_monitoring_data.rb +67 -0
  36. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_node_ip_address.rb +48 -0
  37. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_node_monitoring_data.rb +154 -0
  38. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_regenerate_key_parameters.rb +48 -0
  39. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_resource.rb +85 -0
  40. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_ssis_catalog_info.rb +107 -0
  41. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_ssis_catalog_pricing_tier.rb +18 -0
  42. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_ssis_properties.rb +141 -0
  43. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_state.rb +24 -0
  44. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_status.rb +94 -0
  45. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_status_response.rb +61 -0
  46. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_type.rb +16 -0
  47. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_update_result.rb +17 -0
  48. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/integration_runtime_vnet_properties.rb +98 -0
  49. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/linked_integration_runtime.rb +98 -0
  50. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/linked_integration_runtime_key_authorization.rb +62 -0
  51. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/linked_integration_runtime_rbac_authorization.rb +64 -0
  52. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/linked_integration_runtime_type.rb +47 -0
  53. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/managed_integration_runtime.rb +115 -0
  54. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/managed_integration_runtime_error.rb +91 -0
  55. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/managed_integration_runtime_node.rb +82 -0
  56. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/managed_integration_runtime_node_status.rb +18 -0
  57. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/managed_integration_runtime_operation_result.rb +115 -0
  58. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/managed_integration_runtime_status.rb +154 -0
  59. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_endpoint.rb +47 -0
  60. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_endpoint_connection.rb +100 -0
  61. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_endpoint_connection_list.rb +100 -0
  62. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_link_hub.rb +99 -0
  63. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_link_hub_info_list_result.rb +98 -0
  64. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_link_hub_patch_info.rb +54 -0
  65. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_link_resource.rb +76 -0
  66. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_link_resource_list_result.rb +100 -0
  67. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_link_resource_properties.rb +89 -0
  68. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/private_link_service_connection_state.rb +71 -0
  69. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/secret_base.rb +46 -0
  70. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/secure_string.rb +62 -0
  71. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/self_hosted_integration_runtime.rb +87 -0
  72. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/self_hosted_integration_runtime_node.rb +273 -0
  73. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/self_hosted_integration_runtime_node_status.rb +21 -0
  74. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/self_hosted_integration_runtime_status.rb +322 -0
  75. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/ssis_environment.rb +105 -0
  76. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/ssis_environment_reference.rb +79 -0
  77. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/ssis_folder.rb +74 -0
  78. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/ssis_object_metadata.rb +82 -0
  79. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/ssis_object_metadata_list_response.rb +69 -0
  80. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/ssis_object_metadata_status_response.rb +79 -0
  81. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/ssis_object_metadata_type.rb +18 -0
  82. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/ssis_package.rb +127 -0
  83. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/ssis_parameter.rb +167 -0
  84. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/ssis_project.rb +137 -0
  85. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/ssis_variable.rb +112 -0
  86. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/sub_resource.rb +83 -0
  87. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/update_integration_runtime_node_request.rb +51 -0
  88. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/update_integration_runtime_request.rb +61 -0
  89. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/models/workspace.rb +34 -0
  90. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/private_endpoint_connections.rb +673 -0
  91. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/private_link_hubs.rb +878 -0
  92. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/private_link_resources.rb +369 -0
  93. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/sql_pools.rb +1 -1
  94. data/lib/2019-06-01-preview/generated/azure_mgmt_synapse/synapse_management_client.rb +55 -1
  95. data/lib/profiles/latest/modules/synapse_profile_module.rb +440 -116
  96. data/lib/version.rb +1 -1
  97. metadata +89 -2
@@ -0,0 +1,137 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Synapse::Mgmt::V2019_06_01_preview
7
+ #
8
+ # Azure Synapse Analytics Management Client
9
+ #
10
+ class IntegrationRuntimeConnectionInfos
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the IntegrationRuntimeConnectionInfos class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [SynapseManagementClient] reference to the SynapseManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Get integration runtime connection info
26
+ #
27
+ # Get connection info for an integration runtime
28
+ #
29
+ # @param resource_group_name [String] The name of the resource group. The name
30
+ # is case insensitive.
31
+ # @param workspace_name [String] The name of the workspace
32
+ # @param integration_runtime_name [String] Integration runtime name
33
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
34
+ # will be added to the HTTP request.
35
+ #
36
+ # @return [IntegrationRuntimeConnectionInfo] operation results.
37
+ #
38
+ def get(resource_group_name, workspace_name, integration_runtime_name, custom_headers:nil)
39
+ response = get_async(resource_group_name, workspace_name, integration_runtime_name, custom_headers:custom_headers).value!
40
+ response.body unless response.nil?
41
+ end
42
+
43
+ #
44
+ # Get integration runtime connection info
45
+ #
46
+ # Get connection info for an integration runtime
47
+ #
48
+ # @param resource_group_name [String] The name of the resource group. The name
49
+ # is case insensitive.
50
+ # @param workspace_name [String] The name of the workspace
51
+ # @param integration_runtime_name [String] Integration runtime name
52
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
53
+ # will be added to the HTTP request.
54
+ #
55
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
56
+ #
57
+ def get_with_http_info(resource_group_name, workspace_name, integration_runtime_name, custom_headers:nil)
58
+ get_async(resource_group_name, workspace_name, integration_runtime_name, custom_headers:custom_headers).value!
59
+ end
60
+
61
+ #
62
+ # Get integration runtime connection info
63
+ #
64
+ # Get connection info for an integration runtime
65
+ #
66
+ # @param resource_group_name [String] The name of the resource group. The name
67
+ # is case insensitive.
68
+ # @param workspace_name [String] The name of the workspace
69
+ # @param integration_runtime_name [String] Integration runtime name
70
+ # @param [Hash{String => String}] A hash of custom headers that will be added
71
+ # to the HTTP request.
72
+ #
73
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
74
+ #
75
+ def get_async(resource_group_name, workspace_name, integration_runtime_name, custom_headers:nil)
76
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
77
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
78
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
79
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
80
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
81
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
82
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
83
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
84
+ fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
85
+ fail ArgumentError, 'integration_runtime_name is nil' if integration_runtime_name.nil?
86
+
87
+
88
+ request_headers = {}
89
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
90
+
91
+ # Set Headers
92
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
93
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
94
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/getConnectionInfo'
95
+
96
+ request_url = @base_url || @client.base_url
97
+
98
+ options = {
99
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
100
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'integrationRuntimeName' => integration_runtime_name},
101
+ query_params: {'api-version' => @client.api_version},
102
+ headers: request_headers.merge(custom_headers || {}),
103
+ base_url: request_url
104
+ }
105
+ promise = @client.make_request_async(:post, path_template, options)
106
+
107
+ promise = promise.then do |result|
108
+ http_response = result.response
109
+ status_code = http_response.status
110
+ response_content = http_response.body
111
+ unless status_code == 200
112
+ error_model = JSON.load(response_content)
113
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
114
+ end
115
+
116
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
117
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
118
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
119
+ # Deserialize Response
120
+ if status_code == 200
121
+ begin
122
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
123
+ result_mapper = Azure::Synapse::Mgmt::V2019_06_01_preview::Models::IntegrationRuntimeConnectionInfo.mapper()
124
+ result.body = @client.deserialize(result_mapper, parsed_response)
125
+ rescue Exception => e
126
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
127
+ end
128
+ end
129
+
130
+ result
131
+ end
132
+
133
+ promise.execute
134
+ end
135
+
136
+ end
137
+ end
@@ -0,0 +1,138 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Synapse::Mgmt::V2019_06_01_preview
7
+ #
8
+ # Azure Synapse Analytics Management Client
9
+ #
10
+ class IntegrationRuntimeCredentials
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the IntegrationRuntimeCredentials class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [SynapseManagementClient] reference to the SynapseManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Sync integration runtime credentials
26
+ #
27
+ # Force the integration runtime to synchronize credentials across integration
28
+ # runtime nodes, and this will override the credentials across all worker nodes
29
+ # with those available on the dispatcher node. If you already have the latest
30
+ # credential backup file, you should manually import it (preferred) on any
31
+ # self-hosted integration runtime node than using this API directly.
32
+ #
33
+ # @param resource_group_name [String] The name of the resource group. The name
34
+ # is case insensitive.
35
+ # @param workspace_name [String] The name of the workspace
36
+ # @param integration_runtime_name [String] Integration runtime name
37
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
38
+ # will be added to the HTTP request.
39
+ #
40
+ #
41
+ def sync(resource_group_name, workspace_name, integration_runtime_name, custom_headers:nil)
42
+ response = sync_async(resource_group_name, workspace_name, integration_runtime_name, custom_headers:custom_headers).value!
43
+ nil
44
+ end
45
+
46
+ #
47
+ # Sync integration runtime credentials
48
+ #
49
+ # Force the integration runtime to synchronize credentials across integration
50
+ # runtime nodes, and this will override the credentials across all worker nodes
51
+ # with those available on the dispatcher node. If you already have the latest
52
+ # credential backup file, you should manually import it (preferred) on any
53
+ # self-hosted integration runtime node than using this API directly.
54
+ #
55
+ # @param resource_group_name [String] The name of the resource group. The name
56
+ # is case insensitive.
57
+ # @param workspace_name [String] The name of the workspace
58
+ # @param integration_runtime_name [String] Integration runtime name
59
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
60
+ # will be added to the HTTP request.
61
+ #
62
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
63
+ #
64
+ def sync_with_http_info(resource_group_name, workspace_name, integration_runtime_name, custom_headers:nil)
65
+ sync_async(resource_group_name, workspace_name, integration_runtime_name, custom_headers:custom_headers).value!
66
+ end
67
+
68
+ #
69
+ # Sync integration runtime credentials
70
+ #
71
+ # Force the integration runtime to synchronize credentials across integration
72
+ # runtime nodes, and this will override the credentials across all worker nodes
73
+ # with those available on the dispatcher node. If you already have the latest
74
+ # credential backup file, you should manually import it (preferred) on any
75
+ # self-hosted integration runtime node than using this API directly.
76
+ #
77
+ # @param resource_group_name [String] The name of the resource group. The name
78
+ # is case insensitive.
79
+ # @param workspace_name [String] The name of the workspace
80
+ # @param integration_runtime_name [String] Integration runtime name
81
+ # @param [Hash{String => String}] A hash of custom headers that will be added
82
+ # to the HTTP request.
83
+ #
84
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
85
+ #
86
+ def sync_async(resource_group_name, workspace_name, integration_runtime_name, custom_headers:nil)
87
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
88
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
89
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
90
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
91
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
92
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
93
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
94
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
95
+ fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
96
+ fail ArgumentError, 'integration_runtime_name is nil' if integration_runtime_name.nil?
97
+
98
+
99
+ request_headers = {}
100
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
101
+
102
+ # Set Headers
103
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
104
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
105
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/syncCredentials'
106
+
107
+ request_url = @base_url || @client.base_url
108
+
109
+ options = {
110
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
111
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'integrationRuntimeName' => integration_runtime_name},
112
+ query_params: {'api-version' => @client.api_version},
113
+ headers: request_headers.merge(custom_headers || {}),
114
+ base_url: request_url
115
+ }
116
+ promise = @client.make_request_async(:post, path_template, options)
117
+
118
+ promise = promise.then do |result|
119
+ http_response = result.response
120
+ status_code = http_response.status
121
+ response_content = http_response.body
122
+ unless status_code == 200
123
+ error_model = JSON.load(response_content)
124
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
125
+ end
126
+
127
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
128
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
129
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
130
+
131
+ result
132
+ end
133
+
134
+ promise.execute
135
+ end
136
+
137
+ end
138
+ end
@@ -0,0 +1,137 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Synapse::Mgmt::V2019_06_01_preview
7
+ #
8
+ # Azure Synapse Analytics Management Client
9
+ #
10
+ class IntegrationRuntimeMonitoringDataOperations
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the IntegrationRuntimeMonitoringDataOperations class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [SynapseManagementClient] reference to the SynapseManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Get integration runtime monitoring data
26
+ #
27
+ # Get monitoring data for an integration runtime
28
+ #
29
+ # @param resource_group_name [String] The name of the resource group. The name
30
+ # is case insensitive.
31
+ # @param workspace_name [String] The name of the workspace
32
+ # @param integration_runtime_name [String] Integration runtime name
33
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
34
+ # will be added to the HTTP request.
35
+ #
36
+ # @return [IntegrationRuntimeMonitoringData] operation results.
37
+ #
38
+ def get(resource_group_name, workspace_name, integration_runtime_name, custom_headers:nil)
39
+ response = get_async(resource_group_name, workspace_name, integration_runtime_name, custom_headers:custom_headers).value!
40
+ response.body unless response.nil?
41
+ end
42
+
43
+ #
44
+ # Get integration runtime monitoring data
45
+ #
46
+ # Get monitoring data for an integration runtime
47
+ #
48
+ # @param resource_group_name [String] The name of the resource group. The name
49
+ # is case insensitive.
50
+ # @param workspace_name [String] The name of the workspace
51
+ # @param integration_runtime_name [String] Integration runtime name
52
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
53
+ # will be added to the HTTP request.
54
+ #
55
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
56
+ #
57
+ def get_with_http_info(resource_group_name, workspace_name, integration_runtime_name, custom_headers:nil)
58
+ get_async(resource_group_name, workspace_name, integration_runtime_name, custom_headers:custom_headers).value!
59
+ end
60
+
61
+ #
62
+ # Get integration runtime monitoring data
63
+ #
64
+ # Get monitoring data for an integration runtime
65
+ #
66
+ # @param resource_group_name [String] The name of the resource group. The name
67
+ # is case insensitive.
68
+ # @param workspace_name [String] The name of the workspace
69
+ # @param integration_runtime_name [String] Integration runtime name
70
+ # @param [Hash{String => String}] A hash of custom headers that will be added
71
+ # to the HTTP request.
72
+ #
73
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
74
+ #
75
+ def get_async(resource_group_name, workspace_name, integration_runtime_name, custom_headers:nil)
76
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
77
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
78
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
79
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
80
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
81
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
82
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
83
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
84
+ fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
85
+ fail ArgumentError, 'integration_runtime_name is nil' if integration_runtime_name.nil?
86
+
87
+
88
+ request_headers = {}
89
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
90
+
91
+ # Set Headers
92
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
93
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
94
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/monitoringData'
95
+
96
+ request_url = @base_url || @client.base_url
97
+
98
+ options = {
99
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
100
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'integrationRuntimeName' => integration_runtime_name},
101
+ query_params: {'api-version' => @client.api_version},
102
+ headers: request_headers.merge(custom_headers || {}),
103
+ base_url: request_url
104
+ }
105
+ promise = @client.make_request_async(:post, path_template, options)
106
+
107
+ promise = promise.then do |result|
108
+ http_response = result.response
109
+ status_code = http_response.status
110
+ response_content = http_response.body
111
+ unless status_code == 200
112
+ error_model = JSON.load(response_content)
113
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
114
+ end
115
+
116
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
117
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
118
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
119
+ # Deserialize Response
120
+ if status_code == 200
121
+ begin
122
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
123
+ result_mapper = Azure::Synapse::Mgmt::V2019_06_01_preview::Models::IntegrationRuntimeMonitoringData.mapper()
124
+ result.body = @client.deserialize(result_mapper, parsed_response)
125
+ rescue Exception => e
126
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
127
+ end
128
+ end
129
+
130
+ result
131
+ end
132
+
133
+ promise.execute
134
+ end
135
+
136
+ end
137
+ end
@@ -0,0 +1,141 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Synapse::Mgmt::V2019_06_01_preview
7
+ #
8
+ # Azure Synapse Analytics Management Client
9
+ #
10
+ class IntegrationRuntimeNodeIpAddressOperations
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the IntegrationRuntimeNodeIpAddressOperations class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [SynapseManagementClient] reference to the SynapseManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Get integration runtime node IP address
26
+ #
27
+ # Get the IP address of an integration runtime node
28
+ #
29
+ # @param resource_group_name [String] The name of the resource group. The name
30
+ # is case insensitive.
31
+ # @param workspace_name [String] The name of the workspace
32
+ # @param integration_runtime_name [String] Integration runtime name
33
+ # @param node_name [String] Integration runtime node name
34
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
35
+ # will be added to the HTTP request.
36
+ #
37
+ # @return [IntegrationRuntimeNodeIpAddress] operation results.
38
+ #
39
+ def get(resource_group_name, workspace_name, integration_runtime_name, node_name, custom_headers:nil)
40
+ response = get_async(resource_group_name, workspace_name, integration_runtime_name, node_name, custom_headers:custom_headers).value!
41
+ response.body unless response.nil?
42
+ end
43
+
44
+ #
45
+ # Get integration runtime node IP address
46
+ #
47
+ # Get the IP address of an integration runtime node
48
+ #
49
+ # @param resource_group_name [String] The name of the resource group. The name
50
+ # is case insensitive.
51
+ # @param workspace_name [String] The name of the workspace
52
+ # @param integration_runtime_name [String] Integration runtime name
53
+ # @param node_name [String] Integration runtime node name
54
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
55
+ # will be added to the HTTP request.
56
+ #
57
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
58
+ #
59
+ def get_with_http_info(resource_group_name, workspace_name, integration_runtime_name, node_name, custom_headers:nil)
60
+ get_async(resource_group_name, workspace_name, integration_runtime_name, node_name, custom_headers:custom_headers).value!
61
+ end
62
+
63
+ #
64
+ # Get integration runtime node IP address
65
+ #
66
+ # Get the IP address of an integration runtime node
67
+ #
68
+ # @param resource_group_name [String] The name of the resource group. The name
69
+ # is case insensitive.
70
+ # @param workspace_name [String] The name of the workspace
71
+ # @param integration_runtime_name [String] Integration runtime name
72
+ # @param node_name [String] Integration runtime node name
73
+ # @param [Hash{String => String}] A hash of custom headers that will be added
74
+ # to the HTTP request.
75
+ #
76
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
77
+ #
78
+ def get_async(resource_group_name, workspace_name, integration_runtime_name, node_name, custom_headers:nil)
79
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
80
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
81
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
82
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
83
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
84
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
85
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
86
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
87
+ fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
88
+ fail ArgumentError, 'integration_runtime_name is nil' if integration_runtime_name.nil?
89
+ fail ArgumentError, 'node_name is nil' if node_name.nil?
90
+
91
+
92
+ request_headers = {}
93
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
94
+
95
+ # Set Headers
96
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
97
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
98
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress'
99
+
100
+ request_url = @base_url || @client.base_url
101
+
102
+ options = {
103
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
104
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'integrationRuntimeName' => integration_runtime_name,'nodeName' => node_name},
105
+ query_params: {'api-version' => @client.api_version},
106
+ headers: request_headers.merge(custom_headers || {}),
107
+ base_url: request_url
108
+ }
109
+ promise = @client.make_request_async(:post, path_template, options)
110
+
111
+ promise = promise.then do |result|
112
+ http_response = result.response
113
+ status_code = http_response.status
114
+ response_content = http_response.body
115
+ unless status_code == 200
116
+ error_model = JSON.load(response_content)
117
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
118
+ end
119
+
120
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
121
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
122
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
123
+ # Deserialize Response
124
+ if status_code == 200
125
+ begin
126
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
127
+ result_mapper = Azure::Synapse::Mgmt::V2019_06_01_preview::Models::IntegrationRuntimeNodeIpAddress.mapper()
128
+ result.body = @client.deserialize(result_mapper, parsed_response)
129
+ rescue Exception => e
130
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
131
+ end
132
+ end
133
+
134
+ result
135
+ end
136
+
137
+ promise.execute
138
+ end
139
+
140
+ end
141
+ end