azure_mgmt_healthcare_apis 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis.rb +69 -0
  4. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/healthcare_apis_management_client.rb +147 -0
  5. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/azure_entity_resource.rb +77 -0
  6. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/check_name_availability_parameters.rb +58 -0
  7. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/error_details.rb +47 -0
  8. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/error_details_internal.rb +71 -0
  9. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/kind.rb +17 -0
  10. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/managed_service_identity_type.rb +16 -0
  11. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/operation.rb +73 -0
  12. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/operation_display.rb +83 -0
  13. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/operation_list_result.rb +102 -0
  14. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/operation_result_status.rb +19 -0
  15. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/operation_results_description.rb +97 -0
  16. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/private_endpoint.rb +47 -0
  17. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/private_endpoint_connection.rb +101 -0
  18. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/private_endpoint_connection_list_result.rb +57 -0
  19. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/private_endpoint_connection_provisioning_state.rb +18 -0
  20. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/private_endpoint_service_connection_status.rb +17 -0
  21. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/private_link_resource.rb +115 -0
  22. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/private_link_resource_list_result.rb +55 -0
  23. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/private_link_service_connection_state.rb +72 -0
  24. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/provisioning_state.rb +23 -0
  25. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/proxy_resource.rb +65 -0
  26. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/public_network_access.rb +16 -0
  27. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/resource.rb +86 -0
  28. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/service_access_policy_entry.rb +50 -0
  29. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/service_authentication_configuration_info.rb +68 -0
  30. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/service_cors_configuration_info.rb +118 -0
  31. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/service_cosmos_db_configuration_info.rb +62 -0
  32. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/service_export_configuration_info.rb +46 -0
  33. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/service_name_unavailability_reason.rb +16 -0
  34. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/services_description.rb +127 -0
  35. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/services_description_list_result.rb +100 -0
  36. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/services_name_availability_info.rb +73 -0
  37. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/services_patch_description.rb +67 -0
  38. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/services_properties.rb +156 -0
  39. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/services_resource.rb +142 -0
  40. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/services_resource_identity.rb +73 -0
  41. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/models/tracked_resource.rb +95 -0
  42. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/module_definition.rb +9 -0
  43. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/operation_results.rb +129 -0
  44. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/operations.rb +219 -0
  45. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/private_endpoint_connections.rb +557 -0
  46. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/private_link_resources.rb +233 -0
  47. data/lib/2020-03-30/generated/azure_mgmt_healthcare_apis/services.rb +1103 -0
  48. data/lib/azure_mgmt_healthcare_apis.rb +6 -0
  49. data/lib/module_definition.rb +7 -0
  50. data/lib/profiles/latest/healthcareapis_latest_profile_client.rb +40 -0
  51. data/lib/profiles/latest/healthcareapis_module_definition.rb +8 -0
  52. data/lib/profiles/latest/modules/healthcareapis_profile_module.rb +217 -0
  53. data/lib/version.rb +7 -0
  54. metadata +169 -0
@@ -0,0 +1,142 @@
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::HealthcareApis::Mgmt::V2020_03_30
7
+ module Models
8
+ #
9
+ # The common properties of a service.
10
+ #
11
+ class ServicesResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The resource identifier.
16
+ attr_accessor :id
17
+
18
+ # @return [String] The resource name.
19
+ attr_accessor :name
20
+
21
+ # @return [String] The resource type.
22
+ attr_accessor :type
23
+
24
+ # @return [Kind] The kind of the service. Possible values include:
25
+ # 'fhir', 'fhir-Stu3', 'fhir-R4'
26
+ attr_accessor :kind
27
+
28
+ # @return [String] The resource location.
29
+ attr_accessor :location
30
+
31
+ # @return [Hash{String => String}] The resource tags.
32
+ attr_accessor :tags
33
+
34
+ # @return [String] An etag associated with the resource, used for
35
+ # optimistic concurrency when editing it.
36
+ attr_accessor :etag
37
+
38
+ # @return [ServicesResourceIdentity] Setting indicating whether the
39
+ # service has a managed identity associated with it.
40
+ attr_accessor :identity
41
+
42
+
43
+ #
44
+ # Mapper for ServicesResource class as Ruby Hash.
45
+ # This will be used for serialization/deserialization.
46
+ #
47
+ def self.mapper()
48
+ {
49
+ client_side_validation: true,
50
+ required: false,
51
+ serialized_name: 'ServicesResource',
52
+ type: {
53
+ name: 'Composite',
54
+ class_name: 'ServicesResource',
55
+ model_properties: {
56
+ id: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ read_only: true,
60
+ serialized_name: 'id',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ name: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ read_only: true,
69
+ serialized_name: 'name',
70
+ constraints: {
71
+ Pattern: '^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$'
72
+ },
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ },
77
+ type: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ read_only: true,
81
+ serialized_name: 'type',
82
+ type: {
83
+ name: 'String'
84
+ }
85
+ },
86
+ kind: {
87
+ client_side_validation: true,
88
+ required: true,
89
+ serialized_name: 'kind',
90
+ type: {
91
+ name: 'Enum',
92
+ module: 'Kind'
93
+ }
94
+ },
95
+ location: {
96
+ client_side_validation: true,
97
+ required: true,
98
+ serialized_name: 'location',
99
+ type: {
100
+ name: 'String'
101
+ }
102
+ },
103
+ tags: {
104
+ client_side_validation: true,
105
+ required: false,
106
+ serialized_name: 'tags',
107
+ type: {
108
+ name: 'Dictionary',
109
+ value: {
110
+ client_side_validation: true,
111
+ required: false,
112
+ serialized_name: 'StringElementType',
113
+ type: {
114
+ name: 'String'
115
+ }
116
+ }
117
+ }
118
+ },
119
+ etag: {
120
+ client_side_validation: true,
121
+ required: false,
122
+ serialized_name: 'etag',
123
+ type: {
124
+ name: 'String'
125
+ }
126
+ },
127
+ identity: {
128
+ client_side_validation: true,
129
+ required: false,
130
+ serialized_name: 'identity',
131
+ type: {
132
+ name: 'Composite',
133
+ class_name: 'ServicesResourceIdentity'
134
+ }
135
+ }
136
+ }
137
+ }
138
+ }
139
+ end
140
+ end
141
+ end
142
+ end
@@ -0,0 +1,73 @@
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::HealthcareApis::Mgmt::V2020_03_30
7
+ module Models
8
+ #
9
+ # Setting indicating whether the service has a managed identity associated
10
+ # with it.
11
+ #
12
+ class ServicesResourceIdentity
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The principal ID of the resource identity.
17
+ attr_accessor :principal_id
18
+
19
+ # @return [String] The tenant ID of the resource.
20
+ attr_accessor :tenant_id
21
+
22
+ # @return [ManagedServiceIdentityType] Type of identity being specified,
23
+ # currently SystemAssigned and None are allowed. Possible values include:
24
+ # 'SystemAssigned', 'None'
25
+ attr_accessor :type
26
+
27
+
28
+ #
29
+ # Mapper for ServicesResourceIdentity class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'ServicesResource_identity',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'ServicesResourceIdentity',
40
+ model_properties: {
41
+ principal_id: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ read_only: true,
45
+ serialized_name: 'principalId',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ tenant_id: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ read_only: true,
54
+ serialized_name: 'tenantId',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ type: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'type',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,95 @@
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::HealthcareApis::Mgmt::V2020_03_30
7
+ module Models
8
+ #
9
+ # Tracked Resource
10
+
11
+ # The resource model definition for an Azure Resource Manager tracked top
12
+ # level resource which has 'tags' and a 'location'
13
+ #
14
+ class TrackedResource < Resource
15
+
16
+ include MsRestAzure
17
+
18
+ # @return [Hash{String => String}] Resource tags.
19
+ attr_accessor :tags
20
+
21
+ # @return [String] The geo-location where the resource lives
22
+ attr_accessor :location
23
+
24
+
25
+ #
26
+ # Mapper for TrackedResource class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ client_side_validation: true,
32
+ required: false,
33
+ serialized_name: 'TrackedResource',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'TrackedResource',
37
+ model_properties: {
38
+ id: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ read_only: true,
42
+ serialized_name: 'id',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ name: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'name',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ type: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ read_only: true,
60
+ serialized_name: 'type',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ tags: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ serialized_name: 'tags',
69
+ type: {
70
+ name: 'Dictionary',
71
+ value: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ serialized_name: 'StringElementType',
75
+ type: {
76
+ name: 'String'
77
+ }
78
+ }
79
+ }
80
+ },
81
+ location: {
82
+ client_side_validation: true,
83
+ required: true,
84
+ serialized_name: 'location',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ end
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,9 @@
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 end
7
+ module Azure::HealthcareApis end
8
+ module Azure::HealthcareApis::Mgmt end
9
+ module Azure::HealthcareApis::Mgmt::V2020_03_30 end
@@ -0,0 +1,129 @@
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::HealthcareApis::Mgmt::V2020_03_30
7
+ #
8
+ # Azure Healthcare APIs Client
9
+ #
10
+ class OperationResults
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the OperationResults class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [HealthcareApisManagementClient] reference to the HealthcareApisManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Get the operation result for a long running operation.
26
+ #
27
+ # @param location_name [String] The location of the operation.
28
+ # @param operation_result_id [String] The ID of the operation result to get.
29
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
30
+ # will be added to the HTTP request.
31
+ #
32
+ # @return [Object] operation results.
33
+ #
34
+ def get(location_name, operation_result_id, custom_headers:nil)
35
+ response = get_async(location_name, operation_result_id, custom_headers:custom_headers).value!
36
+ response.body unless response.nil?
37
+ end
38
+
39
+ #
40
+ # Get the operation result for a long running operation.
41
+ #
42
+ # @param location_name [String] The location of the operation.
43
+ # @param operation_result_id [String] The ID of the operation result to get.
44
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
45
+ # will be added to the HTTP request.
46
+ #
47
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
+ #
49
+ def get_with_http_info(location_name, operation_result_id, custom_headers:nil)
50
+ get_async(location_name, operation_result_id, custom_headers:custom_headers).value!
51
+ end
52
+
53
+ #
54
+ # Get the operation result for a long running operation.
55
+ #
56
+ # @param location_name [String] The location of the operation.
57
+ # @param operation_result_id [String] The ID of the operation result to get.
58
+ # @param [Hash{String => String}] A hash of custom headers that will be added
59
+ # to the HTTP request.
60
+ #
61
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
+ #
63
+ def get_async(location_name, operation_result_id, custom_headers:nil)
64
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
65
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
66
+ fail ArgumentError, 'location_name is nil' if location_name.nil?
67
+ fail ArgumentError, 'operation_result_id is nil' if operation_result_id.nil?
68
+
69
+
70
+ request_headers = {}
71
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
72
+
73
+ # Set Headers
74
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
75
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
76
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/locations/{locationName}/operationresults/{operationResultId}'
77
+
78
+ request_url = @base_url || @client.base_url
79
+
80
+ options = {
81
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
82
+ path_params: {'subscriptionId' => @client.subscription_id,'locationName' => location_name,'operationResultId' => operation_result_id},
83
+ query_params: {'api-version' => @client.api_version},
84
+ headers: request_headers.merge(custom_headers || {}),
85
+ base_url: request_url
86
+ }
87
+ promise = @client.make_request_async(:get, path_template, options)
88
+
89
+ promise = promise.then do |result|
90
+ http_response = result.response
91
+ status_code = http_response.status
92
+ response_content = http_response.body
93
+ unless status_code == 200 || status_code == 404
94
+ error_model = JSON.load(response_content)
95
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
96
+ end
97
+
98
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
99
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
100
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
101
+ # Deserialize Response
102
+ if status_code == 200
103
+ begin
104
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
105
+ result_mapper = Azure::HealthcareApis::Mgmt::V2020_03_30::Models::OperationResultsDescription.mapper()
106
+ result.body = @client.deserialize(result_mapper, parsed_response)
107
+ rescue Exception => e
108
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
109
+ end
110
+ end
111
+ # Deserialize Response
112
+ if status_code == 404
113
+ begin
114
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
115
+ result_mapper = Azure::HealthcareApis::Mgmt::V2020_03_30::Models::ErrorDetails.mapper()
116
+ result.body = @client.deserialize(result_mapper, parsed_response)
117
+ rescue Exception => e
118
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
119
+ end
120
+ end
121
+
122
+ result
123
+ end
124
+
125
+ promise.execute
126
+ end
127
+
128
+ end
129
+ end