haipa_compute 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/1.0/generated/haipa_compute.rb +53 -53
- data/lib/1.0/generated/haipa_compute/haipa_compute.rb +136 -136
- data/lib/1.0/generated/haipa_compute/machines.rb +578 -578
- data/lib/1.0/generated/haipa_compute/models/agent.rb +87 -87
- data/lib/1.0/generated/haipa_compute/models/agent_network.rb +93 -93
- data/lib/1.0/generated/haipa_compute/models/machine.rb +125 -125
- data/lib/1.0/generated/haipa_compute/models/machine_config.rb +91 -91
- data/lib/1.0/generated/haipa_compute/models/machine_network.rb +187 -187
- data/lib/1.0/generated/haipa_compute/models/machine_network_config.rb +67 -67
- data/lib/1.0/generated/haipa_compute/models/machine_subnet_config.rb +47 -47
- data/lib/1.0/generated/haipa_compute/models/network.rb +109 -109
- data/lib/1.0/generated/haipa_compute/models/odata_value_ienumerable_machine.rb +56 -56
- data/lib/1.0/generated/haipa_compute/models/odata_value_ienumerable_operation.rb +56 -56
- data/lib/1.0/generated/haipa_compute/models/odata_value_ienumerable_operation_log.rb +56 -56
- data/lib/1.0/generated/haipa_compute/models/operation.rb +123 -123
- data/lib/1.0/generated/haipa_compute/models/operation_log.rb +81 -81
- data/lib/1.0/generated/haipa_compute/models/subnet.rb +144 -144
- data/lib/1.0/generated/haipa_compute/models/virtual_machine.rb +90 -90
- data/lib/1.0/generated/haipa_compute/models/virtual_machine_config.rb +111 -111
- data/lib/1.0/generated/haipa_compute/models/virtual_machine_cpu_config.rb +47 -47
- data/lib/1.0/generated/haipa_compute/models/virtual_machine_disk_config.rb +80 -80
- data/lib/1.0/generated/haipa_compute/models/virtual_machine_memory_config.rb +69 -69
- data/lib/1.0/generated/haipa_compute/models/virtual_machine_network_adapter.rb +92 -92
- data/lib/1.0/generated/haipa_compute/models/virtual_machine_network_adapter_config.rb +69 -69
- data/lib/1.0/generated/haipa_compute/models/virtual_machine_provisioning_config.rb +58 -58
- data/lib/1.0/generated/haipa_compute/module_definition.rb +9 -9
- data/lib/1.0/generated/haipa_compute/networks.rb +415 -415
- data/lib/1.0/generated/haipa_compute/operations.rb +347 -347
- data/lib/1.0/generated/haipa_compute/subnets.rb +100 -100
- data/lib/version.rb +1 -1
- metadata +5 -6
@@ -1,100 +1,100 @@
|
|
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 Haipa::Client::Compute::V1_0
|
7
|
-
#
|
8
|
-
# Haipa management API
|
9
|
-
#
|
10
|
-
class Subnets
|
11
|
-
include Haipa::Client
|
12
|
-
|
13
|
-
#
|
14
|
-
# Creates and initializes a new instance of the Subnets class.
|
15
|
-
# @param client service class for accessing basic functionality.
|
16
|
-
#
|
17
|
-
def initialize(client)
|
18
|
-
@client = client
|
19
|
-
end
|
20
|
-
|
21
|
-
# @return [HaipaCompute] reference to the HaipaCompute
|
22
|
-
attr_reader :client
|
23
|
-
|
24
|
-
#
|
25
|
-
# @param select [String] Limits the properties returned in the result.
|
26
|
-
# @param expand [String] Indicates the related entities to be represented
|
27
|
-
# inline. The maximum depth is 2.
|
28
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
29
|
-
# will be added to the HTTP request.
|
30
|
-
#
|
31
|
-
#
|
32
|
-
def list(select:nil, expand:nil, custom_headers:nil)
|
33
|
-
response = list_async(select:select, expand:expand, custom_headers:custom_headers).value!
|
34
|
-
nil
|
35
|
-
end
|
36
|
-
|
37
|
-
#
|
38
|
-
# @param select [String] Limits the properties returned in the result.
|
39
|
-
# @param expand [String] Indicates the related entities to be represented
|
40
|
-
# inline. The maximum depth is 2.
|
41
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
42
|
-
# will be added to the HTTP request.
|
43
|
-
#
|
44
|
-
# @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
|
45
|
-
#
|
46
|
-
def list_with_http_info(select:nil, expand:nil, custom_headers:nil)
|
47
|
-
list_async(select:select, expand:expand, custom_headers:custom_headers).value!
|
48
|
-
end
|
49
|
-
|
50
|
-
#
|
51
|
-
# @param select [String] Limits the properties returned in the result.
|
52
|
-
# @param expand [String] Indicates the related entities to be represented
|
53
|
-
# inline. The maximum depth is 2.
|
54
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
55
|
-
# to the HTTP request.
|
56
|
-
#
|
57
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
58
|
-
#
|
59
|
-
def list_async(select:nil, expand:nil, custom_headers:nil)
|
60
|
-
|
61
|
-
|
62
|
-
request_headers = {}
|
63
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
64
|
-
|
65
|
-
# Set Headers
|
66
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
67
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
68
|
-
path_template = 'odata/v1'
|
69
|
-
|
70
|
-
request_url = @base_url || @client.base_url
|
71
|
-
|
72
|
-
options = {
|
73
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
|
74
|
-
query_params: {'$select' => select,'$expand' => expand},
|
75
|
-
headers: request_headers.merge(custom_headers || {}),
|
76
|
-
base_url: request_url
|
77
|
-
}
|
78
|
-
promise = @client.make_request_async(:get, path_template, options)
|
79
|
-
|
80
|
-
promise = promise.then do |result|
|
81
|
-
http_response = result.response
|
82
|
-
status_code = http_response.status
|
83
|
-
response_content = http_response.body
|
84
|
-
unless status_code == 200
|
85
|
-
error_model = JSON.load(response_content)
|
86
|
-
fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
|
87
|
-
end
|
88
|
-
|
89
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
90
|
-
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
91
|
-
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
92
|
-
|
93
|
-
result
|
94
|
-
end
|
95
|
-
|
96
|
-
promise.execute
|
97
|
-
end
|
98
|
-
|
99
|
-
end
|
100
|
-
end
|
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 Haipa::Client::Compute::V1_0
|
7
|
+
#
|
8
|
+
# Haipa management API
|
9
|
+
#
|
10
|
+
class Subnets
|
11
|
+
include Haipa::Client
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Subnets class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [HaipaCompute] reference to the HaipaCompute
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# @param select [String] Limits the properties returned in the result.
|
26
|
+
# @param expand [String] Indicates the related entities to be represented
|
27
|
+
# inline. The maximum depth is 2.
|
28
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
29
|
+
# will be added to the HTTP request.
|
30
|
+
#
|
31
|
+
#
|
32
|
+
def list(select:nil, expand:nil, custom_headers:nil)
|
33
|
+
response = list_async(select:select, expand:expand, custom_headers:custom_headers).value!
|
34
|
+
nil
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# @param select [String] Limits the properties returned in the result.
|
39
|
+
# @param expand [String] Indicates the related entities to be represented
|
40
|
+
# inline. The maximum depth is 2.
|
41
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
42
|
+
# will be added to the HTTP request.
|
43
|
+
#
|
44
|
+
# @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
|
45
|
+
#
|
46
|
+
def list_with_http_info(select:nil, expand:nil, custom_headers:nil)
|
47
|
+
list_async(select:select, expand:expand, custom_headers:custom_headers).value!
|
48
|
+
end
|
49
|
+
|
50
|
+
#
|
51
|
+
# @param select [String] Limits the properties returned in the result.
|
52
|
+
# @param expand [String] Indicates the related entities to be represented
|
53
|
+
# inline. The maximum depth is 2.
|
54
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
55
|
+
# to the HTTP request.
|
56
|
+
#
|
57
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
58
|
+
#
|
59
|
+
def list_async(select:nil, expand:nil, custom_headers:nil)
|
60
|
+
|
61
|
+
|
62
|
+
request_headers = {}
|
63
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
64
|
+
|
65
|
+
# Set Headers
|
66
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
67
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
68
|
+
path_template = 'odata/v1'
|
69
|
+
|
70
|
+
request_url = @base_url || @client.base_url
|
71
|
+
|
72
|
+
options = {
|
73
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
|
74
|
+
query_params: {'$select' => select,'$expand' => expand},
|
75
|
+
headers: request_headers.merge(custom_headers || {}),
|
76
|
+
base_url: request_url
|
77
|
+
}
|
78
|
+
promise = @client.make_request_async(:get, path_template, options)
|
79
|
+
|
80
|
+
promise = promise.then do |result|
|
81
|
+
http_response = result.response
|
82
|
+
status_code = http_response.status
|
83
|
+
response_content = http_response.body
|
84
|
+
unless status_code == 200
|
85
|
+
error_model = JSON.load(response_content)
|
86
|
+
fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
|
87
|
+
end
|
88
|
+
|
89
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
90
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
91
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
92
|
+
|
93
|
+
result
|
94
|
+
end
|
95
|
+
|
96
|
+
promise.execute
|
97
|
+
end
|
98
|
+
|
99
|
+
end
|
100
|
+
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haipa_compute
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Haipa Contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.11.
|
75
|
+
version: 0.11.2
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.11.
|
82
|
+
version: 0.11.2
|
83
83
|
description: Haipa Client Library for Ruby.
|
84
84
|
email: package-maintainers@haipa.io
|
85
85
|
executables: []
|
@@ -143,8 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
|
-
|
147
|
-
rubygems_version: 2.7.6
|
146
|
+
rubygems_version: 3.0.3
|
148
147
|
signing_key:
|
149
148
|
specification_version: 4
|
150
149
|
summary: Haipa Client Library for Ruby.
|