ovirt-engine-sdk 4.0.0.alpha14 → 4.0.0.alpha15

Sign up to get free protection for your applications and to get access to all the features.
@@ -26583,6 +26583,24 @@ module OvirtSDK4
26583
26583
 
26584
26584
  class DiskAttachment < Identified
26585
26585
 
26586
+ #
26587
+ # Returns the value of the `active` attribute.
26588
+ #
26589
+ # @return [Boolean]
26590
+ #
26591
+ def active
26592
+ return @active
26593
+ end
26594
+
26595
+ #
26596
+ # Sets the value of the `active` attribute.
26597
+ #
26598
+ # @param value [Boolean]
26599
+ #
26600
+ def active=(value)
26601
+ @active = value
26602
+ end
26603
+
26586
26604
  #
26587
26605
  # Returns the value of the `bootable` attribute.
26588
26606
  #
@@ -26716,6 +26734,31 @@ module OvirtSDK4
26716
26734
  @name = value
26717
26735
  end
26718
26736
 
26737
+ #
26738
+ # Returns the value of the `template` attribute.
26739
+ #
26740
+ # @return [Template]
26741
+ #
26742
+ def template
26743
+ return @template
26744
+ end
26745
+
26746
+ #
26747
+ # Sets the value of the `template` attribute.
26748
+ #
26749
+ # @param value [Template, Hash]
26750
+ #
26751
+ # The `value` parameter can be an instance of {OvirtSDK4::Template} or a hash.
26752
+ # If it is a hash then a new instance will be created passing the hash as the
26753
+ # `opts` parameter to the constructor.
26754
+ #
26755
+ def template=(value)
26756
+ if value.is_a?(Hash)
26757
+ value = Template.new(value)
26758
+ end
26759
+ @template = value
26760
+ end
26761
+
26719
26762
  #
26720
26763
  # Returns the value of the `vm` attribute.
26721
26764
  #
@@ -26748,6 +26791,8 @@ module OvirtSDK4
26748
26791
  # should be symbols corresponding to the names of the attributes. The values of the hash
26749
26792
  # should be the values of the attributes.
26750
26793
  #
26794
+ # @option opts [Boolean] :active The value of attribute `active`.
26795
+ #
26751
26796
  # @option opts [Boolean] :bootable The value of attribute `bootable`.
26752
26797
  #
26753
26798
  # @option opts [String] :comment The value of attribute `comment`.
@@ -26762,11 +26807,14 @@ module OvirtSDK4
26762
26807
  #
26763
26808
  # @option opts [String] :name The value of attribute `name`.
26764
26809
  #
26810
+ # @option opts [Template, Hash] :template The value of attribute `template`.
26811
+ #
26765
26812
  # @option opts [Vm, Hash] :vm The value of attribute `vm`.
26766
26813
  #
26767
26814
  #
26768
26815
  def initialize(opts = {})
26769
26816
  super(opts)
26817
+ self.active = opts[:active]
26770
26818
  self.bootable = opts[:bootable]
26771
26819
  self.comment = opts[:comment]
26772
26820
  self.description = opts[:description]
@@ -26774,6 +26822,7 @@ module OvirtSDK4
26774
26822
  self.id = opts[:id]
26775
26823
  self.interface = opts[:interface]
26776
26824
  self.name = opts[:name]
26825
+ self.template = opts[:template]
26777
26826
  self.vm = opts[:vm]
26778
26827
  end
26779
26828
 
@@ -36902,28 +36951,28 @@ module OvirtSDK4
36902
36951
  end
36903
36952
 
36904
36953
  #
36905
- # Returns the value of the `disks` attribute.
36954
+ # Returns the value of the `disk_attachments` attribute.
36906
36955
  #
36907
- # @return [Array<Disk>]
36956
+ # @return [Array<DiskAttachment>]
36908
36957
  #
36909
- def disks
36910
- return @disks
36958
+ def disk_attachments
36959
+ return @disk_attachments
36911
36960
  end
36912
36961
 
36913
36962
  #
36914
- # Sets the value of the `disks` attribute.
36963
+ # Sets the value of the `disk_attachments` attribute.
36915
36964
  #
36916
- # @param list [Array<Disk>]
36917
- def disks=(list)
36965
+ # @param list [Array<DiskAttachment>]
36966
+ def disk_attachments=(list)
36918
36967
  if list.class == Array
36919
36968
  list = List.new(list)
36920
36969
  list.each_with_index do |value, index|
36921
36970
  if value.is_a?(Hash)
36922
- list[index] = Disk.new(value)
36971
+ list[index] = DiskAttachment.new(value)
36923
36972
  end
36924
36973
  end
36925
36974
  end
36926
- @disks = list
36975
+ @disk_attachments = list
36927
36976
  end
36928
36977
 
36929
36978
  #
@@ -37761,7 +37810,7 @@ module OvirtSDK4
37761
37810
  #
37762
37811
  # @option opts [String] :description The value of attribute `description`.
37763
37812
  #
37764
- # @option opts [Array<Disk>, Array<Hash>] :disks The values of attribute `disks`.
37813
+ # @option opts [Array<DiskAttachment>, Array<Hash>] :disk_attachments The values of attribute `disk_attachments`.
37765
37814
  #
37766
37815
  # @option opts [Display, Hash] :display The value of attribute `display`.
37767
37816
  #
@@ -37851,7 +37900,7 @@ module OvirtSDK4
37851
37900
  self.custom_properties = opts[:custom_properties]
37852
37901
  self.delete_protected = opts[:delete_protected]
37853
37902
  self.description = opts[:description]
37854
- self.disks = opts[:disks]
37903
+ self.disk_attachments = opts[:disk_attachments]
37855
37904
  self.display = opts[:display]
37856
37905
  self.domain = opts[:domain]
37857
37906
  self.graphics_consoles = opts[:graphics_consoles]
@@ -38294,31 +38343,6 @@ module OvirtSDK4
38294
38343
  @disk_attachments = list
38295
38344
  end
38296
38345
 
38297
- #
38298
- # Returns the value of the `disks` attribute.
38299
- #
38300
- # @return [Array<Disk>]
38301
- #
38302
- def disks
38303
- return @disks
38304
- end
38305
-
38306
- #
38307
- # Sets the value of the `disks` attribute.
38308
- #
38309
- # @param list [Array<Disk>]
38310
- def disks=(list)
38311
- if list.class == Array
38312
- list = List.new(list)
38313
- list.each_with_index do |value, index|
38314
- if value.is_a?(Hash)
38315
- list[index] = Disk.new(value)
38316
- end
38317
- end
38318
- end
38319
- @disks = list
38320
- end
38321
-
38322
38346
  #
38323
38347
  # Returns the value of the `display` attribute.
38324
38348
  #
@@ -39722,8 +39746,6 @@ module OvirtSDK4
39722
39746
  #
39723
39747
  # @option opts [Array<DiskAttachment>, Array<Hash>] :disk_attachments The values of attribute `disk_attachments`.
39724
39748
  #
39725
- # @option opts [Array<Disk>, Array<Hash>] :disks The values of attribute `disks`.
39726
- #
39727
39749
  # @option opts [Display, Hash] :display The value of attribute `display`.
39728
39750
  #
39729
39751
  # @option opts [Domain, Hash] :domain The value of attribute `domain`.
@@ -39865,7 +39887,6 @@ module OvirtSDK4
39865
39887
  self.delete_protected = opts[:delete_protected]
39866
39888
  self.description = opts[:description]
39867
39889
  self.disk_attachments = opts[:disk_attachments]
39868
- self.disks = opts[:disks]
39869
39890
  self.display = opts[:display]
39870
39891
  self.domain = opts[:domain]
39871
39892
  self.external_host_provider = opts[:external_host_provider]
@@ -41618,28 +41639,28 @@ module OvirtSDK4
41618
41639
  end
41619
41640
 
41620
41641
  #
41621
- # Returns the value of the `disks` attribute.
41642
+ # Returns the value of the `disk_attachments` attribute.
41622
41643
  #
41623
- # @return [Array<Disk>]
41644
+ # @return [Array<DiskAttachment>]
41624
41645
  #
41625
- def disks
41626
- return @disks
41646
+ def disk_attachments
41647
+ return @disk_attachments
41627
41648
  end
41628
41649
 
41629
41650
  #
41630
- # Sets the value of the `disks` attribute.
41651
+ # Sets the value of the `disk_attachments` attribute.
41631
41652
  #
41632
- # @param list [Array<Disk>]
41633
- def disks=(list)
41653
+ # @param list [Array<DiskAttachment>]
41654
+ def disk_attachments=(list)
41634
41655
  if list.class == Array
41635
41656
  list = List.new(list)
41636
41657
  list.each_with_index do |value, index|
41637
41658
  if value.is_a?(Hash)
41638
- list[index] = Disk.new(value)
41659
+ list[index] = DiskAttachment.new(value)
41639
41660
  end
41640
41661
  end
41641
41662
  end
41642
- @disks = list
41663
+ @disk_attachments = list
41643
41664
  end
41644
41665
 
41645
41666
  #
@@ -42477,7 +42498,7 @@ module OvirtSDK4
42477
42498
  #
42478
42499
  # @option opts [String] :description The value of attribute `description`.
42479
42500
  #
42480
- # @option opts [Array<Disk>, Array<Hash>] :disks The values of attribute `disks`.
42501
+ # @option opts [Array<DiskAttachment>, Array<Hash>] :disk_attachments The values of attribute `disk_attachments`.
42481
42502
  #
42482
42503
  # @option opts [Display, Hash] :display The value of attribute `display`.
42483
42504
  #
@@ -42567,7 +42588,7 @@ module OvirtSDK4
42567
42588
  self.custom_properties = opts[:custom_properties]
42568
42589
  self.delete_protected = opts[:delete_protected]
42569
42590
  self.description = opts[:description]
42570
- self.disks = opts[:disks]
42591
+ self.disk_attachments = opts[:disk_attachments]
42571
42592
  self.display = opts[:display]
42572
42593
  self.domain = opts[:domain]
42573
42594
  self.graphics_consoles = opts[:graphics_consoles]
@@ -43767,31 +43788,6 @@ module OvirtSDK4
43767
43788
  @disk_attachments = list
43768
43789
  end
43769
43790
 
43770
- #
43771
- # Returns the value of the `disks` attribute.
43772
- #
43773
- # @return [Array<Disk>]
43774
- #
43775
- def disks
43776
- return @disks
43777
- end
43778
-
43779
- #
43780
- # Sets the value of the `disks` attribute.
43781
- #
43782
- # @param list [Array<Disk>]
43783
- def disks=(list)
43784
- if list.class == Array
43785
- list = List.new(list)
43786
- list.each_with_index do |value, index|
43787
- if value.is_a?(Hash)
43788
- list[index] = Disk.new(value)
43789
- end
43790
- end
43791
- end
43792
- @disks = list
43793
- end
43794
-
43795
43791
  #
43796
43792
  # Returns the value of the `display` attribute.
43797
43793
  #
@@ -45276,8 +45272,6 @@ module OvirtSDK4
45276
45272
  #
45277
45273
  # @option opts [Array<DiskAttachment>, Array<Hash>] :disk_attachments The values of attribute `disk_attachments`.
45278
45274
  #
45279
- # @option opts [Array<Disk>, Array<Hash>] :disks The values of attribute `disks`.
45280
- #
45281
45275
  # @option opts [Display, Hash] :display The value of attribute `display`.
45282
45276
  #
45283
45277
  # @option opts [Domain, Hash] :domain The value of attribute `domain`.
@@ -45428,7 +45422,6 @@ module OvirtSDK4
45428
45422
  self.delete_protected = opts[:delete_protected]
45429
45423
  self.description = opts[:description]
45430
45424
  self.disk_attachments = opts[:disk_attachments]
45431
- self.disks = opts[:disks]
45432
45425
  self.display = opts[:display]
45433
45426
  self.domain = opts[:domain]
45434
45427
  self.external_host_provider = opts[:external_host_provider]
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module OvirtSDK4
19
- VERSION = '4.0.0.alpha14'
19
+ VERSION = '4.0.0.alpha15'
20
20
  end
@@ -1247,12 +1247,14 @@ module OvirtSDK4
1247
1247
  href = object.href
1248
1248
  writer.write_attribute('href', href) unless href.nil?
1249
1249
  writer.write_attribute('id', object.id) unless object.id.nil?
1250
+ Writer.write_boolean(writer, 'active', object.active) unless object.active.nil?
1250
1251
  Writer.write_boolean(writer, 'bootable', object.bootable) unless object.bootable.nil?
1251
1252
  Writer.write_string(writer, 'comment', object.comment) unless object.comment.nil?
1252
1253
  Writer.write_string(writer, 'description', object.description) unless object.description.nil?
1253
1254
  Writer.write_string(writer, 'interface', object.interface) unless object.interface.nil?
1254
1255
  Writer.write_string(writer, 'name', object.name) unless object.name.nil?
1255
1256
  DiskWriter.write_one(object.disk, writer, 'disk') unless object.disk.nil?
1257
+ TemplateWriter.write_one(object.template, writer, 'template') unless object.template.nil?
1256
1258
  VmWriter.write_one(object.vm, writer, 'vm') unless object.vm.nil?
1257
1259
  writer.write_end
1258
1260
  end
@@ -3029,7 +3031,7 @@ module OvirtSDK4
3029
3031
  CdromWriter.write_many(object.cdroms, writer, 'cdrom', 'cdroms') unless object.cdroms.nil?
3030
3032
  ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
3031
3033
  CpuProfileWriter.write_one(object.cpu_profile, writer, 'cpu_profile') unless object.cpu_profile.nil?
3032
- DiskWriter.write_many(object.disks, writer, 'disk', 'disks') unless object.disks.nil?
3034
+ DiskAttachmentWriter.write_many(object.disk_attachments, writer, 'disk_attachment', 'disk_attachments') unless object.disk_attachments.nil?
3033
3035
  GraphicsConsoleWriter.write_many(object.graphics_consoles, writer, 'graphics_console', 'graphics_consoles') unless object.graphics_consoles.nil?
3034
3036
  NicWriter.write_many(object.nics, writer, 'nic', 'nics') unless object.nics.nil?
3035
3037
  PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
@@ -5389,7 +5391,6 @@ module OvirtSDK4
5389
5391
  ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
5390
5392
  CpuProfileWriter.write_one(object.cpu_profile, writer, 'cpu_profile') unless object.cpu_profile.nil?
5391
5393
  DiskAttachmentWriter.write_many(object.disk_attachments, writer, 'disk_attachment', 'disk_attachments') unless object.disk_attachments.nil?
5392
- DiskWriter.write_many(object.disks, writer, 'disk', 'disks') unless object.disks.nil?
5393
5394
  ExternalHostProviderWriter.write_one(object.external_host_provider, writer, 'external_host_provider') unless object.external_host_provider.nil?
5394
5395
  FloppyWriter.write_many(object.floppies, writer, 'floppy', 'floppies') unless object.floppies.nil?
5395
5396
  GraphicsConsoleWriter.write_many(object.graphics_consoles, writer, 'graphics_console', 'graphics_consoles') unless object.graphics_consoles.nil?
@@ -5882,7 +5883,7 @@ module OvirtSDK4
5882
5883
  CdromWriter.write_many(object.cdroms, writer, 'cdrom', 'cdroms') unless object.cdroms.nil?
5883
5884
  ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
5884
5885
  CpuProfileWriter.write_one(object.cpu_profile, writer, 'cpu_profile') unless object.cpu_profile.nil?
5885
- DiskWriter.write_many(object.disks, writer, 'disk', 'disks') unless object.disks.nil?
5886
+ DiskAttachmentWriter.write_many(object.disk_attachments, writer, 'disk_attachment', 'disk_attachments') unless object.disk_attachments.nil?
5886
5887
  GraphicsConsoleWriter.write_many(object.graphics_consoles, writer, 'graphics_console', 'graphics_consoles') unless object.graphics_consoles.nil?
5887
5888
  NicWriter.write_many(object.nics, writer, 'nic', 'nics') unless object.nics.nil?
5888
5889
  PermissionWriter.write_many(object.permissions, writer, 'permission', 'permissions') unless object.permissions.nil?
@@ -6403,7 +6404,6 @@ module OvirtSDK4
6403
6404
  ClusterWriter.write_one(object.cluster, writer, 'cluster') unless object.cluster.nil?
6404
6405
  CpuProfileWriter.write_one(object.cpu_profile, writer, 'cpu_profile') unless object.cpu_profile.nil?
6405
6406
  DiskAttachmentWriter.write_many(object.disk_attachments, writer, 'disk_attachment', 'disk_attachments') unless object.disk_attachments.nil?
6406
- DiskWriter.write_many(object.disks, writer, 'disk', 'disks') unless object.disks.nil?
6407
6407
  ExternalHostProviderWriter.write_one(object.external_host_provider, writer, 'external_host_provider') unless object.external_host_provider.nil?
6408
6408
  FloppyWriter.write_many(object.floppies, writer, 'floppy', 'floppies') unless object.floppies.nil?
6409
6409
  GraphicsConsoleWriter.write_many(object.graphics_consoles, writer, 'graphics_console', 'graphics_consoles') unless object.graphics_consoles.nil?
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ovirt-engine-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.alpha14
4
+ version: 4.0.0.alpha15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Hernandez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-30 00:00:00.000000000 Z
11
+ date: 2016-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curb
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.8'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake-compiler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0.9'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.9'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '3.3'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.3'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: yard
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0.8'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.8'
69
69
  description: Ruby SDK for the oVirt Engine API.
@@ -77,26 +77,26 @@ files:
77
77
  - LICENSE.txt
78
78
  - README.adoc
79
79
  - ext/ovirtsdk4c/extconf.rb
80
- - ext/ovirtsdk4c/ovirtsdk4c.c
81
- - ext/ovirtsdk4c/ov_module.c
82
80
  - ext/ovirtsdk4c/ov_error.c
83
- - ext/ovirtsdk4c/ov_xml_writer.c
81
+ - ext/ovirtsdk4c/ov_error.h
82
+ - ext/ovirtsdk4c/ov_module.c
83
+ - ext/ovirtsdk4c/ov_module.h
84
84
  - ext/ovirtsdk4c/ov_xml_reader.c
85
85
  - ext/ovirtsdk4c/ov_xml_reader.h
86
- - ext/ovirtsdk4c/ov_module.h
87
- - ext/ovirtsdk4c/ov_error.h
86
+ - ext/ovirtsdk4c/ov_xml_writer.c
88
87
  - ext/ovirtsdk4c/ov_xml_writer.h
89
- - lib/ovirtsdk4/services.rb
90
- - lib/ovirtsdk4/version.rb
88
+ - ext/ovirtsdk4c/ovirtsdk4c.c
89
+ - lib/ovirtsdk4.rb
91
90
  - lib/ovirtsdk4/http.rb
92
- - lib/ovirtsdk4/types.rb
93
- - lib/ovirtsdk4/service.rb
94
- - lib/ovirtsdk4/writers.rb
95
- - lib/ovirtsdk4/readers.rb
96
91
  - lib/ovirtsdk4/reader.rb
97
- - lib/ovirtsdk4/writer.rb
92
+ - lib/ovirtsdk4/readers.rb
93
+ - lib/ovirtsdk4/service.rb
94
+ - lib/ovirtsdk4/services.rb
98
95
  - lib/ovirtsdk4/type.rb
99
- - lib/ovirtsdk4.rb
96
+ - lib/ovirtsdk4/types.rb
97
+ - lib/ovirtsdk4/version.rb
98
+ - lib/ovirtsdk4/writer.rb
99
+ - lib/ovirtsdk4/writers.rb
100
100
  homepage: http://ovirt.org
101
101
  licenses:
102
102
  - Apache-2.0
@@ -107,17 +107,17 @@ require_paths:
107
107
  - lib
108
108
  required_ruby_version: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - '>='
110
+ - - ">="
111
111
  - !ruby/object:Gem::Version
112
112
  version: '1.9'
113
113
  required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>'
115
+ - - ">"
116
116
  - !ruby/object:Gem::Version
117
117
  version: 1.3.1
118
118
  requirements: []
119
119
  rubyforge_project:
120
- rubygems_version: 2.0.14
120
+ rubygems_version: 2.4.8
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: oVirt SDK