haipa_compute 0.2.2 → 0.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78c80e92e6f9a9c4dcb36cfa9068f855b4245d74dae441f27f3f0de9e06bb7f3
4
- data.tar.gz: 11026b52e4656fe2d9c2e9c461b8d39ea1eaa27bc2a383ce1210eb37f797e959
3
+ metadata.gz: 2801e447faa7f9fc0ac6b1724dd20884aab2f408214dcd0100df9f208508177c
4
+ data.tar.gz: 898ebc95b77c4f8e74afdbf4eed2d0b44990d1dc911c2d8d468d8d6c8002d363
5
5
  SHA512:
6
- metadata.gz: 68d50f0d12ff70b41135ffe29e6987358ed6117f9b6d35cebde047464731ae773b3f436f74b963d7050a037311ad1adbe4ba3ef557765b745518a02c0bc19952
7
- data.tar.gz: dd1facc821b0f302e044b523a159635f633c02f5cdc6fbe1303f3f2cd99c79fba65b5f3fd669ff57bb27a4e69243261db7a7d9a180ac7db9bebfbb6db0e65aef
6
+ metadata.gz: 05cdf2bbd0c9bca59aa1024fc64f4014640dab4a188c0f8b9e9044f982fd1dfc1ce72c483bb409cee4d8844961dfaef102eb29af11a5f009bed4636cf887852a
7
+ data.tar.gz: 1851201f91ae97633d4c14ff609185b0036b31032a0efba26f5b7f9b308fe2024a61dbdfa4f82220efa40101d3cfd94cc34e44f1501c6b1d7d411fcabd4246b1
@@ -38,16 +38,18 @@ module Haipa::Client::Compute::V1_0
38
38
  autoload :MachineNetworkConfig, '1.0/generated/haipa_compute/models/machine_network_config.rb'
39
39
  autoload :ODataValueIEnumerableMachine, '1.0/generated/haipa_compute/models/odata_value_ienumerable_machine.rb'
40
40
  autoload :VirtualMachineProvisioningConfig, '1.0/generated/haipa_compute/models/virtual_machine_provisioning_config.rb'
41
- autoload :VirtualMachineMemoryConfig, '1.0/generated/haipa_compute/models/virtual_machine_memory_config.rb'
41
+ autoload :VirtualMachineCpuConfig, '1.0/generated/haipa_compute/models/virtual_machine_cpu_config.rb'
42
42
  autoload :MachineConfig, '1.0/generated/haipa_compute/models/machine_config.rb'
43
- autoload :Agent, '1.0/generated/haipa_compute/models/agent.rb'
44
- autoload :OperationLog, '1.0/generated/haipa_compute/models/operation_log.rb'
45
- autoload :Machine, '1.0/generated/haipa_compute/models/machine.rb'
46
- autoload :Operation, '1.0/generated/haipa_compute/models/operation.rb'
47
43
  autoload :Network, '1.0/generated/haipa_compute/models/network.rb'
48
- autoload :ODataValueIEnumerableOperation, '1.0/generated/haipa_compute/models/odata_value_ienumerable_operation.rb'
49
- autoload :VirtualMachineCpuConfig, '1.0/generated/haipa_compute/models/virtual_machine_cpu_config.rb'
50
- autoload :ODataValueIEnumerableOperationLog, '1.0/generated/haipa_compute/models/odata_value_ienumerable_operation_log.rb'
44
+ autoload :OperationTask, '1.0/generated/haipa_compute/models/operation_task.rb'
51
45
  autoload :VirtualMachine, '1.0/generated/haipa_compute/models/virtual_machine.rb'
46
+ autoload :OperationLogEntry, '1.0/generated/haipa_compute/models/operation_log_entry.rb'
47
+ autoload :VirtualMachineImageConfig, '1.0/generated/haipa_compute/models/virtual_machine_image_config.rb'
48
+ autoload :Operation, '1.0/generated/haipa_compute/models/operation.rb'
49
+ autoload :Agent, '1.0/generated/haipa_compute/models/agent.rb'
50
+ autoload :ODataValueIEnumerableOperation, '1.0/generated/haipa_compute/models/odata_value_ienumerable_operation.rb'
51
+ autoload :VirtualMachineMemoryConfig, '1.0/generated/haipa_compute/models/virtual_machine_memory_config.rb'
52
+ autoload :ODataValueIEnumerableOperationLogEntry, '1.0/generated/haipa_compute/models/odata_value_ienumerable_operation_log_entry.rb'
53
+ autoload :Machine, '1.0/generated/haipa_compute/models/machine.rb'
52
54
  end
53
55
  end
@@ -0,0 +1,56 @@
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
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class ODataValueIEnumerableOperationLogEntry
13
+
14
+ include Haipa::Client
15
+
16
+ # @return [Array<OperationLogEntry>]
17
+ attr_accessor :value
18
+
19
+
20
+ #
21
+ # Mapper for ODataValueIEnumerableOperationLogEntry class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'ODataValue[IEnumerable[OperationLogEntry]]',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'ODataValueIEnumerableOperationLogEntry',
32
+ model_properties: {
33
+ value: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'value',
37
+ type: {
38
+ name: 'Sequence',
39
+ element: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'OperationLogEntryElementType',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'OperationLogEntry'
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end
@@ -16,7 +16,7 @@ module Haipa::Client::Compute::V1_0
16
16
  # @return
17
17
  attr_accessor :id
18
18
 
19
- # @return [Array<OperationLog>]
19
+ # @return [Array<OperationLogEntry>]
20
20
  attr_accessor :log_entries
21
21
 
22
22
  # @return
@@ -26,14 +26,11 @@ module Haipa::Client::Compute::V1_0
26
26
  # 'Completed'
27
27
  attr_accessor :status
28
28
 
29
- # @return [String]
30
- attr_accessor :agent_name
31
-
32
29
  # @return [String]
33
30
  attr_accessor :status_message
34
31
 
35
- # @return [String]
36
- attr_accessor :name
32
+ # @return [Array<OperationTask>]
33
+ attr_accessor :tasks
37
34
 
38
35
 
39
36
  #
@@ -66,10 +63,10 @@ module Haipa::Client::Compute::V1_0
66
63
  element: {
67
64
  client_side_validation: true,
68
65
  required: false,
69
- serialized_name: 'OperationLogElementType',
66
+ serialized_name: 'OperationLogEntryElementType',
70
67
  type: {
71
68
  name: 'Composite',
72
- class_name: 'OperationLog'
69
+ class_name: 'OperationLogEntry'
73
70
  }
74
71
  }
75
72
  }
@@ -90,14 +87,6 @@ module Haipa::Client::Compute::V1_0
90
87
  name: 'String'
91
88
  }
92
89
  },
93
- agent_name: {
94
- client_side_validation: true,
95
- required: false,
96
- serialized_name: 'agentName',
97
- type: {
98
- name: 'String'
99
- }
100
- },
101
90
  status_message: {
102
91
  client_side_validation: true,
103
92
  required: false,
@@ -106,12 +95,21 @@ module Haipa::Client::Compute::V1_0
106
95
  name: 'String'
107
96
  }
108
97
  },
109
- name: {
98
+ tasks: {
110
99
  client_side_validation: true,
111
100
  required: false,
112
- serialized_name: 'name',
101
+ serialized_name: 'tasks',
113
102
  type: {
114
- name: 'String'
103
+ name: 'Sequence',
104
+ element: {
105
+ client_side_validation: true,
106
+ required: false,
107
+ serialized_name: 'OperationTaskElementType',
108
+ type: {
109
+ name: 'Composite',
110
+ class_name: 'OperationTask'
111
+ }
112
+ }
115
113
  }
116
114
  }
117
115
  }
@@ -0,0 +1,93 @@
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
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class OperationLogEntry
13
+
14
+ include Haipa::Client
15
+
16
+ # @return
17
+ attr_accessor :id
18
+
19
+ # @return [String]
20
+ attr_accessor :message
21
+
22
+ # @return [OperationTask]
23
+ attr_accessor :task
24
+
25
+ # @return [DateTime]
26
+ attr_accessor :timestamp
27
+
28
+ # @return [Operation]
29
+ attr_accessor :operation
30
+
31
+
32
+ #
33
+ # Mapper for OperationLogEntry class as Ruby Hash.
34
+ # This will be used for serialization/deserialization.
35
+ #
36
+ def self.mapper()
37
+ {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'OperationLogEntry',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'OperationLogEntry',
44
+ model_properties: {
45
+ id: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'id',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ message: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ serialized_name: 'message',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ task: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'task',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'OperationTask'
68
+ }
69
+ },
70
+ timestamp: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ serialized_name: 'timestamp',
74
+ type: {
75
+ name: 'DateTime'
76
+ }
77
+ },
78
+ operation: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ serialized_name: 'operation',
82
+ type: {
83
+ name: 'Composite',
84
+ class_name: 'Operation'
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ end
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,93 @@
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
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class OperationTask
13
+
14
+ include Haipa::Client
15
+
16
+ # @return
17
+ attr_accessor :id
18
+
19
+ # @return [Enum] Possible values include: 'Queued', 'Running', 'Failed',
20
+ # 'Completed'
21
+ attr_accessor :status
22
+
23
+ # @return [String]
24
+ attr_accessor :agent_name
25
+
26
+ # @return [String]
27
+ attr_accessor :name
28
+
29
+ # @return [Operation]
30
+ attr_accessor :operation
31
+
32
+
33
+ #
34
+ # Mapper for OperationTask class as Ruby Hash.
35
+ # This will be used for serialization/deserialization.
36
+ #
37
+ def self.mapper()
38
+ {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'OperationTask',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'OperationTask',
45
+ model_properties: {
46
+ id: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'id',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ status: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'status',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ agent_name: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'agentName',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ name: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ serialized_name: 'name',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ },
78
+ operation: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ serialized_name: 'operation',
82
+ type: {
83
+ name: 'Composite',
84
+ class_name: 'Operation'
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ end
91
+ end
92
+ end
93
+ end
@@ -19,6 +19,9 @@ module Haipa::Client::Compute::V1_0
19
19
  # @return [String]
20
20
  attr_accessor :data_store
21
21
 
22
+ # @return [VirtualMachineImageConfig]
23
+ attr_accessor :image
24
+
22
25
  # @return [VirtualMachineCpuConfig]
23
26
  attr_accessor :cpu
24
27
 
@@ -61,6 +64,15 @@ module Haipa::Client::Compute::V1_0
61
64
  name: 'String'
62
65
  }
63
66
  },
67
+ image: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'image',
71
+ type: {
72
+ name: 'Composite',
73
+ class_name: 'VirtualMachineImageConfig'
74
+ }
75
+ },
64
76
  cpu: {
65
77
  client_side_validation: true,
66
78
  required: false,
@@ -0,0 +1,69 @@
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
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class VirtualMachineImageConfig
13
+
14
+ include Haipa::Client
15
+
16
+ # @return [Enum] Possible values include: 'Local', 'Vagrant'
17
+ attr_accessor :source
18
+
19
+ # @return [String]
20
+ attr_accessor :id
21
+
22
+ # @return [String]
23
+ attr_accessor :version
24
+
25
+
26
+ #
27
+ # Mapper for VirtualMachineImageConfig class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'VirtualMachineImageConfig',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'VirtualMachineImageConfig',
38
+ model_properties: {
39
+ source: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'source',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ id: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ serialized_name: 'id',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ version: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'version',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ end
67
+ end
68
+ end
69
+ end
@@ -242,7 +242,7 @@ module Haipa::Client::Compute::V1_0
242
242
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
243
243
  # will be added to the HTTP request.
244
244
  #
245
- # @return [ODataValueIEnumerableOperationLog] operation results.
245
+ # @return [ODataValueIEnumerableOperationLogEntry] operation results.
246
246
  #
247
247
  def get_log_entries(key, select:nil, expand:nil, filter:nil, orderby:nil, top:nil, skip:nil, count:false, custom_headers:nil)
248
248
  response = get_log_entries_async(key, select:select, expand:expand, filter:filter, orderby:orderby, top:top, skip:skip, count:count, custom_headers:custom_headers).value!
@@ -330,7 +330,7 @@ module Haipa::Client::Compute::V1_0
330
330
  if status_code == 200
331
331
  begin
332
332
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
333
- result_mapper = Haipa::Client::Compute::V1_0::Models::ODataValueIEnumerableOperationLog.mapper()
333
+ result_mapper = Haipa::Client::Compute::V1_0::Models::ODataValueIEnumerableOperationLogEntry.mapper()
334
334
  result.body = @client.deserialize(result_mapper, parsed_response)
335
335
  rescue Exception => e
336
336
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
data/lib/version.rb CHANGED
@@ -4,5 +4,5 @@
4
4
 
5
5
  module Haipa::Client::Compute
6
6
 
7
- VERSION = '0.2.2'
7
+ VERSION = '0.3.0'
8
8
  end
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.2.2
4
+ version: 0.3.0
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-09-14 00:00:00.000000000 Z
11
+ date: 2019-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -101,13 +101,17 @@ files:
101
101
  - lib/1.0/generated/haipa_compute/models/odata_value_ienumerable_machine.rb
102
102
  - lib/1.0/generated/haipa_compute/models/odata_value_ienumerable_operation.rb
103
103
  - lib/1.0/generated/haipa_compute/models/odata_value_ienumerable_operation_log.rb
104
+ - lib/1.0/generated/haipa_compute/models/odata_value_ienumerable_operation_log_entry.rb
104
105
  - lib/1.0/generated/haipa_compute/models/operation.rb
105
106
  - lib/1.0/generated/haipa_compute/models/operation_log.rb
107
+ - lib/1.0/generated/haipa_compute/models/operation_log_entry.rb
108
+ - lib/1.0/generated/haipa_compute/models/operation_task.rb
106
109
  - lib/1.0/generated/haipa_compute/models/subnet.rb
107
110
  - lib/1.0/generated/haipa_compute/models/virtual_machine.rb
108
111
  - lib/1.0/generated/haipa_compute/models/virtual_machine_config.rb
109
112
  - lib/1.0/generated/haipa_compute/models/virtual_machine_cpu_config.rb
110
113
  - lib/1.0/generated/haipa_compute/models/virtual_machine_drive_config.rb
114
+ - lib/1.0/generated/haipa_compute/models/virtual_machine_image_config.rb
111
115
  - lib/1.0/generated/haipa_compute/models/virtual_machine_memory_config.rb
112
116
  - lib/1.0/generated/haipa_compute/models/virtual_machine_network_adapter.rb
113
117
  - lib/1.0/generated/haipa_compute/models/virtual_machine_network_adapter_config.rb