azure_mgmt_hanaonazure 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure.rb +47 -0
  4. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure/hana_instances.rb +942 -0
  5. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure/hana_management_client.rb +137 -0
  6. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure/models/disk.rb +72 -0
  7. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure/models/display.rb +108 -0
  8. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure/models/error_response.rb +57 -0
  9. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure/models/hana_hardware_type_names_enum.rb +16 -0
  10. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure/models/hana_instance.rb +190 -0
  11. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure/models/hana_instance_power_state_enum.rb +20 -0
  12. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure/models/hana_instance_size_names_enum.rb +32 -0
  13. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure/models/hana_instances_list_result.rb +98 -0
  14. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure/models/hardware_profile.rb +63 -0
  15. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure/models/ip_address.rb +47 -0
  16. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure/models/monitoring_details.rb +104 -0
  17. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure/models/network_profile.rb +69 -0
  18. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure/models/operation.rb +61 -0
  19. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure/models/operation_list.rb +55 -0
  20. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure/models/osprofile.rb +72 -0
  21. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure/models/resource.rb +112 -0
  22. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure/models/storage_profile.rb +68 -0
  23. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure/models/tags.rb +54 -0
  24. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure/module_definition.rb +9 -0
  25. data/lib/2017-11-03-preview/generated/azure_mgmt_hanaonazure/operations.rb +107 -0
  26. data/lib/azure_mgmt_hanaonazure.rb +6 -0
  27. data/lib/module_definition.rb +7 -0
  28. data/lib/profiles/latest/hanaonazure_latest_profile_client.rb +40 -0
  29. data/lib/profiles/latest/hanaonazure_module_definition.rb +8 -0
  30. data/lib/profiles/latest/modules/hanaonazure_profile_module.rb +135 -0
  31. data/lib/version.rb +7 -0
  32. metadata +147 -0
@@ -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::Hanaonazure::Mgmt::V2017_11_03_preview
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class HanaManagementClient < MsRestAzure::AzureServiceClient
11
+ include MsRestAzure
12
+ include MsRestAzure::Serialization
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Credentials needed for the client to connect to Azure.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] Subscription ID which uniquely identify Microsoft Azure
21
+ # subscription. The subscription ID forms part of the URI for every service
22
+ # call.
23
+ attr_accessor :subscription_id
24
+
25
+ # @return [String] Client API version.
26
+ attr_reader :api_version
27
+
28
+ # @return [String] The preferred language for the response.
29
+ attr_accessor :accept_language
30
+
31
+ # @return [Integer] The retry timeout in seconds for Long Running
32
+ # Operations. Default value is 30.
33
+ attr_accessor :long_running_operation_retry_timeout
34
+
35
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
36
+ # generated. When set to true a unique x-ms-client-request-id value is
37
+ # generated and included in each request. Default is true.
38
+ attr_accessor :generate_client_request_id
39
+
40
+ # @return [Operations] operations
41
+ attr_reader :operations
42
+
43
+ # @return [HanaInstances] hana_instances
44
+ attr_reader :hana_instances
45
+
46
+ #
47
+ # Creates initializes a new instance of the HanaManagementClient class.
48
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
49
+ # @param base_url [String] the base URI of the service.
50
+ # @param options [Array] filters to be applied to the HTTP requests.
51
+ #
52
+ def initialize(credentials = nil, base_url = nil, options = nil)
53
+ super(credentials, options)
54
+ @base_url = base_url || 'https://management.azure.com'
55
+
56
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
57
+ @credentials = credentials
58
+
59
+ @operations = Operations.new(self)
60
+ @hana_instances = HanaInstances.new(self)
61
+ @api_version = '2017-11-03-preview'
62
+ @accept_language = 'en-US'
63
+ @long_running_operation_retry_timeout = 30
64
+ @generate_client_request_id = true
65
+ add_telemetry
66
+ end
67
+
68
+ #
69
+ # Makes a request and returns the body of the response.
70
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
71
+ # @param path [String] the path, relative to {base_url}.
72
+ # @param options [Hash{String=>String}] specifying any request options like :body.
73
+ # @return [Hash{String=>String}] containing the body of the response.
74
+ # Example:
75
+ #
76
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
77
+ # path = "/path"
78
+ # options = {
79
+ # body: request_content,
80
+ # query_params: {'api-version' => '2016-02-01'}
81
+ # }
82
+ # result = @client.make_request(:put, path, options)
83
+ #
84
+ def make_request(method, path, options = {})
85
+ result = make_request_with_http_info(method, path, options)
86
+ result.body unless result.nil?
87
+ end
88
+
89
+ #
90
+ # Makes a request and returns the operation response.
91
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
92
+ # @param path [String] the path, relative to {base_url}.
93
+ # @param options [Hash{String=>String}] specifying any request options like :body.
94
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
95
+ #
96
+ def make_request_with_http_info(method, path, options = {})
97
+ result = make_request_async(method, path, options).value!
98
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
99
+ result
100
+ end
101
+
102
+ #
103
+ # Makes a request asynchronously.
104
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
105
+ # @param path [String] the path, relative to {base_url}.
106
+ # @param options [Hash{String=>String}] specifying any request options like :body.
107
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
108
+ #
109
+ def make_request_async(method, path, options = {})
110
+ fail ArgumentError, 'method is nil' if method.nil?
111
+ fail ArgumentError, 'path is nil' if path.nil?
112
+
113
+ request_url = options[:base_url] || @base_url
114
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
115
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
116
+ end
117
+
118
+ request_headers = @request_headers
119
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
120
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
121
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
122
+
123
+ super(request_url, method, path, options)
124
+ end
125
+
126
+
127
+ private
128
+ #
129
+ # Adds telemetry information.
130
+ #
131
+ def add_telemetry
132
+ sdk_information = 'azure_mgmt_hanaonazure'
133
+ sdk_information = "#{sdk_information}/0.17.0"
134
+ add_user_agent_information(sdk_information)
135
+ end
136
+ end
137
+ end
@@ -0,0 +1,72 @@
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::Hanaonazure::Mgmt::V2017_11_03_preview
7
+ module Models
8
+ #
9
+ # Specifies the disk information fo the HANA instance
10
+ #
11
+ class Disk
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The disk name.
16
+ attr_accessor :name
17
+
18
+ # @return [Integer] Specifies the size of an empty data disk in
19
+ # gigabytes.
20
+ attr_accessor :disk_size_gb
21
+
22
+ # @return [Integer] Specifies the logical unit number of the data disk.
23
+ # This value is used to identify data disks within the VM and therefore
24
+ # must be unique for each data disk attached to a VM.
25
+ attr_accessor :lun
26
+
27
+
28
+ #
29
+ # Mapper for Disk 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: 'Disk',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'Disk',
40
+ model_properties: {
41
+ name: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'name',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ disk_size_gb: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'diskSizeGB',
53
+ type: {
54
+ name: 'Number'
55
+ }
56
+ },
57
+ lun: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'lun',
62
+ type: {
63
+ name: 'Number'
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ end
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,108 @@
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::Hanaonazure::Mgmt::V2017_11_03_preview
7
+ module Models
8
+ #
9
+ # Detailed HANA operation information
10
+ #
11
+ class Display
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The localized friendly form of the resource provider
16
+ # name. This form is also expected to include the publisher/company
17
+ # responsible. Use Title Casing. Begin with "Microsoft" for 1st party
18
+ # services.
19
+ attr_accessor :provider
20
+
21
+ # @return [String] The localized friendly form of the resource type
22
+ # related to this action/operation. This form should match the public
23
+ # documentation for the resource provider. Use Title Casing. For
24
+ # examples, refer to the “name” section.
25
+ attr_accessor :resource
26
+
27
+ # @return [String] The localized friendly name for the operation as shown
28
+ # to the user. This name should be concise (to fit in drop downs), but
29
+ # clear (self-documenting). Use Title Casing and include the
30
+ # entity/resource to which it applies.
31
+ attr_accessor :operation
32
+
33
+ # @return [String] The localized friendly description for the operation
34
+ # as shown to the user. This description should be thorough, yet concise.
35
+ # It will be used in tool-tips and detailed views.
36
+ attr_accessor :description
37
+
38
+ # @return [String] The intended executor of the operation; governs the
39
+ # display of the operation in the RBAC UX and the audit logs UX. Default
40
+ # value is 'user,system'
41
+ attr_accessor :origin
42
+
43
+
44
+ #
45
+ # Mapper for Display class as Ruby Hash.
46
+ # This will be used for serialization/deserialization.
47
+ #
48
+ def self.mapper()
49
+ {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'Display',
53
+ type: {
54
+ name: 'Composite',
55
+ class_name: 'Display',
56
+ model_properties: {
57
+ provider: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'provider',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ resource: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ read_only: true,
70
+ serialized_name: 'resource',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ operation: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ read_only: true,
79
+ serialized_name: 'operation',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ },
84
+ description: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ read_only: true,
88
+ serialized_name: 'description',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ },
93
+ origin: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ read_only: true,
97
+ serialized_name: 'origin',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ }
102
+ }
103
+ }
104
+ }
105
+ end
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,57 @@
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::Hanaonazure::Mgmt::V2017_11_03_preview
7
+ module Models
8
+ #
9
+ # Describes the format of Error response.
10
+ #
11
+ class ErrorResponse
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Error code
16
+ attr_accessor :code
17
+
18
+ # @return [String] Error message indicating why the operation failed.
19
+ attr_accessor :message
20
+
21
+
22
+ #
23
+ # Mapper for ErrorResponse class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'ErrorResponse',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'ErrorResponse',
34
+ model_properties: {
35
+ code: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'code',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ message: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'message',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,16 @@
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::Hanaonazure::Mgmt::V2017_11_03_preview
7
+ module Models
8
+ #
9
+ # Defines values for HanaHardwareTypeNamesEnum
10
+ #
11
+ module HanaHardwareTypeNamesEnum
12
+ CiscoUCS = "Cisco_UCS"
13
+ HPE = "HPE"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,190 @@
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::Hanaonazure::Mgmt::V2017_11_03_preview
7
+ module Models
8
+ #
9
+ # HANA instance info on Azure (ARM properties and HANA properties)
10
+ #
11
+ class HanaInstance < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [HardwareProfile] Specifies the hardware settings for the HANA
16
+ # instance.
17
+ attr_accessor :hardware_profile
18
+
19
+ # @return [StorageProfile] Specifies the storage settings for the HANA
20
+ # instance disks.
21
+ attr_accessor :storage_profile
22
+
23
+ # @return [OSProfile] Specifies the operating system settings for the
24
+ # HANA instance.
25
+ attr_accessor :os_profile
26
+
27
+ # @return [NetworkProfile] Specifies the network settings for the HANA
28
+ # instance.
29
+ attr_accessor :network_profile
30
+
31
+ # @return [String] Specifies the HANA instance unique ID.
32
+ attr_accessor :hana_instance_id
33
+
34
+ # @return [HanaInstancePowerStateEnum] Resource power state. Possible
35
+ # values include: 'starting', 'started', 'stopping', 'stopped',
36
+ # 'restarting', 'unknown'
37
+ attr_accessor :power_state
38
+
39
+ # @return [String] Resource proximity placement group
40
+ attr_accessor :proximity_placement_group
41
+
42
+ # @return [String] Hardware revision of a HANA instance
43
+ attr_accessor :hw_revision
44
+
45
+
46
+ #
47
+ # Mapper for HanaInstance class as Ruby Hash.
48
+ # This will be used for serialization/deserialization.
49
+ #
50
+ def self.mapper()
51
+ {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'HanaInstance',
55
+ type: {
56
+ name: 'Composite',
57
+ class_name: 'HanaInstance',
58
+ model_properties: {
59
+ id: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ read_only: true,
63
+ serialized_name: 'id',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ name: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'name',
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
+ location: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ read_only: true,
90
+ serialized_name: 'location',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ },
95
+ tags: {
96
+ client_side_validation: true,
97
+ required: false,
98
+ read_only: true,
99
+ serialized_name: 'tags',
100
+ type: {
101
+ name: 'Dictionary',
102
+ value: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ serialized_name: 'StringElementType',
106
+ type: {
107
+ name: 'String'
108
+ }
109
+ }
110
+ }
111
+ },
112
+ hardware_profile: {
113
+ client_side_validation: true,
114
+ required: false,
115
+ serialized_name: 'properties.hardwareProfile',
116
+ type: {
117
+ name: 'Composite',
118
+ class_name: 'HardwareProfile'
119
+ }
120
+ },
121
+ storage_profile: {
122
+ client_side_validation: true,
123
+ required: false,
124
+ serialized_name: 'properties.storageProfile',
125
+ type: {
126
+ name: 'Composite',
127
+ class_name: 'StorageProfile'
128
+ }
129
+ },
130
+ os_profile: {
131
+ client_side_validation: true,
132
+ required: false,
133
+ serialized_name: 'properties.osProfile',
134
+ type: {
135
+ name: 'Composite',
136
+ class_name: 'OSProfile'
137
+ }
138
+ },
139
+ network_profile: {
140
+ client_side_validation: true,
141
+ required: false,
142
+ serialized_name: 'properties.networkProfile',
143
+ type: {
144
+ name: 'Composite',
145
+ class_name: 'NetworkProfile'
146
+ }
147
+ },
148
+ hana_instance_id: {
149
+ client_side_validation: true,
150
+ required: false,
151
+ read_only: true,
152
+ serialized_name: 'properties.hanaInstanceId',
153
+ type: {
154
+ name: 'String'
155
+ }
156
+ },
157
+ power_state: {
158
+ client_side_validation: true,
159
+ required: false,
160
+ read_only: true,
161
+ serialized_name: 'properties.powerState',
162
+ type: {
163
+ name: 'String'
164
+ }
165
+ },
166
+ proximity_placement_group: {
167
+ client_side_validation: true,
168
+ required: false,
169
+ read_only: true,
170
+ serialized_name: 'properties.proximityPlacementGroup',
171
+ type: {
172
+ name: 'String'
173
+ }
174
+ },
175
+ hw_revision: {
176
+ client_side_validation: true,
177
+ required: false,
178
+ read_only: true,
179
+ serialized_name: 'properties.hwRevision',
180
+ type: {
181
+ name: 'String'
182
+ }
183
+ }
184
+ }
185
+ }
186
+ }
187
+ end
188
+ end
189
+ end
190
+ end